:root {
  color-scheme: dark;
  --ink: #111313;
  --ink-soft: #171a19;
  --ink-raised: #202321;
  --paper: #e9e5da;
  --paper-muted: #a8aaa2;
  --line: rgba(235, 232, 220, 0.12);
  --line-strong: rgba(235, 232, 220, 0.24);
  --amber: #f3a712;
  --amber-bright: #ffc342;
  --sidebar-width: 326px;
  --topbar-height: 72px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--paper);
  font-family: "Avenir Next", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app-shell {
  display: grid;
  grid-template-areas:
    "topbar topbar"
    "sidebar review";
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.topbar {
  position: relative;
  z-index: 30;
  grid-area: topbar;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(243, 167, 18, 0.035), transparent 30%),
    var(--ink);
}

.brand {
  display: flex;
  width: var(--sidebar-width);
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--line);
  padding: 0 25px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  transform: rotate(-8deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  height: 4px;
  border-radius: 1px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(243, 167, 18, 0.28);
  transform-origin: left center;
}

.brand-mark::before {
  top: 5px;
  left: 2px;
  width: 23px;
  transform: rotate(48deg);
}

.brand-mark::after {
  bottom: 4px;
  left: 3px;
  width: 22px;
  transform: rotate(-48deg);
}

.brand-mark i:nth-child(1) {
  left: 1px;
  width: 27px;
}

.brand-mark i:nth-child(2) {
  width: 12px;
  transform: rotate(90deg);
}

.brand-mark i:nth-child(3) {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--paper-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 21px;
}

.asset-count {
  color: #777c77;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.asset-count b {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.topbar-rule {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.icon-button,
.tool-button,
.zoom-readout,
.dialog-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper-muted);
  transition: 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--amber-bright);
  outline: 0;
}

.mobile-menu {
  display: none;
}

.sidebar {
  position: relative;
  z-index: 20;
  grid-area: sidebar;
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%),
    var(--ink);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 82px;
  background: var(--amber);
}

.sidebar-head {
  padding: 29px 25px 21px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
}

.sidebar h1 {
  margin: 0;
  color: #f5f1e7;
  font-family: "Songti SC", "STSong", serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.sidebar-intro {
  max-width: 232px;
  margin: 12px 0 0;
  color: #777c77;
  font-size: 11px;
  line-height: 1.7;
}

.search-box {
  display: flex;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin: 0 25px 18px;
  border-bottom: 1px solid var(--line-strong);
  color: #666c67;
}

.search-box:focus-within {
  border-color: var(--amber);
  color: var(--amber);
}

.search-box svg {
  width: 16px;
  height: 16px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #5f645f;
}

.search-box kbd {
  color: #4f544f;
  font-family: inherit;
  font-size: 9px;
  font-weight: 500;
}

.asset-nav {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 15px 28px;
  scrollbar-color: #3a3e3b transparent;
  scrollbar-width: thin;
}

.nav-section + .nav-section {
  margin-top: 22px;
}

.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 8px;
  color: #707570;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-section-title span:last-child {
  font-family: "DIN Condensed", sans-serif;
  font-size: 10px;
}

.asset-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: var(--radius);
  padding: 7px 10px;
  background: transparent;
  color: #9a9e98;
  cursor: pointer;
  text-align: left;
  transition: 150ms ease;
}

.asset-item::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--amber);
  opacity: 0;
  transform: scaleY(0.4);
  transition: 180ms ease;
}

.asset-item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #ddd9ce;
}

.asset-item.is-active {
  background: linear-gradient(90deg, rgba(243, 167, 18, 0.12), rgba(243, 167, 18, 0.025));
  color: #fff;
}

.asset-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.asset-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: #242826;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.72);
  transition: 180ms ease;
}

.asset-item:hover .asset-thumb img,
.asset-item.is-active .asset-thumb img {
  filter: saturate(1) brightness(0.95);
}

.asset-item.is-active .asset-thumb {
  border-color: rgba(243, 167, 18, 0.48);
}

