:root {
  --vi-black: #111111;
  --vi-black-soft: #19191b;
  --vi-green: #5a8f2b;
  --vi-green-dark: #416d1f;
  --vi-paper: #f6f6f4;
  --vi-panel: #fbfaf7;
  --vi-white: #ffffff;
  --vi-text: #111111;
  --vi-muted: #68686b;
  --vi-line: #bfc0bd;
  --vi-line-soft: #d9d9d5;
  --vi-danger: #a43e32;
  --vi-warning: #9a6a16;
  --page-pad: clamp(16px, 4vw, 36px);
  --content-width: 1080px;
  --radius-hero: 10px;
  --radius-control: 4px;
  --radius-panel: 2px;
  --mobile-shell-max: 430px;
  --mobile-topbar-height: 94px;
  --mobile-topbar-pad-top: 17px;
  --mobile-brand-width: 140px;
  --mobile-nav-min: 60px;
  --mobile-account-width: 92px;
  --mobile-control-height: 44px;
  --mobile-rail-width: 59px;
  --mobile-media-width: 120px;
  --mobile-feature-title: 18px;
  --mobile-portrait-left: 131px;
  --mobile-feature-pad-left: 14px;
  --mobile-output-gap: 9px;
  color-scheme: light;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--vi-text);
  background: var(--vi-paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html[data-device-profile="iphone"] {
  --mobile-shell-max: 430px;
  --mobile-topbar-height: 94px;
  --mobile-topbar-pad-top: 17px;
  --mobile-brand-width: 140px;
  --mobile-nav-min: 60px;
  --mobile-account-width: 92px;
  --mobile-control-height: 44px;
  --mobile-rail-width: 59px;
  --mobile-media-width: 120px;
  --mobile-feature-title: 18px;
  --mobile-portrait-left: 131px;
  --mobile-feature-pad-left: 14px;
  --mobile-output-gap: 9px;
  -webkit-font-smoothing: antialiased;
}

html[data-device-profile="android"] {
  --mobile-shell-max: 412px;
  --mobile-topbar-height: 86px;
  --mobile-topbar-pad-top: 13px;
  --mobile-brand-width: 132px;
  --mobile-nav-min: 54px;
  --mobile-account-width: 90px;
  --mobile-control-height: 48px;
  --mobile-rail-width: 54px;
  --mobile-media-width: 105px;
  --mobile-feature-title: 16px;
  --mobile-portrait-left: 116px;
  --mobile-feature-pad-left: 10px;
  --mobile-output-gap: 6px;
}

html[data-device-profile="huawei"] {
  --mobile-shell-max: 432px;
  --mobile-topbar-height: 90px;
  --mobile-topbar-pad-top: 15px;
  --mobile-brand-width: 136px;
  --mobile-nav-min: 58px;
  --mobile-account-width: 92px;
  --mobile-control-height: 48px;
  --mobile-rail-width: 56px;
  --mobile-media-width: 110px;
  --mobile-feature-title: 17px;
  --mobile-portrait-left: 122px;
  --mobile-feature-pad-left: 12px;
  --mobile-output-gap: 7px;
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--vi-paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--vi-paper);
}

