/* User workbench refresh: quiet editorial tooling, explicit hierarchy, no decorative effects. */
:root {
  color-scheme: light;
  --canvas: #f3f5f2;
  --surface: #ffffff;
  --surface-subtle: #f8faf8;
  --ink: #182320;
  --muted: #5f6f69;
  --line: #d7dfda;
  --line-strong: #b9c9c2;
  --accent: #236d63;
  --accent-deep: #19564f;
  --accent-soft: #e6f0ed;
  --warn: #806228;
  --warn-soft: #f7f0df;
  --danger: #9c3c34;
  --radius: 10px;
}

html { background: var(--canvas); }
body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select { font: inherit; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.file-card:focus-within {
  outline: 3px solid rgba(35, 109, 99, .22);
  outline-offset: 2px;
}

.topbar {
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .98);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(24, 35, 32, .03);
  backdrop-filter: none;
}
.brand { gap: 12px; font-size: 16px; letter-spacing: 0; }
.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.header-actions { gap: 16px; }
.api-state { font-size: 12px; }
.state-dot { width: 8px; height: 8px; }
.header-auth-button {
  border-radius: 7px;
  background: var(--ink);
  padding: 10px 15px;
  letter-spacing: .01em;
}
.header-auth-button:hover,
.header-auth-button:focus-visible { background: var(--accent-deep); }