.asset-name {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-subtitle {
  display: block;
  margin-top: 3px;
  color: #5e635f;
  font-family: "DIN Condensed", sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asset-chevron {
  width: 14px;
  height: 14px;
  color: #505551;
  opacity: 0;
  transform: translateX(-4px);
  transition: 160ms ease;
}

.asset-item:hover .asset-chevron,
.asset-item.is-active .asset-chevron {
  opacity: 1;
  transform: translateX(0);
}

.empty-search {
  margin: 42px 18px;
  color: #656a65;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.directory-group + .directory-group {
  margin-top: 18px;
}

.root-nav-item,
.folder-nav-item {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 150ms ease;
}

.root-nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px;
  color: #a1a59f;
}

.root-nav-item:hover,
.root-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.root-nav-item.is-active {
  border-color: rgba(243, 167, 18, 0.32);
  background: linear-gradient(90deg, rgba(243, 167, 18, 0.13), rgba(243, 167, 18, 0.025));
}

.root-folder-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #6e736e;
  background: #202321;
}

.root-folder-icon svg {
  width: 17px;
  height: 17px;
}

.root-nav-item.is-active .root-folder-icon,
.directory-group.is-current .root-folder-icon {
  border-color: rgba(243, 167, 18, 0.36);
  color: var(--amber);
}

.root-nav-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.root-nav-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-nav-copy small,
.root-nav-count,
.folder-nav-count {
  color: #5f645f;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.root-nav-count {
  color: #777c77;
  font-size: 10px;
}

.folder-nav-list {
  position: relative;
  margin: 4px 0 0 26px;
  padding-left: 16px;
}

.folder-nav-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 11px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.folder-nav-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  padding: 8px 9px 8px 0;
  color: #747974;
}

.folder-nav-item:hover,
.folder-nav-item.is-current {
  color: #dad7ce;
  background: rgba(255, 255, 255, 0.028);
}

.folder-nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(243, 167, 18, 0.09), transparent);
}

.folder-branch {
  width: 10px;
  height: 1px;
  background: #4d524e;
}

.folder-nav-item.is-current .folder-branch {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(243, 167, 18, 0.42);
}

.folder-nav-name {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  display: flex;
  height: 45px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 0 25px;
  color: #4f544f;
  font-family: "DIN Condensed", sans-serif;
  font-size: 8px;
  letter-spacing: 0.17em;
}

.sidebar-scrim {
  display: none;
}

.review-area {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-area: review;
  grid-template-rows: 86px minmax(0, 1fr);
  background: #181b19;
}

.asset-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(20px, 3vw, 45px);
  background: rgba(20, 23, 21, 0.96);
}

.asset-heading {
  min-width: 0;
}

.breadcrumb {
  margin: 0 0 5px;
  color: #858a84;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.asset-heading h2 {
  overflow: hidden;
  margin: 0;
  color: #f5f1e7;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-facts {
  display: flex;
  align-items: center;
  gap: 0;
  color: #858a84;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.asset-facts span {
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.asset-facts span:first-child {
  padding-left: 0;
  color: var(--amber);
}

.asset-facts span:last-child {
  border: 0;
  padding-right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.collection-controls,
.asset-actions {
  display: flex;
  align-items: center;
}

.collection-controls {
  height: 36px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px;
  background: #111412;
}

.group-mode-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}

.group-mode-button {
  height: 30px;
  border: 0;
  border-radius: 2px;
  padding: 0 9px;
  background: transparent;
  color: #858a84;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  transition: 140ms ease;
}

.group-mode-button:hover,
.group-mode-button:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #ddd9d0;
}

.group-mode-button.is-active {
  background: rgba(243, 167, 18, 0.13);
  color: var(--amber-bright);
  box-shadow: inset 0 0 0 1px rgba(243, 167, 18, 0.2);
}

.control-divider {
  width: 1px;
  height: 19px;
  margin: 0 3px;
  background: var(--line);
}

.compact-tool,
.grid-scale-readout,
.back-button {
  border: 0;
  background: transparent;
  color: #8f948e;
  cursor: pointer;
  transition: 140ms ease;
}

.compact-tool {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 2px;
}

.compact-tool svg {
  width: 15px;
  height: 15px;
}