body::selection {
  color: var(--vi-white);
  background: var(--vi-green);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select,
label,
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.share-card-probe {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.app {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
}

html[data-device-profile="iphone"] .app,
html[data-device-profile="android"] .app,
html[data-device-profile="huawei"] .app {
  max-width: var(--mobile-shell-max);
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, calc(var(--content-width) + (var(--page-pad) * 2)));
  min-height: 94px;
  margin: 0 auto;
  padding: 17px var(--page-pad) 14px;
  background: transparent;
}

.brand {
  width: clamp(154px, 42vw, 248px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand img {
  width: 100%;
  height: auto;
}

.top-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.nav-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 72px;
  min-height: 42px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--vi-black);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.nav-button span,
.nav-button:not(:has(span)) {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.nav-button small {
  margin-top: 3px;
  color: var(--vi-muted);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .08em;
}

.nav-button:hover,
.nav-button:focus-visible {
  border-color: var(--vi-green);
  color: var(--vi-green-dark);
}

.account-pill {
  min-width: 0;
  max-width: 86px;
  border-color: var(--vi-black);
  background: var(--vi-black);
  color: var(--vi-white);
  text-overflow: ellipsis;
}

.account-pill:hover,
.account-pill:focus-visible {
  background: var(--vi-green);
  color: var(--vi-white);
}

.screen {
  display: none;
  width: min(100%, calc(var(--content-width) + (var(--page-pad) * 2)));
  margin: 0 auto;
  padding: 0 var(--page-pad) 72px;
}

.screen.is-active {
  display: block;
  animation: screen-in 220ms ease both;
}

#homeScreen.is-active {
  position: relative;
  z-index: 21;
}

.is-hidden {
  display: none !important;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.micro-label {
  color: var(--vi-black);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::after,
.micro-label::after {
  display: block;
  width: 10px;
  height: 2px;
  margin-top: 7px;
  background: var(--vi-green);
  content: "";
}

.subtitle,
.muted {
  color: var(--vi-muted);
  font-size: 13px;
  line-height: 1.7;
}

.curator-panel {
  position: relative;
  z-index: 21;
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 72px;
  width: 100%;
  height: 125px;
  overflow: visible;
  border-radius: var(--radius-hero);
  background: var(--vi-black-soft);
  color: var(--vi-white);
}

.curator-panel::before {
  position: absolute;
  z-index: 0;
  top: 12px;
  left: 42%;
  width: 74px;
  height: 102px;
  background: url("./brand-mark-real.svg") center / contain no-repeat;
  opacity: .08;
  filter: grayscale(1) brightness(3);
  content: "";
}

.curator-copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  padding: 15px 0 13px 14px;
}

.curator-copy .micro-label {
  color: #f3f3f0;
  font-size: 7px;
}

.curator-copy .micro-label::after {
  margin-top: 6px;
}

.curator-copy h2 {
  margin-top: 16px;
  color: var(--vi-white);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.curator-copy > p:not(.micro-label) {
  max-width: 108px;
  margin-top: 8px;
  color: #d3d3d0;
  font-size: 8px;
  line-height: 1.5;
}

.curator-signature {
  position: absolute;
  bottom: 11px;
  left: 14px;
  color: var(--vi-green) !important;
}

.curator-signature::after {
  display: none;
}

.curator-portrait {
  position: absolute;
  z-index: 1;
  top: -45px;
  bottom: 0;
  left: var(--mobile-portrait-left);
  width: 205px;
  overflow: hidden;
  pointer-events: none;
}

.curator-portrait img {
  width: 200px;
  max-width: none;
  margin-left: 0;
}

.status-strip {
  position: relative;
  z-index: 3;
  grid-column: 2;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  min-width: 0;
  padding: 8px 10px 8px 0;
}

.status-strip article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.status-strip article:last-child {
  border-bottom: 0;
}

.status-strip span {
  color: #d0d0ce;
  font-size: 7px;
  line-height: 1.15;
}

.status-strip strong {
  color: var(--vi-green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.home-hero {
  position: relative;
  min-height: 150px;
  padding: 24px 0 18px;
}

.home-hero h1 {
  margin-top: 21px;
  color: var(--vi-black);
  font-size: clamp(35px, 9.2vw, 68px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.075em;
}

.home-hero .subtitle {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.55;
}

.home-date {
  position: absolute;
  top: 54px;
  right: 0;
  display: grid;
  gap: 5px;
  color: var(--vi-muted);
  font-style: normal;
  text-align: left;
}

.home-date small {
  color: var(--vi-muted);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .08em;
}

.home-date b {
  color: var(--vi-muted);
  font-size: 9px;
  font-weight: 400;
}

.home-date::after {
  width: 9px;
  height: 2px;
  background: var(--vi-green);
  content: "";
}

.home-quick-label {
  position: absolute;
  right: 0;
  bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--vi-green);
  color: var(--vi-black);
  font-size: 8px;
  letter-spacing: .08em;
}

.feature-grid {
  display: grid;
  gap: 7px;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--mobile-rail-width) minmax(0, 1fr) var(--mobile-media-width);
  width: 100%;
  min-width: 0;
  height: 116px;
  overflow: hidden;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-panel);
  background: var(--vi-panel);
}

.feature-card.sop-card {
  height: 121px;
}

.feature-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 13px 9px;
  background: var(--vi-black-soft);
  color: var(--vi-white);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 60% 100%, 0 100%);
}

.feature-rail b {
  color: var(--vi-green);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.feature-rail span {
  margin-top: 15px;
  color: var(--vi-white);
  font-size: 7px;
  line-height: 1.45;
  letter-spacing: .04em;
}

.feature-rail span::after {
  display: block;
  width: 9px;
  height: 2px;
  margin-top: 8px;
  background: var(--vi-green);
  content: "";
}

.feature-body {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 14px 10px 10px 14px;
  background: rgba(251, 250, 247, .96);
}

.feature-body small {
  display: block;
  color: var(--vi-green-dark);
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: .05em;
}

.feature-body h2 {
  margin-top: 6px;
  color: var(--vi-black);
  font-size: clamp(17px, 4.8vw, 24px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.feature-body p {
  margin-top: 8px;
  overflow: hidden;
  color: var(--vi-muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-output {
  display: flex;
  flex-wrap: wrap;
  gap: 0 9px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--vi-line-soft);
}

.feature-output span {
  color: var(--vi-black);
  font-size: 8px;
  line-height: 1.2;
}

.feature-media {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--vi-panel);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
}

.sop-card .feature-media img {
  object-position: 70% 50%;
}

.feature-card .feature-body > .primary,
.feature-card .feature-body > .secondary {
  position: absolute;
  z-index: 5;
  inset: 0 -120px 0 -73px;
  width: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  cursor: pointer;
}

.feature-card:has(.feature-body > button:focus-visible) {
  outline: 3px solid rgba(90, 143, 43, .36);
  outline-offset: 2px;
}

.surface,
.page-board,
.form-panel,
.waiting-card,
.works-note,
.sample-panel,
.empty-state,
.copy-card,
.asset-card,
.admin-panel {
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-panel);
  background: var(--vi-panel);
  box-shadow: none;
}

.home-works {
  margin-top: 17px;
  border: 0;
  background: transparent;
}

.section-head,
.screen-bar,
.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.screen-bar h1,
.admin-header h1 {
  color: var(--vi-black);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.home-works .section-head {
  min-height: 23px;
  margin-bottom: 8px;
}

.home-works .section-head h2 {
  display: none;
}

.home-works .eyebrow::after {
  display: none;
}

.text-button {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid var(--vi-green);
  background: transparent;
  color: var(--vi-green-dark);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.compact-list,
.works-list {
  overflow: hidden;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-panel);
  background: var(--vi-panel);
}

.compact-list > .muted {
  padding: 20px;
  text-align: center;
}

.work-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px 0 0;
  border: 0;
  border-bottom: 1px solid var(--vi-line-soft);
  background: transparent;
  color: var(--vi-black);
  text-align: left;
  cursor: pointer;
}

.work-card:last-child {
  border-bottom: 0;
}

.work-card:hover,
.work-card:focus-visible {
  background: #f0f0ec;
}

.work-thumb {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-right: 1px solid var(--vi-line-soft);
  background: var(--vi-white);
}

.work-thumb-empty {
  object-fit: contain;
  padding: 9px;
}

.work-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 6px 10px;
}

.work-info strong {
  overflow: hidden;
  color: var(--vi-black);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-meta {
  overflow: hidden;
  color: var(--vi-muted);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--vi-green);
  border-radius: 999px;
  background: transparent;
  color: var(--vi-green-dark);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.status-badge.making {
  border-style: dashed;
}

.status-badge.partial {
  border-color: var(--vi-warning);
  color: var(--vi-warning);
}

.status-badge.failed {
  border-color: var(--vi-danger);
  color: var(--vi-danger);
}

.primary,
.secondary,
.light-button,
.ghost,
.back {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.primary {
  border: 1px solid var(--vi-green);
  background: var(--vi-green);
  color: var(--vi-white);
}

.primary:hover,
.primary:focus-visible {
  border-color: var(--vi-black);
  background: var(--vi-black);
}

.secondary {
  border: 1px solid var(--vi-black);
  background: var(--vi-black);
  color: var(--vi-white);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--vi-green);
  background: var(--vi-green);
}

.light-button {
  border: 1px solid var(--vi-line);
  background: var(--vi-panel);
  color: var(--vi-black);
}

.light-button:hover,
.light-button:focus-visible {
  border-color: var(--vi-green);
  color: var(--vi-green-dark);
}

.ghost,
.back {
  border: 0;
  border-bottom: 1px solid var(--vi-line);
  border-radius: 0;
  background: transparent;
  color: var(--vi-muted);
}

.ghost:hover,
.ghost:focus-visible,
.back:hover,
.back:focus-visible {
  border-color: var(--vi-green);
  color: var(--vi-green-dark);
}

.wide {
  width: 100%;
}

button:disabled,
.is-busy {
  cursor: wait;
  opacity: .65;
}

.is-done {
  border-color: var(--vi-green) !important;
  background: var(--vi-green) !important;
  color: var(--vi-white) !important;
}

.narrow-screen {
  max-width: 920px;
}

.back {
  min-height: 34px;
  margin: 0 0 12px;
  padding: 5px 0;
  font-size: 11px;
}

.page-board {
  overflow: hidden;
  background: var(--vi-panel);
}

.board-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 34%);
  min-height: 178px;
  overflow: hidden;
  border-bottom: 1px solid var(--vi-line);
  background: var(--vi-black);
  color: var(--vi-white);
}

.board-head > div {
  position: relative;
  z-index: 2;
  padding: 28px clamp(18px, 4vw, 44px);
}

.board-head .eyebrow {
  color: #d9d9d6;
}

.board-head h1 {
  margin-top: 26px;
  color: var(--vi-white);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.board-head .subtitle {
  max-width: 420px;
  margin-top: 13px;
  color: #c8c8c4;
  font-size: 12px;
}

.board-head > img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  object-position: 66% center;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--vi-line);
}

.process-strip span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 10px 16px;
  border-right: 1px solid var(--vi-line);
  color: var(--vi-black);
  font-size: 10px;
  line-height: 1.3;
}

.process-strip span:last-child {
  border-right: 0;
}

.process-strip b {
  color: var(--vi-green);
  font-size: 18px;
  font-weight: 900;
}

.form-panel {
  margin: 16px;
  padding: clamp(18px, 4vw, 32px);
}

.panel-title {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vi-line-soft);
}

.panel-title h2 {
  color: var(--vi-black);
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.field-label {
  display: block;
  margin: 18px 0 7px;
  color: var(--vi-black);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--vi-white);
  color: var(--vi-black);
  font-size: 14px;
  line-height: 1.5;
}

input,
select {
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #93938f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--vi-green);
  box-shadow: 0 0 0 2px rgba(90, 143, 43, .16);
}

.upload {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 14px;
  border: 1px dashed var(--vi-black);
  border-radius: var(--radius-control);
  background: #f0f0ec;
  color: var(--vi-black);
  text-align: left;
  cursor: pointer;
}

.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload:focus-within,
.upload:hover {
  border-color: var(--vi-green);
  background: #f4f7ef;
}

.upload-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-control);
  background: var(--vi-white);
}

.upload-placeholder {
  color: var(--vi-green);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--vi-white);
}

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

.upload-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy small {
  color: var(--vi-muted);
  font-size: 11px;
  line-height: 1.5;
}

.upload-copy::after {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 9px;
  border: 1px solid var(--vi-green);
  border-radius: 999px;
  color: var(--vi-green-dark);
  font-size: 10px;
  font-weight: 900;
  content: "选择图片";
}

.upload.has-preview {
  border-style: solid;
  border-color: var(--vi-green);
  background: #f4f7ef;
}

.upload.has-preview .upload-copy::after {
  content: "重新选择";
}

.custom-source-upload.has-preview .upload-copy::after {
  content: "继续添加";
}

