:root {
  --ink: #17211d;
  --muted: #65736d;
  --line: #dfe6df;
  --paper: #f7f4ec;
  --brand: #285f53;
  --danger: #9f2d2f;
  --gold: #b0914f;
  --white: #fff;
  --shadow: 0 14px 36px rgba(23, 33, 29, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; }
textarea { min-height: 110px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 10px 28px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(40, 95, 83, .12);
  box-shadow: 0 10px 26px rgba(23, 33, 29, .035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topnav {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: calc(100vw - 190px);
  overflow: visible;
  padding: 4px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: rgba(247,244,236,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar {
  display: none;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: rgba(23, 33, 29, .74);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.topnav a:hover {
  border-color: rgba(40, 95, 83, .1);
  background: rgba(255,255,255,.64);
  color: var(--brand);
}
.topnav a.active {
  border-color: rgba(40, 95, 83, .12);
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(23, 33, 29, .07);
}
.inline { display: inline; }
.account-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(40, 95, 83, .12);
}
.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 240px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu[open] summary,
.account-menu summary:hover {
  border-color: rgba(40, 95, 83, .14);
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(23, 33, 29, .07);
}
.account-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.account-name {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}
.account-caret {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 168px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(23,33,29,.14);
}
.account-menu-panel form {
  margin: 0;
}
.account-menu-panel a,
.account-menu-panel button {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}
.account-menu-panel a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: #f4f7f5;
  color: var(--brand);
}
.page { max-width: 1180px; margin: 0 auto; padding: 28px; }
.hero {
  min-height: 420px;
  display: grid;
  align-items: center;
}
.hero h1 { max-width: 720px; font-size: 48px; line-height: 1.1; }
.hero p { max-width: 680px; color: var(--muted); }
.pixel-hero {
  position: relative;
  left: 50%;
  display: flex;
  width: 100vw;
  min-height: calc(100vh - 69px);
  margin: -28px 0 -28px;
  transform: translateX(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.92) 0, rgba(247,244,236,.55) 38%, rgba(247,244,236,1) 82%),
    linear-gradient(135deg, #f7f4ec 0%, #e5ded0 52%, #f8f6ef 100%);
  padding: 72px 24px 118px;
  user-select: none;
}
.pixel-hero-canvas,
.pixel-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.pixel-hero-vignette {
  z-index: -1;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(247,244,236,.52) 58%, var(--paper) 100%),
    linear-gradient(180deg, rgba(247,244,236,.78), rgba(247,244,236,.22) 42%, rgba(247,244,236,.85));
  pointer-events: none;
}
.pixel-hero-title {
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.pixel-hero-title h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px 24px;
  width: min(1120px, 100%);
  margin: 0;
  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, rgba(40,95,83,.36) 20%, rgba(176,145,79,.42) 38%, #ffffff 56%, rgba(40,95,83,.58) 76%, #ffffff 100%);
  background-size: 210% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.2px rgba(40, 95, 83, .34);
  filter: drop-shadow(0 18px 34px rgba(23,33,29,.28)) drop-shadow(0 4px 9px rgba(176,145,79,.22));
  font-size: clamp(58px, 13vw, 156px);
  font-weight: 900;
  line-height: .9;
  animation: glass-shimmer 8s linear infinite;
}
.pixel-hero-title .serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}
.pixel-hero-copy {
  display: grid;
  place-items: center;
  text-align: center;
}
.pixel-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(23,33,29,.82);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.75;
}
.pixel-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: transform 1s ease, opacity 1s ease;
}
.hero-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-button:hover {
  transform: scale(1.02);
}
.hero-button:active {
  transform: scale(.98);
}
.hero-button.primary {
  background: linear-gradient(180deg, rgba(40,95,83,.94), var(--brand));
  color: #fff;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.32),
    0 2px 4px rgba(23,33,29,.16),
    0 14px 28px rgba(40,95,83,.18);
}
.hero-button.secondary {
  border: 1px solid rgba(40,95,83,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  color: var(--ink);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.64),
    0 2px 4px rgba(23,33,29,.05),
    0 12px 24px rgba(23,33,29,.08);
  backdrop-filter: blur(12px);
}
.button-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}
.login-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
}
.login-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
@keyframes glass-shimmer {
  from { background-position: 210% center; }
  to { background-position: 0 center; }
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.panel.flat { box-shadow: none; }
.flash {
  border-color: #d9b66f;
  background: #fff7df;
}
.narrow { max-width: 520px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 12px; }
.row, .split { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list { display: grid; gap: 10px; margin-top: 18px; }
label { display: grid; gap: 5px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
input[type="checkbox"] {
  width: auto;
  padding: 0;
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.button.secondary {
  background: #e7ede7;
  color: var(--ink);
}
.actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.actions.compact { margin-top: 0; }
.eyebrow { color: var(--brand); font-weight: 700; }
.hint { margin: -4px 0 4px; color: var(--muted); font-size: 14px; }
.workspace-head,
.project-hero,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.workspace-head h1,
.project-hero h1 {
  margin: 4px 0 8px;
  font-size: 30px;
}
.project-hero-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.project-main [id],
.project-side [id] {
  scroll-margin-top: 88px;
}
.workflow-content [id],
.workflow-stage [id] {
  scroll-margin-top: 88px;
}
.hero-guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hero-guidance span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 999px;
  background: #f4f8f5;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.metric-card span,
.context-list span {
  color: var(--muted);
  font-size: 13px;
}
.metric-card strong {
  color: var(--brand);
  font-size: 30px;
}
.workspace-grid,
.workspace-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 18px;
  align-items: start;
}
.workspace-focus-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}
.action-panel {
  display: grid;
  gap: 16px;
}
.context-panel {
  grid-column: auto;
}
.primary-action {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(176, 145, 79, .36);
  border-radius: 8px;
  background: #fffdf6;
}
.primary-action h3 {
  margin: 0;
  color: var(--brand);
  font-size: 22px;
}
.primary-action p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(40, 95, 83, .12);
  background: #e7ede7;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.status-pending { background: #fff7df; color: #8a6418; border-color: rgba(176, 145, 79, .28); }
.status-approved { background: #e8f4ef; color: var(--brand); border-color: rgba(40, 95, 83, .18); }
.status-rejected,
.status-disabled { background: #fff1f1; color: var(--danger); border-color: rgba(159, 45, 47, .18); }
.status-registered { background: #f0f3f0; color: var(--muted); border-color: rgba(101, 115, 109, .16); }
.status-generating { background: #fff4d7; color: #7a5b13; }
.status-generation_failed { background: #fff1f1; color: var(--danger); }
.status-proposal_ready { background: #e8f4ef; color: var(--brand); }
.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.step {
  display: grid;
  gap: 5px;
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e7ede7;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.step.done {
  background: #f4faf7;
  border-color: rgba(40, 95, 83, .22);
}
.step.current {
  border-color: rgba(176, 145, 79, .55);
  box-shadow: inset 0 0 0 1px rgba(176, 145, 79, .18);
}
.step.current span {
  background: var(--gold);
  color: var(--ink);
}
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}
.workflow-board {
  overflow: hidden;
  border: 1px solid rgba(40, 95, 83, .14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(251,250,246,.95)),
    var(--white);
  box-shadow: 0 22px 56px rgba(23, 33, 29, .09);
}
.workflow-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(40, 95, 83, .12);
  background: rgba(255,255,255,.72);
}
.workflow-board-head h1,
.workflow-board-head p {
  margin: 0;
}
.workflow-board-head h1 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.2;
}
.workflow-board-head > div:first-child {
  display: grid;
  gap: 6px;
}
.workflow-board-head > div:first-child > p:last-child {
  color: var(--muted);
  line-height: 1.6;
}
.workflow-board-body,
.workflow-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 190px);
}
.workflow-hero {
  border-color: rgba(40, 95, 83, .16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(251,250,246,.96)),
    var(--white);
}
.workflow-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-right: 1px solid rgba(40, 95, 83, .12);
  background: rgba(247, 250, 247, .68);
}
.workflow-nav {
  display: grid;
  gap: 7px;
}
.workflow-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.workflow-nav a:hover {
  transform: translateX(2px);
  border-color: rgba(40, 95, 83, .22);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 33, 29, .06);
}
.workflow-nav a span {
  grid-row: span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e7ede7;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}
.workflow-nav a strong,
.workflow-nav a small {
  min-width: 0;
}
.workflow-nav a small {
  color: var(--muted);
  font-size: 12px;
}
.workflow-nav a.done {
  background: #f4faf7;
}
.workflow-nav a.done span {
  background: var(--brand);
  color: #fff;
}
.workflow-nav a.current {
  border-color: rgba(176, 145, 79, .58);
  background: #fffdf6;
  box-shadow: inset 0 0 0 1px rgba(176, 145, 79, .18);
}
.workflow-nav a.current span {
  background: var(--gold);
  color: var(--ink);
}
.workflow-help,
.task-next,

.tier-settings-list {
  display: grid;
  gap: 12px;
}
.tier-settings-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(90px, .7fr) minmax(160px, 1.2fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fbfaf6;
}
.tier-settings-row .tier-description {
  grid-column: span 3;
}
.tier-settings-row .tier-default {
  align-self: center;
}
.submit-band {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fbfaf6;
}
.workflow-help.compact p {
  font-size: 13px;
}
.workflow-help strong,
.task-next strong,
.submit-band strong {
  color: var(--brand);
}
.workflow-help p,
.task-next span,
.submit-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.workflow-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.workflow-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}
.current-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: center;
  border-color: rgba(176, 145, 79, .36);
  background: #fffdf6;
}
.stage-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(176, 145, 79, .34);
  border-radius: 8px;
  background: #fffdf6;
}
.task-copy {
  display: grid;
  gap: 6px;
}
.task-copy h2,
.task-copy p,
.workflow-section h2,
.workflow-section h3 {
  margin: 0;
}
.task-copy h2 {
  font-size: 26px;
  line-height: 1.25;
}
.task-copy p {
  color: var(--muted);
  line-height: 1.7;
}
.task-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.task-action form {
  margin: 0;
}
.task-next {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #fff;
}
.workflow-section {
  display: grid;
  gap: 16px;
}
.stage-pane {
  display: grid;
  gap: 12px;
}
.stage-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}
.stage-title h2,
.stage-title p {
  margin: 0;
}
.stage-title h2 {
  font-size: 23px;
  line-height: 1.25;
}
.stage-title > span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.stage-grid {
  display: grid;
  gap: 12px;
}
.stage-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.context-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.context-strip > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid rgba(40, 95, 83, .1);
}
.context-strip > div:last-child {
  border-right: 0;
}
.context-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.context-strip strong {
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-disclosure {
  overflow: hidden;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}
.stage-disclosure summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}
.stage-disclosure summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.stage-disclosure .stage-box {
  border: 0;
  border-top: 1px solid rgba(40, 95, 83, .1);
  border-radius: 0;
  background: #fff;
}
.stage-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.stage-box.full {
  grid-column: 1 / -1;
}
.stage-box h3,
.stage-box p {
  margin: 0;
}
.stage-box p {
  line-height: 1.68;
}
.brief-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.brief-basis {
  display: grid;
  gap: 10px;
}
.brief-basis.is-expanded .basis-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.basis-toggle {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 6px;
  background: #f4f7f5;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}
.basis-toggle:hover {
  border-color: rgba(40, 95, 83, .22);
  background: #fff;
}
.box-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.box-head strong {
  color: var(--brand);
  font-size: 16px;
}
.box-head small,
.muted-line {
  color: var(--muted);
}
.compact-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.compact-dl div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.compact-dl dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.compact-dl dd {
  overflow: hidden;
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.attachment-inline-form {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.attachment-inline-form button,
.attachment-inline-form input,
.attachment-inline-form select {
  min-height: 38px;
}
.mini-list {
  display: grid;
  gap: 8px;
}
.mini-list div {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-top: 1px solid rgba(40, 95, 83, .08);
}
.mini-list p,
.mini-list small {
  margin: 0;
  color: var(--muted);
}
.compact-tags {
  margin: 2px 0 0;
}
.compact-concepts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.compact-review-card textarea {
  min-height: 78px;
}
.inline-status {
  min-width: 280px;
}
.tight-form {
  grid-template-columns: minmax(220px, 280px) auto;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-grid > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: #fbfaf6;
}
.info-grid span,
.review-summary span,
.handoff-reader-guide span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.info-grid p,
.review-summary p {
  margin: 0;
  line-height: 1.68;
}
.compact-list {
  margin-top: 4px;
}
.readable-card {
  display: grid;
  gap: 10px;
}
.review-summary {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.review-summary > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: #fbfaf6;
}
.review-summary strong {
  color: var(--brand);
  font-size: 18px;
}
.create-project-panel {
  max-width: 920px;
  margin-inline: auto;
}
.project-create-form,
.form-section {
  display: grid;
  gap: 16px;
}
.form-section {
  padding: 18px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fff;
}
.form-section h2,
.form-section p {
  margin: 0;
}
.soft-section {
  background: #fbfaf6;
}
.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.account-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.account-settings-panel {
  display: grid;
  gap: 16px;
}
.account-settings-panel h2,
.account-settings-panel p {
  margin: 0;
}

.tier-settings-list {
  display: grid;
  gap: 12px;
}
.tier-settings-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(90px, .7fr) minmax(160px, 1.2fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fbfaf6;
}
.tier-settings-row .tier-description {
  grid-column: span 3;
}
.tier-settings-row .tier-default {
  align-self: center;
}
.submit-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.plain-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.6;
}
.project-main,
.project-side,
.context-list,
.project-list,
.asset-list,
.delivery-list {
  display: grid;
  gap: 12px;
}
.project-list-panel {
  margin-top: 0;
}
.board-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.project-card.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}
.project-card > span,
.project-card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.project-card-meta {
  justify-items: end;
  text-align: right;
}
.project-card small,
.asset-row small,
.delivery-card small {
  color: var(--muted);
}
.board-list .project-card {
  min-height: 96px;
}
.context-list > div {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.context-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.context-list p,
.brief-card p {
  margin: 0;
  line-height: 1.68;
}
.workspace-console {
  display: grid;
  gap: 22px;
  margin-bottom: 20px;
  padding: 26px;
  border: 1px solid rgba(40, 95, 83, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(251,250,246,.96)),
    var(--white);
  box-shadow: 0 18px 46px rgba(23, 33, 29, .08);
}
.workspace-console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(40, 95, 83, .12);
}
.workspace-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.workspace-title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}
.workspace-title p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.workspace-title .eyebrow,
.workspace-zone-head .eyebrow,
.workspace-context-zone .eyebrow,
.workspace-queue .eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workspace-statline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fbfaf6;
}
.workspace-statline > div {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 16px 18px;
  border-right: 1px solid rgba(40, 95, 83, .12);
}
.workspace-statline > div:last-child {
  border-right: 0;
}
.workspace-statline span,
.workspace-statline small,
.workspace-context-list span,
.workspace-project-row small,
.workspace-project-assets,
.workspace-queue-head > span {
  color: var(--muted);
  font-size: 13px;
}
.workspace-statline strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.workspace-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: stretch;
}
.workspace-action-zone,
.workspace-context-zone {
  min-width: 0;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fff;
}
.workspace-action-zone {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}
.workspace-zone-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.workspace-action-zone h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
}
.workspace-action-zone > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.workspace-action-control {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-top: 4px;
}
.workspace-action-control form {
  margin: 0;
}
.workspace-action-control .generation-status {
  width: 100%;
}
.workspace-context-zone {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  background: #fbfaf6;
}
.workspace-context-list {
  display: grid;
  gap: 14px;
}
.workspace-context-list > div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(40, 95, 83, .1);
}
.workspace-context-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.workspace-context-list p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  line-height: 1.68;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 24px 22px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,250,246,.82));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 12px 30px rgba(23, 33, 29, .045);
}
.workflow-step {
  position: relative;
  display: grid;
  grid-template-rows: 28px auto auto;
  align-content: start;
  gap: 6px;
  min-height: 74px;
  padding: 0;
  border-right: 0;
  isolation: isolate;
}
.workflow-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 36px;
  right: -20px;
  height: 1px;
  background: rgba(40, 95, 83, .16);
  z-index: 0;
}
.workflow-step:last-child {
  border-right: 0;
}
.workflow-step:last-child::before {
  display: none;
}
.workflow-step span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40, 95, 83, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.workflow-step strong {
  max-width: 128px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
}
.workflow-step small {
  max-width: 128px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.workflow-step.done {
  background: transparent;
}
.workflow-step.done::before {
  background: rgba(40, 95, 83, .32);
}
.workflow-step.done span {
  border-color: rgba(40, 95, 83, .88);
  background: var(--brand);
  color: #fff;
}
.workflow-step.done strong {
  color: var(--brand);
}
.workflow-step.current {
  background: transparent;
  box-shadow: none;
}
.workflow-step.current span {
  border-color: rgba(176, 145, 79, .92);
  background: var(--gold);
  color: #1f1a10;
  box-shadow: 0 0 0 6px rgba(176, 145, 79, .13);
}
.workflow-step.current strong {
  color: var(--ink);
}
.workflow-step.current small {
  color: rgba(23, 33, 29, .72);
}
.workspace-queue {
  overflow: hidden;
  border: 1px solid rgba(40, 95, 83, .14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 29, .06);
}
.workspace-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(40, 95, 83, .12);
  background: #fbfaf6;
}
.workspace-queue-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.workspace-project-table {
  display: grid;
  max-height: 620px;
  overflow: auto;
}
.workspace-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto) minmax(170px, auto);
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(40, 95, 83, .1);
  background: #fff;
  transition: background .18s ease, box-shadow .18s ease;
}
.workspace-project-row:last-child {
  border-bottom: 0;
}
.workspace-project-row:hover {
  background: #fbfaf6;
}
.workspace-project-row.active {
  background: #f3f8f5;
  box-shadow: inset 4px 0 0 var(--brand);
}
.workspace-project-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.workspace-project-name strong,
.workspace-project-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-project-status {
  display: flex;
  justify-content: flex-start;
}
.workspace-project-assets {
  text-align: right;
  white-space: nowrap;
}
.brief-card,
.asset-row,
.delivery-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 14px;
}
.notice.soft {
  background: #f4f8f5;
  color: var(--brand);
}
.action-panel {
  border-color: rgba(40, 95, 83, .18);
  box-shadow: 0 16px 38px rgba(23, 33, 29, .07);
}
.flow-section {
  display: grid;
  gap: 8px;
  background: #fbfaf6;
}
.flow-section h2,
.flow-section .hint {
  margin: 0;
}
.generation-status {
  display: grid;
  gap: 12px;
}
.compact-status {
  padding-top: 2px;
}
.generation-status-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.progress-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e7ede7;
}
.progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .3s ease;
}
.status-feed {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.status-feed:empty {
  display: none;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7ede7;
  color: var(--brand);
  font-size: 13px;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.concept-grid.single {
  grid-template-columns: minmax(0, 520px);
}
.concept-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.review-grid {
  align-items: start;
}
.compact-review-card {
  align-self: start;
}
.compact-review-card > p {
  min-height: 48px;
}
.compact-review-card button,
.compact-review-card .button {
  width: 100%;
}
.review-select-form,
.refine-form {
  display: grid;
  gap: 10px;
  margin: 0;
}
.refine-card {
  border: 1px solid rgba(176, 145, 79, .24);
  border-radius: 8px;
  background: #fffdf6;
}
.refine-card summary {
  min-height: 40px;
  padding: 10px 12px;
  color: #7a5b13;
  cursor: pointer;
  font-weight: 800;
}
.refine-card .refine-form {
  padding: 0 12px 12px;
}
.refine-card textarea {
  min-height: 72px;
}
.handoff-concept-card {
  align-content: start;
}
.concept-card h2,
.concept-card h3,
.concept-card p {
  margin: 0;
}
.concept-card.compact {
  color: var(--ink);
}
.concept-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2ee;
}
.concept-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
}
.delivery-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.handoff-card {
  border: 1px solid rgba(40, 95, 83, .14);
  border-radius: 8px;
  background: #fbfaf6;
}
.handoff-card summary {
  min-height: 42px;
  padding: 11px 12px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}