.grid-scale-readout {
  width: 46px;
  height: 30px;
  border-radius: 2px;
  color: #e5e1d7;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.compact-tool:hover,
.compact-tool:focus-visible,
.grid-scale-readout:hover,
.grid-scale-readout:focus-visible,
.back-button:hover,
.back-button:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--amber-bright);
}

.batch-select-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 2px;
  padding: 0 9px;
  background: transparent;
  color: #8f948e;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  transition: 140ms ease;
}

.batch-select-button svg {
  width: 14px;
  height: 14px;
}

.batch-select-button:hover,
.batch-select-button:focus-visible,
.batch-select-button.is-active {
  outline: 0;
  background: rgba(243, 167, 18, 0.13);
  color: var(--amber-bright);
}

.asset-actions {
  gap: 14px;
}

.back-button {
  display: inline-flex;
  height: 35px;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 0 15px 0 7px;
  font-size: 10px;
  white-space: nowrap;
}

.back-button svg {
  width: 16px;
  height: 16px;
}

.text-action,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: 150ms ease;
}

.text-action {
  color: #8d918c;
}

.text-action svg,
.download-button svg {
  width: 15px;
  height: 15px;
}

.text-action:hover {
  color: #fff;
}

.download-button {
  height: 35px;
  border: 1px solid rgba(243, 167, 18, 0.46);
  border-radius: 2px;
  padding: 0 14px;
  color: var(--amber-bright);
  background: rgba(243, 167, 18, 0.07);
}

.download-button:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: #161512;
}

.collection-view {
  --grid-card-width: 198px;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3a3e3b transparent;
  scrollbar-width: thin;
  background:
    radial-gradient(circle at 86% 5%, rgba(243, 167, 18, 0.055), transparent 25%),
    #1b1e1c;
}

.collection-grid-backdrop {
  position: fixed;
  inset: var(--topbar-height) 0 0 var(--sidebar-width);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.collection-content {
  position: relative;
  z-index: 1;
  padding: 34px clamp(22px, 3vw, 46px) 76px;
}

.collection-section {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.collection-section.is-flat {
  contain-intrinsic-size: 1200px;
}

.collection-section + .collection-section {
  margin-top: 54px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.collection-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.collection-section-head p {
  margin: 0 0 5px;
  color: #656a65;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.collection-section-head h3 {
  margin: 0;
  color: #eeeae0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  letter-spacing: 0.05em;
}

.collection-section-head > span {
  color: #6e736e;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-card-width)), 1fr));
  align-items: start;
  gap: clamp(13px, 1.4vw, 22px);
}

.image-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  animation: card-enter 360ms both;
  animation-delay: min(calc(var(--card-order) * 28ms), 280ms);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.image-card-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 9 / 18;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 40%),
    #121513;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: 180ms ease;
}

.image-card-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.88) brightness(0.9);
  transition: filter 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-card:hover .image-card-frame,
.image-card:focus-visible .image-card-frame {
  border-color: rgba(243, 167, 18, 0.55);
  outline: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(243, 167, 18, 0.08);
  transform: translateY(-3px);
}

.image-card:focus-visible {
  outline: 0;
}

.image-card:hover img,
.image-card:focus-visible img {
  filter: saturate(1) brightness(1);
  transform: scale(1.015);
}

.image-card-focus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 0 9px;
  background: rgba(12, 14, 13, 0.86);
  color: #d6d3ca;
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(5px);
  transition: 160ms ease;
  backdrop-filter: blur(10px);
}

.image-card-focus svg {
  width: 13px;
  height: 13px;
  color: var(--amber);
}

.image-card:hover .image-card-focus,
.image-card:focus-visible .image-card-focus {
  opacity: 1;
  transform: translateY(0);
}

.image-card-select {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  background: rgba(10, 12, 11, 0.86);
  color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: 150ms ease;
}

.image-card-select svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.collection-view.is-selecting .image-card {
  cursor: pointer;
  user-select: none;
}

.collection-view.is-selecting .image-card-select {
  opacity: 1;
  transform: scale(1);
}

.collection-view.is-selecting .image-card-focus {
  display: none;
}

.image-card.is-selected .image-card-frame {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(243, 167, 18, 0.18), 0 18px 48px rgba(0, 0, 0, 0.34);
}

.image-card.is-selected .image-card-select {
  border-color: var(--amber);
  background: var(--amber);
  color: #17130a;
}