.upload-preview-list {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--vi-line-soft);
  border-radius: var(--radius-control);
  background: var(--vi-white);
  scrollbar-width: thin;
}

.upload-preview-list img {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-control);
  object-fit: cover;
  background: var(--vi-white);
}

.custom-source-preview-item {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

.custom-source-preview-item img {
  display: block;
}

.custom-source-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--vi-white);
  border-radius: 50%;
  background: #5b2f24;
  color: var(--vi-white);
  font-size: 20px;
  line-height: 22px;
  cursor: pointer;
}

.upload.optional {
  min-height: 112px;
  margin-top: 20px;
}

.qr-upload-panel {
  margin-top: 20px;
  padding-top: 2px;
  border-top: 1px solid var(--vi-line-soft);
}

.qr-upload-panel .upload.optional {
  margin-top: 18px;
}

.qr-upload-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.qr-upload-controls .light-button {
  min-height: 46px;
}

.qr-safety-note {
  margin-top: 10px;
  color: var(--vi-muted);
  font-size: 10px;
  line-height: 1.55;
}

.direction-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--vi-line-soft);
}

.direction-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--vi-muted);
  font-size: 11px;
  line-height: 1.65;
}

.direction-intro strong {
  color: var(--vi-black);
  font-weight: 900;
}

.direction-intro > span {
  flex: 0 0 auto;
  color: var(--vi-green-dark);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.direction-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.direction-group {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #ddd9cf;
  border-radius: 10px;
  background: #fbfaf7;
  box-shadow: 0 8px 24px rgba(29, 35, 22, .04);
}

.direction-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--vi-black);
  font-size: 13px;
  font-weight: 900;
}

.direction-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid #c9c2b2;
  border-radius: 999px;
  color: var(--vi-green-dark);
  font-size: 9px;
  font-weight: 900;
}

.direction-group-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 23px;
  margin: -23px 0 9px;
}

.direction-swipe-hint {
  margin: 0;
  color: var(--vi-muted);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.direction-current {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
  min-height: 43px;
  padding: 10px 2px 8px;
}

.direction-current strong {
  flex: 0 0 auto;
  max-width: 48%;
  overflow: hidden;
  color: var(--vi-black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-current span {
  min-width: 0;
  overflow: hidden;
  color: var(--vi-muted);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-main-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid #ddd9cf;
  border-radius: 8px;
  background: #f1eee5;
}

.direction-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.direction-main-frame.is-loading .direction-main-image {
  opacity: .46;
}

.direction-options {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 3px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.direction-options.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
}

.direction-options.is-dragging .direction-card {
  cursor: grabbing;
}

.direction-options::-webkit-scrollbar {
  display: none;
}

.direction-card {
  position: relative;
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d5d0c5;
  border-radius: 7px;
  background: #f1eee5;
  color: var(--vi-black);
  scroll-snap-align: start;
  cursor: pointer;
  text-align: left;
}

.direction-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-card-image[data-src]:not([src]) {
  visibility: hidden;
}

.direction-card-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.direction-card-cue {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.direction-card:hover,
.direction-card:focus-visible {
  border-color: var(--vi-green);
}

.direction-card:focus-visible {
  outline: 3px solid rgba(90, 143, 43, .34);
  outline-offset: -4px;
}

.direction-card.is-active {
  border-color: var(--vi-green-dark);
  box-shadow: 0 0 0 2px var(--vi-green);
}

.direction-scroll-progress {
  width: 64%;
  height: 3px;
  margin: 7px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e0d6;
}

.direction-scroll-progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: var(--vi-green);
  transform: translateX(0);
  transition: width 160ms ease, transform 160ms ease;
}

.direction-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .field-label {
  margin-top: 0;
}

.hint-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 16px;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-panel);
}

.hint-row span {
  padding: 12px 10px;
  border-right: 1px solid var(--vi-line);
  color: var(--vi-muted);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.hint-row span:last-child {
  border-right: 0;
}

.cost-hint {
  margin: 16px 16px 10px;
  color: var(--vi-green-dark);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.page-board > .primary.wide {
  width: calc(100% - 32px);
  min-height: 54px;
  margin: 0 16px 16px;
}

.inline-status,
.action-feedback {
  display: none;
  min-height: 0;
  color: var(--vi-green-dark);
  font-size: 11px;
  line-height: 1.5;
}

.inline-status.is-active,
.action-feedback.is-active {
  display: block;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--vi-green);
  background: #f0f4eb;
}

.waiting-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(24px, 6vw, 54px);
  border: 0;
  border-radius: var(--radius-hero);
  background: var(--vi-black-soft);
  color: var(--vi-white);
}

.waiting-card::before {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 52%;
  height: 72%;
  background: url("./brand-mark-real.svg") center / contain no-repeat;
  opacity: .06;
  filter: grayscale(1) brightness(3);
  content: "";
}

.waiting-card .eyebrow,
.waiting-card h1,
.waiting-card .subtitle,
.waiting-card .wait-eta,
.waiting-actions {
  position: relative;
  z-index: 2;
}

.waiting-card .eyebrow {
  color: #d8d8d5;
}

.waiting-card h1 {
  margin-top: 30px;
  color: var(--vi-white);
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}

.waiting-card .subtitle {
  max-width: 620px;
  margin-top: 18px;
  color: #d0d0cc;
}

.wait-eta {
  margin-top: 10px;
  color: #999995;
  font-size: 10px;
}

.waiting-visual {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.waiting-mark {
  grid-row: 1 / span 2;
  width: 62px;
  filter: grayscale(1) brightness(3);
  opacity: .88;
}

.waiting-visual b {
  align-self: end;
  color: var(--vi-white);
  font-size: 19px;
  font-weight: 900;
}

.waiting-visual small {
  align-self: start;
  color: #aaa9a5;
  font-size: 10px;
  line-height: 1.5;
}

.progress-summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: #d0d0cc;
  font-size: 12px;
}

.progress-summary strong {
  color: var(--vi-white);
  font-size: 24px;
  font-weight: 900;
}

.progress {
  position: relative;
  z-index: 2;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--vi-green);
  transition: width 450ms ease;
}

.progress-note {
  position: relative;
  z-index: 2;
  margin-top: 9px;
  color: #999995;
  font-size: 10px;
  line-height: 1.5;
}

.waiting-tips {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.waiting-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #e8e8e4;
  font-size: 12px;
  font-weight: 900;
}

.waiting-tip-head b {
  color: #b7d49d;
  font-size: 11px;
}

.waiting-tip-list {
  display: grid;
  grid-auto-columns: minmax(220px, 72%);
  grid-auto-flow: column;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.waiting-tip {
  min-height: 112px;
  scroll-snap-align: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(246, 246, 244, .08);
}

.waiting-tip.is-active {
  border-color: rgba(183, 212, 157, .74);
  background: rgba(90, 143, 43, .22);
}

.waiting-tip strong {
  display: block;
  color: var(--vi-white);
  font-size: 14px;
  line-height: 1.35;
}

.waiting-tip p {
  margin-top: 8px;
  color: #d6d6d0;
  font-size: 12px;
  line-height: 1.65;
}

.waiting-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.waiting-actions .light-button {
  border-color: rgba(255, 255, 255, .45);
  background: transparent;
  color: var(--vi-white);
}

.works-layout,
.detail-layout {
  max-width: 980px;
}

.screen-bar {
  align-items: center;
  margin-bottom: 18px;
  padding: 22px 0 18px;
  border-top: 1px solid var(--vi-black);
  border-bottom: 1px solid var(--vi-line);
}

.screen-bar .back {
  margin: 0;
}

.screen-bar h1 {
  margin-top: 12px;
  font-size: clamp(30px, 7vw, 52px);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--vi-line);
}

