:root {
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --ink: #1f211e;
  --muted: #6c6e66;
  --line: #d9d5ca;
  --line-strong: #b9b4a7;
  --orange: #e65d24;
  --orange-dark: #b94114;
  --orange-soft: #fbe5d8;
  --green: #267557;
  --green-soft: #e0f1e9;
  --red: #ad3e35;
  --red-soft: #f6e2df;
  --yellow: #9a6a10;
  --yellow-soft: #f5e8c9;
  --sidebar: 264px;
  --topbar: 70px;
  --shadow: 0 14px 40px rgba(36,33,26,.07);
  color: var(--ink);
  background: var(--paper);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(230,93,36,.34); outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 30px 22px 24px; color: #f6f2e8; background: #20231f; border-right: 1px solid #353831; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; border-bottom: 1px solid #3c3f38; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; color: #fff; background: var(--orange); font-size: 18px; font-weight: 800; }
.brand strong, .brand small, .nav-item b, .nav-item small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: #92968d; font-size: 11px; letter-spacing: .06em; }
.nav-list { display: grid; gap: 7px; margin-top: 28px; }
.nav-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; padding: 13px 12px; color: #b7bab2; border: 1px solid transparent; transition: .18s ease; }
.nav-item:hover { color: #fff; background: #292c27; }
.nav-item.active { color: #fff; background: #30332d; border-color: #474a42; }
.nav-item.active::before { content: ''; position: absolute; inset: 8px auto 8px -1px; width: 3px; background: var(--orange); }
.nav-icon { width: 8px; height: 8px; margin: 0 auto; background: #5c6058; }
.nav-item.active .nav-icon { background: #ff8b55; }
.nav-item b { font-size: 14px; font-weight: 600; }
.nav-item small { margin-top: 4px; color: #777c72; font-size: 10px; }
.sidebar-foot { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid #3c3f38; }
.sidebar-foot .scope-label { margin: 0 0 9px; color: #6f746a; font: 10px 'DM Mono', monospace; letter-spacing: .12em; }
.sidebar-foot strong { font-size: 13px; }
.sidebar-foot p:last-child { margin: 8px 0 0; color: #858980; font-size: 11px; line-height: 1.7; }

.main-column { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 10; top: 0; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; background: rgba(244,241,233,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; }
.breadcrumb { font-size: 13px; font-weight: 600; }
.breadcrumb span { color: var(--muted); font-weight: 400; }
.breadcrumb i { margin: 0 9px; color: var(--line-strong); font-style: normal; }
.top-actions { height: 100%; display: flex; align-items: center; }
.top-actions > a { min-width: 76px; height: 100%; display: grid; align-content: center; padding: 13px 15px; border-left: 1px solid var(--line); }
.top-actions > a span { color: var(--muted); font-size: 10px; }
.top-actions > a b { margin-top: 2px; font: 500 17px 'DM Mono', monospace; }
.top-actions > a.credit-state { position: relative; height: 100%; display: grid; align-content: center; padding: 12px 16px 12px 18px; color: #fff; background: var(--ink); border-left: 1px solid var(--line); cursor: pointer; }
.top-actions > a.credit-state::before { content: ''; position: absolute; inset: 8px auto 8px 0; width: 3px; background: var(--orange); }
.top-actions > a.credit-state span { color: #ff9a69; font: 9px 'DM Mono', monospace; letter-spacing: .08em; }
.top-actions > a.credit-state b { margin-top: 2px; color: #ff8b55; font: 500 17px 'DM Mono', monospace; }
.top-actions > a.credit-state:hover { background: #2c2f2a; }
.top-actions > a.credit-state:hover span, .top-actions > a.credit-state:hover b { color: #ffb089; }
.account-state { height: 100%; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-left: 1px solid var(--line); }
.account-state span, .account-state a { max-width: 110px; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-state button { padding: 4px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); cursor: pointer; font-size: 9px; }
.account-state button:hover { color: var(--orange-dark); }
.service-state { display: flex; align-items: center; gap: 8px; margin-left: 18px; color: var(--muted); font-size: 11px; }
.service-state i { width: 7px; height: 7px; border-radius: 50%; background: #a1a29d; }
.service-state.online i { background: #3f9b72; box-shadow: 0 0 0 4px #dbece4; }
.service-state.offline { color: var(--red); }
.service-state.offline i { background: var(--red); }

.page { width: min(1400px,100%); min-height: calc(100vh - var(--topbar)); padding: 54px clamp(28px,4vw,64px) 80px; margin: 0 auto; }
.page:focus { outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 9px; color: var(--orange-dark); font: 500 10px/1.4 'DM Mono', monospace; letter-spacing: .16em; }
.page-heading h1 { margin: 0; font-size: clamp(36px,4vw,58px); line-height: 1.08; letter-spacing: -.045em; }
.page-heading > div > p:last-child { max-width: 650px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; font-size: 13px; font-weight: 700; transition: .16s ease; }
.primary-button { color: #fff; background: var(--ink); }
.primary-button:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-1px); }
.secondary-button { background: transparent; }
.secondary-button:hover { background: #fff; }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { cursor: not-allowed; opacity: .4; transform: none; }
.danger-button { padding: 10px 14px; color: var(--red); background: transparent; border: 1px solid var(--red); cursor: pointer; font-size: 11px; font-weight: 600; }
.compact-button { min-height: 34px; padding: 0 12px; font-size: 10px; }
.quiet-link, .back-link { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line-strong); }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field > span { color: #4d4e49; font-size: 11px; font-weight: 600; }
.field > span b { color: var(--orange-dark); font-weight: 500; }
.field > span small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 13px; color: var(--ink); background: #faf8f2; border: 1px solid var(--line); border-radius: 0; font-size: 13px; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-message { min-height: 18px; margin: 10px 0; color: var(--orange-dark); font-size: 11px; }
.state-page { min-height: 55vh; display: grid; justify-items: center; align-content: center; text-align: center; }
.state-page > span:first-child { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line-strong); }
.state-page h2 { margin: 0; font-size: 24px; }
.state-page p { max-width: 500px; margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.loader { border-radius: 50%; border: 2px solid var(--line) !important; border-top-color: var(--orange) !important; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 13px 16px; color: #fff; background: #30332e; box-shadow: var(--shadow); font-size: 12px; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

body.auth-required, body.admin-auth { background: #20231f; }
body.auth-required::before, body.admin-auth::before { opacity: .12; }
.auth-required .sidebar, .auth-required .topbar, .auth-required #low-credit-banner,
.admin-auth .sidebar, .admin-auth .topbar, .admin-auth #low-credit-banner { display: none; }
.auth-required .main-column, .admin-auth .main-column { margin-left: 0; }
.auth-required .page, .admin-auth .page { width: 100%; min-height: 100vh; padding: 0; }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.1fr); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; padding: clamp(36px, 5vh, 64px) clamp(28px, 4vw, 72px); color: #f4f1e9; background: #20231f; }
.auth-story::before { content: '橙'; position: absolute; right: -5vw; bottom: -12vw; color: rgba(244,241,233,.03); font-size: min(48vw,680px); font-weight: 800; line-height: 1; pointer-events: none; }
.auth-story > * { position: relative; z-index: 1; }
.auth-story .section-kicker,
.auth-story .eyebrow { color: var(--orange); }
.auth-story h1 { margin: 10px 0 0; max-width: 16em; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.16; letter-spacing: -.04em; overflow-wrap: break-word; }
.auth-story h1 em { color: var(--orange); font-style: normal; }
.auth-story > p { max-width: 36em; margin: 16px 0 0; color: #c4c7bf; font-size: 15px; line-height: 1.75; }
.auth-story .auth-promise { max-width: 18em; margin: 12px 0 0; color: #f4f1e9; font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
.auth-story .auth-promise em { color: var(--orange); font-style: normal; }
.auth-story .auth-lead { max-width: 34em; margin: 10px 0 0; color: #b4b8af; font-size: 14px; line-height: 1.7; }
.auth-story .auth-lead em { color: var(--orange); font-style: normal; }
.auth-story .auth-counter { max-width: 34em; margin: 16px 0 0; padding: 14px 0 0; color: #b4b8af; border-top: 1px solid #3a3d37; font-size: 13px; line-height: 1.65; }
.auth-story .auth-counter strong { color: var(--orange); font-size: 1.85em; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.auth-price { max-width: 22em; margin-top: 16px; padding: 14px 0 0; border-top: 1px solid #3a3d37; }
.auth-price > span, .auth-price strong, .auth-price small { display: block; }
.auth-price > span { color: #8b8f86; font: 10px/1.4 'DM Mono', monospace; letter-spacing: .12em; }
.auth-price strong { margin-top: 6px; color: #f4f1e9; font: 500 30px/1 'DM Mono', monospace; }
.auth-price strong small { display: inline; color: var(--orange); font-size: 12px; }
.auth-price p { margin: 8px 0 0; color: #8b8f86; font-size: 12px; line-height: 1.6; }
.auth-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); place-content: center; align-items: start; gap: 16px; padding: clamp(28px, 4vw, 56px); background: var(--paper); }
.auth-panel { min-width: 0; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); }
.auth-panel > header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.auth-panel > header > span { width: auto; min-width: 70px; min-height: 28px; display: grid; place-items: center; padding: 0 10px; flex: none; color: var(--orange-dark); border: 1px solid var(--orange); border-radius: 2px; font-size: 11px; font-weight: 750; }
.auth-panel h2, .auth-panel .eyebrow { margin: 0; }
.auth-panel h2 { font-size: 22px; letter-spacing: -.03em; }
.auth-panel .primary-button, .auth-panel .secondary-button { width: 100%; margin-top: 8px; white-space: nowrap; }
.auth-register { transform: none; }
.registration-closed { align-self: center; }
.registration-closed > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.registration-closed [data-open-contact] { margin-top: 16px; }

.reference-heading { padding-bottom: 30px; border-bottom: 1px solid var(--line-strong); }
.reference-ingest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 58px; }
.ingest-panel { padding: 26px; background: var(--surface); border: 1px solid var(--line); }
.ingest-panel > header, .item-module > header { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.ingest-panel > header > span, .item-module > header > span { width: auto; min-width: 38px; height: 38px; display: grid; place-items: center; padding-inline: 10px; flex: none; color: var(--orange); border: 1px solid var(--orange); font-size: 12px; font-weight: 750; }
.ingest-panel h2, .ingest-panel .eyebrow, .item-module h3, .item-module header p { margin: 0; }
.ingest-panel h2 { font-size: 19px; }
.reference-drop { position: relative; min-height: 153px; display: grid; place-items: center; align-content: center; margin-bottom: 16px; overflow: hidden; background: #f5f2e9; border: 1px dashed var(--line-strong); cursor: pointer; text-align: center; transition: .18s ease; }
.reference-drop:hover { color: var(--orange-dark); background: var(--orange-soft); border-color: var(--orange); }
.reference-drop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.reference-drop.has-file { background: var(--green-soft); border-color: var(--green); }
.reference-drop input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.reference-drop-prompt, .reference-file-selection { pointer-events: none; }
.reference-drop b, .reference-drop small { display: block; }
.reference-file-selection b { max-width: min(420px, 80vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-drop small { margin-top: 7px; color: var(--muted); font-size: 10px; }
.ingest-panel > .primary-button { width: 100%; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading h2 { font-size: 24px; }
.section-heading > p { color: var(--muted); font-size: 11px; }
.library-section { padding: 35px 0 48px; border-top: 1px solid var(--line-strong); }
.reference-asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.reference-asset { min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.image-reference-card { overflow: hidden; }
.image-reference-card > a:first-child { display: block; aspect-ratio: 4/3; overflow: hidden; background: #dfdcd3; }
.image-reference-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.image-reference-card:hover img { transform: scale(1.025); }
.image-reference-card > div { padding: 16px; border-top: 1px solid var(--line); }
.reference-asset code { display: block; overflow: hidden; font: 9px 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.reference-asset p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.reference-asset small { color: var(--muted); font-size: 9px; }
.image-reference-card > .compact-button,
.reference-asset-actions { margin: 0 16px 16px; }
.reference-asset-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-reference-list { display: grid; gap: 9px; }
.copy-reference-row { display: grid; grid-template-columns: minmax(210px,.45fr) minmax(300px,1fr) auto; align-items: center; gap: 20px; padding: 18px; }
.copy-reference-row p { max-height: 5em; margin: 0; overflow: hidden; white-space: pre-wrap; }
.copy-reference-row small { display: block; margin-top: 8px; }
.empty-panel { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; color: var(--muted); background: rgba(255,255,255,.28); border: 1px dashed var(--line-strong); text-align: center; }
.empty-panel b { color: var(--ink); font-size: 16px; }
.empty-panel p { margin: 0; font-size: 11px; }
.empty-panel .primary-button { margin-top: 12px; }
.empty-panel.compact { min-height: 120px; }

.batch-create-heading { align-items: center; }
.production-config { min-width: 310px; display: grid; grid-template-columns: 1fr 105px; color: #fff; background: var(--ink); border: 1px solid #373a34; }
.production-config label { display: grid; gap: 6px; padding: 15px 17px; color: #a7aba1; font-size: 9px; font-weight: 600; }
.production-config select { width: 100%; padding: 8px 9px; color: var(--ink); background: #fff; border: 0; font-size: 11px; }
.production-config > div { display: grid; align-content: center; padding: 14px; border-left: 1px solid #42463e; }
.production-config > div span { color: #a7aba1; font-size: 9px; }
.production-config > div strong { margin-top: 3px; color: #ff8b55; font: 500 25px 'DM Mono', monospace; }
.production-config > div small { color: #81867c; font: 8px 'DM Mono', monospace; }
.variant-control { min-width: 205px; padding: 15px 18px; color: #fff; background: var(--ink); }
.variant-control label { display: block; margin-bottom: 8px; color: #a7aba1; font-size: 10px; }
.variant-control select { width: 100%; padding: 9px 10px; color: var(--ink); background: #fff; border: 0; }
.blocking-note { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; margin-bottom: 24px; padding: 18px 20px; background: var(--yellow-soft); border-left: 3px solid var(--yellow); }
.blocking-note b, .blocking-note p { margin: 0; }
.blocking-note p { color: var(--muted); font-size: 11px; }
.blocking-note a { grid-row: 1/3; grid-column: 2; }
.batch-form { border-top: 1px solid var(--line-strong); }
.batch-form-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; }
.batch-form-toolbar h2, .batch-form-toolbar p { margin: 0; }
.batch-form-toolbar h2 span { margin-left: 8px; color: var(--muted); font: 500 11px 'DM Mono', monospace; }
.batch-item { margin-bottom: 18px; padding: clamp(20px,3vw,32px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.batch-item-head, .batch-item-head > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.batch-item-head > div { justify-content: flex-start; }
.batch-item-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.batch-item-head h2, .batch-item-head p { margin: 0; }
.item-head-actions { display: flex; align-items: end; gap: 10px; }
.item-head-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 600; }
.item-head-actions select { min-width: 88px; padding: 9px 10px; background: #faf8f2; border: 1px solid var(--line); }
.item-ordinal { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--orange); font: 500 12px 'DM Mono', monospace; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.item-module { min-width: 0; padding: 20px; background: #faf8f2; border: 1px solid var(--line); }
.item-module h3 { font-size: 17px; }
.item-module header p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.copy-module > header > span { color: var(--green); border-color: var(--green); }
.field input[type='file'] { padding: 9px; background: #fff; font-size: 11px; }
.reference-select-field { margin-bottom: 0; }
.direct-reference-field { margin: 10px 0 0; }
.asset-selection-card { min-width: 0; display: grid; grid-template-columns: 160px minmax(0,1fr); align-items: center; gap: 16px; min-height: 122px; margin: 8px 0 15px; padding: 12px; background: #fffdf9; border: 1px solid var(--line); border-left-width: 3px; transition: opacity .16s ease; }
.asset-selection-card.is-updating { opacity: .58; }
.asset-selection-card.is-empty { display: grid; grid-template-columns: 1fr; min-height: 72px; place-items: center; background: rgba(255,255,255,.45); border-style: dashed; }
.image-selection-card { border-left-color: var(--orange); }
.copy-selection-card { grid-template-columns: 1fr; border-left-color: var(--green); }
.asset-selection-preview { position: relative; width: 160px; height: 120px; overflow: hidden; background: #e9e5dc; border: 1px solid var(--line); }
.asset-selection-preview img { width: 100%; height: 100%; object-fit: cover; }
.asset-preview-error { width: 100%; height: 100%; display: grid; place-items: center; padding: 12px; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 600; text-align: center; }
.asset-selection-card.has-error .asset-selection-preview { border-color: #d8aaa5; }
.asset-selection-empty { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.asset-selection-details { min-width: 0; }
.asset-selection-details strong { display: block; color: var(--orange-dark); font-size: 12px; }
.copy-selection-card .asset-selection-details strong { color: var(--green); }
.asset-selection-details code { display: block; margin: 8px 0; overflow: hidden; color: var(--ink); font: 500 10px 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.asset-selection-details > p { margin: 0 0 9px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.asset-selection-details .copy-selection-summary { margin-top: 10px; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.asset-selection-details .copy-selection-summary::before { content: '“'; color: var(--green); }
.asset-selection-details .copy-selection-summary::after { content: '”'; color: var(--green); }
.asset-selection-details .quiet-link { display: inline-block; font-size: 10px; }
.module-note { margin: 25px 0 0; padding: 14px; color: var(--muted); background: var(--green-soft); border-left: 3px solid var(--green); font-size: 10px; line-height: 1.7; }
.batch-submit { display: grid; grid-template-columns: 1fr minmax(180px,.5fr) auto; align-items: center; gap: 22px; padding: 26px 0 45px; }
.batch-submit b { font-size: 13px; }
.batch-submit div p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.recent-batches { padding-top: 36px; border-top: 1px solid var(--line-strong); }
.batch-table { display: grid; background: var(--surface); border: 1px solid var(--line); }
.batch-table > a { display: grid; grid-template-columns: 1fr auto 170px; align-items: center; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.batch-table > a:last-child { border-bottom: 0; }
.batch-table > a:hover { background: var(--orange-soft); }
.batch-table code { overflow: hidden; font: 9px 'DM Mono', monospace; text-overflow: ellipsis; }
.batch-table time { color: var(--muted); font-size: 10px; text-align: right; }

.batch-status { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 6px 9px; font-size: 9px; font-weight: 700; }
.batch-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.batch-status.running, .batch-status.queued { color: var(--yellow); background: var(--yellow-soft); }
.batch-status.completed, .batch-status.produced { color: var(--green); background: var(--green-soft); }
.batch-status.completed_with_exceptions, .batch-status.technical_exception { color: var(--red); background: var(--red-soft); }
.batch-status.blocked { color: #80641e; background: var(--yellow-soft); }
.batch-index { display: grid; gap: 10px; }
.batch-index > a { display: grid; grid-template-columns: 1fr auto 130px; align-items: center; gap: 25px; padding: 22px; background: var(--surface); border: 1px solid var(--line); transition: .18s ease; }
.batch-index > a:hover { transform: translateX(3px); border-color: var(--orange); }
.batch-index h2, .batch-index p { margin: 0; }
.batch-index h2 { margin-top: 8px; font-size: 18px; }
.batch-index p, .batch-index > a > span { color: var(--muted); font-size: 10px; }
.batch-index code { color: var(--orange-dark); font: 9px 'DM Mono', monospace; }

.batch-result-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line-strong); }
.batch-result-heading .back-link { display: inline-block; margin-bottom: 35px; }
.batch-result-heading h1 { margin: 0 0 12px; font-size: clamp(32px,4vw,52px); letter-spacing: -.04em; }
.batch-result-heading code { color: var(--muted); font: 9px 'DM Mono', monospace; }
.batch-result-heading div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.batch-result-summary { display: flex; align-items: center; gap: 18px; }
.batch-result-summary strong { min-width: 70px; padding-left: 15px; border-left: 1px solid var(--line); font: 500 25px 'DM Mono', monospace; }
.batch-result-summary small { display: block; margin-top: 4px; color: var(--muted); font: 9px 'Noto Sans SC', sans-serif; }
.batch-global-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 22px 0 42px; }
.batch-global-actions .danger-button { margin-left: auto; }
.batch-results { display: grid; gap: 42px; }
.result-item { border-top: 1px solid var(--line-strong); }
.result-item > header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.result-item > header > div { display: flex; align-items: center; gap: 14px; }
.result-item > header > div > span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--ink); font: 500 11px 'DM Mono', monospace; }
.result-item h2, .result-item header p { margin: 0; }
.result-item h2 { font-size: 23px; }
.result-item > header > small { color: var(--muted); font-size: 10px; }
.item-result-actions { display: flex; align-items: center; gap: 12px; }
.item-result-actions small { color: var(--muted); font-size: 10px; }
.image-set-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 14px; }
.image-set-card { min-width: 0; display: flex; flex-direction: column; padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.image-set-card > header { min-height: 39px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.image-set-card > header b, .image-set-card > header span { display: block; }
.image-set-card > header b { color: var(--orange-dark); font: 500 9px 'DM Mono', monospace; }
.image-set-card > header div > span { margin-top: 5px; font-size: 13px; font-weight: 700; }
.image-scene { min-height: 92px; padding: 12px; background: #f5f2e9; border-left: 3px solid var(--orange); }
.image-scene strong { font-size: 11px; line-height: 1.6; }
.image-scene p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.image-set-card .result-image { min-height: 320px; margin-top: 12px; }
.image-set-card .result-image img { max-height: none; object-fit: contain; }
.result-image[data-aspect="1/1"] img { aspect-ratio: 1 / 1; }
.result-image[data-aspect="3/4"] img { aspect-ratio: 3 / 4; }
.result-image[data-aspect="9/16"] img { aspect-ratio: 9 / 16; }
.image-set-card .technical-exception, .image-set-card .artifact-wait { min-height: 320px; margin-top: 12px; }
.dependency-blocked { color: #725a28; background: var(--yellow-soft); border-left-color: var(--yellow); }
.dependency-blocked b { color: #80641e; }
.planning-state { max-width: 700px; margin-bottom: 14px; }
.planning-state .technical-exception { min-height: 130px; }
.item-copy-result { margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); }
.item-copy-result > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.item-copy-result h3, .item-copy-result header p { margin: 0; }
.item-copy-result h3 { font-size: 18px; }
.item-copy-result pre { max-height: 360px; overflow: auto; margin: 0; padding: 18px; color: #e0e3dc; background: #242722; white-space: pre-wrap; font: 11px/1.85 'Noto Sans SC', sans-serif; }
.variant-results { display: grid; gap: 16px; }
.variant-card { display: grid; grid-template-columns: 115px 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.variant-label { padding: 18px 14px; color: #fff; background: #292c27; }
.variant-label b, .variant-label span { display: block; }
.variant-label b { color: #ff8952; font: 500 10px 'DM Mono', monospace; }
.variant-label span { margin-top: 10px; color: #9fa39a; font-size: 9px; line-height: 1.6; }
.artifact-pane { min-width: 0; padding: 17px; background: var(--surface); }
.artifact-pane > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.artifact-pane h3 { margin: 0; font-size: 15px; }
.result-image { min-height: 260px; display: grid; place-items: center; overflow: hidden; background: #e1ded5; }
.result-image img { width: 100%; max-height: 470px; object-fit: contain; }
.artifact-pane > .compact-button { margin-top: 10px; }
.copy-artifact pre { min-height: 260px; max-height: 470px; overflow: auto; margin: 0; padding: 17px; color: #e0e3dc; background: #242722; white-space: pre-wrap; font: 11px/1.85 'Noto Sans SC', sans-serif; }
.technical-exception { min-height: 260px; display: grid; place-items: start; align-content: center; padding: 20px; color: #6e3a35; background: var(--red-soft); border-left: 3px solid var(--red); }
.technical-exception b { color: var(--red); font-size: 14px; }
.technical-exception code { margin-top: 8px; font: 9px 'DM Mono', monospace; }
.technical-exception p { margin: 14px 0 0; font-size: 11px; line-height: 1.7; }
.technical-exception small { margin-top: 12px; color: #8b5d58; font-size: 9px; }
.artifact-wait { min-height: 260px; display: grid; place-items: center; align-content: center; color: var(--muted); background: #f1eee5; }
.artifact-wait .loader { width: 32px; height: 32px; }
.artifact-wait p { font-size: 10px; }

.acrylic-product-page { --forest: #173c32; --forest-light: #2f715e; --ice: #e7efed; overflow: hidden; background: #f8f6f0; border: 1px solid var(--line-strong); }
.acrylic-hero { min-height: 690px; display: grid; grid-template-columns: minmax(450px,.92fr) minmax(450px,1.08fr); }
.acrylic-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(54px,6vw,88px); background: var(--surface); }
.acrylic-product-tag { width: max-content; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 52px; padding: 8px 11px; color: var(--forest); background: var(--ice); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.acrylic-product-tag i { width: 7px; height: 7px; background: var(--forest-light); border-radius: 50%; box-shadow: 0 0 0 4px rgba(47,113,94,.12); }
.acrylic-hero-copy h1 { max-width: 680px; margin: 13px 0 0; font-size: clamp(54px,5.4vw,78px); font-weight: 700; line-height: 1.02; letter-spacing: -.065em; }
.acrylic-hero-copy h1 em { color: var(--forest-light); font-style: normal; }
.acrylic-hero-lead { margin: 28px 0 0; color: #4f5b56; font-size: clamp(16px,1.4vw,20px); font-weight: 500; line-height: 1.85; }
.acrylic-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.acrylic-hero-actions .primary-button, .acrylic-hero-actions .secondary-button { min-height: 48px; }
.acrylic-specs { display: grid; grid-template-columns: repeat(3,1fr); margin: 50px 0 0; padding: 0; border-top: 1px solid var(--line); }
.acrylic-specs > div { padding: 22px 18px 0 0; }
.acrylic-specs > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.acrylic-specs dt { color: var(--forest); font: 500 28px/1 'DM Mono', monospace; }
.acrylic-specs dd { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.acrylic-hero-visual { position: relative; min-width: 0; margin: 0; overflow: hidden; background: radial-gradient(circle at 50% 45%,#f4f7f7 0,#e1e7e8 52%,#c4d0cf 100%); border-left: 1px solid var(--line-strong); }
.acrylic-hero-visual::before { content: '92 / TRANSPARENCY'; position: absolute; z-index: 1; top: 30px; right: -14px; color: rgba(23,60,50,.16); font: 500 10px 'DM Mono', monospace; letter-spacing: .16em; transform: rotate(90deg); transform-origin: center; }
.acrylic-hero-visual img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.acrylic-hero-visual figcaption { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 5px; padding: 13px 15px; color: #fff; background: rgba(23,60,50,.9); backdrop-filter: blur(8px); }
.acrylic-hero-visual figcaption span { color: #aac7bd; font: 9px 'DM Mono', monospace; }
.acrylic-hero-visual figcaption b { font-size: 12px; }

.acrylic-selling-points { display: grid; grid-template-columns: repeat(3,1fr); color: #f5f1e8; background: var(--forest); border-top: 1px solid #315b50; }
.acrylic-selling-points article { min-height: 230px; padding: 42px clamp(28px,3vw,44px); }
.acrylic-selling-points article + article { border-left: 1px solid #315b50; }
.acrylic-selling-points span { color: #85a99e; font: 500 9px 'DM Mono', monospace; letter-spacing: .12em; }
.acrylic-selling-points h2 { margin: 38px 0 0; font-size: clamp(20px,2vw,28px); letter-spacing: -.035em; }
.acrylic-selling-points p { max-width: 360px; margin: 11px 0 0; color: #b8cbc5; font-size: 12px; line-height: 1.75; }

.acrylic-gallery-section { padding: clamp(62px,7vw,100px) clamp(26px,5vw,72px); scroll-margin-top: calc(var(--topbar) + 22px); }
.acrylic-gallery-section > header { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,420px); align-items: end; gap: 42px; margin-bottom: 42px; }
.acrylic-gallery-section h2 { margin: 0; font-size: clamp(38px,4.2vw,60px); line-height: 1.08; letter-spacing: -.055em; }
.acrylic-gallery-section > header > p { margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.acrylic-gallery-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 14px; }
.acrylic-gallery-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.acrylic-gallery-card-1 { grid-column: 1 / 7; }
.acrylic-gallery-card-2 { grid-column: 7 / -1; }
.acrylic-gallery-card-3 { grid-column: 1 / 5; }
.acrylic-gallery-card-4 { grid-column: 5 / 9; }
.acrylic-gallery-card-5 { grid-column: 9 / -1; }
.acrylic-gallery-card > a:first-child { position: relative; height: 620px; display: block; overflow: hidden; background: linear-gradient(145deg,#f5f6f8,#e2e6ec); }
.acrylic-gallery-card:nth-child(n+3) > a:first-child { height: 430px; }
.acrylic-gallery-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.acrylic-gallery-card:hover img { transform: scale(1.018); }
.acrylic-gallery-card > a:first-child > span { position: absolute; right: 15px; bottom: 15px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; color: #e7efec; background: rgba(23,60,50,.92); font-size: 10px; }
.acrylic-gallery-card > a:first-child > span b { color: #83b4a4; font: 500 9px 'DM Mono', monospace; }
.acrylic-download-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; transition: .16s ease; }
.acrylic-download-link:hover { color: #fff; background: var(--forest-light); }

.acrylic-closing { min-height: 450px; display: grid; place-items: center; align-content: center; padding: 70px 30px; color: #f7f3ea; background: var(--forest); text-align: center; }
.acrylic-closing .eyebrow { color: #86a99e; }
.acrylic-closing > p:nth-child(2) { margin: 18px 0 0; font-size: clamp(36px,5vw,68px); font-weight: 700; line-height: 1.22; letter-spacing: -.055em; }
.acrylic-closing > p:nth-child(2) span { color: #9dd2c1; }
.acrylic-closing a { margin-top: 34px; padding-bottom: 6px; color: #dbeae5; border-bottom: 1px solid #6b9185; font-size: 12px; font-weight: 600; }
.acrylic-closing a:hover { color: #fff; border-color: #fff; }
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 0; padding: 40px 28px 32px; }
  .auth-panels { min-height: 0; }
  .reference-asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .variant-card { grid-template-columns: 90px 1fr; }
  .variant-card .copy-artifact { grid-column: 2; }
  .acrylic-hero { grid-template-columns: 1fr; }
  .acrylic-hero-visual { min-height: 680px; border-top: 1px solid var(--line-strong); border-left: 0; }
  .acrylic-gallery-card > a:first-child { height: 520px; }
  .acrylic-gallery-card:nth-child(n+3) > a:first-child { height: 350px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 30px rgba(0,0,0,.16); }
  .sidebar.open { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .menu-button { display: block; }
  .topbar { padding-inline: 18px; }
  .breadcrumb { margin-right: auto; margin-left: 12px; }
  .service-state { display: none; }
  .account-state span, .account-state a { display: none; }
  .page { padding-inline: 24px; }
}
@media (max-width: 840px) {
  .auth-panels { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .auth-register { transform: none; }
  .reference-ingest-grid, .module-grid { grid-template-columns: 1fr; }
  .copy-reference-row { grid-template-columns: 1fr; }
  .batch-submit { grid-template-columns: 1fr; }
  .batch-result-heading { align-items: flex-start; flex-direction: column; }
  .batch-result-summary { flex-wrap: wrap; }
  .batch-global-actions .danger-button { margin-left: 0; }
  .result-item > header { align-items: flex-start; gap: 14px; }
  .item-result-actions { align-items: flex-end; flex-direction: column; }
}
@media (max-width: 640px) {
  .topbar { height: 58px; }
  .top-actions > a { min-width: 48px; height: 58px; padding: 8px; }
  .top-actions > a span { font-size: 8px; white-space: nowrap; }
  .top-actions > a:nth-of-type(-n+2), .account-state { display: none; }
  .top-actions > a.credit-state { display: grid; height: 58px; padding: 8px 10px 8px 12px; }
  .top-actions > a.credit-state span { color: #ff9a69; font: 9px 'DM Mono', monospace; letter-spacing: .08em; }
  .top-actions > a.credit-state b { color: #ff8b55; }
  .credit-recharge-cue { display: none; }
  .breadcrumb span, .breadcrumb i { display: none; }
  .page { padding: 34px 16px 60px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .production-config { width: 100%; min-width: 0; }
  .page-heading h1 { font-size: 36px; }
  .field-row, .reference-asset-grid { grid-template-columns: 1fr; }
  .variant-control { width: 100%; }
  .blocking-note { grid-template-columns: 1fr; }
  .blocking-note a { grid-area: auto; margin-top: 8px; }
  .batch-form-toolbar { align-items: flex-start; gap: 12px; }
  .batch-table > a, .batch-index > a { grid-template-columns: 1fr; }
  .batch-table time { text-align: left; }
  .image-selection-card:not(.is-empty) { grid-template-columns: 1fr; align-items: start; }
  .batch-item-head { align-items: flex-start; }
  .item-head-actions { align-items: stretch; flex-direction: column; }
  .item-result-actions { width: 100%; align-items: stretch; }
  .result-item > header { align-items: stretch; flex-direction: column; }
  .image-set-grid { grid-template-columns: 1fr; }
  .acrylic-hero-copy { padding: 50px 26px; }
  .acrylic-product-tag { margin-bottom: 38px; }
  .acrylic-hero-copy h1 { font-size: 48px; }
  .acrylic-hero-actions { align-items: stretch; flex-direction: column; }
  .acrylic-hero-actions .primary-button, .acrylic-hero-actions .secondary-button { width: 100%; }
  .acrylic-hero-visual { min-height: 480px; }
  .acrylic-selling-points { grid-template-columns: 1fr; }
  .acrylic-selling-points article { min-height: 190px; }
  .acrylic-selling-points article + article { border-top: 1px solid #315b50; border-left: 0; }
  .acrylic-selling-points h2 { margin-top: 28px; }
  .acrylic-gallery-section > header { grid-template-columns: 1fr; gap: 22px; }
  .acrylic-gallery-grid { grid-template-columns: 1fr; }
  .acrylic-gallery-card-1, .acrylic-gallery-card-2, .acrylic-gallery-card-3, .acrylic-gallery-card-4, .acrylic-gallery-card-5 { grid-column: 1; }
  .acrylic-gallery-card > a:first-child, .acrylic-gallery-card:nth-child(n+3) > a:first-child { height: auto; aspect-ratio: 4 / 5; }
  .variant-card { grid-template-columns: 1fr; }
  .variant-card .copy-artifact { grid-column: auto; }
  .variant-label { min-height: 70px; }
  .result-image, .copy-artifact pre, .technical-exception, .artifact-wait { min-height: 220px; }
  .auth-story { min-height: 0; padding: 36px 20px 28px; }
  .auth-story h1 { font-size: clamp(28px, 8vw, 34px); letter-spacing: -.03em; }
  .auth-story .auth-promise { max-width: 12em; font-size: clamp(17px, 4.6vw, 20px); }
  .auth-story .auth-lead, .auth-story > p { font-size: 14px; }
  .auth-story .auth-counter { font-size: 13px; }
  .auth-story .auth-counter strong { font-size: 1.65em; }
  .auth-price { margin-top: 14px; }
  .auth-price strong { font-size: 26px; }
  .auth-panels { padding: 20px 16px 48px; }
  .auth-panel { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