.selection-marquee {
  position: fixed;
  z-index: 30;
  border: 1px solid var(--amber);
  background: rgba(243, 167, 18, 0.12);
  box-shadow: inset 0 0 24px rgba(243, 167, 18, 0.08);
  pointer-events: none;
}

.batch-action-bar {
  position: fixed;
  z-index: 12;
  right: clamp(18px, 3vw, 44px);
  bottom: 22px;
  left: calc(var(--sidebar-width) + clamp(18px, 3vw, 44px));
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 8px 9px 8px 16px;
  background: rgba(16, 19, 17, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.batch-action-bar[hidden] {
  display: none;
}

.batch-selection-count {
  display: flex;
  min-width: 90px;
  align-items: baseline;
  gap: 7px;
}

.batch-selection-count b {
  color: var(--amber);
  font-family: "DIN Condensed", sans-serif;
  font-size: 19px;
}

.batch-selection-count span,
.batch-action-bar button,
.batch-action-bar p {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.batch-selection-count span {
  color: #8d928d;
}

.batch-action-rule {
  width: 1px;
  height: 25px;
  margin-right: 2px;
  background: var(--line);
}

.batch-action-bar button {
  height: 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0 10px;
  background: transparent;
  color: #959a95;
  cursor: pointer;
}

.batch-action-bar button:hover,
.batch-action-bar button:focus-visible {
  border-color: var(--line-strong);
  outline: 0;
  color: #eeeae0;
}

.batch-action-bar p {
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: #a7aaa5;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-action-bar .batch-download-button {
  display: inline-flex;
  min-width: 112px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: var(--amber);
  background: var(--amber);
  color: #17130a;
}

.batch-download-button svg {
  width: 15px;
  height: 15px;
}

.batch-action-bar button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.image-card-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 0 2px 2px;
}

.image-card-meta strong {
  overflow: hidden;
  color: #cac7be;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card-meta small {
  color: #616661;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.collection-empty {
  display: grid;
  min-height: 52vh;
  place-items: center;
  align-content: center;
  color: #696e69;
  text-align: center;
}

.collection-empty > span {
  color: var(--amber);
  font-family: "DIN Condensed", sans-serif;
  font-size: 44px;
  font-weight: 700;
}

.collection-empty h3 {
  margin: 4px 0;
  color: #c5c2b9;
  font-family: "Songti SC", serif;
}

.collection-empty p {
  margin: 0;
  font-size: 11px;
}

.viewer {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #202321;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.viewer.is-dragging {
  cursor: grabbing;
}

.viewer:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #171a18;
}

.viewer-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.viewer-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.4);
}

.viewer::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.viewer::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 42px;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(243, 167, 18, 0.35);
  pointer-events: none;
}

.pan-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  will-change: transform;
}

.zoom-layer {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform;
}

.zoom-layer img,
.zoom-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zoom-layer img {
  object-fit: contain;
  box-shadow: 0 16px 70px rgba(0, 0, 0, 0.48);
}

.zoom-layer canvas {
  background: #fff;
  box-shadow: 0 16px 70px rgba(0, 0, 0, 0.48);
}

.loading-state,
.error-state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #747974;
  text-align: center;
}

.loading-state[hidden],
.error-state[hidden] {
  display: none;
}

.loading-state p {
  margin: 13px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.loader {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid #404440;
  border-radius: 50%;
}

.loader::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(243, 167, 18, 0.5);
  border-radius: 50%;
  color: var(--amber);
  font-family: serif;
}

.error-state h3 {
  margin: 14px 0 4px;
  color: #d8d5cc;
  font-family: "Songti SC", serif;
  font-size: 17px;
}

.error-state p {
  margin: 0;
  color: #747974;
  font-size: 11px;
}

.error-state a {
  margin-top: 14px;
  border-bottom: 1px solid rgba(243, 167, 18, 0.5);
  color: var(--amber);
  font-size: 11px;
}

.viewer-badge,
.gesture-hint,
.page-controls,
.viewer-toolbar {
  position: absolute;
  z-index: 10;
}

.viewer-badge {
  top: 40px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6e736e;
  font-family: "DIN Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(243, 167, 18, 0.7);
}