.filter-tab,
.admin-nav {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--vi-muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.filter-tab::after,
.admin-nav::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.filter-tab.is-active,
.filter-tab:hover,
.filter-tab:focus-visible {
  color: var(--vi-green-dark);
}

.filter-tab.is-active::after {
  background: var(--vi-green);
}

.works-note,
.sample-panel {
  margin-bottom: 14px;
  padding: 16px;
}

.works-note strong {
  color: var(--vi-black);
  font-size: 13px;
}

.works-note p,
.sample-panel > .muted {
  margin-top: 6px;
  font-size: 10px;
}

.works-list .work-card {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  min-height: 84px;
  padding-right: 18px;
}

.works-list .work-thumb {
  width: 96px;
  height: 84px;
}

.works-list .work-info {
  gap: 7px;
  padding: 12px 18px;
}

.works-list .work-info strong {
  font-size: 15px;
}

.works-list .work-meta {
  font-size: 10px;
}

.sample-actions,
.empty-actions,
.detail-actions,
.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 42px 24px;
  text-align: center;
}

.empty-state img {
  width: 62px;
}

.empty-state h2 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 900;
}

.empty-state p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--vi-muted);
  font-size: 12px;
  line-height: 1.7;
}

.detail-layout > .back {
  margin-top: 6px;
}

#detail {
  display: grid;
  gap: 14px;
}

.detail-hero,
#detail > .surface:not(.detail-hero) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: clamp(22px, 5vw, 38px);
  overflow: hidden;
}

.detail-hero::after,
#detail > .surface:not(.detail-hero)::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--vi-green);
  content: "";
}

.detail-hero h1,
#detail > .surface h1 {
  margin-top: 20px;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.detail-hero .subtitle,
#detail > .surface .subtitle {
  margin-top: 10px;
}

.detail-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  border-top: 1px solid var(--vi-line);
  border-bottom: 1px solid var(--vi-line);
}

.detail-kpis span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 10px;
  border-right: 1px solid var(--vi-line);
}

.detail-kpis span:last-child {
  border-right: 0;
}

.detail-kpis b {
  color: var(--vi-green);
  font-size: 24px;
  font-weight: 900;
}

.detail-kpis small {
  color: var(--vi-muted);
  font-size: 9px;
}

.item-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.item-summary span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-right: 1px solid var(--vi-line-soft);
}

.item-summary span:last-child {
  border-right: 0;
}

.item-summary b,
.item-summary em {
  font-size: 9px;
  font-style: normal;
}

.item-summary em {
  color: var(--vi-green-dark);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.asset-card {
  overflow: hidden;
}

.asset-image-link {
  display: block;
  min-height: 220px;
  background: #ecece8;
}

.asset-image-link img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;
}

.asset-card > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--vi-line-soft);
  font-size: 11px;
}

.asset-card > p span {
  color: var(--vi-green-dark);
  font-size: 9px;
}

.copy-card {
  position: relative;
  padding: clamp(20px, 4vw, 32px);
}

.copy-card:not(.item-summary)::before {
  display: block;
  width: 12px;
  height: 2px;
  margin-bottom: 17px;
  background: var(--vi-green);
  content: "";
}

.copy-card h3 {
  font-size: 18px;
  font-weight: 900;
}

.copy-card p {
  margin-top: 12px;
  color: var(--vi-muted);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
}

.copy-card .copy-button {
  margin-top: 18px;
}

.fallback-copy {
  border-color: #d6b36d;
  background: #fffaf0;
}

.fallback-copy-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: 1px solid #d6b36d;
  border-radius: 999px;
  color: #7a5314;
  font-size: 10px;
  font-weight: 900;
}

.copy-card .fallback-copy-note {
  padding: 9px 11px;
  border-left: 3px solid #d6b36d;
  background: rgba(214, 179, 109, .12);
  color: #6f5323;
  font-size: 11px;
  line-height: 1.6;
}

.detail-actions {
  position: sticky;
  z-index: 10;
  bottom: 10px;
  margin-top: 4px;
  padding: 10px;
  border-radius: var(--radius-control);
  background: var(--vi-black);
}

.detail-actions .ghost,
.detail-actions .light-button {
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--vi-white);
}

.detail-actions .action-feedback {
  flex-basis: 100%;
  color: var(--vi-white);
}

.detail-actions .action-feedback.is-active {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(90, 143, 43, .28);
  border-left: 4px solid var(--vi-green);
  border-radius: var(--radius-control);
  background: #f0f4eb;
  color: var(--vi-black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

body.admin-active {
  background: var(--vi-paper);
}

body.admin-active .topbar {
  display: none;
}

body.admin-active .app {
  max-width: none;
}

html[data-device-profile="iphone"] body.admin-active .app,
html[data-device-profile="android"] body.admin-active .app,
html[data-device-profile="huawei"] body.admin-active .app {
  max-width: var(--mobile-shell-max);
}

#adminScreen {
  width: 100%;
  max-width: none;
  padding: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 22px;
  background: var(--vi-black-soft);
  color: var(--vi-white);
}

.admin-sidebar > img {
  width: 172px;
  padding: 0;
  background: transparent;
}

.admin-sidebar nav {
  display: grid;
  gap: 2px;
  margin-top: 42px;
}

.admin-nav {
  width: 100%;
  padding: 12px 0 12px 18px;
  color: #b9b9b5;
  text-align: left;
}

.admin-nav::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 2px;
  background: transparent;
  transform: translateY(-50%);
  content: "";
}

.admin-nav.is-active,
.admin-nav:hover,
.admin-nav:focus-visible {
  color: var(--vi-green);
}

.admin-nav.is-active::before {
  background: var(--vi-green);
}

.admin-sidebar > .light-button {
  margin-top: auto;
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--vi-white);
}

.admin-main {
  min-width: 0;
  padding: clamp(28px, 5vw, 64px);
}

.admin-header {
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--vi-black);
}

.admin-header h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 66px);
}

.admin-header .subtitle {
  margin-top: 12px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--vi-line);
}

.admin-metrics article {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-right: 1px solid var(--vi-line);
  background: var(--vi-panel);
}

.admin-metrics article:last-child {
  border-right: 0;
}

.admin-metrics span {
  color: var(--vi-muted);
  font-size: 10px;
}

.admin-metrics strong {
  color: var(--vi-green);
  font-size: 34px;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-panel {
  grid-column: span 4;
  min-width: 0;
  padding: 20px;
}

.admin-panel.task-panel {
  grid-column: span 12;
}

.admin-panel .section-head {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vi-line-soft);
}

.admin-panel .section-head h2 {
  margin-top: 12px;
  font-size: 20px;
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--vi-line-soft);
}

.finance-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-insight-grid article {
  display: flex;
  min-height: 90px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-right: 1px solid var(--vi-line-soft);
  border-bottom: 1px solid var(--vi-line-soft);
}

.admin-insight-grid b {
  color: var(--vi-green-dark);
  font-size: 21px;
  font-weight: 900;
}

.admin-insight-grid span {
  color: var(--vi-muted);
  font-size: 9px;
}

.admin-table {
  margin-top: 14px;
  border: 1px solid var(--vi-line-soft);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) repeat(3, minmax(90px, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--vi-line-soft);
  font-size: 10px;
}

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

.finance-row {
  grid-template-columns: minmax(100px, 1.2fr) repeat(3, minmax(80px, 1fr)) minmax(110px, 1fr);
}

.admin-job-row,
.admin-work-row,
.admin-user-row {
  grid-template-columns: minmax(110px, .9fr) minmax(180px, 1.7fr) minmax(120px, 1fr) minmax(150px, 1.15fr) minmax(110px, .9fr) auto;
}

.admin-job-row > span,
.admin-work-row > span,
.admin-user-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-row span,
.admin-row small {
  color: var(--vi-muted);
}

.admin-row span small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.5;
}

.status-bars,
.watch-list {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--vi-muted);
  font-size: 10px;
}

.bar-track {
  height: 2px;
  margin-top: 7px;
  overflow: hidden;
  background: var(--vi-line-soft);
}

.bar-track i {
  display: block;
  height: 100%;
  background: var(--vi-green);
}

.watch-list p {
  position: relative;
  padding-left: 17px;
  color: var(--vi-muted);
  font-size: 10px;
  line-height: 1.55;
}

.watch-list p span {
  position: absolute;
  top: .65em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--vi-green);
}

.admin-copy {
  margin-top: 14px;
  font-size: 10px;
}

.admin-form {
  flex-direction: column;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, .72);
}

