:root {
  --ink: #14213d;
  --ink-2: #273653;
  --cobalt: #355cff;
  --cobalt-dark: #2448d8;
  --mist: #f3f6fb;
  --line: #d8e0ee;
  --muted: #68758c;
  --jade: #168563;
  --jade-soft: #e8f7f1;
  --coral: #d94b55;
  --coral-soft: #fff0f1;
  --amber: #b87911;
  --amber-soft: #fff7e6;
  --white: #fff;
  --shadow: 0 18px 50px rgba(20, 33, 61, .09);
  --radius: 16px;
  font-family: Inter, "IBM Plex Sans", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--mist); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .primary, .secondary { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(53, 92, 255, .28); outline-offset: 2px; }
.topbar { height: 70px; padding: 0 max(24px, calc((100vw - 1380px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; transform: skewY(-8deg); }
.brand-mark i { background: var(--cobalt); border-radius: 2px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { transform: translateY(5px); background: var(--ink); }
.brand-mark.large { width: 48px; height: 48px; gap: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.topbar-actions form { margin: 0; }
.operator { color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; display: grid; gap: 1px; }
.operator b { color: var(--ink); font-size: 12px; }
.operator small { font-size: 9px; }
.admin-link { color: var(--cobalt-dark); font-weight: 800; }
.admin-link:hover { text-decoration: underline; }
.link-button { border: 0; background: transparent; color: var(--ink); padding: 4px; cursor: pointer; min-height: auto; }
.mode-badge { padding: 7px 10px; border-radius: 999px; font-weight: 700; }
.mode-mock { color: var(--jade); background: var(--jade-soft); }
.mode-real { color: var(--cobalt-dark); background: #edf0ff; }
.page { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 80px; }
.page-heading { max-width: 760px; margin-bottom: 34px; }
.page-heading.split { max-width: none; display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--cobalt); font: 800 11px/1.2 Consolas, "SFMono-Regular", monospace; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(34px, 4.2vw, 58px); line-height: .98; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
.muted { color: var(--muted); line-height: 1.7; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; cursor: pointer; }
.primary { color: white; background: var(--cobalt); box-shadow: 0 8px 20px rgba(53, 92, 255, .2); }
.primary:hover { background: var(--cobalt-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary { color: var(--ink); border-color: var(--line); background: white; }
.full { width: 100%; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.alert { padding: 14px 16px; border-radius: 10px; line-height: 1.5; display: flex; gap: 12px; }
.alert.danger { color: #9f2731; background: var(--coral-soft); border: 1px solid #f1c7ca; }
.alert.success { margin-bottom: 20px; color: #116b50; background: var(--jade-soft); border: 1px solid #bfe4d7; }

/* Friendly error state: the code is a wayfinding marker, not raw server output. */
.page.error-shell { min-height: calc(100vh - 70px); display: grid; place-items: center; padding-block: 60px; }
.friendly-error { width: min(920px, 100%); min-height: 430px; display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.error-code { display: grid; place-items: center; color: #8fa4ff; background: var(--ink); font: 900 clamp(88px, 13vw, 160px)/1 Consolas, "SFMono-Regular", monospace; letter-spacing: -.1em; }
.error-copy { padding: clamp(36px, 6vw, 68px); display: flex; flex-direction: column; justify-content: center; }
.error-copy h1 { max-width: 560px; font-size: clamp(34px, 5vw, 56px); }
.error-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); line-height: 1.75; }
.error-detail { margin-top: 8px; padding: 13px 15px; display: grid; gap: 5px; color: #8e2f37; background: var(--coral-soft); border: 1px solid #f1c7ca; border-radius: 9px; font-size: 12px; line-height: 1.55; }
.error-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Login */
.page.login-shell { width: 100%; min-height: 100vh; padding: 0; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr); background: white; }
.login-aside { min-height: 100vh; padding: clamp(38px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--ink); position: relative; overflow: hidden; }
.login-aside::after { content: "07"; position: absolute; right: -25px; bottom: -110px; color: rgba(255,255,255,.045); font-size: clamp(260px, 38vw, 560px); line-height: 1; font-weight: 900; letter-spacing: -.12em; pointer-events: none; }
.login-brand { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.login-brand .eyebrow { color: #9fb1ff; margin: 0; }
.login-aside h1 { max-width: 720px; font-size: clamp(50px, 6vw, 94px); line-height: .96; letter-spacing: -.06em; position: relative; z-index: 1; }
.login-lead { max-width: 560px; color: #b9c4d8; line-height: 1.8; font-size: 18px; position: relative; z-index: 1; }
.mini-flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid rgba(255,255,255,.17); position: relative; z-index: 1; }
.mini-flow li { padding: 20px 12px 0 0; display: grid; gap: 8px; }
.mini-flow b { color: #7791ff; font: 700 12px Consolas, monospace; }
.mini-flow span { font-size: 13px; color: #dce3ef; }
.login-panel { display: grid; place-items: center; padding: 40px; background: linear-gradient(135deg, #fff 0%, #f7f9fd 100%); }
.login-card { width: min(440px, 100%); padding: 42px; display: grid; gap: 24px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--cobalt); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card h2 { font-size: 29px; margin-bottom: 8px; }
.login-card label, .form-grid label { display: grid; gap: 9px; color: var(--ink-2); font-size: 13px; font-weight: 750; }
.login-card input, .form-grid input, .form-grid textarea, .form-grid select { width: 100%; border: 1px solid #cbd5e5; border-radius: 9px; background: white; padding: 12px 13px; color: var(--ink); transition: border .15s, box-shadow .15s; }
.login-card input { height: 48px; }
.login-card input:focus, .form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(53,92,255,.1); outline: none; }
.fineprint { color: #8a95a8; font-size: 11px; text-align: center; margin: -10px 0 0; }
.login-stack { width: min(440px, 100%); display: grid; gap: 14px; }
.login-stack .login-card { width: 100%; }
.developer-entry { min-height: 82px; padding: 14px 16px; display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.developer-entry:hover { border-color: #9aabcc; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(20,33,61,.08); }
.developer-entry-mark { width: 48px; height: 48px; display: grid; place-items: center; color: #aabaff; background: var(--ink); border-radius: 10px 10px 10px 3px; font: 800 11px Consolas, monospace; letter-spacing: .07em; }
.developer-entry > span:nth-child(2) { display: grid; gap: 4px; }
.developer-entry b { font-size: 13px; }
.developer-entry small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.developer-entry i { color: var(--cobalt-dark); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }

/* Tool hub */
.page.toolbox-shell { width: min(1240px, calc(100% - 48px)); padding-top: 52px; }
.toolbox-welcome { min-height: 218px; margin-bottom: 34px; padding: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; color: white; background: var(--ink); border-radius: 22px; box-shadow: 0 22px 55px rgba(20,33,61,.14); position: relative; overflow: hidden; }
.toolbox-welcome::after { content: ""; width: 330px; height: 330px; position: absolute; right: 150px; top: -230px; border: 44px solid rgba(113,140,255,.12); border-radius: 50%; pointer-events: none; }
.toolbox-welcome .eyebrow { color: #9fb1ff; }
.toolbox-welcome h1 { max-width: 760px; margin-bottom: 16px; font-size: clamp(38px, 5vw, 65px); }
.toolbox-welcome > div > p:last-child { max-width: 650px; margin: 0; color: #bac5d8; font-size: 14px; line-height: 1.75; }
.toolbox-summary { min-width: 218px; padding: 18px 22px; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 20px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; backdrop-filter: blur(8px); position: relative; z-index: 1; }
.toolbox-summary span { display: grid; gap: 5px; text-align: center; }
.toolbox-summary b { font-size: 28px; line-height: 1; }
.toolbox-summary small { color: #b8c4d7; font-size: 10px; }
.toolbox-summary i { width: 1px; height: 35px; background: rgba(255,255,255,.16); }
.tool-catalog-head { margin: 0 2px 16px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.tool-catalog-head h2 { margin: 0; font-size: 25px; }
.tool-catalog-head > p { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { min-height: 390px; display: grid; grid-template-rows: 170px 1fr auto; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 34px rgba(20,33,61,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.tool-card:hover { transform: translateY(-4px); border-color: #aab7cf; box-shadow: 0 24px 48px rgba(20,33,61,.12); }
a.tool-card:focus-visible { outline: 3px solid rgba(53,92,255,.3); outline-offset: 3px; }
.tool-visual { padding: 22px; display: grid; place-items: center; position: relative; overflow: hidden; background: #edf1f8; }
.tool-status { padding: 6px 9px; position: absolute; right: 16px; top: 16px; z-index: 2; color: var(--cobalt-dark); background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.9); border-radius: 99px; box-shadow: 0 5px 16px rgba(20,33,61,.08); font-size: 9px; font-weight: 850; backdrop-filter: blur(6px); }
.tool-copy { padding: 25px 26px 20px; }
.tool-copy h2 { margin: 0 0 11px; font-size: 27px; }
.tool-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.tool-card footer { min-height: 58px; margin: 0 26px; display: flex; justify-content: space-between; align-items: center; color: var(--cobalt-dark); border-top: 1px solid var(--line); font-size: 11px; font-weight: 850; }
.tool-card footer b { font-size: 19px; transition: transform .18s ease; }
a.tool-card:hover footer b { transform: translateX(4px); }
.tool-visual-seven { background: linear-gradient(145deg, #172747, #24375c); }
.storyboard { width: min(270px, 92%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; transform: rotate(-2deg); }
.storyboard i { height: 52px; display: block; background: linear-gradient(145deg, #f7f9ff, #cbd6ff); border: 2px solid rgba(255,255,255,.38); border-radius: 6px; box-shadow: 0 7px 14px rgba(0,0,0,.18); }
.storyboard i:first-child { grid-row: span 2; height: 112px; background: linear-gradient(145deg, #758fff, #355cff); }
.storyboard i:nth-child(3), .storyboard i:nth-child(6) { background: linear-gradient(145deg, #e4e9f6, #9fb0d6); }
.tool-visual-translate { background: linear-gradient(145deg, #e9f8f2, #cdeadd); }
.localize-demo { display: grid; grid-template-columns: 78px 38px 78px; align-items: center; filter: drop-shadow(0 12px 15px rgba(18,99,76,.16)); }
.localize-demo span { width: 78px; height: 92px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 13px; font: 900 25px/1 Consolas, monospace; }
.localize-demo span:last-child { background: var(--jade); }
.localize-demo i { color: #647a73; font-size: 22px; font-style: normal; text-align: center; }
.tool-visual-clone { background: repeating-linear-gradient(135deg, #f5f7fa 0 14px, #eef1f5 14px 28px); }
.clone-demo { display: grid; grid-template-columns: 76px 34px 76px; align-items: center; }
.clone-demo span { width: 76px; height: 94px; display: block; background: white; border: 1px solid #cbd4e3; border-radius: 8px; box-shadow: 8px 8px 0 #dce2ec; position: relative; }
.clone-demo span::before { content: ""; position: absolute; inset: 12px; background: linear-gradient(145deg, #c8d2e4 48%, #edf1f7 48%); border-radius: 4px; }
.clone-demo span:last-child::before { background: linear-gradient(145deg, #aebad0 48%, #e4e9f1 48%); }
.clone-demo i { color: #8b96a9; font-size: 20px; font-style: normal; text-align: center; }
.tool-card-muted { opacity: .72; box-shadow: none; }
.tool-card-muted footer { color: var(--muted); }

/* Detail image localization */
.page.translator-shell { width: min(1220px, calc(100% - 48px)); }
.translator-hero { margin-bottom: 38px; }
.translator-thesis { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 60px; align-items: end; }
.translator-thesis h1 { font-size: clamp(52px, 6vw, 78px); }
.translator-thesis h1 span { color: var(--jade); }
.translator-thesis > p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.translator-intake { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.translator-source, .translator-settings { padding: 26px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 38px rgba(20,33,61,.06); }
.translator-settings { display: grid; gap: 18px; border-top: 5px solid var(--jade); }
.translator-settings > label { display: grid; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 800; }
.translator-settings > label small { color: var(--muted); font-weight: 600; }
.translator-settings input, .translator-settings select, .translator-settings textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #cbd5e5; border-radius: 8px; }
.translator-dropzone { min-height: 480px; padding: 46px; display: grid; place-items: center; align-content: center; gap: 14px; border: 2px dashed #b9c5d8; border-radius: 14px; background: linear-gradient(145deg, #fbfcff, #f1f8f5); cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.translator-dropzone:hover, .translator-dropzone.is-dragging { border-color: var(--jade); background: #effaf6; transform: translateY(-1px); }
.translator-dropzone.has-error { border-color: var(--coral); background: var(--coral-soft); }
.translator-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.translator-dropzone strong { font-size: 22px; }
.translator-dropzone > small, .translator-dropzone output { color: var(--muted); font-size: 11px; }
.translator-dropzone.has-error output { color: #9f2731; font-weight: 800; }
.locale-glyph { display: grid; grid-template-columns: 68px 32px 68px; align-items: center; }
.locale-glyph b { width: 68px; height: 68px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 14px; font: 900 20px Consolas, monospace; }
.locale-glyph b:last-child { background: var(--jade); }
.locale-glyph i { color: var(--muted); font-style: normal; font-size: 22px; }
.canvas-choice { padding: 0; display: grid; gap: 9px; border: 0; }
.canvas-choice legend { margin-bottom: 8px; color: var(--ink-2); font-size: 12px; font-weight: 800; }
.canvas-choice label { padding: 12px; display: flex; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.canvas-choice label:has(input:checked) { border-color: var(--jade); background: #effaf6; box-shadow: inset 0 0 0 1px var(--jade); }
.canvas-choice input { width: auto; margin-top: 3px; accent-color: var(--jade); }
.canvas-choice span { display: grid; gap: 4px; }
.canvas-choice small { color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.45; }
.translator-contract { padding: 13px 14px; color: #116b50; background: var(--jade-soft); border: 1px solid #bfe4d7; border-radius: 9px; }
.translator-contract b { font-size: 11px; }
.translator-contract p { margin: 4px 0 0; font-size: 10px; line-height: 1.55; }
.translator-recent { margin-top: 42px; display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.translator-recent > div { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; }
.translator-recent a { min-height: 72px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto 20px; gap: 20px; align-items: center; border-top: 1px solid var(--line); }
.translator-recent a:first-child { border-top: 0; }
.translator-recent a:hover { background: #f7f9fd; }
.translator-recent span { display: grid; gap: 3px; }
.translator-recent small { color: var(--muted); font-size: 10px; }
.translator-recent em { color: var(--jade); font-size: 10px; font-style: normal; font-weight: 800; }
.translator-recent i { color: var(--cobalt); font-style: normal; }

.page.translator-job-shell { width: min(1320px, calc(100% - 48px)); }
.translator-job-head { margin-bottom: 24px; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.translator-job-head h1 { margin-bottom: 8px; }
.translator-job-head p:last-child { color: var(--muted); }
.translator-job-actions { display: flex; gap: 10px; align-items: center; }
.translator-job-actions form { margin: 0; }
.translator-status { margin-bottom: 22px; padding: 22px 26px; display: grid; gap: 16px; color: white; background: var(--ink); border-radius: 13px; }
.translator-status > div { display: flex; justify-content: space-between; align-items: baseline; }
.translator-status h2 { margin: 0; }
.translator-status > div > span { color: #9fb0ff; font-weight: 900; }
.translator-status > i { height: 5px; display: block; overflow: hidden; background: #3d4b66; border-radius: 99px; }
.translator-status > i b { height: 100%; display: block; background: var(--jade); }
.language-bar { margin: 28px 0 20px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; background: white; border: 1px solid var(--line); border-radius: 12px; }
.language-bar h2 { margin: 0; font-size: 22px; }
.language-switch { padding: 4px; display: flex; background: #e9eef5; border-radius: 10px; }
.language-switch button { min-height: 38px; padding: 0 18px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-weight: 800; }
.language-switch button.is-active { color: white; background: var(--jade); box-shadow: 0 5px 12px rgba(22,133,99,.2); }
.localized-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.localized-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; }
.localized-canvas { min-height: 340px; display: grid; place-items: center; position: relative; background: #e8edf5; }
.locale-image { width: 100%; max-height: 700px; object-fit: contain; grid-area: 1/1; background: white; }
.locale-english { display: none; }
body[data-locale-preview="english"] .locale-original { display: none; }
body[data-locale-preview="english"] .locale-english { display: block; }
.localized-waiting { padding: 10px 13px; color: var(--muted); background: white; border-radius: 999px; font-size: 11px; font-weight: 800; }
.localized-meta { padding: 14px 16px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.localized-meta span { min-width: 0; display: grid; gap: 4px; }
.localized-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.localized-meta small { color: var(--muted); font-size: 10px; }
.localized-meta em { color: var(--jade); font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.review-note { margin: 0; padding: 12px 16px; color: #6f4b0a; background: var(--amber-soft); border-top: 1px solid #f1dcae; font-size: 10px; }
.localized-retry { min-height: 58px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.localized-retry > span { color: var(--muted); font-size: 9px; }
.localized-retry .compact { min-height: 36px; white-space: nowrap; }
.translation-copy { border-top: 1px solid var(--line); }
.translation-copy summary { padding: 13px 16px; color: var(--cobalt-dark); cursor: pointer; font-size: 10px; font-weight: 800; }
.translation-copy > div { padding: 0 16px 14px; display: grid; gap: 7px; }
.translation-copy p { margin: 0; padding: 8px 10px; display: grid; grid-template-columns: 1fr 20px 1fr; gap: 8px; align-items: center; background: #f7f9fd; border-radius: 7px; font-size: 10px; }
.translation-copy p b { color: var(--jade); text-align: center; }

/* Developer access: a visible handoff from personal key to isolated module. */
.page.access-shell { width: min(1180px, calc(100% - 48px)); padding: 26px 0 72px; }
.access-nav { min-height: 58px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ccd6e6; }
.access-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.access-brand > span:last-child { display: grid; gap: 2px; }
.access-brand small { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.access-back { color: var(--cobalt-dark); font-size: 12px; font-weight: 800; }
.access-hero { padding: clamp(52px, 8vw, 94px) 0 46px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 64px; align-items: end; }
.access-hero h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(48px, 6.3vw, 82px); }
.access-hero > div:first-child > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.access-contract { border-top: 5px solid var(--cobalt); background: white; box-shadow: var(--shadow); }
.access-contract span { min-height: 78px; padding: 16px 18px; display: grid; align-content: center; gap: 5px; border-top: 1px solid var(--line); }
.access-contract span:first-child { border-top: 0; }
.access-contract b { font-size: 13px; }
.access-contract small { color: var(--muted); font-size: 10px; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 22px; align-items: start; }
.access-steps { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.access-steps article { min-height: 190px; padding: 30px; display: grid; grid-template-columns: 70px 1fr; gap: 22px; border-top: 1px solid var(--line); position: relative; }
.access-steps article:first-child { border-top: 0; }
.access-steps article::before { content: ""; width: 3px; position: absolute; left: 63px; top: 0; bottom: 0; background: #e2e8f3; }
.access-steps article:first-child::before { top: 42px; }
.access-steps article:last-child::before { bottom: calc(100% - 45px); }
.step-no { width: 48px; height: 48px; display: grid; place-items: center; z-index: 1; color: white; background: var(--ink); border: 5px solid white; box-shadow: 0 0 0 1px #d6deeb; border-radius: 50%; font: 800 11px Consolas, monospace; }
.access-steps article:first-child .step-no { background: var(--cobalt); }
.access-steps h2 { margin-bottom: 10px; font-size: 23px; }
.access-steps article p:last-of-type { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.access-steps code { padding: 2px 5px; color: var(--cobalt-dark); background: #edf1ff; border-radius: 4px; }
.handoff-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.handoff-tags span { padding: 7px 10px; color: var(--jade); background: var(--jade-soft); border-radius: 99px; font-size: 10px; font-weight: 800; }
.prompt-dock { display: grid; gap: 14px; position: sticky; top: 20px; }
.prompt-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 30px rgba(20,33,61,.05); }
.prompt-card.dark { color: white; background: var(--ink); border-color: var(--ink); }
.prompt-head { min-height: 54px; padding: 0 15px 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.prompt-card.dark .prompt-head { border-color: #40506d; }
.prompt-head span { font-size: 11px; font-weight: 850; }
.prompt-head button { min-height: 32px; padding: 0 10px; color: var(--cobalt-dark); background: #edf1ff; border: 0; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 850; }
.prompt-card.dark .prompt-head button { color: white; background: #355cff; }
.prompt-card textarea { width: 100%; height: 178px; padding: 17px 18px; display: block; resize: vertical; color: var(--ink-2); background: transparent; border: 0; outline: 0; font: 500 11px/1.7 "Microsoft YaHei UI", "PingFang SC", sans-serif; }
.prompt-card.dark textarea { height: 270px; color: #d8e1ef; }
.copy-status { margin: 0; color: var(--muted); text-align: center; font-size: 9px; }
.access-stop { margin-top: 22px; padding: 22px 26px; display: grid; grid-template-columns: 250px 1fr; gap: 22px; color: #7a500c; background: var(--amber-soft); border: 1px solid #edd5a7; border-radius: 12px; }
.access-stop b { font-size: 13px; }
.access-stop p { margin: 0; font-size: 11px; line-height: 1.65; }

/* Queue */
.job-list { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(20, 33, 61, .05); }
.job-row { min-height: 94px; padding: 15px 22px; display: grid; grid-template-columns: 2.1fr .8fr .7fr 1.5fr 1fr 28px; align-items: center; gap: 16px; border-top: 1px solid #e9edf4; }
.job-row:not(.job-row-head):hover { background: #f8faff; }
.job-row-head { min-height: 46px; border: 0; color: var(--muted); background: #f8faff; font: 700 10px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.job-name { display: grid; gap: 7px; }
.job-name strong { font-size: 16px; }
.job-name small, .data-cell, .job-row time { color: var(--muted); font-size: 12px; }
.mode-pill { display: inline-flex; padding: 6px 9px; border: 1px solid #ccd5e7; border-radius: 5px; color: var(--ink-2); background: white; font-size: 11px; font-style: normal; font-weight: 800; }
.progress-cell { display: grid; gap: 9px; }
.status { color: var(--muted); font-size: 12px; font-weight: 750; }
.status-completed, .status-passed { color: var(--jade); }
.status-failed, .status-review { color: var(--coral); }
.status-generating, .status-planning { color: var(--cobalt); }
.status-paused { color: var(--amber); }
.status-cancelled { color: var(--coral); }
.mini-progress, .progress-track { display: block; overflow: hidden; background: #e9edf5; }
.mini-progress { height: 3px; }
.mini-progress i, .progress-track i { display: block; height: 100%; background: var(--cobalt); transition: width .4s ease; }
.row-arrow { color: var(--cobalt); font-size: 20px; }
.empty-state { padding: 70px max(24px, 9vw); text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state h2 { margin-top: 34px; font-size: 28px; }
.empty-state p { max-width: 600px; margin: 0 auto 28px; color: var(--muted); line-height: 1.7; }
.empty-rail { display: grid; grid-template-columns: repeat(8, 1fr); max-width: 720px; margin: auto; border: 1px solid #cfd8e8; }
.empty-rail span { aspect-ratio: 1; display: grid; place-items: center; color: var(--cobalt); font: 800 12px Consolas, monospace; border-left: 1px solid #cfd8e8; }
.empty-rail span:first-child { border: 0; background: var(--cobalt); color: white; }

/* Intake */
.intake { display: grid; gap: 20px; }
.form-section { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.section-index { align-self: start; display: grid; gap: 7px; position: sticky; top: 100px; }
.section-index b { color: var(--cobalt); font: 800 24px Consolas, monospace; }
.section-index span { font-weight: 850; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid label > span { color: var(--coral); }
.form-grid textarea { resize: vertical; line-height: 1.55; }
.span-2 { grid-column: span 2; }
.upload-section { border-style: dashed; border-color: #aebbd1; }
.upload-box { min-height: 240px; padding: 32px; place-items: center; align-content: center; text-align: center; border: 2px dashed #b9c5da; border-radius: 14px; background: #f9fbff; cursor: pointer; }
.upload-box:hover { border-color: var(--cobalt); background: #f3f6ff; }
.upload-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-box strong { font-size: 17px; }
.upload-box small { color: var(--muted); font-weight: 500; }
.upload-box output { color: var(--cobalt); font-size: 12px; }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; color: white !important; background: var(--cobalt); border-radius: 50%; font-size: 25px; font-weight: 400; }
.upload-guidance { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 12px; }
.upload-guidance b { margin-right: 5px; }
.upload-guidance span { padding: 7px 10px; border-radius: 99px; background: var(--mist); color: var(--muted); }
.run-choice { padding: 32px; display: grid; grid-template-columns: minmax(190px, .7fr) 1fr 1fr; gap: 18px; align-items: stretch; background: var(--ink); border-radius: var(--radius); color: white; }
.run-choice h2 { margin-bottom: 0; }
.choice { padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 12px; border: 1px solid #52617c; border-radius: 12px; cursor: pointer; position: relative; }
.choice:has(input:checked) { border-color: #8ca1ff; background: rgba(53,92,255,.18); box-shadow: inset 0 0 0 1px #8ca1ff; }
.choice input { accent-color: var(--cobalt); }
.choice span { display: grid; gap: 8px; }
.choice small { color: #bbc5d7; line-height: 1.5; }
.choice em { position: absolute; right: 13px; top: 13px; color: #7f96ff; font: 800 9px Consolas, monospace; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }

/* Detail */
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.detail-heading h1 { font-size: clamp(32px, 4vw, 52px); }
.detail-actions { max-width: 540px; display: grid; justify-items: end; gap: 9px; }
.task-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.task-controls form { margin: 0; }
.pause-control { color: #80550d; border-color: #e7cc94; background: var(--amber-soft); }
.cancel-control { color: #a52f39; border-color: #efc0c4; background: var(--coral-soft); }
.control-cost-note { max-width: 470px; color: var(--muted); text-align: right; line-height: 1.45; }
.control-pending { padding: 10px 13px; color: #80550d; background: var(--amber-soft); border: 1px solid #e7cc94; border-radius: 8px; font-size: 12px; font-weight: 800; }
.cancelled-label { color: var(--coral); font-weight: 800; }
.title-line { display: flex; align-items: center; gap: 16px; }
.sku-line { display: flex; gap: 16px; align-items: center; color: var(--muted); margin: 0; font-size: 12px; }
.sku-line code { padding: 5px 8px; background: white; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.status-board { margin-bottom: 24px; padding: 26px; background: var(--ink); border-radius: var(--radius); color: white; box-shadow: var(--shadow); }
.status-copy { display: flex; align-items: baseline; gap: 16px; }
.status-copy .eyebrow { color: #91a5ff; margin-right: auto; }
.status-copy h2 { margin: 0; }
.status-copy > span { font: 800 20px Consolas, monospace; color: #8da2ff; }
.progress-track { height: 5px; margin: 20px 0 26px; background: #35425b; }
.proof-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid #42506a; }
.proof-slot { min-height: 128px; padding: 13px; display: flex; flex-direction: column; border-left: 1px solid #42506a; color: #b7c1d2; }
.proof-slot:first-child { border: 0; }
.proof-slot > div { display: flex; justify-content: space-between; gap: 5px; color: #77869e; font: 700 9px Consolas, monospace; }
.proof-slot > strong { margin: auto 0 10px; color: white; font-size: 12px; line-height: 1.35; }
.proof-slot > small { font-size: 10px; }
.slot-passed { background: rgba(22,133,99,.2); box-shadow: inset 0 -3px var(--jade); }
.slot-review { background: rgba(217,75,85,.16); box-shadow: inset 0 -3px var(--coral); }
.slot-generating, .slot-retrying { background: rgba(53,92,255,.22); box-shadow: inset 0 -3px #7690ff; }
.slot-not_run { opacity: .42; }
.slot-paused { background: rgba(184,121,17,.18); box-shadow: inset 0 -3px var(--amber); }
.slot-cancelled { opacity: .55; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 24px; align-items: start; }
.evidence-panel, .results-panel { padding: 26px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.section-title { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.section-title h2 { margin: 0; }
.section-title > span { color: var(--muted); font: 700 12px Consolas, monospace; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.asset-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--mist); }
.asset-grid img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.asset-grid figcaption { padding: 8px; display: grid; gap: 3px; }
.asset-grid figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.asset-grid figcaption span { color: var(--muted); font-size: 9px; }
.facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 13px 0; display: grid; grid-template-columns: 80px 1fr; gap: 14px; border-bottom: 1px solid #edf0f5; }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { margin: 0; white-space: pre-wrap; font-size: 12px; line-height: 1.6; }
.result-stack { display: grid; gap: 18px; }
.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.result-card > img { width: 100%; display: block; background: var(--mist); }
.result-meta { padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.result-meta span { color: var(--cobalt); font: 800 9px Consolas, monospace; letter-spacing: .08em; }
.result-meta h3 { margin: 4px 0 0; }
.qa-notes { margin: 0; padding: 13px 32px; color: var(--jade); background: var(--jade-soft); font-size: 12px; line-height: 1.55; }
.waiting-card { min-height: 340px; padding: 40px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #aebbd1; border-radius: 12px; background: #f9fbff; position: relative; overflow: hidden; }
.waiting-card b { font-size: 19px; }
.waiting-card p { max-width: 400px; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.scan-line { width: 90px; height: 90px; margin-bottom: 24px; border: 1px solid #bbc6d9; background: repeating-linear-gradient(90deg, transparent 0 10px, #eef2fa 10px 11px), repeating-linear-gradient(0deg, transparent 0 10px, #eef2fa 10px 11px); position: relative; }
.scan-line::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 3px; background: var(--cobalt); box-shadow: 0 0 12px rgba(53,92,255,.5); }

/* AI-first intake */
.studio-heading { margin-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: end; gap: 42px; }
.studio-heading .back-link { grid-column: span 2; margin-bottom: 0; }
.studio-heading h1 { margin: 0; }
.studio-heading > p { margin: 0 0 4px; color: var(--muted); line-height: 1.8; }
.workflow-strip { margin-bottom: 20px; display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.workflow-strip span { min-height: 54px; padding: 0 16px; display: flex; align-items: center; gap: 10px; color: #8290a6; border-left: 1px solid var(--line); font-size: 12px; font-weight: 750; position: relative; }
.workflow-strip span:first-child { border-left: 0; }
.workflow-strip b { font: 800 10px Consolas, monospace; }
.workflow-strip span.active { color: white; background: var(--cobalt); }
.workflow-strip span.done { color: var(--jade); background: var(--jade-soft); }
.workflow-strip span.done::after { content: "✓"; margin-left: auto; }
.studio-intake { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.source-stage, .generation-dock { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(20,33,61,.045); }
.source-stage { padding: 28px; }
.stage-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.stage-title h2, .dock-head h2 { margin: 0; font-size: 25px; }
.stage-title > span { color: var(--muted); font: 700 11px Consolas, monospace; }
.studio-upload { min-height: 390px; padding: 42px; display: grid; place-items: center; align-content: center; text-align: center; border: 2px dashed #b3bfd3; border-radius: 14px; background: linear-gradient(145deg, #fbfcff 0%, #f3f6fc 100%); cursor: pointer; position: relative; overflow: hidden; }
.studio-upload::before { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(53,92,255,.08); border-radius: 50%; }
.studio-upload:hover { border-color: var(--cobalt); }
.studio-upload:focus-visible { outline: 3px solid rgba(53,92,255,.24); outline-offset: 3px; }
.studio-upload.is-dragging { border-color: var(--cobalt); background: #eaf0ff; box-shadow: inset 0 0 0 2px rgba(53,92,255,.2), 0 18px 38px rgba(53,92,255,.12); }
.studio-upload.is-dragging .upload-orbit { transform: scale(1.06); border-color: var(--cobalt); }
.studio-upload.has-error { border-color: var(--coral); background: #fff5f3; }
.studio-upload.has-error output { color: var(--coral); }
.studio-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.studio-upload strong { margin-top: 24px; font-size: 20px; position: relative; }
.studio-upload small { margin-top: 9px; color: var(--muted); font-weight: 500; position: relative; }
.studio-upload output { margin-top: 18px; color: var(--cobalt); font: 700 11px Consolas, monospace; position: relative; }
.file-preview { max-width: 100%; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; position: relative; }
.file-preview:empty { display: none; }
.file-preview i { max-width: 170px; padding: 5px 8px; overflow: hidden; color: var(--ink-2); background: white; border: 1px solid #d4dceb; border-radius: 999px; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.upload-orbit { transition: transform .16s ease, border-color .16s ease; }
.upload-orbit { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid #b9c6da; border-radius: 50%; position: relative; }
.upload-orbit::before, .upload-orbit::after { content: ""; position: absolute; border: 1px solid rgba(53,92,255,.18); border-radius: 50%; }
.upload-orbit::before { inset: -15px; }
.upload-orbit::after { inset: -31px; }
.upload-orbit i { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--cobalt); border-radius: 50%; font-size: 26px; font-style: normal; box-shadow: 0 12px 25px rgba(53,92,255,.28); }
.hint-fields { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint-fields label, .generation-dock > label, .dock-grid label, .advanced-intake label, .confirmation-grid label { display: grid; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.hint-fields label small, .confirmation-grid label small { color: var(--muted); font-weight: 500; }
.hint-fields input, .generation-dock select, .advanced-intake input, .advanced-intake textarea, .confirmation-grid input, .confirmation-grid textarea { width: 100%; padding: 12px; color: var(--ink); background: white; border: 1px solid #cad4e4; border-radius: 8px; }
.ai-contract { margin-top: 18px; padding: 18px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px; align-items: start; color: var(--ink-2); background: #edf2ff; border-radius: 12px; }
.ai-contract p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ai-spark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--cobalt); border-radius: 10px; font: 800 12px Consolas, monospace; }
.contract-rule { padding-left: 16px; border-left: 1px solid #cad5ef; }
.generation-dock { padding: 24px; display: grid; gap: 20px; position: sticky; top: 90px; }
.dock-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.set-choice { margin: 0; padding: 0; display: grid; gap: 9px; border: 0; }
.set-choice legend { margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.set-choice label { min-height: 68px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.set-choice label:has(input:checked) { border-color: var(--cobalt); background: #f2f5ff; box-shadow: inset 0 0 0 1px var(--cobalt); }
.set-choice input, .preference-list input { accent-color: var(--cobalt); }
.set-choice span { display: grid; gap: 4px; }
.set-choice small, .preference-list small { color: var(--muted); font-size: 10px; font-weight: 500; }
.set-choice em { color: var(--cobalt); font-size: 11px; font-style: normal; font-weight: 800; }
.preference-list { padding: 4px 0; display: grid; gap: 13px; }
.preference-list label { display: flex; gap: 10px; align-items: start; cursor: pointer; }
.preference-list span { display: grid; gap: 3px; }
.advanced-intake { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-intake summary { padding: 14px 0; cursor: pointer; color: var(--ink-2); font-size: 12px; font-weight: 800; }
.advanced-intake > div { padding: 4px 0 18px; display: grid; gap: 14px; }
.analyze-button { justify-content: space-between; }
.cost-note { margin: -10px 0 0; color: var(--muted); text-align: center; font-size: 10px; }

/* AI analysis confirmation */
.detail-workflow { margin-bottom: 24px; }
.analysis-loading { min-height: 410px; padding: 70px; display: grid; grid-template-columns: 180px 1fr; gap: 50px; place-items: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.analysis-loading h2 { font-size: 30px; margin-bottom: 10px; }
.analysis-loading p:last-child { color: var(--muted); }
.vision-scan { width: 160px; height: 160px; border: 1px solid #b9c5d7; background: repeating-linear-gradient(90deg, transparent 0 19px, #eff3f9 19px 20px), repeating-linear-gradient(0deg, transparent 0 19px, #eff3f9 19px 20px); position: relative; }
.vision-scan::before, .vision-scan::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: var(--cobalt); }
.vision-scan::before { left: -2px; top: -2px; border-left: 3px solid var(--cobalt); border-top: 3px solid var(--cobalt); }
.vision-scan::after { right: -2px; bottom: -2px; border-right: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt); }
.vision-scan i { position: absolute; left: 0; right: 0; top: 15%; height: 3px; background: var(--cobalt); box-shadow: 0 0 15px rgba(53,92,255,.55); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 84%; } }
.analysis-review { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.analysis-review-head { padding: 30px; display: flex; justify-content: space-between; gap: 30px; color: white; background: var(--ink); }
.analysis-review-head h2 { margin-bottom: 8px; font-size: 30px; }
.analysis-review-head p:last-child { max-width: 780px; margin: 0; color: #b8c4d7; line-height: 1.65; }
.analysis-review-head > span { align-self: start; padding: 8px 10px; color: #aabaff; border: 1px solid #53617c; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.analysis-evidence { padding: 24px; display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px; background: #f7f9fd; border-bottom: 1px solid var(--line); }
.analysis-evidence > div, .uncertainty-box { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.analysis-evidence h3 { margin-bottom: 16px; font-size: 15px; }
.identity-readout dl { margin: 0; }
.identity-readout dl > div { padding: 8px 0; display: grid; grid-template-columns: 74px 1fr; gap: 10px; border-top: 1px solid #edf0f5; }
.identity-readout dt { color: var(--muted); font-size: 10px; }
.identity-readout dd { margin: 0; font-size: 11px; line-height: 1.5; }
.function-readout { display: grid; align-content: start; gap: 9px; }
.function-readout h3 { margin-bottom: 7px; }
.function-readout article { padding: 11px; background: var(--mist); border-radius: 8px; }
.function-readout article > div { display: flex; justify-content: space-between; gap: 12px; }
.function-readout em { color: var(--cobalt); font: 800 10px Consolas, monospace; }
.function-readout p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.uncertainty-box { color: #8e5b09; background: var(--amber-soft) !important; border-color: #efdaae !important; }
.uncertainty-box ul { margin: 0; padding-left: 17px; font-size: 11px; line-height: 1.6; }
.confirmation-form { padding: 28px; display: grid; gap: 22px; }
.confirmation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.confirmation-grid textarea { resize: vertical; line-height: 1.55; }
.fact-checkbox { padding: 16px; display: flex; gap: 12px; align-items: start; background: var(--jade-soft); border: 1px solid #bfe4d7; border-radius: 10px; cursor: pointer; }
.fact-checkbox input { margin-top: 4px; accent-color: var(--jade); }
.fact-checkbox span { display: grid; gap: 4px; }
.fact-checkbox small { color: #4f7569; }
.confirmation-form > .primary { justify-self: end; }
.style-confirmation { padding: 20px; display: grid; gap: 16px; border: 1px solid #cbd5e6; border-radius: 12px; background: #f7f9fd; }
.style-confirmation h3 { margin: 3px 0 5px; }
.style-confirmation p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.style-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.style-choice-grid label { min-height: 74px; padding: 12px; display: flex; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.style-choice-grid label:has(input:checked) { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); background: #f0f4ff; }
.style-choice-grid input { margin-top: 3px; accent-color: var(--cobalt); }
.style-choice-grid span { display: grid; gap: 4px; }
.style-choice-grid small, .style-upload small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.style-upload { padding: 14px; display: none; gap: 8px; border: 1px dashed #aebbd1; border-radius: 9px; background: white; }
.style-upload.is-active { display: grid; }
.style-upload input { padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcff; }
.style-upload output { color: var(--muted); font-size: 10px; font-weight: 700; }
.style-upload.has-error { border-color: var(--coral); background: var(--coral-soft); }
.style-upload.has-error output { color: #9f2731; }
.style-reference-readout { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.style-reference-readout h3 { margin-bottom: 12px; font-size: 13px; }

/* Employee seats */
.seats-heading { align-items: stretch !important; }
.seats-heading .back-link { margin-bottom: 20px; }
.seat-legend { min-width: 330px; padding: 20px 22px; display: grid; align-content: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 11px; }
.seat-legend span { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.seat-legend b { color: var(--ink); }
.role-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 4px #edf0ff; }
.role-dot.ops { background: var(--jade); box-shadow: 0 0 0 4px var(--jade-soft); }
.seats-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; }
.seat-create-card, .seat-roster, .audit-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20,33,61,.045); }
.seat-create-card { padding: 25px; position: sticky; top: 92px; }
.seat-card-head { display: grid; grid-template-columns: 58px 1fr; gap: 15px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.seat-card-head h2, .roster-head h2 { margin: 0; }
.seat-card-head p:last-child { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.seat-index { width: 58px; height: 58px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 13px; font: 800 18px Consolas, monospace; }
.seat-form { padding-top: 22px; display: grid; gap: 16px; }
.seat-form label { display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.seat-form label small { color: var(--muted); font-size: 9px; font-weight: 500; }
.seat-form input, .seat-form select, .seat-actions input { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #cad4e4; border-radius: 8px; }
.seat-roster { overflow: hidden; }
.roster-head { min-height: 82px; padding: 20px 23px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #f8faff; border-bottom: 1px solid var(--line); }
.roster-head .eyebrow { margin-bottom: 5px; }
.roster-head > span { color: var(--muted); font: 700 10px Consolas, monospace; }
.seat-row { min-height: 96px; padding: 16px 20px; display: grid; grid-template-columns: 48px minmax(190px, 1fr) auto; gap: 15px; align-items: center; border-top: 1px solid #edf0f5; }
.seat-row:first-of-type { border-top: 0; }
.seat-row.is-disabled { background: #fafbfc; opacity: .68; }
.seat-avatar { width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 50% 50% 50% 12px; font-weight: 900; }
.seat-identity { min-width: 0; display: grid; gap: 7px; }
.seat-identity > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seat-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.role-pill { padding: 4px 7px; border-radius: 99px; font-size: 9px; font-style: normal; font-weight: 800; }
.role-admin { color: var(--cobalt-dark); background: #edf0ff; }
.role-operator { color: var(--jade); background: var(--jade-soft); }
.role-pill.disabled { color: #7b8493; background: #eceff3; }
.seat-actions { display: flex; align-items: center; gap: 13px; }
.seat-actions details { position: relative; }
.seat-actions summary { color: var(--cobalt-dark); cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
.seat-actions summary::-webkit-details-marker { display: none; }
.seat-actions details form { width: 260px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; position: absolute; right: 0; top: 28px; z-index: 8; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.secondary.compact { min-height: 38px; padding: 0 13px; }
.danger-action { color: var(--coral); }
.enable-action { color: var(--jade); }
.current-seat { color: var(--muted); font-size: 10px; }
.audit-panel { margin-top: 22px; overflow: hidden; }
.audit-list { display: grid; }
.audit-list > div { min-height: 44px; padding: 9px 22px; display: grid; grid-template-columns: 145px 120px 190px 1fr; gap: 14px; align-items: center; border-top: 1px solid #edf0f5; font-size: 10px; }
.audit-list time, .audit-list span { color: var(--muted); }
.audit-list code { color: var(--cobalt-dark); }
.audit-panel > .muted { padding: 0 22px 20px; }

@media (max-width: 980px) {
  .toolbox-welcome, .translator-thesis { grid-template-columns: 1fr; gap: 24px; }
  .toolbox-summary { width: min(280px, 100%); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card-muted { grid-column: span 2; }
  .translator-intake { grid-template-columns: 1fr; }
  .translator-settings { position: static; }
  .translator-recent { grid-template-columns: 1fr; }
  .page.login-shell { grid-template-columns: 1fr; }
  .login-aside { min-height: 410px; padding: 42px; }
  .login-aside h1 { font-size: 52px; }
  .login-panel { min-height: 600px; }
  .job-row { grid-template-columns: 2fr .8fr 1.3fr 25px; }
  .job-row > :nth-child(3), .job-row > :nth-child(5) { display: none; }
  .form-section { grid-template-columns: 1fr; }
  .section-index { position: static; grid-template-columns: auto 1fr; align-items: baseline; }
  .run-choice { grid-template-columns: 1fr 1fr; }
  .run-choice > div { grid-column: span 2; }
  .proof-rail { grid-template-columns: repeat(4, 1fr); }
  .proof-slot:nth-child(5) { border-left: 0; border-top: 1px solid #42506a; }
  .proof-slot:nth-child(n+6) { border-top: 1px solid #42506a; }
  .detail-grid { grid-template-columns: 1fr; }
  .studio-intake { grid-template-columns: 1fr; }
  .generation-dock { position: static; }
  .analysis-evidence { grid-template-columns: 1fr 1fr; }
  .style-choice-grid { grid-template-columns: 1fr 1fr; }
  .uncertainty-box { grid-column: span 2; }
  .seats-layout { grid-template-columns: 1fr; }
  .seat-create-card { position: static; }
  .audit-list > div { grid-template-columns: 130px 100px 1fr; }
  .audit-list span { display: none; }
}
@media (max-width: 650px) {
  .tool-grid, .localized-grid { grid-template-columns: 1fr; }
  .toolbox-welcome { min-height: auto; margin-bottom: 28px; padding: 28px 24px; border-radius: 17px; }
  .toolbox-welcome h1 { font-size: 40px; }
  .toolbox-summary { min-width: 0; width: 100%; }
  .tool-catalog-head { align-items: start; flex-direction: column; gap: 5px; }
  .tool-card, .tool-card-muted { min-height: 350px; grid-column: auto; grid-template-rows: 140px 1fr auto; }
  .tool-copy { padding: 22px 22px 17px; }
  .tool-copy h2 { font-size: 25px; }
  .tool-card footer { margin-inline: 22px; }
  .storyboard { width: min(240px, 90%); }
  .storyboard i { height: 42px; }
  .storyboard i:first-child { height: 92px; }
  .localize-demo { transform: scale(.86); }
  .translator-thesis h1 { font-size: 44px; }
  .translator-dropzone { min-height: 360px; padding: 28px 16px; }
  .translator-job-head, .language-bar { align-items: stretch; flex-direction: column; }
  .translator-status > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; }
  .translator-status > div .eyebrow { grid-column: 1; grid-row: 1; }
  .translator-status > div > span { grid-column: 2; grid-row: 1; }
  .translator-status h2 { grid-column: 1 / -1; grid-row: 2; font-size: 23px; }
  .translator-job-actions, .translator-job-actions .primary, .translator-job-actions form, .translator-job-actions button { width: 100%; }
  .language-switch { width: 100%; }
  .language-switch button { flex: 1; }
  .friendly-error { grid-template-columns: 1fr; }
  .error-code { min-height: 150px; font-size: 86px; }
  .error-copy { padding: 32px 24px; }
  .topbar { padding: 0 16px; }
  .operator, .mode-badge { display: none; }
  .page { width: min(100% - 28px, 1380px); padding-top: 34px; }
  .page-heading.split, .detail-heading { align-items: stretch; flex-direction: column; }
  .page-heading.split .primary, .detail-actions .primary { width: 100%; }
  .detail-actions form { width: 100%; }
  .detail-actions, .task-controls { width: 100%; justify-items: stretch; justify-content: stretch; }
  .detail-actions .secondary { width: 100%; }
  .control-cost-note { max-width: none; text-align: left; }
  .job-row { grid-template-columns: 1fr 24px; padding: 16px; }
  .job-row > :not(.job-name):not(.row-arrow) { display: none; }
  .job-row-head { display: none; }
  .login-aside { min-height: 360px; padding: 28px; }
  .login-aside h1 { font-size: 43px; }
  .mini-flow { display: none; }
  .login-panel { min-height: 560px; padding: 20px; }
  .login-card { padding: 28px; }
  .form-section, .run-choice, .status-board, .evidence-panel, .results-panel { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .run-choice { grid-template-columns: 1fr; }
  .run-choice > div { grid-column: span 1; }
  .proof-rail { grid-template-columns: repeat(2, 1fr); }
  .proof-slot:nth-child(odd) { border-left: 0; }
  .proof-slot:nth-child(n+3) { border-top: 1px solid #42506a; }
  .status-copy { flex-wrap: wrap; }
  .title-line { align-items: start; flex-direction: column; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-heading { grid-template-columns: 1fr; }
  .studio-heading .back-link { grid-column: span 1; }
  .workflow-strip { grid-template-columns: repeat(2, 1fr); }
  .workflow-strip span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .workflow-strip span:nth-child(4) { border-top: 1px solid var(--line); }
  .studio-upload { min-height: 310px; padding: 28px; }
  .hint-fields { grid-template-columns: 1fr; }
  .ai-contract { grid-template-columns: auto 1fr; }
  .contract-rule { grid-column: span 2; padding: 12px 0 0; border-left: 0; border-top: 1px solid #cad5ef; }
  .analysis-loading { padding: 40px 22px; grid-template-columns: 1fr; text-align: center; }
  .analysis-review-head { flex-direction: column; }
  .analysis-evidence, .confirmation-grid { grid-template-columns: 1fr; }
  .uncertainty-box, .confirmation-grid .span-2 { grid-column: span 1; }
  .confirmation-form > .primary { width: 100%; }
  .seat-legend { min-width: 0; }
  .seat-row { grid-template-columns: 42px 1fr; }
  .seat-actions { grid-column: span 2; justify-content: flex-end; }
  .seat-actions details form { left: 0; right: auto; }
  .audit-list > div { grid-template-columns: 1fr; gap: 3px; }
  .developer-entry { grid-template-columns: 44px 1fr; }
  .developer-entry i { grid-column: 2; }
}
@media (max-width: 980px) {
  .access-hero { grid-template-columns: 1fr; gap: 34px; }
  .access-contract { display: grid; grid-template-columns: repeat(3, 1fr); }
  .access-contract span { min-height: 92px; border-top: 0; border-left: 1px solid var(--line); }
  .access-contract span:first-child { border-left: 0; }
  .access-layout { grid-template-columns: 1fr; }
  .prompt-dock { position: static; grid-template-columns: 1fr 1fr; }
  .copy-status { grid-column: span 2; }
}
@media (max-width: 650px) {
  .page.access-shell { width: min(100% - 28px, 1180px); padding-top: 14px; }
  .access-nav { min-height: 54px; }
  .access-brand small { display: none; }
  .access-hero { padding: 45px 0 30px; }
  .access-hero h1 { font-size: 43px; }
  .access-contract { grid-template-columns: 1fr; }
  .access-contract span { min-height: 70px; border-left: 0; border-top: 1px solid var(--line); }
  .access-steps article { min-height: 0; padding: 24px 20px; grid-template-columns: 52px 1fr; gap: 12px; }
  .access-steps article::before { left: 43px; }
  .step-no { width: 42px; height: 42px; }
  .access-steps h2 { font-size: 19px; }
  .prompt-dock { grid-template-columns: 1fr; }
  .copy-status { grid-column: span 1; }
  .access-stop { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