.gesture-hint {
  right: 42px;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6e736e;
  font-size: 9px;
  letter-spacing: 0.04em;
  transition: opacity 350ms ease;
}

.gesture-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gesture-hint svg {
  width: 16px;
  height: 16px;
}

.viewer-toolbar,
.page-controls {
  left: 50%;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(14, 16, 15, 0.9);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.viewer-toolbar {
  bottom: 28px;
  height: 48px;
  padding: 4px;
}

.page-controls {
  top: 36px;
  height: 35px;
  gap: 4px;
  padding: 3px;
}

.page-controls[hidden] {
  display: none;
}

.page-controls span {
  min-width: 48px;
  color: #707570;
  font-family: "DIN Condensed", sans-serif;
  font-size: 10px;
  text-align: center;
}

.page-controls b {
  color: #e8e4da;
}

.tool-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 2px;
  color: #9ca09a;
  transition: 140ms ease;
}

.page-controls .tool-button {
  width: 29px;
  height: 27px;
}

.tool-button svg {
  width: 17px;
  height: 17px;
}

.tool-button:hover,
.tool-button:focus-visible,
.zoom-readout:hover,
.zoom-readout:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--amber-bright);
}

.tool-button:disabled {
  color: #3f4440;
  cursor: not-allowed;
}

.tool-button:disabled:hover {
  background: transparent;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: var(--line);
}

.zoom-readout {
  width: 52px;
  height: 38px;
  border-radius: 2px;
  color: #e8e4da;
  font-family: "DIN Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.labeled-tool {
  position: relative;
  width: 48px;
}

.labeled-tool > span:last-child {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  font-size: 7px;
  opacity: 0;
  transform: translateY(2px);
  transition: 120ms ease;
}

.labeled-tool:hover svg,
.labeled-tool:hover .one-to-one {
  transform: translateY(-4px);
}

.labeled-tool:hover > span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.one-to-one {
  font-family: "DIN Condensed", sans-serif;
  font-size: 10px;
  font-weight: 800;
  transition: 120ms ease;
}

.help-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(243, 167, 18, 0.06), transparent 38%),
    #171a18;
  color: var(--paper);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62);
}

.help-dialog::backdrop {
  background: rgba(8, 10, 9, 0.74);
  backdrop-filter: blur(4px);
}

.help-dialog h2 {
  margin: 0 0 24px;
  font-family: "Songti SC", serif;
  font-size: 24px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #737873;
  font-size: 26px;
  font-weight: 200;
}

.dialog-close:hover {
  color: var(--amber);
}

.shortcut-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.shortcut-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
}

.shortcut-list span {
  color: var(--amber);
  font-weight: 600;
}

.shortcut-list b {
  color: #a8aca6;
  font-weight: 500;
}

.dialog-note {
  margin: 18px 0 0;
  color: #6d726e;
  font-size: 10px;
  line-height: 1.7;
}

/* 协作功能沿用现有工业审片台语言，不引入第二套主题。 */
.project-switcher {
  position: relative;
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  margin: 0 auto 0 24px;
  color: #656a66;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.project-switcher::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(243, 167, 18, 0.55);
}

.project-switcher select {
  max-width: 250px;
  height: 36px;
  appearance: none;
  border: 0;
  padding: 0 30px 0 0;
  outline: 0;
  background: transparent;
  color: #d8d5cc;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.project-switcher select:disabled {
  cursor: default;
}

.project-switcher svg {
  position: absolute;
  right: 5px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.topbar-action,
.account-button {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: 160ms ease;
}

.topbar-action {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  border-color: rgba(243, 167, 18, 0.3);
  border-radius: 3px;
  padding: 0 13px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar-action svg {
  width: 15px;
  height: 15px;
}

.topbar-action:hover,
.topbar-action:focus-visible {
  border-color: var(--amber);
  background: rgba(243, 167, 18, 0.07);
  outline: 0;
}

.account-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #d7d4ca;
  font-family: "Songti SC", serif;
  font-size: 13px;
  font-weight: 700;
}

.account-button:hover,
.account-button:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: 0;
}