.modal-card {
  position: relative;
  width: min(100%, 368px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-top: 8px solid var(--vi-black);
  background: var(--vi-panel);
}

.modal-mark {
  width: 44px;
  margin-bottom: 22px;
}

.modal-card h2 {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.modal-card > p {
  margin-top: 10px;
  color: var(--vi-muted);
  font-size: 11px;
  line-height: 1.65;
}

.modal-card > button {
  margin-top: 8px;
}

.image-viewer {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #101010;
  color: var(--vi-white);
}

.image-viewer.is-hidden {
  display: none;
}

body.image-viewer-active {
  overflow: hidden;
}

.image-viewer-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: 10px;
  padding-left: max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(16, 16, 16, .94);
}

.image-viewer-back {
  min-width: 82px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: var(--vi-white);
  font-size: 13px;
  font-weight: 900;
}

.image-viewer-toolbar strong,
.image-viewer-toolbar span {
  display: block;
  min-width: 0;
}

.image-viewer-toolbar strong {
  font-size: 15px;
  line-height: 1.35;
}

.image-viewer-toolbar span {
  margin-top: 2px;
  color: #b8b8b3;
  font-size: 11px;
  line-height: 1.45;
}

.image-viewer-stage {
  min-height: 0;
  overflow: auto;
  padding: 12px 12px calc(86px + env(safe-area-inset-bottom));
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.image-viewer-stage img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.image-viewer-save-tip {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(16, 16, 16, .88);
  color: var(--vi-white);
  text-align: left;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.image-viewer-save-tip strong {
  font-size: 12px;
  line-height: 1.35;
}

.image-viewer-save-tip span {
  color: #d8d8d2;
  font-size: 12px;
  line-height: 1.5;
}

.generate-confirm-card .eyebrow {
  margin-bottom: 8px;
}

.confirm-summary {
  display: grid;
  margin: 18px 0 14px;
  border: 1px solid var(--vi-line);
  background: var(--vi-white);
}

.confirm-summary p {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vi-line);
  font-size: 11px;
  line-height: 1.45;
}

.confirm-summary p:last-child {
  border-bottom: 0;
}

.confirm-summary span {
  color: var(--vi-muted);
  font-weight: 800;
}

.confirm-summary b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--vi-black);
  font-weight: 900;
}

.modal-card > .confirm-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--vi-green);
  background: #f0f4eb;
  color: var(--vi-green-dark);
  font-weight: 800;
}

.wallet-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 22px 0 16px;
  padding: 18px;
  border: 1px solid var(--vi-line);
  background: var(--vi-black);
  color: var(--vi-white);
}

.wallet-card span {
  color: #c9c9c6;
  font-size: 10px;
}

.wallet-card strong {
  color: var(--vi-green);
  font-size: 30px;
  font-weight: 900;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 6px;
}

.package-option {
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-control);
  background: var(--vi-white);
  color: var(--vi-black);
  text-align: left;
  cursor: pointer;
}

.package-option b,
.package-option span,
.package-option small {
  display: block;
}

.package-option b {
  font-size: 17px;
  font-weight: 900;
}

.package-option span,
.package-option small {
  margin-top: 4px;
  color: var(--vi-muted);
  font-size: 9px;
}

.package-option.is-active {
  border-color: var(--vi-green);
  box-shadow: inset 4px 0 0 var(--vi-green);
}