.handoff-sections {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.handoff-sections > div,
.handoff-mini,
.print-pack-card,
.client-handoff {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(40, 95, 83, .1);
  border-radius: 8px;
  background: #fff;
}
.handoff-sections span,
.client-handoff dt {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.handoff-sections p,
.handoff-sections ul,
.print-pack-card ul,
.client-handoff dd,
.handoff-mini p,
.handoff-mini small {
  margin: 0;
  color: var(--ink);
  line-height: 1.62;
}
.handoff-sections ul,
.print-pack-card ul {
  padding-left: 18px;
}
.handoff-sections.compact {
  gap: 8px;
}
.handoff-overview,
.print-pack-grid,
.guidance-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.handoff-reader-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.handoff-reader-guide > div {
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fbfaf6;
}
.handoff-reader-guide strong {
  color: var(--brand);
  font-size: 18px;
}
.handoff-reader-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.handoff-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.handoff-mini strong,
.print-pack-card strong,
.guidance-band strong {
  color: var(--brand);
}
.guidance-band p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.client-handoff h3 {
  margin: 0;
}
.client-handoff dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.client-handoff dl > div {
  display: grid;
  gap: 4px;
}
.selected-concept-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 14px;
  align-items: start;
}
.featured-concept {
  box-shadow: none;
}
.empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.compact-empty {
  min-height: 72px;
}
.settings-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 33, 29, .035);
}