.image-card.is-file-card .image-card-frame {
  background:
    linear-gradient(135deg, rgba(243, 167, 18, 0.045), transparent 45%),
    #181b19;
}

.file-card-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-content: center;
  gap: 8px;
  border: 1px dashed rgba(235, 232, 220, 0.12);
  color: #6f746f;
  text-align: center;
}

.file-card-placeholder b {
  color: var(--amber);
  font-family: "DIN Condensed", sans-serif;
  font-size: 24px;
  letter-spacing: 0.12em;
}

.file-card-placeholder small {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.auth-dialog,
.work-dialog {
  width: min(520px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(243, 167, 18, 0.065), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    #171a18;
  background-size: auto, 100% 30px, auto;
  color: var(--paper);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.72);
}

#uploadDialog {
  width: min(650px, calc(100vw - 30px));
}

.auth-dialog::backdrop,
.work-dialog::backdrop {
  background: rgba(6, 8, 7, 0.84);
  backdrop-filter: blur(7px);
}

.auth-dialog {
  width: min(430px, calc(100vw - 30px));
  overflow: visible;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 38px;
  color: #fff;
}

.auth-brand .brand-mark {
  width: 24px;
  height: 24px;
  transform: scale(0.85) rotate(-8deg);
}

.auth-brand p {
  margin: 0;
  font-family: "DIN Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.auth-dialog h2,
.work-dialog h2 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 25px;
  letter-spacing: 0.03em;
}

.dialog-intro {
  margin: 10px 0 24px;
  color: #777c77;
  font-size: 11px;
  line-height: 1.75;
}

.industrial-form {
  display: grid;
  gap: 15px;
}

.industrial-form > label:not(.drop-field) {
  display: grid;
  gap: 7px;
}

.industrial-form label > span {
  color: #7d827d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.industrial-form input,
.industrial-form select,
.compact-form input,
.compact-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  outline: 0;
  background: rgba(8, 10, 9, 0.5);
  color: #e8e4da;
  font-size: 12px;
  transition: 150ms ease;
}

.industrial-form input:focus,
.industrial-form select:focus,
.compact-form input:focus,
.compact-form select:focus {
  border-color: rgba(243, 167, 18, 0.65);
  box-shadow: 0 0 0 2px rgba(243, 167, 18, 0.06);
}

.industrial-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 34px 0 12px;
  outline: 0;
  background: #101311;
  color: #e8e4da;
  font-size: 11px;
}

.directory-picker {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: rgba(8, 10, 9, 0.24);
}

.directory-picker legend {
  padding: 0 6px;
  color: #8c918c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.directory-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px;
  background: #0f1210;
}

.directory-mode-toggle button {
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #747974;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.directory-mode-toggle button.is-active {
  background: rgba(243, 167, 18, 0.13);
  color: var(--amber-bright);
  box-shadow: inset 0 0 0 1px rgba(243, 167, 18, 0.2);
}

.directory-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.directory-fields[hidden] {
  display: none;
}

.directory-fields label {
  display: grid;
  gap: 7px;
}

.directory-fields label > span,
.resolved-directory > span {
  color: #777c77;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.directory-fields p {
  margin: -2px 0 0;
  color: #5f645f;
  font-size: 9px;
  line-height: 1.55;
}

.directory-fields p b {
  color: var(--amber);
}