.recharge-help {
  padding: 10px;
  border-left: 3px solid var(--vi-green);
  background: #f0f4eb;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-left: 4px solid var(--vi-green);
  background: var(--vi-black);
  color: var(--vi-white);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(90, 143, 43, .42);
  outline-offset: 2px;
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  html[data-device-profile="desktop"] .topbar {
    min-height: 118px;
  }

  html[data-device-profile="desktop"] #homeScreen {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 22px;
  }

  html[data-device-profile="desktop"] #homeScreen.is-active {
    display: grid;
  }

  html[data-device-profile="desktop"] .curator-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 150px;
    height: 220px;
  }

  html[data-device-profile="desktop"] .curator-copy {
    padding: 30px 36px;
  }

  html[data-device-profile="desktop"] .curator-copy .micro-label {
    font-size: 10px;
  }

  html[data-device-profile="desktop"] .curator-copy h2 {
    margin-top: 28px;
    font-size: 32px;
  }

  html[data-device-profile="desktop"] .curator-copy > p:not(.micro-label) {
    max-width: none;
    margin-top: 12px;
    font-size: 12px;
  }

  html[data-device-profile="desktop"] .curator-signature {
    bottom: 28px;
    left: 36px;
  }

  html[data-device-profile="desktop"] .curator-panel::before {
    top: 22px;
    left: 51%;
    width: 122px;
    height: 170px;
  }

  html[data-device-profile="desktop"] .curator-portrait {
    top: -48px;
    left: 42%;
    width: 310px;
  }

  html[data-device-profile="desktop"] .curator-portrait img {
    width: 300px;
  }

  html[data-device-profile="desktop"] .status-strip {
    padding: 18px 22px 18px 0;
  }

  html[data-device-profile="desktop"] .status-strip span {
    font-size: 10px;
  }

  html[data-device-profile="desktop"] .status-strip strong {
    font-size: 26px;
  }

  html[data-device-profile="desktop"] .home-hero {
    min-height: 230px;
    padding: 34px 0;
  }

  html[data-device-profile="desktop"] .home-hero .subtitle {
    font-size: 14px;
  }

  html[data-device-profile="desktop"] .feature-grid {
    align-content: start;
    padding-top: 24px;
  }

  html[data-device-profile="desktop"] .feature-card,
  html[data-device-profile="desktop"] .feature-card.sop-card {
    grid-template-columns: 78px minmax(0, 1fr) 180px;
    height: 156px;
  }

  html[data-device-profile="desktop"] .feature-rail {
    padding: 20px 14px;
  }

  html[data-device-profile="desktop"] .feature-rail b {
    font-size: 28px;
  }

  html[data-device-profile="desktop"] .feature-body {
    padding: 22px 18px;
  }

  html[data-device-profile="desktop"] .feature-body h2 {
    font-size: 24px;
  }

  html[data-device-profile="desktop"] .feature-body p {
    font-size: 11px;
  }

  html[data-device-profile="desktop"] .feature-output span {
    font-size: 9px;
  }

  html[data-device-profile="desktop"] .feature-card .feature-body > .primary,
  html[data-device-profile="desktop"] .feature-card .feature-body > .secondary {
    right: -180px;
    left: -96px;
  }

  html[data-device-profile="desktop"] .home-works {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    height: auto;
    padding: 16px;
  }

  .admin-sidebar > img {
    width: 132px;
  }

  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
  }

  .admin-nav {
    width: auto;
    padding: 10px 0;
  }

  .admin-sidebar > .light-button {
    margin: 0;
  }

  .admin-panel,
  .admin-panel.task-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .topbar {
    min-height: calc(var(--mobile-topbar-height) + env(safe-area-inset-top));
    padding-top: max(var(--mobile-topbar-pad-top), calc(env(safe-area-inset-top) + 8px));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
  }

  .screen {
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
  }

  .screen.narrow-screen {
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .brand {
    width: min(var(--mobile-brand-width), 118px);
  }

  .top-actions {
    gap: 4px;
    min-width: 0;
  }

  .nav-button {
    min-width: min(var(--mobile-nav-min), 52px);
    min-height: var(--mobile-control-height);
    padding: 5px 6px;
  }

  .nav-button span,
  .nav-button:not(:has(span)) {
    font-size: 11px;
  }

  .nav-button small {
    font-size: 8px;
  }

  .modal-card h2 {
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .confirm-summary p {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .waiting-card {
    padding: 22px 16px 18px;
  }

  .waiting-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .waiting-mark {
    grid-row: auto;
  }

  .account-pill {
    width: var(--mobile-account-width);
    max-width: var(--mobile-account-width);
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10px !important;
  }

  .eyebrow,
  .micro-label {
    font-size: 12px;
  }

  .subtitle,
  .muted {
    font-size: 15px;
    line-height: 1.65;
  }

  .curator-panel {
    height: 142px;
  }

  .curator-copy .micro-label {
    font-size: 10px;
  }

  .curator-copy h2 {
    font-size: 19px;
  }

  .curator-copy > p:not(.micro-label) {
    font-size: 11px;
  }

  .status-strip span {
    font-size: 11px;
  }

  .status-strip strong {
    font-size: 17px;
  }

  .home-hero .subtitle {
    font-size: 14px;
  }

  .home-date small,
  .home-quick-label {
    font-size: 10px;
  }

  .home-date b {
    font-size: 11px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  input,
  select,
  .primary,
  .secondary,
  .light-button,
  .ghost {
    min-height: var(--mobile-control-height);
  }

  .home-hero h1 {
    font-size: 36px;
  }

  .feature-card,
  .feature-card.sop-card {
    grid-template-columns: var(--mobile-rail-width) minmax(0, 1fr) var(--mobile-media-width);
    height: 142px;
  }

  .feature-card.sop-card {
    height: 148px;
  }

  .feature-card .feature-body > .primary,
  .feature-card .feature-body > .secondary {
    inset: 0 calc(var(--mobile-media-width) * -1) 0 calc(var(--mobile-rail-width) * -1);
  }

  .feature-rail span {
    font-size: 9px;
  }

  .feature-body {
    padding-left: var(--mobile-feature-pad-left);
  }

  .feature-body small {
    font-size: 10px;
  }

  .feature-body h2 {
    font-size: var(--mobile-feature-title);
  }

  .feature-output {
    gap: 0 var(--mobile-output-gap);
  }

  .feature-body p {
    display: -webkit-box;
    font-size: 13px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .feature-output span {
    font-size: 12px;
  }

  .text-button,
  .work-meta,
  .status-badge {
    font-size: 12px;
  }

  .work-info strong {
    font-size: 14px;
  }

  .back {
    font-size: 13px;
  }

  .board-head h1 {
    margin-top: 22px;
    font-size: 32px;
    letter-spacing: 0;
    line-height: 1.08;
  }

  .board-head .subtitle {
    font-size: 13px;
    line-height: 1.55;
  }

  .narrow-screen .page-board {
    border-right: 1px solid var(--vi-line);
    border-left: 1px solid var(--vi-line);
  }

  .narrow-screen .board-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(108px, 34%);
    min-height: 164px;
  }

  .narrow-screen .board-head > div {
    padding: 24px 20px;
  }

  .narrow-screen .board-head > img {
    min-height: 164px;
  }

  .narrow-screen .form-panel {
    margin: 10px;
    padding: 14px;
  }

  .panel-title {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .panel-title h2 {
    letter-spacing: 0;
  }

  .process-strip span {
    gap: 6px;
    padding: 10px 8px;
    font-size: 12px;
    white-space: normal;
  }

  .panel-title {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid,
  .direction-groups {
    grid-template-columns: 1fr;
  }

  .field-label {
    font-size: 14px;
  }

  .direction-groups {
    gap: 12px;
  }

  .direction-intro {
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .direction-intro p {
    font-size: 12px;
  }

  .direction-intro > span {
    display: none;
  }

  .direction-group {
    padding: 10px;
    border-radius: 9px;
  }

  .direction-legend {
    font-size: 14px;
  }

  .direction-group-header {
    justify-content: flex-start;
    min-height: auto;
    margin: 6px 0 9px;
  }

  .direction-swipe-hint {
    font-size: 10px;
  }

  .direction-current {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    gap: 4px;
    padding: 10px 0 8px;
  }

  .direction-current strong {
    max-width: 100%;
    overflow: visible;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
    word-break: keep-all;
  }

  .direction-current span {
    max-width: 100%;
    overflow: visible;
    font-size: 11px;
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
  }

  .direction-main-frame {
    aspect-ratio: 16 / 7;
  }

  .direction-options {
    height: 64px;
    gap: 8px;
  }

  .direction-card {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    padding: 0;
  }

  .direction-scroll-progress {
    margin-top: 6px;
  }

  .upload {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 116px;
    gap: 12px;
    padding: 12px;
  }

  .upload-preview-frame {
    width: 72px;
    height: 72px;
  }

  .upload-copy strong {
    overflow: visible;
    overflow-wrap: normal;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    word-break: keep-all;
  }

  .upload-copy small {
    overflow-wrap: break-word;
    font-size: 12px;
    line-height: 1.45;
  }

  .upload-copy::after {
    font-size: 12px;
  }

  .upload.optional {
    margin-top: 16px;
  }

  .qr-upload-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .qr-safety-note {
    font-size: 12px;
    line-height: 1.55;
  }

  .hint-row span,
  .cost-hint,
  .inline-status,
  .action-feedback,
  .wait-eta,
  .waiting-visual small,
  .progress-note {
    font-size: 13px;
  }

  .hint-row span {
    padding: 12px 6px;
  }

  .waiting-card {
    min-height: 0;
    padding: 24px 18px 20px;
    border-radius: 8px;
  }

  .waiting-card::before {
    display: none;
  }

  .waiting-card h1 {
    margin-top: 18px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .waiting-card .subtitle {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .wait-eta {
    line-height: 1.5;
  }

  .waiting-visual {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0;
  }

  .waiting-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
  }

  .waiting-visual b {
    grid-column: 2;
    grid-row: 1;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.2;
  }

  .waiting-visual small {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .progress-summary {
    font-size: 13px;
  }

  .progress-summary strong {
    font-size: 26px;
  }

  .primary,
  .secondary,
  .light-button,
  .ghost {
    font-size: 14px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  #detail > .surface:not(.detail-hero) {
    grid-template-columns: 1fr;
  }

  .detail-hero > .status-badge {
    justify-self: start;
  }

  .detail-kpis small,
  .item-summary b,
  .item-summary em,
  .asset-card > p span,
  .fallback-copy-badge,
  .copy-card .fallback-copy-note {
    font-size: 12px;
  }

  .asset-card > p,
  .copy-card p {
    font-size: 14px;
  }

  .detail-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
  }

  .detail-actions > button {
    width: 100%;
  }

  .detail-actions .action-feedback {
    grid-column: 1 / -1;
  }

  .detail-kpis {
    grid-column: 1;
  }

  .waiting-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .confirm-summary p {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 12px;
  }

  .admin-main {
    padding-top: 20px;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .admin-sidebar {
    grid-template-columns: 1fr auto;
  }

  .admin-sidebar nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-metrics article:nth-child(2) {
    border-right: 0;
  }

  .admin-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--vi-line);
  }

  .admin-insight-grid,
  .finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-row,
  .finance-row,
  .admin-job-row,
  .admin-work-row,
  .admin-user-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .admin-row > :nth-child(n + 3) {
    display: block;
  }

  .modal {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .modal-card {
    max-height: calc(100vh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  html[data-device-profile="iphone"],
  html[data-device-profile="android"],
  html[data-device-profile="huawei"] {
    --mobile-account-width: 88px;
    --mobile-rail-width: 52px;
    --mobile-media-width: 92px;
    --mobile-portrait-left: 100px;
    --mobile-feature-pad-left: 9px;
    --mobile-output-gap: 5px;
  }

  .brand {
    width: 112px;
  }

  .nav-button {
    min-width: 52px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .nav-button small {
    display: none;
  }

  .account-pill {
    width: var(--mobile-account-width);
    max-width: var(--mobile-account-width);
  }

  .curator-portrait {
    left: var(--mobile-portrait-left);
    width: 180px;
  }

  .curator-portrait img {
    width: 175px;
  }

  html[data-device-profile="desktop"] {
    --mobile-topbar-height: 86px;
    --mobile-topbar-pad-top: 13px;
    --mobile-brand-width: 132px;
    --mobile-nav-min: 54px;
    --mobile-account-width: 68px;
    --mobile-rail-width: 54px;
    --mobile-media-width: 105px;
    --mobile-feature-title: 16px;
    --mobile-portrait-left: 116px;
    --mobile-feature-pad-left: 10px;
    --mobile-output-gap: 6px;
  }
  .direction-options {
    height: 60px;
  }

  .direction-card {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .direction-current strong {
    max-width: 100%;
    font-size: 15px;
  }

  .direction-current span {
    font-size: 10px;
  }

}

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

/* Product promo publishing workspace */
.detail-layout:has(.promo-publishing-workspace) {
  max-width: 1080px;
}

#detail:has(.promo-publishing-workspace) {
  gap: 16px;
}

#detail:has(.promo-publishing-workspace) > .detail-hero {
  gap: 14px;
  padding: 22px 24px 20px;
}

#detail:has(.promo-publishing-workspace) > .detail-hero h1 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 38px);
}

.promo-publishing-workspace,
.promo-publishing-workspace *,
.promo-publishing-workspace *::before,
.promo-publishing-workspace *::after {
  box-shadow: none;
}

#detail > .promo-publishing-workspace.surface {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--vi-panel);
  container-name: promo-publishing;
  container-type: inline-size;
}

#detail > .promo-publishing-workspace.surface::after {
  display: none;
}

.promo-publishing-heading {
  min-width: 0;
  padding: 23px 24px 20px;
  border-bottom: 1px solid var(--vi-line);
  background: var(--vi-panel);
}

.promo-publishing-heading h2 {
  margin-top: 14px;
  color: var(--vi-black);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.promo-publishing-heading > p:last-child {
  max-width: 760px;
  margin-top: 8px;
  color: var(--vi-muted);
  font-size: 14px;
  line-height: 1.65;
}

.promo-publishing-layout {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: var(--vi-paper);
}

.promo-media-picker,
.promo-copy-studio {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-panel);
  background: var(--vi-panel);
}

.promo-media-picker,
.promo-copy-studio,
.promo-copy-preview {
  display: flex;
  flex-direction: column;
}

.promo-publishing-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.promo-publishing-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--vi-green);
  border-radius: var(--radius-control);
  color: var(--vi-green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.promo-publishing-step h3 {
  color: var(--vi-black);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.promo-publishing-step p {
  margin-top: 4px;
  color: var(--vi-muted);
  font-size: 12px;
  line-height: 1.55;
}

.promo-media-main {
  min-width: 0;
  margin-top: 16px;
}

.promo-media-main-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(200px, 44vw, 280px);
  overflow: hidden;
  border: 1px solid var(--vi-line-soft);
  border-radius: var(--radius-hero);
  background: var(--vi-paper);
}

.promo-media-main-link:hover,
.promo-media-main-link:focus-visible {
  border-color: var(--vi-green);
  outline: 2px solid var(--vi-green);
  outline-offset: 2px;
}

.promo-media-main-link img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: contain;
  opacity: 1;
  transition: opacity 140ms ease;
}

.promo-media-loading {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  inset: 0;
  padding: 20px;
  color: var(--vi-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.promo-media-main-link.is-loading .promo-media-loading {
  display: flex;
}

.promo-media-main-link.is-error .promo-media-loading {
  display: flex;
  color: var(--vi-black);
  background: var(--vi-paper);
}

.promo-media-main-link.is-loading img,
.promo-media-main-link.is-error img {
  opacity: 0;
}

.promo-media-main-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 2px 0;
  color: var(--vi-muted);
  font-size: 12px;
  line-height: 1.35;
}

.promo-media-main-meta strong {
  overflow: hidden;
  color: var(--vi-black);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-media-main-meta span {
  flex: 0 0 auto;
  color: var(--vi-green-dark);
  font-size: 11px;
  font-weight: 900;
}

.promo-media-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 0 0 2px;
  overflow-x: auto;
  list-style: none;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--vi-green) var(--vi-paper);
  scrollbar-width: thin;
}

.promo-media-thumbs > li {
  min-width: 0;
}

.promo-media-thumb {
  display: grid;
  grid-template-rows: minmax(64px, 1fr) auto;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--vi-line-soft);
  border-radius: var(--radius-control);
  background: var(--vi-panel);
  color: var(--vi-black);
  text-align: left;
  cursor: pointer;
}

.promo-media-thumb img {
  width: 100%;
  height: 100%;
  min-height: 64px;
  object-fit: contain;
  border-bottom: 1px solid var(--vi-line-soft);
  background: var(--vi-paper);
}

.promo-media-thumb img:not([src]),
.promo-media-thumb img.is-loading {
  background: linear-gradient(100deg, var(--vi-paper) 20%, var(--vi-panel) 44%, var(--vi-paper) 68%);
  background-size: 220% 100%;
  animation: promo-preview-pulse 1.2s ease-in-out infinite;
}

.promo-media-thumb img.is-error {
  background: var(--vi-panel);
}

@keyframes promo-preview-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.promo-media-thumb span {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.promo-media-thumb:hover,
.promo-media-thumb:focus-visible,
.promo-media-thumb.is-selected,
.promo-media-thumb[aria-pressed="true"] {
  border-color: var(--vi-green);
  color: var(--vi-green-dark);
}

.promo-media-thumb:focus-visible,
.promo-copy-tab:focus-visible,
.promo-copy-body:focus-visible,
.rewrite-copy-button:focus-visible,
.copy-selected-button:focus-visible {
  outline: 2px solid var(--vi-green);
  outline-offset: 2px;
}

.promo-media-thumb.is-selected,
.promo-media-thumb[aria-pressed="true"] {
  border-width: 2px;
}

.promo-copy-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--vi-green) var(--vi-paper);
  scrollbar-width: thin;
}

.promo-copy-tab {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 72px;
  margin-left: -1px;
  padding: 10px 11px;
  border: 1px solid var(--vi-line);
  border-radius: 0;
  background: var(--vi-panel);
  color: var(--vi-muted);
  text-align: left;
  cursor: pointer;
}

.promo-copy-tab:first-child {
  margin-left: 0;
  border-radius: var(--radius-control) 0 0 var(--radius-control);
}

.promo-copy-tab:last-child {
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

.promo-copy-tab span,
.promo-copy-tab strong,
.promo-copy-tab em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-copy-tab span {
  font-size: 10px;
  line-height: 1.2;
}

.promo-copy-tab strong {
  color: var(--vi-black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.promo-copy-tab em {
  font-size: 9px;
  font-style: normal;
  line-height: 1.2;
}

.promo-copy-tab:hover,
.promo-copy-tab:focus-visible {
  border-color: var(--vi-green);
  color: var(--vi-green-dark);
}

.promo-copy-tab.is-selected,
.promo-copy-tab[aria-selected="true"] {
  z-index: 1;
  border-color: var(--vi-green);
  background: var(--vi-paper);
  color: var(--vi-green-dark);
}

.promo-copy-tab.is-selected strong,
.promo-copy-tab[aria-selected="true"] strong {
  color: var(--vi-green-dark);
}

.promo-copy-body {
  min-width: 0;
  margin-top: 18px;
  padding: 18px 2px 20px;
  border-top: 1px solid var(--vi-line-soft);
  border-bottom: 1px solid var(--vi-line-soft);
  background: transparent;
  outline: 0;
}

.promo-copy-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--vi-green-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.promo-copy-body h3 {
  margin-top: 12px;
  color: var(--vi-black);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.promo-copy-body > p {
  margin-top: 12px;
  color: var(--vi-black);
  font-size: 15.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.promo-copy-actions {
  display: grid;
  grid-template-columns: minmax(154px, 1fr) minmax(126px, auto);
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
}

.promo-copy-actions .copy-selected-button,
.promo-copy-actions .rewrite-copy-button {
  min-height: 46px;
}

.promo-copy-actions .copy-selected-button {
  width: 100%;
}

.promo-copy-actions .rewrite-copy-button {
  min-width: 126px;
  background: var(--vi-panel);
}

.promo-copy-actions .rewrite-copy-button:hover,
.promo-copy-actions .rewrite-copy-button:focus-visible {
  border-color: var(--vi-green);
  color: var(--vi-green-dark);
}

.promo-copy-preview {
  min-width: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--vi-line);
}

.promo-copy-preview-card {
  display: grid;
  grid-template-columns: minmax(122px, 29%) minmax(0, 1fr);
  min-width: 0;
  min-height: 224px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--vi-line-soft);
  border-radius: var(--radius-panel);
  background: var(--vi-paper);
}

.promo-copy-preview-media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 224px;
  overflow: hidden;
  border-right: 1px solid var(--vi-line-soft);
  background: var(--vi-panel);
  place-items: center;
}

.promo-copy-preview-media.is-loading::after,
.promo-copy-preview-media.is-error::after {
  max-width: 15ch;
  padding: 12px;
  color: var(--vi-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.promo-copy-preview-media.is-loading::after {
  content: "主图完成后显示组合预览";
}

.promo-copy-preview-media.is-error::after {
  content: "组合预览暂不可用";
}

.promo-copy-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-copy-preview-text {
  min-width: 0;
  padding: 18px;
}

.promo-copy-preview-text > span {
  color: var(--vi-green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.promo-copy-preview-text h4 {
  margin: 10px 0 0;
  color: var(--vi-black);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.promo-copy-preview-text p {
  margin-top: 9px;
  color: var(--vi-muted);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.promo-combination-note {
  margin-top: 10px;
  color: var(--vi-muted);
  font-size: 12px;
  line-height: 1.55;
}

.promo-media-empty,
.promo-copy-empty {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  min-height: 220px;
  padding: 22px;
  border: 1px dashed var(--vi-line);
  border-radius: var(--radius-control);
  background: var(--vi-paper);
  color: var(--vi-muted);
}

.promo-media-empty strong,
.promo-copy-empty h3 {
  margin: 0;
  color: var(--vi-black);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.promo-media-empty span,
.promo-copy-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.promo-media-main.is-empty {
  margin-top: 16px;
}

.promo-copy-body.is-empty {
  border: 0;
  padding: 0;
}

.promo-copy-body.fallback-copy {
  border-color: var(--vi-line);
  background: transparent;
}

.promo-copy-body .fallback-copy-badge {
  margin: 0;
  border-color: var(--vi-line);
  border-radius: var(--radius-control);
  background: var(--vi-panel);
  color: var(--vi-muted);
}

.promo-copy-body .promo-copy-note,
.promo-copy-body .fallback-copy-note {
  padding: 10px 12px;
  border-left: 3px solid var(--vi-green);
  background: var(--vi-paper);
  color: var(--vi-muted);
  font-size: 13px;
  line-height: 1.65;
}

.promo-publishing-workspace[aria-busy="true"] .promo-copy-body,
.promo-publishing-workspace[aria-busy="true"] .promo-copy-preview {
  opacity: .72;
}

.rewrite-copy-button.is-loading,
.rewrite-copy-button:disabled {
  cursor: wait;
  opacity: .68;
}

#detail:has(.promo-publishing-workspace) > .detail-actions {
  align-items: stretch;
  gap: 9px;
  bottom: max(10px, env(safe-area-inset-bottom));
  margin-top: 0;
  padding: 11px;
  border: 1px solid var(--vi-black);
  border-radius: var(--radius-control);
  background: var(--vi-black);
}

#detail:has(.promo-publishing-workspace) > .detail-actions .secondary,
#detail:has(.promo-publishing-workspace) > .detail-actions .light-button,
#detail:has(.promo-publishing-workspace) > .detail-actions .ghost {
  border: 1px solid var(--vi-line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--vi-white);
}

#detail:has(.promo-publishing-workspace) > .detail-actions .secondary:hover,
#detail:has(.promo-publishing-workspace) > .detail-actions .secondary:focus-visible,
#detail:has(.promo-publishing-workspace) > .detail-actions .light-button:hover,
#detail:has(.promo-publishing-workspace) > .detail-actions .light-button:focus-visible,
#detail:has(.promo-publishing-workspace) > .detail-actions .ghost:hover,
#detail:has(.promo-publishing-workspace) > .detail-actions .ghost:focus-visible {
  border-color: var(--vi-green);
  color: var(--vi-white);
}

@container promo-publishing (max-width: 720px) {
  .promo-publishing-heading {
    padding: 18px 16px 16px;
  }

  .promo-publishing-heading h2 {
    margin-top: 12px;
    font-size: 23px;
  }

  .promo-publishing-heading > p:last-child {
    font-size: 13px;
  }

  .promo-publishing-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .promo-media-picker,
  .promo-copy-studio {
    padding: 14px;
  }

  .promo-publishing-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .promo-publishing-step > span {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .promo-publishing-step h3 {
    font-size: 17px;
  }

  .promo-publishing-step p {
    font-size: 13px;
  }

  .promo-media-main-link {
    width: 100%;
    min-height: 200px;
  }

  .promo-media-main-meta {
    min-height: 34px;
    font-size: 13px;
  }

  .promo-media-thumbs {
    grid-template-columns: none;
    grid-auto-columns: 78px;
    grid-auto-flow: column;
    justify-content: start;
    padding-bottom: 6px;
    scroll-snap-type: inline proximity;
  }

  .promo-media-thumbs > li {
    scroll-snap-align: start;
  }

  .promo-media-thumb {
    min-width: 78px;
    min-height: 102px;
  }

  .promo-copy-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    overflow-x: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .promo-copy-tab {
    min-width: 132px;
    min-height: 74px;
    margin-left: 0;
    scroll-snap-align: start;
  }

  .promo-copy-tab,
  .promo-copy-tab:first-child,
  .promo-copy-tab:last-child {
    border-radius: var(--radius-control);
  }

  .promo-copy-tab {
    min-width: 0;
    padding: 9px 8px;
  }

  .promo-copy-tab span,
  .promo-copy-tab strong,
  .promo-copy-tab em {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .promo-copy-tab span {
    font-size: 11px;
  }

  .promo-copy-tab strong {
    font-size: 13px;
  }

  .promo-copy-tab em {
    font-size: 10px;
  }

  .promo-copy-body {
    margin-top: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .promo-copy-body h3 {
    font-size: 19px;
  }

  .promo-copy-body > p {
    font-size: 15px;
    line-height: 1.8;
  }

  .promo-copy-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .promo-copy-actions .copy-selected-button,
  .promo-copy-actions .rewrite-copy-button {
    min-width: 0;
    min-height: var(--mobile-control-height);
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }

  .promo-copy-preview {
    margin-top: 16px;
    padding-top: 16px;
  }

  .promo-copy-preview-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 178px;
  }

  .promo-copy-preview-media {
    min-height: 178px;
  }

  .promo-copy-preview-text {
    padding: 13px;
  }

  .promo-copy-preview-text h4 {
    margin-top: 7px;
    font-size: 16px;
  }

  .promo-copy-preview-text p {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.65;
  }

  .promo-combination-note {
    font-size: 13px;
  }

  .promo-media-empty,
  .promo-copy-empty {
    min-height: 190px;
    padding: 18px;
  }
}

@media (max-width: 720px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  #detail:has(.promo-publishing-workspace) > .detail-hero {
    padding: 18px 16px 16px;
  }

  #detail:has(.promo-publishing-workspace) > .detail-hero h1 {
    margin-top: 12px;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  #detail:has(.promo-publishing-workspace) > .detail-hero .item-summary {
    display: none;
  }

  #detail:has(.promo-publishing-workspace) .detail-kpis span {
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px;
  }

  #detail:has(.promo-publishing-workspace) .detail-kpis b {
    font-size: 22px;
  }

  #detail:has(.promo-publishing-workspace) > .detail-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: auto;
    padding: 10px;
    z-index: auto;
  }

  #detail:has(.promo-publishing-workspace) > .detail-actions > button {
    min-width: 0;
    min-height: var(--mobile-control-height);
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .promo-copy-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo-copy-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    overflow-x: visible;
    padding: 0;
  }

  .promo-copy-tab {
    min-width: 0;
    padding: 9px 8px;
  }

  .promo-copy-tab span,
  .promo-copy-tab strong,
  .promo-copy-tab em {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .promo-copy-preview-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo-copy-preview-media {
    min-height: 168px;
    border-right: 0;
    border-bottom: 1px solid var(--vi-line-soft);
  }

  .promo-copy-preview-text {
    padding: 11px;
  }

  .promo-copy-preview-text h4 {
    font-size: 15px;
  }

  .promo-copy-preview-text p {
    font-size: 13.5px;
  }
}