.shell {
  max-width: 1500px;
  padding: 54px clamp(20px, 5vw, 72px) 88px;
}
.intro {
  align-items: flex-start;
  gap: 56px;
  padding-bottom: 36px;
  border-bottom-color: var(--line);
}
.intro > div:first-child { max-width: 650px; }
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .18em;
}
.intro h1 {
  max-width: 620px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.intro h1 em { color: var(--accent); }
.lede {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}
.progress {
  min-width: min(430px, 100%);
  padding-top: 9px;
  padding-bottom: 0;
}
.progress-step { gap: 6px; color: #63746e; font-size: 12px; font-weight: 500; }
.progress-step b { color: #63746e; font-size: 11px; font-weight: 650; }
.progress-step.active,
.progress-step.active b { color: var(--accent); }
.progress-line { flex: 1; width: auto; max-width: 48px; margin: 0 12px; background: var(--line); }

#workbench > .credit-banner {
  width: 100%;
  margin: 30px 0 0;
}
.credit-banner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(330px, .95fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid #bdd4cc;
  border-radius: 10px;
  background: var(--accent-soft);
  box-shadow: none;
}
.credit-banner-copy { gap: 14px; }
.credit-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  font-size: 11px;
}
.credit-banner h2 { font-size: 17px; }
.credit-banner p { margin-top: 4px; font-size: 13px; }
.credit-banner .credit-activation { min-width: 0; }
.credit-banner .credit-activation input,
.credit-entry input,
.model-panel select {
  min-height: 42px;
  border-color: var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
}
.credit-banner .credit-activation input { padding: 10px 12px; }
.credit-banner .credit-activation .secondary { min-height: 42px; border-radius: 7px; }
.credit-banner small { font-size: 13px; }

.mode-switch {
  gap: 4px;
  padding-top: 30px;
  border-bottom-color: var(--line);
}
.mode-button {
  padding: 11px 18px 12px;
  border-bottom-width: 2px;
  font-size: 14px;
}
.mode-button:first-child { padding-left: 0; padding-right: 18px; }
.mode-button.active { border-bottom-color: var(--accent); }
.mode-switch > span { font-size: 13px; }

.workspace-grid {
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 52px;
  padding-top: 36px;
}
.upload-column { top: 92px; }
.review-column { padding-right: 10px; }
.section-heading {
  min-height: 36px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom-color: var(--ink);
  font-size: 17px;
}
.section-heading small { font-size: 12px; font-weight: 500; }
.file-card {
  gap: 14px;
  margin: 9px 0;
  padding: 15px 14px;
  border-color: var(--line);
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(24, 35, 32, .02);
}
.file-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.file-index {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #edf2ef;
  color: var(--accent-deep);
  font-size: 11px;
}
.file-index.note { background: var(--warn-soft); color: var(--warn); }
.file-copy strong { font-size: 14px; }
.file-copy small { font-size: 13px; }
.choose { font-size: 13px; }
.file-card.has-file { border-color: #8db7aa; background: #fbfdfc; }
.file-card.has-file .file-index { background: var(--accent); color: #fff; }
.file-card.has-file .choose { color: var(--accent-deep); }
.optional-file { margin-top: 22px; padding-top: 14px; border-top-color: var(--line); }
.template-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.compact { padding: 12px 14px; }
.compact .file-index { width: 28px; height: 28px; }
.privacy-note { margin: 20px 0; font-size: 12px; }
.lock { border-color: #afd0c5; border-radius: 3px; padding: 2px 6px; }
.primary,
.secondary {
  border-radius: 7px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.primary { padding: 13px 20px; background: var(--ink); }
.primary:not(:disabled):hover { background: var(--accent-deep); }
.secondary { padding: 10px 15px; background: var(--accent); }
.secondary:hover:not(:disabled) { background: var(--accent-deep); }
.error { margin: 10px 0; font-size: 13px; }

.empty-state {
  min-height: 280px;
  padding: 42px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(24, 35, 32, .02);
}
.empty-rule { width: 42px; height: 3px; margin-bottom: 24px; background: var(--accent); }
.empty-state h2 { font-size: 23px; line-height: 1.25; }
.empty-state p { max-width: 440px; font-size: 14px; }
.analysis-state {
  padding: 34px 36px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.is-processing .review-column .section-heading small { color: var(--accent); font-weight: 650; }
.is-processing .review-column { border-left: 2px solid var(--accent-soft); padding-left: 18px; }
.loader-bar { height: 5px; border-radius: 2px; }
.loader-bar:after { background: var(--accent); }
.summary-row { padding: 6px 0 20px; margin-bottom: 20px; }
.summary-row div { padding-left: 14px; }
.summary-row strong { color: var(--accent); font-size: 24px; }
.summary-row span { font-size: 12px; }
.feedback-list { gap: 8px; }
.feedback-item {
  gap: 13px;
  padding: 14px;
  border-color: var(--line);
  border-radius: 8px;
}
.feedback-item:hover { border-color: var(--line-strong); }
.feedback-text { font-size: 14px; }
.tag { border-radius: 4px; }
.flow-preview { margin-top: 24px; padding-top: 18px; }
.flow-canvas { border-radius: 8px; background: var(--surface-subtle); }
.flow-node { border-radius: 5px; }
.confirm-row { margin-top: 22px; padding-top: 16px; }
.confirm-row span { font-size: 13px; }
.primary-download { border-radius: 7px; box-shadow: none; }

.auth-modal { padding: 20px; }
.auth-modal-backdrop { background: rgba(24, 35, 32, .46); }
.auth-dialog {
  width: min(500px, 100%);
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(24, 35, 32, .18);
}
.auth-close { border-radius: 6px; }
.auth-dialog-head { gap: 14px; margin-bottom: 26px; }
.auth-dialog-head .credit-badge { width: 40px; height: 40px; }
.auth-dialog-head h2 { font-size: 27px; }
.auth-dialog-head p:not(.auth-kicker) { font-size: 13px; }
.auth-dialog .account-form { gap: 14px; }
.auth-dialog .account-form .auth-field { gap: 7px; color: var(--ink); font-size: 13px; }
.auth-dialog .account-form .auth-field input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface-subtle);
}
.auth-dialog .account-form .auth-field input:focus { border-color: var(--accent); background: var(--surface); }
.auth-dialog .auth-actions { gap: 9px; }
.auth-dialog .auth-actions button { border-radius: 7px; }
.auth-dialog .auth-actions .outline {
  border: 1px solid #9fc2b8;
  background: var(--surface);
  color: var(--accent-deep);
}
.auth-dialog .auth-actions .outline:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.auth-dialog #authState { margin-top: 16px; }

.account-trigger {
  border-color: var(--line);
  border-radius: 9px;
  padding: 5px 10px 5px 5px;
}
.account-trigger:hover,
.account-trigger:focus-visible { border-color: var(--accent); }
.account-avatar { border-radius: 7px; background: var(--accent); }
.account-dropdown {
  top: calc(100% + 8px);
  padding: 6px;
  border-color: var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(24, 35, 32, .14);
}
.account-dropdown-head { padding: 10px 11px 12px; }
.account-quota { padding: 11px; }
.account-logout { border-radius: 6px; }

@media (max-width: 1100px) {
  .workspace-grid { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 34px; }
  .credit-banner { grid-template-columns: 1fr 1fr; }
  .credit-banner > small { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .shell { padding-top: 42px; }
  .intro { display: block; }
  .progress { margin-top: 28px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 38px; }
  .upload-column { position: static; }
  .review-column { max-height: none; overflow: visible; padding-right: 0; }
  .credit-banner { grid-template-columns: 1fr; }
  .credit-banner > small { grid-column: auto; }
  .credit-banner .credit-activation { min-width: 0; }
}

@media (max-width: 560px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-actions { gap: 9px; }
  .api-state { display: none; }
  .header-auth-button { padding: 9px 11px; font-size: 13px; }
  .shell { padding: 34px 16px 60px; }
  .intro h1 { font-size: 35px; }
  .lede { font-size: 14px; }
  .progress { overflow-x: auto; padding-bottom: 4px; }
  .progress-line { min-width: 18px; margin: 0 7px; }
  .credit-banner { padding: 16px; }
  .credit-activation { flex-wrap: wrap; }
  .credit-activation input { flex-basis: 100%; }
  .credit-activation .secondary { flex: 1; }
  .mode-switch { display: flex; flex-wrap: wrap; }
  .mode-switch > span { width: 100%; margin: 5px 0 0; }
  .section-heading { font-size: 16px; }
  .empty-state { min-height: 230px; padding: 32px 24px; }
  .summary-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .summary-row div:nth-child(2) { border-right: 0; }
  .summary-row div:nth-child(3) { padding-left: 0; }
  .flow-canvas { overflow: auto; justify-content: flex-start; }
  .confirm-row { align-items: flex-start; flex-direction: column; }
  .confirm-row button,
  .confirm-row .download { width: 100%; text-align: center; }
  .auth-modal { padding: 12px; }
  .auth-dialog { padding: 28px 20px; }
  .auth-dialog .auth-actions { grid-template-columns: 1fr; }
  .auth-dialog-head h2 { font-size: 24px; }
  .account-trigger { min-width: 0; grid-template-columns: 32px 14px; padding-right: 8px; }
  .account-trigger-copy { display: none; }
  .account-avatar { width: 32px; height: 32px; }
  .account-dropdown { right: -8px; width: min(248px, calc(100vw - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Product polish pass: clearer chrome, account presence, and auth mode preview. */
.topbar {
  background: #eef3f0;
  border-bottom-color: #cbd8d2;
  box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 8px 24px -22px rgba(20,44,38,.8);
}
.api-state { color: var(--ink-soft); font-weight: 600; }
.account-trigger {
  min-width: 176px;
  border-color: #9ab8ae;
  background: #f8fbf9;
  box-shadow: 0 5px 14px -12px rgba(22,67,59,.8);
}
.account-trigger:hover,
.account-trigger:focus-visible { background: #fff; border-color: var(--accent); }
.account-trigger-copy strong { font-size: 14px; }
.account-trigger-copy small { color: var(--ink-soft); font-size: 12px; }
.progress {
  min-width: 390px;
  padding: 14px 18px 15px;
  border: 1px solid #c5d5cf;
  border-radius: 12px;
  background: rgba(248,251,249,.92);
  box-shadow: 0 15px 30px -28px rgba(23,62,54,.9);
}
.intro { align-items: flex-start; }
.auth-dialog {
  width: min(720px,100%);
  padding: 34px 38px 30px;
  background: #f7faf8;
  border-color: #a9c3ba;
  box-shadow: 0 30px 90px rgba(19,42,37,.24);
  animation: auth-dialog-in .22s ease-out;
}
@keyframes auth-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-dialog-head { margin-bottom: 20px; }
.auth-mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 22px;
  border: 1px solid #c5d7cf;
  border-radius: 9px;
  background: #e8f0ec;
}
.auth-mode-tab {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font: 650 14px "Segoe UI","Microsoft YaHei",sans-serif;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-mode-tab:hover { color: var(--accent-deep); }
.auth-mode-tab.active { color: var(--ink); background: #fff; box-shadow: 0 4px 12px -10px rgba(20,57,49,.9); }
.auth-mode-panel { animation: auth-panel-in .2s ease-out; }
@keyframes auth-panel-in { from { opacity: .35; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }
.qr-auth-panel {
  min-height: 224px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px;
  border: 1px solid #c8d8d1;
  border-radius: 10px;
  background: #fff;
}
.qr-placeholder {
  width: 156px;
  height: 156px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 18px;
  border: 8px solid #183b34;
  border-radius: 8px;
  background: #f5f9f7;
  box-shadow: inset 0 0 0 1px #b9d0c7;
  animation: qr-breathe 2.4s ease-in-out infinite;
}
.qr-placeholder i { display: block; border-radius: 2px; background: #2d7769; }
.qr-placeholder i:nth-child(2n) { background: #183b34; }
.qr-placeholder i:nth-child(3n) { background: #aac8bd; }
@keyframes qr-breathe { 50% { box-shadow: 0 0 0 5px rgba(45,119,105,.12), inset 0 0 0 1px #b9d0c7; } }
.qr-auth-panel strong { display: block; margin-bottom: 8px; font-size: 18px; }
.qr-auth-panel p { margin: 0; max-width: 280px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
@media (max-width: 560px) {
  .progress { min-width: 0; }
  .auth-dialog { padding: 28px 20px 24px; }
  .qr-auth-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-dialog, .auth-mode-panel, .qr-placeholder { animation: none; }
}

/* Chrome and first-fold alignment pass based on the annotated product states. */
.topbar {
  height: 64px;
  padding-inline: clamp(18px, 4vw, 56px);
  background: #eaf1ed;
  border-bottom-color: #c3d3cb;
}
.header-actions { gap: 14px; }
.header-auth-button { padding: 11px 18px; }
.shell { padding-top: 38px; }
.intro { gap: 32px; padding-bottom: 30px; align-items: flex-start; }
.progress { align-self: flex-start; margin-top: 1px; }
#workbench { margin-top: 28px; }
.account-trigger {
  min-width: 188px;
  min-height: 44px;
  border-color: #8eafa3;
  background: #f8fbf9;
}
.account-avatar { width: 36px; height: 36px; }
.account-trigger-copy strong { color: #173b33; }
.account-trigger-copy small { color: #52665f; }
.progress-step span { font-size: 13px; font-weight: 600; }
.progress-step b { font-size: 12px; }
.progress-line { max-width: 42px; }

@media (max-width: 900px) {
  .shell { padding-top: 32px; }
  .intro { gap: 26px; }
  #workbench { margin-top: 24px; }
}

@media (max-width: 560px) {
  .topbar { height: 60px; padding-inline: 14px; }
  .header-auth-button { padding: 9px 12px; }
  .shell { padding-top: 28px; }
  .intro { padding-bottom: 24px; }
  .progress { margin-top: 18px; }
  #workbench { margin-top: 20px; }
  .account-trigger { min-width: 0; }
}

/* Legibility pass for annotated explanatory copy. */
.lede {
  max-width: 650px;
  color: #435851;
  font-size: 18px;
  line-height: 1.75;
}
.public-intro p:last-child {
  max-width: 560px;
  color: #435851;
  font-size: 17px;
  line-height: 1.8;
}
.capability-row p {
  color: #435851;
  font-size: 15px;
  line-height: 1.7;
}
.capability-state { font-size: 13px; font-weight: 600; }
.public-process-head { font-size: 17px; }
.public-process-head small { color: #52665f; font-size: 14px; }
.process-cell strong { font-size: 15px; }
.process-cell span { color: #52665f; font-size: 14px; line-height: 1.55; }
@media (max-width: 560px) {
  .lede { font-size: 16px; line-height: 1.7; }
  .public-intro p:last-child { font-size: 15px; }
  .capability-row p { font-size: 14px; }
}

/* Liquid-glass product system: one calm sage palette, translucent hierarchy, solid fallback. */
:root {
  --canvas: #e8f0ec;
  --surface: rgba(255, 255, 255, .72);
  --surface-subtle: rgba(247, 251, 249, .8);
  --surface-muted: rgba(220, 236, 230, .66);
  --ink: #17352f;
  --ink-soft: #3e5c53;
  --muted: #526c63;
  --line: rgba(46, 92, 78, .18);
  --line-strong: rgba(38, 79, 67, .31);
  --accent: #1b7568;
  --accent-deep: #12594f;
  --accent-soft: rgba(211, 236, 227, .86);
  --focus-ring: rgba(27, 117, 104, .34);
}
html,
body { background: var(--canvas); }
body {
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(circle at 8% 6%, rgba(255,255,255,.8), transparent 31%),
    radial-gradient(circle at 92% 18%, rgba(185,220,208,.43), transparent 30%),
    linear-gradient(135deg, #edf4f0 0%, #e6efeb 52%, #edf4f0 100%);
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background: radial-gradient(ellipse at 70% 42%, rgba(255,255,255,.56), transparent 42%);
  animation: ambient-shift 18s ease-in-out infinite alternate;
}
@keyframes ambient-shift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); }
}
.topbar {
  height: 70px;
  background: rgba(238, 246, 242, .78);
  border-bottom: 1px solid rgba(53, 102, 87, .22);
  box-shadow: 0 12px 30px -26px rgba(20, 61, 51, .85);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.brand { font-size: 17px; color: var(--ink); }
.brand-mark { box-shadow: 0 6px 14px -10px rgba(18,89,79,.9); }
.api-state { color: var(--ink-soft); font-size: 13px; }
.header-auth-button {
  border: 1px solid rgba(16, 72, 61, .1);
  background: var(--ink);
  box-shadow: 0 8px 18px -15px rgba(16, 62, 52, .9);
}
.header-auth-button:hover,
.header-auth-button:focus-visible { background: var(--accent-deep); box-shadow: 0 12px 22px -15px rgba(16, 62, 52, .95); }
.shell { padding-top: 46px; }
.intro {
  gap: 40px;
  padding-bottom: 32px;
  border-bottom-color: rgba(47, 91, 78, .2);
}
.intro h1 { color: var(--ink); }
.lede { color: var(--ink-soft); }
.progress {
  border-color: rgba(53, 102, 87, .25);
  background: rgba(250, 253, 251, .72);
  box-shadow: 0 16px 34px -28px rgba(24, 70, 58, .9);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.public-showcase {
  border-bottom-color: rgba(47, 91, 78, .2);
  background: rgba(245, 251, 248, .38);
  border-radius: 16px;
  padding-inline: clamp(18px, 2.8vw, 34px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 18px 34px -32px rgba(20, 67, 55, .8);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}
.public-intro h2 { color: var(--ink); }
.public-intro p:last-child,
.capability-row p,
.process-cell span { color: var(--ink-soft); }
.capability-list { border-top-color: rgba(47, 91, 78, .25); }
.capability-row { border-bottom-color: rgba(47, 91, 78, .17); }
.capability-row:hover,
.capability-row:focus-within { background: rgba(255,255,255,.42); }
.process-track { border-color: rgba(47, 91, 78, .2); background: rgba(255,255,255,.48); border-radius: 10px; overflow: hidden; }
.process-cell { border-right-color: rgba(47, 91, 78, .17); }
.process-cell:hover,
.process-cell:focus-within { background: rgba(219, 237, 230, .55); }
#workbench { margin-top: 22px; }
.credit-banner,
.empty-state,
.analysis-state,
.result-notice,
.file-card,
.feedback-item,
.flow-canvas {
  background: var(--surface);
  border-color: rgba(47, 91, 78, .22);
  box-shadow: 0 15px 32px -28px rgba(22, 70, 58, .82), inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.credit-banner { border-left-color: var(--accent); }
.file-card:hover,
.file-card:focus-within { border-color: var(--accent); background: rgba(255,255,255,.88); }
.empty-state { background: rgba(239, 247, 243, .64); }
.section-heading { border-bottom-color: var(--line-strong); }
.section-heading small,
.privacy-note,
.confirm-row span { color: var(--ink-soft); }
.mode-button.active { color: var(--accent-deep); border-bottom-color: var(--accent); }
.auth-modal-backdrop {
  background: rgba(19, 47, 41, .35);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
}
.auth-dialog {
  background: rgba(247, 252, 249, .86);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 34px 90px rgba(20, 57, 48, .26), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}
.auth-dialog-head p:not(.auth-kicker),
.qr-auth-panel p { color: var(--ink-soft); }
.auth-mode-switch { background: rgba(216, 235, 227, .72); border-color: rgba(57, 111, 94, .2); }
.auth-mode-tab.active { background: rgba(255,255,255,.88); color: var(--ink); }
.qr-auth-panel { background: rgba(255,255,255,.62); }
.account-trigger { background: rgba(255,255,255,.8); }
.account-trigger-copy small { color: var(--ink-soft); }
@supports not ((backdrop-filter: blur(1px))) {
  .topbar { background: #eaf2ee; }
  .progress, .public-showcase, .credit-banner, .empty-state, .analysis-state, .result-notice, .file-card, .feedback-item, .flow-canvas, .auth-dialog, .qr-auth-panel { background: #f7fbf9; }
  .auth-modal-backdrop { background: rgba(19,47,41,.5); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Reference palette pass: blue-white glass with a restrained lilac atmosphere. */
:root {
  --canvas: #edf3ff;
  --surface: rgba(255, 255, 255, .76);
  --surface-subtle: rgba(249, 251, 255, .82);
  --surface-muted: rgba(224, 233, 251, .68);
  --ink: #17243b;
  --ink-soft: #43516b;
  --muted: #5b6880;
  --line: rgba(64, 94, 145, .2);
  --line-strong: rgba(52, 82, 134, .34);
  --accent: #3568d4;
  --accent-deep: #254aa7;
  --accent-soft: rgba(220, 230, 252, .86);
  --focus-ring: rgba(53, 104, 212, .35);
}
html,
body { background: var(--canvas); }
body {
  background-image:
    radial-gradient(circle at 9% 6%, rgba(255,255,255,.9), transparent 33%),
    radial-gradient(circle at 88% 17%, rgba(199,211,255,.62), transparent 34%),
    linear-gradient(135deg, #f1f5ff 0%, #ebf1ff 52%, #f6f2ff 100%);
}
body::before {
  background: radial-gradient(ellipse at 68% 40%, rgba(255,255,255,.64), transparent 43%);
}
.topbar {
  background: rgba(243, 247, 255, .8);
  border-bottom-color: rgba(68, 96, 151, .22);
  box-shadow: 0 12px 30px -26px rgba(34, 61, 115, .86);
}
.brand { color: var(--ink); }
.brand-mark { background: var(--ink); box-shadow: 0 6px 14px -10px rgba(37,74,167,.9); }
.api-state { color: var(--ink-soft); }
.header-auth-button { background: var(--ink); box-shadow: 0 8px 18px -15px rgba(37,74,167,.9); }
.header-auth-button:hover,
.header-auth-button:focus-visible { background: var(--accent-deep); }
.intro h1 { color: var(--ink); }
.lede { color: var(--ink-soft); }
.progress {
  border-color: rgba(72, 102, 163, .26);
  background: rgba(255,255,255,.7);
  box-shadow: 0 16px 34px -28px rgba(45, 77, 138, .86);
}
.public-showcase {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: clamp(22px, 4vw, 48px);
  border-bottom-color: rgba(64, 94, 145, .2);
  background: rgba(248, 251, 255, .46);
  border-color: rgba(90, 117, 175, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 18px 34px -32px rgba(41, 71, 126, .78);
}
.public-intro,
.capability-list,
.capability-row,
.capability-row > div,
.public-process,
.process-track,
.process-cell { min-width: 0; }
.public-intro h2 { font-size: clamp(22px, 2.6vw, 32px); }
.public-intro p:last-child,
.capability-row p,
.process-cell span { color: var(--ink-soft); overflow-wrap: anywhere; }
.capability-list { border-top-color: rgba(64, 94, 145, .26); }
.capability-row { grid-template-columns: 34px minmax(0, 1fr) minmax(84px, auto); border-bottom-color: rgba(64, 94, 145, .17); }
.capability-row:hover,
.capability-row:focus-within { background: rgba(255,255,255,.56); }
.process-track { border-color: rgba(64, 94, 145, .2); background: rgba(255,255,255,.55); }
.process-cell { border-right-color: rgba(64, 94, 145, .17); }
.process-cell:hover,
.process-cell:focus-within { background: rgba(221, 231, 253, .6); }
.credit-banner,
.empty-state,
.analysis-state,
.result-notice,
.file-card,
.feedback-item,
.flow-canvas {
  background: var(--surface);
  border-color: rgba(64, 94, 145, .22);
  box-shadow: 0 15px 32px -28px rgba(41, 71, 126, .78), inset 0 1px 0 rgba(255,255,255,.72);
}
.empty-state { background: rgba(239, 245, 255, .7); }
.section-heading { border-bottom-color: var(--line-strong); }
.section-heading small,
.privacy-note,
.confirm-row span { color: var(--ink-soft); }
.mode-button.active { color: var(--accent-deep); border-bottom-color: var(--accent); }
.auth-modal-backdrop { background: rgba(28, 46, 83, .34); }
.auth-dialog {
  background: rgba(249, 251, 255, .88);
  border-color: rgba(255,255,255,.82);
  box-shadow: 0 34px 90px rgba(40, 66, 124, .25), inset 0 1px 0 rgba(255,255,255,.9);
}
.auth-mode-switch { background: rgba(224, 233, 252, .76); border-color: rgba(70, 102, 165, .2); }
.auth-mode-tab.active { background: rgba(255,255,255,.92); color: var(--ink); }
.qr-auth-panel { background: rgba(255,255,255,.68); }
.qr-placeholder { border-color: #203c82; background: #f4f7ff; box-shadow: inset 0 0 0 1px #bdcdf2; }
.qr-placeholder i { background: #3568d4; }
.qr-placeholder i:nth-child(2n) { background: #203c82; }
.qr-placeholder i:nth-child(3n) { background: #aebfe9; }
.account-trigger { background: rgba(255,255,255,.84); border-color: rgba(70, 102, 165, .34); }
.account-trigger-copy strong { color: #203965; }

@media (max-width: 1040px) {
  .public-showcase { grid-template-columns: 1fr; }
  .public-process { grid-column: auto; }
}
@media (max-width: 560px) {
  .capability-row { grid-template-columns: 30px minmax(0, 1fr); }
}
@supports not ((backdrop-filter: blur(1px))) {
  .topbar { background: #f0f5ff; }
  .progress, .public-showcase, .credit-banner, .empty-state, .analysis-state, .result-notice, .file-card, .feedback-item, .flow-canvas, .auth-dialog, .qr-auth-panel { background: #f8faff; }
}

/* Review panel refinement: a compact, cool-toned ready state instead of a blank frame. */
.empty-state {
  min-height: 248px;
  padding: 30px 34px;
  justify-content: center;
  background: rgba(239, 245, 255, .84);
  border: 1px solid rgba(75, 108, 178, .24);
  box-shadow: 0 18px 34px -30px rgba(47, 79, 143, .82), inset 0 1px 0 rgba(255,255,255,.88);
}
.empty-state-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 22px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}
.empty-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(53,104,212,.12);
}
.empty-state .empty-rule { margin-bottom: 18px; background: var(--accent); }
.empty-state h2 { max-width: 22ch; font-size: clamp(22px, 2.4vw, 30px); }
.empty-state p { max-width: 46ch; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
@media (max-width: 900px) {
  .empty-state { min-height: 220px; }
}
@media (max-width: 560px) {
  .review-column { padding-bottom: 0; }
  .empty-state { min-height: 204px; padding: 26px 24px; }
  .empty-state-meta { margin-bottom: 16px; }
  .empty-state p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .qr-placeholder { animation: none; }
}

/* Product refinement: denser hierarchy, state-led feedback, and quieter depth. */
:root {
  --ink-soft: #455650;
  --surface-muted: #eef4f1;
  --accent-wash: #dcebe6;
  --shadow-soft: 0 10px 26px -22px rgba(24, 35, 32, .42);
}

.api-state { color: var(--ink-soft); }
.api-state.is-offline { color: var(--danger); }
.state-dot.offline { background: var(--danger); }

.shell { padding-top: 44px; }
.intro { gap: 48px; padding-bottom: 32px; }
.intro h1 {
  max-width: 570px;
  font-size: clamp(32px, 3.65vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}
.lede { max-width: 600px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.progress {
  min-width: min(420px, 100%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.progress-step { color: var(--ink-soft); }
.progress-line { background: var(--line-strong); }

.credit-banner {
  position: relative;
  overflow: hidden;
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.credit-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.credit-banner-copy { padding-left: 2px; }
.credit-banner p { color: var(--ink-soft); }
.credit-banner > small {
  color: var(--ink-soft);
  font-weight: 600;
}
.credit-banner > small.is-loading { color: var(--warn); }
.credit-banner > small.is-success { color: var(--accent-deep); }
.credit-banner > small.is-error { color: var(--danger); }

.mode-switch { padding-top: 26px; }
.mode-button { color: var(--ink-soft); }
.mode-switch > span { color: var(--ink-soft); }

.workspace-grid { gap: 42px; padding-top: 32px; }
.section-heading {
  min-height: 38px;
  border-bottom-color: var(--line-strong);
  letter-spacing: .01em;
}
.section-heading small { color: var(--ink-soft); }

.file-card {
  min-height: 68px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.file-card:hover,
.file-card:focus-within { box-shadow: 0 12px 24px -22px rgba(35, 109, 99, .7); }
.file-card.has-file { border-color: #76a99c; background: #f7fbf9; }
.file-card.has-file .file-copy small { color: var(--accent-deep); font-weight: 600; }
.file-card.has-file .choose { font-size: 0; }
.file-card.has-file .choose::after { content: "已选择"; font-size: 13px; }
.privacy-note { color: var(--ink-soft); }

.primary:not(:disabled),
.secondary:not(:disabled) { box-shadow: 0 6px 15px -13px rgba(24, 35, 32, .7); }
.primary:not(:disabled):hover,
.secondary:hover:not(:disabled) { transform: translateY(-1px); }
.primary:focus-visible,
.secondary:focus-visible { outline: 3px solid rgba(35, 109, 99, .24); outline-offset: 3px; }

.empty-state {
  background: var(--surface-muted);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.empty-state p,
.analysis-state p,
.confirm-row span { color: var(--ink-soft); }
.analysis-state {
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.loader-bar { background: var(--accent-wash); }
.is-processing .review-column .section-heading small { letter-spacing: .01em; }

.has-result .review-column > .section-heading small { color: var(--accent-deep); font-weight: 650; }
.result-notice { border-left: 3px solid var(--warn); }
.summary-row {
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  border-bottom-color: var(--line-strong);
}
.summary-row div { border-right-color: var(--line); }
.summary-row span { color: var(--ink-soft); }
.feedback-item { box-shadow: var(--shadow-soft); }
.feedback-item.processed { background: var(--surface-muted); }
.manual-marker { color: var(--ink-soft); background: var(--surface-muted); }
.note-form > label,
.flow-title small,
.flow-note { color: var(--ink-soft); }
.confirm-row { border-top-color: var(--line-strong); }

@media (max-width: 900px) {
  .progress { min-width: 0; }
  .workspace-grid { gap: 34px; }
}

@media (max-width: 560px) {
  .shell { padding-top: 32px; }
  .intro h1 { font-size: 33px; }
  .progress { padding: 10px 11px; }
  .credit-banner { box-shadow: none; }
  .file-card { min-height: 64px; }
  .summary-row { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .file-card:hover,
  .primary:not(:disabled):hover,
  .secondary:hover:not(:disabled),
  .primary-download:hover { transform: none; }
}

/* Product surface refinement: public orientation, visible workflow, and purposeful motion. */
:root {
  --ink-faint: #687872;
  --surface-raised: #fbfcfb;
  --accent-line: #86b6aa;
  --focus-ring: rgba(35, 109, 99, .3);
}

.topbar {
  transition: box-shadow .2s ease, border-color .2s ease;
}
.topbar:focus-within {
  border-bottom-color: var(--accent-line);
  box-shadow: 0 4px 18px -18px rgba(24, 35, 32, .7);
}
.brand { transition: color .18s ease; }
.brand:hover { color: var(--accent-deep); }
.header-auth-button {
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.header-auth-button:hover,
.header-auth-button:focus-visible {
  box-shadow: 0 7px 16px -13px rgba(24, 35, 32, .75);
  transform: translateY(-1px);
}
.header-auth-button:active { transform: translateY(0); }

.progress-step {
  position: relative;
  transition: color .2s ease, transform .2s ease;
}
.progress-step b {
  transition: color .2s ease, background-color .2s ease;
}
.progress-step.current { color: var(--accent); transform: translateY(-1px); }
.progress-step.complete { color: var(--accent-deep); }
.progress-step.current b,
.progress-step.complete b { color: var(--accent-deep); }
.progress-step.current b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.progress-line { transition: background-color .25s ease; }
.progress-line.complete { background: var(--accent); }

.public-showcase {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  column-gap: clamp(32px, 6vw, 78px);
  row-gap: 30px;
  padding: 42px 0 38px;
  border-bottom: 1px solid var(--line-strong);
}
.public-intro { max-width: 510px; }
.public-kicker {
  margin: 0 0 15px;
  color: var(--accent);
  font: 650 10px/1.2 "Cascadia Code", monospace;
  letter-spacing: .17em;
}
.public-intro h2 {
  max-width: 500px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.public-intro p:last-child {
  max-width: 470px;
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}
.capability-list {
  border-top: 1px solid var(--line-strong);
}
.capability-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease, padding-left .18s ease, border-color .18s ease;
}
.capability-row:hover,
.capability-row:focus-within {
  padding-left: 8px;
  border-bottom-color: var(--accent-line);
  background: var(--surface-raised);
}
.capability-index {
  color: var(--accent);
  font: 650 11px/1.5 "Cascadia Code", monospace;
}
.capability-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.capability-row p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.capability-state {
  align-self: center;
  color: var(--accent-deep);
  font-size: 12px;
  white-space: nowrap;
}
.public-process {
  grid-column: 1 / -1;
  padding-top: 25px;
  border-top: 1px solid var(--line-strong);
}
.public-process-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.public-process-head small {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}
.process-cell {
  min-height: 104px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  transition: background-color .18s ease, color .18s ease;
}
.process-cell:last-child { border-right: 0; }
.process-cell:hover,
.process-cell:focus-within { background: var(--surface-muted); }
.process-cell b {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 650 11px/1.2 "Cascadia Code", monospace;
}
.process-cell strong,
.process-cell span { display: block; }
.process-cell strong { font-size: 14px; }
.process-cell span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.credit-banner,
.empty-state,
.analysis-state,
.result-notice,
.file-card,
.feedback-item {
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.credit-banner:hover { border-color: var(--accent-line); }
.credit-banner p,
.credit-banner > small,
.mode-switch > span,
.section-heading small,
.file-copy small,
.template-label,
.privacy-note,
.empty-state p,
.analysis-state p,
.confirm-row span,
.flow-title small,
.flow-note {
  font-size: 14px;
}
.credit-banner > small { line-height: 1.5; }
.mode-button {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.mode-button:hover { color: var(--accent-deep); background: var(--surface-muted); }
.mode-button.active { font-weight: 700; }
.file-card { position: relative; overflow: hidden; }
.file-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .22s ease;
}
.file-card:hover::after,
.file-card:focus-within::after,
.file-card.has-file::after { width: 100%; }
.file-card.has-file { animation: file-confirmed .28s ease-out; }
@keyframes file-confirmed {
  from { background-color: var(--accent-soft); }
  to { background-color: #f7fbf9; }
}
.primary:not(:disabled),
.secondary:not(:disabled),
.primary-download {
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.primary:not(:disabled):hover,
.secondary:not(:disabled):hover,
.primary-download:hover {
  box-shadow: 0 9px 20px -15px rgba(24, 35, 32, .8);
}
.primary:active:not(:disabled),
.secondary:active:not(:disabled),
.primary-download:active { transform: translateY(1px); }
.analysis-state { animation: state-enter .24s ease-out; }
.result-notice { animation: state-enter .24s ease-out; }
@keyframes state-enter {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-bar::after { box-shadow: 0 0 0 1px rgba(35, 109, 99, .05); }

@media (max-width: 900px) {
  .public-showcase { grid-template-columns: 1fr; }
  .public-process { grid-column: auto; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-cell:nth-child(2) { border-right: 0; }
  .process-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .public-showcase { padding: 28px 0 30px; row-gap: 24px; }
  .public-intro h2 { font-size: 25px; }
  .public-intro p:last-child { font-size: 14px; }
  .capability-row { grid-template-columns: 30px minmax(0, 1fr); gap: 11px; }
  .capability-state { grid-column: 2; justify-self: start; margin-top: -5px; }
  .public-process-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .process-track { grid-template-columns: 1fr; }
  .process-cell,
  .process-cell:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-cell:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .brand,
  .header-auth-button,
  .progress-step,
  .progress-step b,
  .progress-line,
  .capability-row,
  .process-cell,
  .credit-banner,
  .empty-state,
  .analysis-state,
  .result-notice,
  .file-card,
  .feedback-item,
  .mode-button,
  .primary,
  .secondary,
  .primary-download,
  .file-card::after { transition: none; }
  .file-card.has-file,
  .analysis-state,
  .result-notice { animation: none; }
  .header-auth-button:hover,
  .capability-row:hover,
  .file-card:hover,
  .file-card:focus-within,
  .primary:not(:disabled):hover,
  .secondary:hover:not(:disabled),
  .primary-download:hover { transform: none; }
}

/* Final layout guardrails: keep showcase content inside its columns and let the
   review surface read as one cool, compact product state. */
.public-showcase { width: 100%; min-width: 0; }
.public-intro,
.capability-list,
.capability-row,
.capability-row > div,
.public-process,
.process-track,
.process-cell { min-width: 0; }
.capability-row { grid-template-columns: 34px minmax(0, 1fr) minmax(84px, 118px); }
.capability-state {
  justify-self: end;
  text-align: right;
  max-width: 118px;
  white-space: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.review-column {
  min-width: 0;
  padding-bottom: 10px;
  border-radius: 14px;
  background: rgba(231, 239, 255, .28);
}
.empty-state {
  background: rgba(239, 245, 255, .84);
  border-color: rgba(75, 108, 178, .24);
  box-shadow: 0 18px 34px -30px rgba(47, 79, 143, .82), inset 0 1px 0 rgba(255,255,255,.88);
}
.shell { max-width: 1700px; }
.public-showcase { grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); column-gap: clamp(40px, 5vw, 72px); background: transparent; border-radius: 0; box-shadow: none; padding-inline: clamp(20px, 2.4vw, 40px); }
.capability-list { padding-inline: clamp(12px, 1.4vw, 24px); margin-inline: 10px 28px; }
.capability-row { padding-inline: 14px; border-radius: 10px; }
.capability-row:hover,
.capability-row:focus-within { padding-left: 14px; background: rgba(255,255,255,.74); box-shadow: inset 0 0 0 1px rgba(80, 117, 190, .16), 0 8px 18px -18px rgba(45, 82, 155, .7); }
.account-menu-action { display:block; width:100%; padding:10px 0; border:0; border-top:1px solid rgba(80,117,190,.16); background:transparent; color:var(--ink); text-align:left; cursor:pointer; font:inherit; }
.account-menu-action:hover { color:var(--accent-deep); background:rgba(232,240,255,.72); }
.account-nav{display:flex;align-items:center;gap:4px;margin-right:8px}.account-nav-link{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--ink-soft);padding:8px 10px;cursor:pointer;font:600 13px/1.2 inherit;transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease}.account-nav-link:hover,.account-nav-link:focus-visible{color:var(--accent-deep);background:rgba(255,255,255,.56);transform:translateY(-1px);outline:none}.account-nav-link.active{color:var(--accent-deep);border-bottom-color:var(--accent)}
.account-nav{position:fixed;left:24px;top:104px;z-index:4;display:grid;gap:6px;width:190px;padding:14px 10px;border:1px solid rgba(80,117,190,.16);border-radius:14px;background:rgba(248,251,255,.78);box-shadow:0 16px 32px -24px rgba(41,71,126,.8);backdrop-filter:blur(14px)}.account-nav-link{text-align:left;border:0;border-radius:9px;padding:12px 14px}.account-nav-link.active,.account-nav-link:hover{background:rgba(220,230,252,.82)}.help-rail{position:fixed;right:24px;top:104px;z-index:3;width:236px;padding:18px;border:1px solid rgba(80,117,190,.16);border-radius:14px;background:rgba(248,251,255,.8);box-shadow:0 16px 32px -24px rgba(41,71,126,.8);backdrop-filter:blur(14px)}.help-rail h2{margin:0 0 14px;font-size:16px;color:var(--ink)}.help-rail>p{margin:0 0 15px;color:var(--ink-soft);font-size:12px;line-height:1.6}.help-rail-item{display:grid;gap:2px;padding:11px 0;border-top:1px solid rgba(80,117,190,.14)}.help-rail-item strong{font-size:13px}.help-rail-item span{font-size:11px;color:var(--muted)}
@media(max-width:1100px){.account-nav{left:12px;width:154px}.help-rail{right:12px;width:190px}.shell{padding-inline:190px}}
@media(max-width:820px){.account-nav{position:static;display:flex;width:auto;margin:0 16px 8px;padding:6px;overflow:auto}.help-rail{display:none}.shell{padding-inline:16px}}
.account-nav-link::before{display:inline-block;width:20px;margin-right:7px;color:var(--accent);font-size:14px;text-align:center}.account-nav-link:nth-child(1)::before{content:'▣'}.account-nav-link:nth-child(2)::before{content:'✎'}.account-nav-link:nth-child(3)::before{content:'◷'}
.authenticated-layout .shell{max-width:none;margin-left:230px;margin-right:270px;padding-left:24px;padding-right:24px}.authenticated-layout .intro{gap:32px}.authenticated-layout .intro h1{font-size:clamp(34px,4.2vw,58px)}
.authenticated-layout .account-nav{top:68px;bottom:0;left:0;width:220px;height:auto;margin:0;padding:28px 16px;border-radius:0;border-right:1px solid rgba(80,117,190,.18);align-content:start;box-shadow:8px 0 24px -26px rgba(41,71,126,.65)}
.authenticated-layout .mode-switch{display:none}
@media(max-width:1100px){.authenticated-layout .shell{margin-left:178px;margin-right:210px;padding-inline:18px}}
@media(max-width:820px){.authenticated-layout .shell{margin:0;padding-inline:16px}.authenticated-layout .account-nav{top:auto;bottom:auto;height:auto;width:auto;border-right:0}}
.account-nav-group{border-top:1px solid rgba(80,117,190,.16);margin-top:8px;padding-top:8px}.account-nav-group-toggle{width:100%;display:flex;justify-content:space-between}.account-nav-group-toggle::before{content:'♙'!important}.account-nav-group-toggle span{margin-left:auto;color:var(--muted);transition:transform .18s ease}.account-nav-group-toggle[aria-expanded=false] span{transform:rotate(-90deg)}.account-nav-submenu{display:grid;gap:3px;margin-top:3px;padding-left:10px}.account-nav-submenu .account-nav-link{font-size:12px;padding:9px 12px}.account-dropdown .account-menu-action{display:none}
.history-panel { max-width:1080px; margin:0 auto; padding:44px 0 80px; }
.history-panel-head { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; border-bottom:1px solid var(--line-strong); padding-bottom:24px; }
.history-panel-head h2 { margin:0; color:var(--ink); font-size:clamp(28px,4vw,44px); letter-spacing:-.04em; }
.history-panel-head p:last-child { margin:10px 0 0; color:var(--ink-soft); font-size:15px; }
.history-list { display:grid; gap:12px; margin-top:22px; }
.history-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; gap:18px; align-items:center; padding:18px 20px; border:1px solid rgba(90,117,175,.2); border-radius:12px; background:rgba(248,251,255,.76); box-shadow:0 12px 28px -26px rgba(41,71,126,.8); }
.history-item strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.history-item > span { color:var(--ink-soft); font-size:13px; }
.history-item .primary-download { padding:8px 12px; }
@media (max-width:700px) { .history-panel { padding-inline:16px; } .history-panel-head { align-items:flex-start; flex-direction:column; } .history-item { grid-template-columns:1fr auto; gap:8px 12px; } .history-item > span:nth-child(2), .history-item > span:nth-child(3) { grid-column:1; } .history-item > div { grid-column:2; grid-row:1 / span 3; } }
@media (max-width: 560px) {
  .capability-row { grid-template-columns: 30px minmax(0, 1fr); }
  .capability-state { max-width: none; justify-self: start; text-align: left; }
  .capability-list { margin-inline: 0; }
  .review-column { padding-bottom: 0; }
}

/* Authenticated workspace navigation: clear product areas above account tools. */
.authenticated-layout .account-nav { gap: 8px; }
.account-nav-section-label {
  display: block;
  padding: 0 14px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.authenticated-layout .feature-nav-group {
  margin-top: 12px;
  padding-top: 15px;
}
.authenticated-layout .personal-nav-group {
  margin-top: 28px;
  padding-top: 18px;
}
.feature-nav-group .account-nav-link,
.personal-nav-group .account-nav-link { width: 100%; }
.account-nav-link#homeNav::before { content: '⌂'; }
.account-nav-link#workbenchNav::before { content: '▣'; }
.account-nav-link#feedbackNav::before { content: '✎'; }
.account-nav-link#cardNav::before { content: '▤'; }
.account-nav-link#historyNav::before { content: '◷'; }
.account-nav-link#passwordNav::before { content: '⚿'; }

/* Brand lockup: use the supplied transparent horizontal mark and keep the descriptor readable. */
.brand { gap: 14px; }
.brand-logo { width: auto; height: 54px; flex: 0 0 auto; display: block; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; line-height: 1.12; min-width: 0; padding-left: 14px; border-left: 1px solid rgba(31, 49, 82, .18); }
.brand-copy strong, .brand-copy small { font-family: inherit; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand-copy strong, .brand-copy small { color: var(--ink); font-weight: 700; }
.brand-copy small { display: block; padding-left: 2em; }
.brand-slogan { margin: 0 0 12px; color: var(--accent-deep); font-size: 17px; letter-spacing: .12em; }
@media (max-width: 560px) {
  .brand-logo { height: 48px; }
  .brand-copy { padding-left: 10px; }
  .brand-copy strong, .brand-copy small { font-size: 15px; }
  .brand-slogan { font-size: 14px; letter-spacing: .08em; }
}
.authenticated-layout #workbench.card-only .mode-switch,
.authenticated-layout #workbench.card-only .workspace-grid { display: none; }
.authenticated-layout #workbench:not(.card-only) #creditPanel { display: none; }
.authenticated-layout #workbench.card-only #creditPanel { display: grid; }
.authenticated-layout #workbench.card-only #creditPanel { margin-bottom: 36px; }
@media (max-width: 820px) {
  .authenticated-layout .account-nav { align-items: stretch; }
  .authenticated-layout .account-nav-group { flex: 0 0 auto; margin-top: 4px; padding-top: 8px; }
  .authenticated-layout .personal-nav-group { margin-top: 4px; padding-top: 8px; }
  .account-nav-section-label { display: none; }
}

.format-review-item { grid-template-columns: auto minmax(0, 1fr); }
.format-review-item.warning { border-left: 3px solid var(--warn); }
.format-review-item.critical { border-left: 3px solid #a74343; }
.review-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  margin-top: 1px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}
.format-review-item.critical .review-marker {
  color: #8d2f2f;
  border-color: rgba(167, 67, 67, .38);
  background: rgba(255, 236, 236, .7);
}
.history-item > div { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.history-resume { padding: 8px 12px; font-size: 12px; }