.resolved-directory {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.resolved-directory code {
  overflow: hidden;
  color: #d4d0c7;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resolved-directory code.is-invalid {
  color: #e87f64;
  white-space: normal;
}

.primary-button,
.secondary-button,
.compact-form button {
  border: 1px solid var(--amber);
  border-radius: 2px;
  background: var(--amber);
  color: #17130a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.primary-button {
  height: 44px;
  margin-top: 3px;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary-button {
  width: 100%;
  height: 40px;
  border-color: var(--line-strong);
  background: transparent;
  color: #8b908b;
}

.form-error,
.form-message {
  min-height: 15px;
  margin: 0;
  color: #e87f64;
  font-size: 10px;
  line-height: 1.5;
}

.form-message {
  color: var(--amber);
}

.form-error.is-success {
  color: #72a67e;
}

.auth-footnote {
  margin: 28px 0 -14px;
  color: #4e534f;
  font-family: "DIN Condensed", sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-align: center;
}

.drop-field {
  position: relative;
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 9px;
  border: 1px dashed rgba(235, 232, 220, 0.2);
  background: rgba(8, 10, 9, 0.25);
  color: #777c77;
  text-align: center;
  cursor: pointer;
  transition: 150ms ease;
}

.drop-field:hover,
.drop-field.is-dragging {
  border-color: var(--amber);
  background: rgba(243, 167, 18, 0.045);
  color: var(--amber);
}

.drop-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-field svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
}

.drop-field strong {
  color: #cac7be;
  font-size: 12px;
}

.drop-field small {
  font-size: 9px;
}

.upload-queue {
  display: grid;
  gap: 8px;
  padding: 11px 0 2px;
}

.upload-queue > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-queue > header > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.upload-queue > header strong {
  color: #d8d4cb;
  font-size: 10px;
}

.upload-queue > header small {
  color: #6f746f;
  font-size: 9px;
}

.upload-queue > header button {
  border: 0;
  background: transparent;
  color: #777c77;
  cursor: pointer;
  font-size: 9px;
}

.upload-queue > header button:hover {
  color: var(--amber);
}

.upload-queue > .upload-file-list {
  display: grid;
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(8, 10, 9, 0.25);
}

.upload-file-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
}

.upload-file-row:last-child {
  border-bottom: 0;
}

.upload-file-type {
  display: grid;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--amber);
  font-family: "DIN Condensed", sans-serif;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.upload-file-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.upload-file-copy strong,
.upload-file-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-copy strong {
  color: #cfcbc2;
  font-size: 10px;
  font-weight: 600;
}

.upload-file-copy small {
  color: #696e69;
  font-size: 8px;
}

.upload-file-row.is-success .upload-file-copy small {
  color: #72a67e;
}

.upload-file-row.is-failed .upload-file-copy small {
  color: #e87f64;
}

.upload-file-row > button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #676c67;
  cursor: pointer;
  font-size: 17px;
}

.upload-file-row > button:hover {
  color: #eeeae0;
}

.upload-file-row > button:disabled {
  opacity: 0.25;
  cursor: default;
}

.upload-queue > .upload-progress-copy {
  display: flex;
  justify-content: space-between;
  color: #838883;
  font-size: 9px;
}

.upload-progress-copy b {
  color: var(--amber);
}

.upload-queue > div {
  display: flex;
  justify-content: space-between;
  color: #838883;
  font-size: 9px;
}

.upload-queue b {
  color: var(--amber);
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: #303431;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(243, 167, 18, 0.5);
  transition: width 120ms linear;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0 25px;
}

.account-summary > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(243, 167, 18, 0.4);
  border-radius: 50%;
  color: var(--amber);
  font-family: "Songti SC", serif;
  font-size: 18px;
}

.account-summary h2 {
  font-size: 21px;
}

.account-summary p {
  display: flex;
  gap: 10px;
  margin: 5px 0 0;
  color: #707570;
  font-size: 9px;
}

.account-summary p b,
.account-summary p i {
  font-style: normal;
  font-weight: 600;
}

.account-summary p i {
  color: var(--amber);
}

.admin-panel {
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.admin-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
}

.admin-panel-head .eyebrow {
  margin: 0;
}

.admin-panel-head > span {
  color: #5f645f;
  font-size: 8px;
}

.compact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.compact-form input,
.compact-form select,
.compact-form button {
  height: 36px;
  font-size: 10px;
}

.compact-form button {
  padding: 0 10px;
}