.settings-group[data-settings-panel] {
  display: none;
}
.settings-group[data-settings-panel].is-active {
  display: grid;
}
.settings-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.settings-anchor-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 33, 29, .045);
}
.settings-anchor-nav button:hover,
.settings-anchor-nav button.active {
  border-color: rgba(40, 95, 83, .22);
  background: #f4f7f5;
}
.settings-anchor-nav button.active {
  box-shadow: 0 10px 22px rgba(23, 33, 29, .075);
}
.settings-group h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}
.checkline {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}
.admin-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 26px 28px;
  border-color: rgba(40, 95, 83, .14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(251,250,246,.94));
  box-shadow: 0 18px 42px rgba(23, 33, 29, .07);
}
.admin-hero h1 {
  margin: 2px 0 6px;
  font-size: 32px;
  line-height: 1.18;
}
.admin-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.admin-metric {
  min-height: 118px;
  padding: 18px 20px;
  border-color: rgba(40, 95, 83, .12);
  color: inherit;
  box-shadow: 0 12px 30px rgba(23, 33, 29, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.admin-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 95, 83, .28);
  box-shadow: 0 18px 38px rgba(23, 33, 29, .08);
}
.admin-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-metric strong {
  font-size: 34px;
  line-height: 1;
}
.admin-metric small,
.admin-list-row small {
  color: var(--muted);
}
.admin-list {
  display: grid;
  gap: 10px;
}
.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 33, 29, .035);
}
.admin-list-row > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.admin-list-row strong {
  font-size: 16px;
}
.admin-list-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.admin-request-row {
  align-items: start;
}
.admin-row-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(460px, 44vw);
}
.admin-inline-form {
  width: 100%;
  grid-template-columns: minmax(140px, 1fr) minmax(110px, 1fr) auto;
  margin: 0;
}
.admin-request-row .admin-inline-form {
  grid-template-columns: minmax(180px, 1fr) auto;
}
.admin-inline-form label {
  font-size: 13px;
}
.admin-inline-form input {
  min-height: 38px;
}
.admin-users-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.billing-rule-strip {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: rgba(251, 250, 246, .82);
}
.billing-rule-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.billing-rule-strip strong {
  color: var(--brand);
  font-weight: 800;
}
.admin-roster-panel {
  overflow: hidden;
  padding: 0;
}
.admin-roster-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(40, 95, 83, .1);
}
.admin-roster-head .eyebrow,
.admin-roster-head h2 {
  margin: 0;
}
.admin-roster-head h2 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.2;
}
.admin-roster-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 999px;
  background: #fbfaf6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-roster {
  display: grid;
  --admin-roster-columns: minmax(260px, 1.6fr) 98px 82px minmax(360px, 1.25fr) 72px;
}
.admin-roster-labels,
.admin-user-row {
  display: grid;
  grid-template-columns: var(--admin-roster-columns);
  column-gap: 16px;
  align-items: center;
  padding: 0 20px;
}
.admin-roster-labels {
  min-height: 42px;
  border-bottom: 1px solid rgba(40, 95, 83, .1);
  background: #fbfaf6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-roster-labels span:last-child {
  text-align: right;
}
.admin-user-row {
  min-height: 66px;
  border-bottom: 1px solid rgba(40, 95, 83, .09);
  background: #fff;
}
.admin-user-row:last-child {
  border-bottom: 0;
}
.admin-user-row:hover {
  background: #fcfbf7;
}
.admin-user-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.admin-user-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-identity small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-status {
  display: flex;
  justify-content: flex-start;
}
.admin-credit {
  color: var(--brand);
  font-size: 21px;
  line-height: 1;
}
.admin-credit::after {
  margin-left: 4px;
  content: "额度";
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.admin-adjust-cell {
  min-width: 0;
}
.admin-user-adjust {
  display: grid;
  grid-template-columns: 74px minmax(160px, 1fr) 62px;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.admin-user-adjust input {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
}
.admin-user-adjust button,
.admin-danger-form button {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}
.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.admin-danger-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}
.admin-muted {
  color: var(--muted);
  font-size: 13px;
}
.button.danger,
button.danger {
  background: var(--danger);
  color: #fff;
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-account-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.admin-account-section {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}
.admin-account-list-section {
  border-top: 1px solid rgba(40, 95, 83, .1);
  background: #fbfaf6;
}
.admin-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.admin-account-head .eyebrow,
.admin-account-head h2 {
  margin: 0;
}
.admin-account-head h2 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.2;
}
.admin-account-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-account-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, .7fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0;
}
.admin-account-form input,
.admin-account-form select {
  min-height: 42px;
}
.admin-account-form button {
  min-height: 42px;
  padding: 0 22px;
  white-space: nowrap;
}
.admin-account-list {
  display: grid;
  gap: 10px;
}
.admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 33, 29, .035);
}
.admin-account-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.admin-account-identity strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-account-identity small,
.admin-account-row > small {
  color: var(--muted);
}
.admin-account-row > small {
  text-align: right;
  white-space: nowrap;
}
.compact-admin-list .admin-list-row {
  grid-template-columns: 1fr auto;
}
.admin-log-row {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, auto);
}
.admin-log-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.admin-log-action strong {
  color: var(--ink);
}
.admin-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-items: end;
  text-align: right;
  justify-content: flex-end;
}
.admin-log-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(223, 230, 223, .9);
  border-radius: 999px;
  background: #fbfaf6;
  padding: 0 10px;
}
.auth-viewport {
  position: relative;
  display: grid;
  min-height: calc(100vh - 69px);
  margin: -28px 0;
  place-items: center;
  padding: 34px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.92), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(176,145,79,.18), transparent 36%),
    linear-gradient(135deg, #f7f4ec 0%, #edf4f0 48%, #f8f6ef 100%);
}
.auth-card {
  display: grid;
  grid-template-columns: minmax(330px, .94fr) minmax(360px, 1fr);
  width: min(980px, 100%);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(40,95,83,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23,33,29,.14);
  animation: auth-card-in .46s ease both;
}
.auth-card-register {
  grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr);
  width: min(1140px, 100%);
}
.auth-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-right: 1px solid rgba(40,95,83,.1);
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(135deg, rgba(247,244,236,.96), rgba(229,222,208,.86)),
    #f7f4ec;
}
.auth-map {
  position: absolute;
  inset: 0;
}
.auth-map canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.auth-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.42), transparent 42%),
    linear-gradient(180deg, rgba(247,244,236,.12), rgba(247,244,236,.62));
}
.auth-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px;
  text-align: center;
}
.auth-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  box-shadow: 0 18px 32px rgba(40,95,83,.18), 0 8px 18px rgba(176,145,79,.2);
}
.auth-mark svg {
  width: 25px;
  height: 25px;
}
.auth-visual h2 {
  margin: 0 0 10px;
  color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 34px;
  line-height: 1.12;
}
.auth-visual p {
  max-width: 310px;
  margin: 0;
  color: #50635f;
  line-height: 1.75;
}
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 46px;
  background: #fff;
}
.auth-form-head {
  margin-bottom: 28px;
}
.auth-kicker {
  margin: 0 0 8px;
  color: #286153;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.auth-form-head h1 {
  margin: 0 0 8px;
  color: #1c2a26;
  font-size: 32px;
  line-height: 1.18;
}
.auth-form-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.auth-form {
  display: grid;
  gap: 18px;
}
.auth-card-register .auth-form-panel {
  padding: 40px 48px;
}
.auth-card-register .auth-form-head {
  margin-bottom: 22px;
}
.auth-card-register .auth-form {
  gap: 18px;
}
.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.auth-field-wide {
  width: 100%;
}
.auth-section {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid rgba(40,95,83,.12);
}
.auth-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}
.auth-section legend {
  margin-bottom: 4px;
  padding: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.auth-field {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #3e4c48;
  font-size: 14px;
  font-weight: 700;
}
.auth-field b {
  color: var(--gold);
  font-weight: 800;
}
.auth-field input {
  height: 44px;
  border-color: #dfe7e5;
  border-radius: 8px;
  background: #f8faf9;
  color: #1c2a26;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-field input::placeholder {
  color: #98a7a2;
}
.auth-field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(40,95,83,.14);
  outline: 0;
}
.auth-password {
  position: relative;
  display: block;
  height: 44px;
}
.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: start;
  gap: 10px;
}
.auth-code-row input {
  min-width: 0;
}
.auth-code-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(40,95,83,.16);
  background: #eef3ef;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.auth-code-button:disabled {
  opacity: .72;
}
.auth-code-status {
  min-height: 18px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 13px;
}
.auth-code-status.is-error {
  color: var(--danger);
}
.auth-code-status.is-ok {
  color: var(--brand);
}
.auth-password input {
  padding-right: 46px;
}
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 38px;
  min-height: 38px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: #66756f;
}
.auth-password-toggle:hover,
.auth-password-toggle:focus {
  background: #eaf0ef;
  color: #253530;
}
.auth-password-toggle svg {
  width: 19px;
  height: 19px;
}
.auth-password-toggle .icon-eye-off,
.auth-password-toggle.is-visible .icon-eye {
  display: none;
}
.auth-password-toggle.is-visible .icon-eye-off {
  display: block;
}
.auth-submit {
  position: relative;
  min-height: 46px;
  gap: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  box-shadow: 0 16px 28px rgba(40,95,83,.16), 0 10px 20px rgba(176,145,79,.18);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-submit::after {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 72px;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  opacity: 0;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(40,95,83,.2), 0 12px 24px rgba(176,145,79,.22);
  filter: saturate(1.05);
}
.auth-submit:hover::after {
  animation: auth-shine .78s ease;
  opacity: 1;
}
.auth-submit svg {
  position: relative;
  width: 18px;
  height: 18px;
}
.auth-submit span {
  position: relative;
}
.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.auth-switch a {
  color: var(--brand);
  font-weight: 800;
}
@keyframes auth-card-in {
  from {
    transform: translateY(14px) scale(.985);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes auth-shine {
  from { left: -35%; }
  to { left: 115%; }
}
@media (max-width: 800px) {
  .grid,
  .grid.two,
  .metrics-grid,
  .admin-metrics,
  .admin-split,
  .workspace-grid,
  .workspace-focus-grid,
  .workspace-console-head,
  .workspace-statline,
  .workspace-main,
  .workflow-board-head,
  .workflow-board-body,
  .workflow-shell,
  .stage-focus,
  .stage-grid.two,
  .context-strip,
  .compact-dl,
  .attachment-inline-form,
  .current-task-card,
  .info-grid,
  .review-summary,
  .form-grid-two,
  .account-settings,
  .tier-settings-row,
  .submit-band,
  .selected-concept-layout,
  .handoff-reader-guide,
  .workflow-track,
  .board-list,
  .stepper,
  .project-layout,
  .concept-grid,
  .handoff-overview,
  .print-pack-grid,
  .guidance-band,
  .inline-form { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .topbar {
    align-items: stretch;
    gap: 10px;
    flex-direction: column;
    padding: 10px 16px 12px;
  }

  .settings-anchor-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .settings-anchor-nav button {
    flex: 0 0 auto;
  }
  .topnav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: none;
    width: 100%;
    padding: 4px;
  }
  .topnav a,
  .account-menu summary {
    min-height: 36px;
    padding: 0 11px;
    font-size: 13px;
  }
  .account-menu {
    flex: 0 0 auto;
  }
  .account-menu-panel {
    right: 0;
  }
  .workspace-head,
  .project-hero,
  .section-head,
  .delivery-card {
    display: grid;
  }
  .context-panel { grid-column: auto; }
  .project-card { grid-template-columns: 1fr; }
  .project-card-meta {
    justify-items: start;
    text-align: left;
  }
  .workspace-console {
    gap: 16px;
    padding: 16px;
  }
  .workspace-console-head {
    gap: 12px;
    padding-bottom: 14px;
  }
  .workspace-title h1 {
    font-size: 26px;
  }
  .workspace-title p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .workspace-actions {
    justify-content: flex-start;
  }
  .workflow-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 95, 83, .12);
  }
  .workflow-nav {
    grid-template-columns: repeat(6, minmax(136px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .workflow-nav a {
    min-width: 136px;
  }
  .task-action {
    justify-content: flex-start;
  }
  .stage-focus {
    gap: 12px;
  }
  .workflow-stage {
    padding: 14px;
  }
  .stage-title {
    display: grid;
    gap: 6px;
  }
  .stage-title > span {
    white-space: normal;
  }
  .context-strip > div {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 95, 83, .08);
  }
  .context-strip > div:last-child {
    border-bottom: 0;
  }
  .task-next {
    grid-template-columns: 1fr;
  }
  
.tier-settings-list {
  display: grid;
  gap: 12px;
}
.tier-settings-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(90px, .7fr) minmax(160px, 1.2fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(40, 95, 83, .12);
  border-radius: 8px;
  background: #fbfaf6;
}
.tier-settings-row .tier-description {
  grid-column: span 3;
}
.tier-settings-row .tier-default {
  align-self: center;
}
.submit-band {
    justify-items: start;
  }
  .workspace-statline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }
  .workspace-statline > div {
    min-height: 76px;
    padding: 12px 14px;
    border-right: 1px solid rgba(40, 95, 83, .1);
    border-bottom: 1px solid rgba(40, 95, 83, .1);
  }
  .workspace-statline > div:nth-child(2n) {
    border-right: 0;
  }
  .workspace-statline > div:nth-child(n+3) {
    border-bottom: 0;
  }
  .workspace-statline strong {
    font-size: 24px;
  }
  .workspace-main {
    gap: 14px;
  }
  .workspace-action-zone,
  .workspace-context-zone {
    padding: 16px;
  }
  .workspace-action-zone h2 {
    font-size: 23px;
  }
  .workspace-zone-head,
  .workspace-queue-head {
    display: grid;
  }
  .workspace-context-list p {
    -webkit-line-clamp: 2;
  }
  .workflow-track {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding: 20px;
  }
  .workflow-step {
    min-height: 72px;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .workflow-step::before {
    left: 34px;
    right: -16px;
  }
  .workflow-step:last-child {
    border-right: 0;
  }
  .workflow-step small {
    font-size: 12px;
  }
  .workspace-project-table {
    max-height: 480px;
  }
  .workspace-project-row {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
    min-height: 64px;
    padding: 12px 16px;
  }
  .workspace-project-assets {
    text-align: left;
  }
  .admin-hero {
    display: grid;
  }
  .admin-list-row,
  .compact-admin-list .admin-list-row {
    grid-template-columns: 1fr;
  }
  .admin-account-section {
    padding: 18px 16px;
  }
  .admin-account-head,
  .admin-account-row {
    display: grid;
  }
  .admin-account-form {
    grid-template-columns: 1fr;
  }
  .admin-account-form button {
    width: 100%;
  }
  .admin-account-row > small {
    text-align: left;
    white-space: normal;
  }
  .admin-users-hero {
    grid-template-columns: 1fr;
  }
  .billing-rule-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .billing-rule-strip span {
    justify-content: center;
    white-space: normal;
  }
  .admin-roster-head {
    padding: 16px;
  }
  .admin-roster-labels {
    display: none;
  }
  .admin-user-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 16px;
  }
  .admin-user-identity,
  .admin-adjust-cell {
    grid-column: 1 / -1;
  }
  .admin-user-status {
    grid-column: 1;
  }
  .admin-credit {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  .admin-user-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .admin-user-adjust {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .admin-row-side {
    min-width: 0;
    justify-items: stretch;
  }
  .admin-inline-form,
  .admin-request-row .admin-inline-form,
  .admin-log-filter {
    grid-template-columns: 1fr;
  }
  .admin-log-meta {
    justify-items: start;
    text-align: left;
    justify-content: flex-start;
  }
  .auth-viewport {
    min-height: calc(100vh - 101px);
    padding: 18px;
  }
  .auth-card,
  .auth-card-register {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 8px;
  }
  .auth-visual {
    display: none;
  }
  .auth-form-panel {
    padding: 28px 20px;
  }
  .auth-form-head h1 {
    font-size: 27px;
  }
  .auth-field-grid {
    grid-template-columns: 1fr;
  }
  .auth-code-row {
    grid-template-columns: 1fr;
  }
  .auth-code-button {
    width: 100%;
  }
}