.project-form {
  grid-template-columns: 1fr 1fr auto;
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

@media (max-width: 1060px) {
  :root {
    --sidebar-width: 286px;
  }

  .asset-header {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .asset-facts {
    display: none;
  }

  .project-switcher > span {
    display: none;
  }

  .project-switcher {
    min-width: 150px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 60px;
  }

  .app-shell {
    grid-template-areas:
      "topbar"
      "review";
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    padding: 0 13px;
  }

  .brand {
    width: auto;
    border: 0;
    padding: 0 4px;
  }

  .brand-mark {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    transform: scale(0.82) rotate(-8deg);
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small,
  .asset-count,
  .topbar-rule {
    display: none;
  }

  .mobile-menu {
    display: grid;
    border: 0;
  }

  .topbar-meta {
    gap: 7px;
    margin-left: auto;
    padding: 0;
  }

  .project-switcher {
    min-width: 112px;
    margin-left: 8px;
  }

  .project-switcher.is-single {
    display: none;
  }

  .project-switcher::before,
  .project-switcher > span {
    display: none;
  }

  .project-switcher select {
    max-width: 108px;
    padding-right: 18px;
    font-size: 9px;
  }

  .topbar-action {
    width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .topbar-meta > .icon-button {
    display: none;
  }

  .account-button {
    width: 34px;
    height: 34px;
  }

  .sidebar {
    position: fixed;
    top: var(--topbar-height);
    bottom: 0;
    left: 0;
    width: min(88vw, 330px);
    transform: translateX(-102%);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 15;
    top: var(--topbar-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    border: 0;
    background: rgba(5, 6, 5, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .sidebar-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .review-area {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .asset-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 16px;
  }

  .header-actions {
    gap: 7px;
  }

  .collection-controls {
    height: 34px;
  }

  .group-mode-button {
    height: 28px;
    padding: 0 7px;
    font-size: 8px;
  }

  .control-divider {
    margin: 0 1px;
  }

  .compact-tool {
    width: 28px;
    height: 28px;
  }

  .grid-scale-readout {
    width: 40px;
    height: 28px;
  }

  .batch-select-button {
    width: 28px;
    height: 28px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .batch-action-bar {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px;
  }

  .batch-selection-count {
    min-width: 76px;
    padding-left: 5px;
  }

  .batch-action-rule,
  .batch-action-bar p {
    display: none;
  }

  .batch-action-bar button {
    padding: 0 7px;
  }

  .batch-action-bar .batch-download-button {
    min-width: 102px;
    margin-left: auto;
  }

  .asset-actions {
    gap: 5px;
  }

  .back-button {
    width: 34px;
    padding: 0;
    justify-content: center;
    border-right: 0;
    font-size: 0;
  }

  .asset-heading h2 {
    font-size: 17px;
  }

  .breadcrumb {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .text-action {
    display: none;
  }

  .download-button {
    width: 36px;
    padding: 0;
  }

  .collection-grid-backdrop {
    top: var(--topbar-height);
    left: 0;
  }

  .collection-content {
    padding: 24px 16px 64px;
  }

  .collection-section + .collection-section {
    margin-top: 38px;
    padding-top: 30px;
  }

  .collection-section-head {
    margin-bottom: 14px;
  }

  .collection-section-head h3 {
    font-size: 18px;
  }

  .image-grid {
    gap: 14px 11px;
  }

  .image-card-frame {
    padding: 6px;
  }

  .image-card-focus {
    display: none;
  }

  .download-button svg {
    width: 17px;
    height: 17px;
  }

  .download-button {
    font-size: 0;
  }

  .viewer::before {
    inset: 12px;
  }

  .viewer::after {
    top: 12px;
    left: 12px;
  }

  .viewer-badge {
    top: 24px;
    left: 25px;
  }

  .gesture-hint {
    right: 24px;
    bottom: 88px;
  }

  .viewer-toolbar {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100% - 24px);
  }

  .viewer-toolbar .tool-button {
    width: 34px;
  }

  .viewer-toolbar .labeled-tool {
    display: none;
  }

  .zoom-readout {
    width: 46px;
  }

  .page-controls {
    top: 23px;
  }

  .auth-dialog,
  .work-dialog {
    padding: 28px 22px;
  }

  #uploadDialog {
    padding: 26px 18px;
  }

  .drop-field {
    min-height: 125px;
    padding: 18px 12px;
  }

  .resolved-directory {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .resolved-directory code {
    text-align: left;
  }

  .compact-form,
  .project-form {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .sidebar-head {
    padding-top: 18px;
    padding-bottom: 13px;
  }

  .sidebar h1 {
    font-size: 24px;
  }

  .sidebar-intro {
    display: none;
  }

  .search-box {
    margin-bottom: 10px;
  }

  .viewer-toolbar {
    bottom: 14px;
  }

  .gesture-hint {
    bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
