:root {
  color-scheme: light;
  --ink: #203331;
  --muted: #74827e;
  --line: #e1e8e3;
  --paper: #ffffff;
  --canvas: #f5f7f4;
  --forest: #245f52;
  --forest-dark: #17473e;
  --mint: #e3f1eb;
  --aqua: #dfeff0;
  --gold: #f6edda;
  --coral: #f5e5df;
  --violet: #eae7f2;
  --shadow: 0 14px 32px rgba(32, 51, 49, .045);
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 17px 18px; background: #fbfcfa; border-right: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 9px 34px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; flex: none; color: white; background: var(--forest); border-radius: 11px; font-size: 17px; font-weight: 700; }
.brand-lockup strong, .mobile-brand strong { display: block; font-size: 14px; letter-spacing: 0; }
.brand-lockup span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.sidebar-label { padding: 0 10px 9px; color: #94a09a; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.section-label { margin-top: 27px; }
.workspace-link, .step-link { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #586965; text-align: left; font-size: 12px; }
.workspace-link.active { background: #e8f1ec; color: var(--forest-dark); font-weight: 700; }
.nav-index { width: 24px; color: #99a59f; font-size: 10px; font-variant-numeric: tabular-nums; }
.workspace-link.active .nav-index { color: var(--forest); }
.step-nav { display: grid; gap: 4px; }
.step-link:hover, .workflow-row:hover { background-color: #f1f5f1; }
.step-state { margin-left: auto; color: #9aa59f; font-size: 10px; white-space: nowrap; }
.step-state.done { color: var(--forest); }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 13px 10px 0; border-top: 1px solid var(--line); color: #84918c; font-size: 10px; }
.local-indicator, .footer-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #63a68b; }
.main-area { min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(20px, 4vw, 58px); background: rgba(255,255,255,.74); border-bottom: 1px solid var(--line); }
.topbar-meta { display: flex; align-items: center; gap: 20px; }
.mode-tag { padding: 6px 10px; color: #486d60; border-radius: 4px; background: #e8f3ec; font-size: 10px; font-weight: 600; }
.text-button { border: 0; background: transparent; color: #74827e; font-size: 11px; }
.text-button:hover { color: #a44c3e; }
.mobile-brand { display: none; align-items: center; gap: 9px; margin-right: auto; }
.mobile-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.content-wrap { max-width: 1280px; margin: 0 auto; padding: 23px clamp(20px, 4vw, 58px) 20px; }
.privacy-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; border: 1px solid #e6dfc9; border-radius: 6px; background: #fbf7ec; color: #675d40; }
.privacy-dot { width: 7px; height: 7px; flex: none; margin-top: 5px; border-radius: 50%; background: #b18e39; }
.privacy-banner p { margin: 0; font-size: 11px; line-height: 1.7; }
.privacy-banner strong { font-weight: 700; }
.view { display: none; padding-top: 35px; }
.view.active { display: block; animation: arrive .18s ease-out; }
@keyframes arrive { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 9px; color: #7f9189; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: 27px; line-height: 1.25; font-weight: 700; }
.lede { margin: 9px 0 0; color: #788681; font-size: 12px; line-height: 1.7; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 3px; padding: 7px 10px; border: 1px solid #dcebe2; border-radius: 4px; background: #f1f7f3; color: #4c7964; font-size: 10px; white-space: nowrap; }
.status-pill span { width: 6px; height: 6px; border-radius: 50%; background: #68a585; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); gap: 18px; align-items: start; }
.overview-main, .overview-aside, .form-panel, .side-note { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: var(--shadow); }
.overview-main { padding: 22px 23px 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2, .panel-heading h2 { margin: 0; font-size: 16px; }
.muted { color: var(--muted); font-size: 10px; }
.progress-track { height: 5px; margin: 17px 0 9px; overflow: hidden; border-radius: 8px; background: #edf1ed; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #4b9176; transition: width .24s ease; }
.workflow-list { display: grid; }
.workflow-row { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 10px 8px; border: 0; border-bottom: 1px solid #edf0ed; background: transparent; text-align: left; }
.workflow-row:last-child { border-bottom: 0; }
.row-number { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 9px; background: var(--mint); color: #3b755f; font-size: 12px; font-weight: 700; }
.row-number.aqua { background: var(--aqua); color: #427e83; }
.row-number.gold { background: var(--gold); color: #967b3f; }
.row-number.coral { background: var(--coral); color: #a86b56; }
.row-number.violet { background: var(--violet); color: #766a94; }
.workflow-copy { min-width: 0; display: grid; gap: 5px; }
.workflow-copy strong { font-size: 12px; font-weight: 600; }
.workflow-copy small { color: #87928e; font-size: 10px; line-height: 1.45; }
.row-status { margin-left: auto; color: #84918c; font-size: 10px; white-space: nowrap; }
.row-status.done { color: #4a8a6f; }
.row-arrow { color: #a0aaa4; font-size: 18px; }
.overview-aside { padding: 3px 18px; }
.aside-block { display: grid; grid-template-columns: 33px minmax(0,1fr); gap: 11px; padding: 18px 0; border-bottom: 1px solid #edf0ed; }
.aside-block:last-child { border-bottom: 0; }
.aside-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #e4f1ec; color: #427a66; font-size: 13px; font-weight: 700; }
.aside-icon.amber { background: #f7efdb; color: #977b3f; }
.aside-icon.blue { background: #e2eef0; color: #4c7d84; }
.aside-block .eyebrow { margin-bottom: 5px; font-size: 9px; }
.aside-block h3, .side-note h3 { margin: 0 0 7px; font-size: 12px; }
.aside-block p:not(.eyebrow) { margin: 0; color: #7c8984; font-size: 10px; line-height: 1.75; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 246px; gap: 17px; align-items: start; }
.form-panel { padding: 21px 22px 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #edf0ed; }
.panel-heading h2 { font-size: 15px; }
.required-note { color: #8a9690; font-size: 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; padding-top: 19px; }
.compact-grid { padding-top: 2px; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; color: #51615c; font-size: 11px; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .repeat-item input, .repeat-item textarea { width: 100%; min-width: 0; border: 1px solid #dfe6e1; border-radius: 5px; outline: 0; background: #fcfdfc; color: var(--ink); font-size: 12px; font-weight: 400; }
.field input, .field select, .repeat-item input { height: 40px; padding: 0 11px; }
.field textarea, .repeat-item textarea { min-height: 84px; padding: 10px 11px; line-height: 1.65; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .repeat-item input:focus, .repeat-item textarea:focus { border-color: #72a58f; box-shadow: 0 0 0 3px rgba(82, 143, 114, .11); }
.field input::placeholder, .field textarea::placeholder, .repeat-item input::placeholder, .repeat-item textarea::placeholder { color: #a8b2ad; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 21px; padding-top: 16px; border-top: 1px solid #edf0ed; }
.save-note { color: #87938e; font-size: 10px; }
.primary-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 0; border-radius: 5px; background: var(--forest); color: white; font-size: 11px; font-weight: 600; }
.primary-button:hover { background: var(--forest-dark); }
.quiet-button { min-height: 34px; padding: 0 10px; border: 1px solid #dfe7e1; border-radius: 5px; background: white; color: #547065; font-size: 10px; }
.quiet-button:hover { background: #f3f7f4; }
.side-note { padding: 18px; }
.side-note .eyebrow { margin-bottom: 9px; }
.side-note h3 { margin-bottom: 13px; font-size: 13px; }
.side-note ul { display: grid; gap: 10px; margin: 0; padding: 0 0 0 15px; color: #64736d; font-size: 10px; line-height: 1.65; }
.side-note li::marker { color: #6a9b82; }
.note-rule { height: 1px; margin: 16px 0 12px; background: #edf0ed; }
.small-muted { margin: 0; color: #929d97; font-size: 9px; line-height: 1.7; }
.notice-panel { display: flex; align-items: flex-start; gap: 11px; margin: -7px 0 16px; padding: 13px 15px; border: 1px solid #f0dfd2; border-radius: 6px; background: #fbf4ee; color: #725344; }
.notice-symbol { width: 20px; height: 20px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #f2dfd1; color: #a06445; font-size: 12px; font-weight: 700; }
.notice-panel p { margin: 0; font-size: 10px; line-height: 1.75; }
.notice-panel strong { font-weight: 700; }
.repeat-list { display: grid; gap: 12px; padding: 17px 0; }
.repeat-item { position: relative; padding: 15px; border: 1px solid #e6ece7; border-radius: 6px; background: #fafcfb; }
.repeat-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.repeat-item-head strong { color: #50665c; font-size: 11px; }
.remove-item { border: 0; background: transparent; color: #9a7770; font-size: 10px; }
.repeat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.repeat-field { min-width: 0; display: grid; gap: 6px; color: #65746e; font-size: 10px; }
.repeat-field.full { grid-column: 1 / -1; }
.repeat-field textarea { min-height: 63px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 2px 2px; color: #95a09a; font-size: 9px; }
.footer-dot { width: 5px; height: 5px; margin: 0 3px; vertical-align: 1px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; transform: translate(-50%, 12px); padding: 10px 14px; border-radius: 6px; background: #294b41; color: white; font-size: 11px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 204px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .overview-grid { grid-template-columns: minmax(0,1.3fr) minmax(210px,.8fr); gap: 12px; }
  .form-layout { grid-template-columns: minmax(0,1fr) 210px; gap: 12px; }
  .overview-main, .form-panel { padding-inline: 17px; }
}
@media (max-width: 720px) {
  body { font-size: 13px; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); background: white; }
  .sidebar .brand-lockup, .sidebar-label, .workspace-link, .sidebar-foot { display: none; }
  .step-nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
  .step-nav::-webkit-scrollbar { display: none; }
  .step-link { min-width: max-content; width: auto; min-height: 37px; gap: 7px; padding: 0 10px; border: 1px solid #e5ebe6; border-radius: 5px; font-size: 10px; }
  .step-link.active { border-color: #bad6c7; background: #eef6f1; color: var(--forest-dark); }
  .step-link .nav-index { width: auto; font-size: 9px; }
  .step-state { display: none; }
  .topbar { height: 55px; justify-content: space-between; padding: 0 15px; }
  .mobile-brand { display: flex; }
  .mobile-brand strong { font-size: 12px; }
  .topbar-meta { gap: 10px; }
  .mode-tag { padding: 5px 7px; font-size: 9px; }
  .text-button { padding: 5px 0; font-size: 10px; }
  .content-wrap { padding: 12px 14px 15px; }
  .privacy-banner { padding: 9px 10px; gap: 8px; }
  .privacy-banner p { font-size: 10px; }
  .view { padding-top: 24px; }
  .page-heading { align-items: flex-start; margin-bottom: 19px; }
  h1 { font-size: 23px; }
  .lede { max-width: 34em; font-size: 11px; }
  .status-pill { margin-top: 19px; padding: 6px 8px; font-size: 9px; }
  .overview-grid, .form-layout { grid-template-columns: 1fr; }
  .overview-main { padding: 17px 14px 7px; }
  .overview-aside { display: grid; grid-template-columns: 1fr; padding: 0 14px; }
  .aside-block { padding: 13px 0; }
  .workflow-row { min-height: 68px; gap: 10px; padding-inline: 2px; }
  .workflow-copy strong { font-size: 11px; }
  .workflow-copy small { font-size: 9px; }
  .row-status { display: none; }
  .row-arrow { margin-left: auto; }
  .form-panel { padding: 16px 14px 13px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2 { font-size: 14px; }
  .field-grid { gap: 14px 10px; padding-top: 16px; }
  .field { font-size: 10px; }
  .field input, .field select { height: 42px; }
  .field textarea { min-height: 76px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .primary-button, .form-footer .quiet-button { width: 100%; min-height: 42px; }
  .side-note { padding: 16px; }
  .side-note ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .repeat-item { padding: 12px; }
  .repeat-grid { gap: 9px; }
  .repeat-field { font-size: 9px; }
  .notice-panel { margin-top: -2px; }
  .page-footer { flex-direction: column; gap: 5px; padding-top: 18px; }
}
@media (max-width: 390px) {
  .field-grid, .repeat-grid { grid-template-columns: 1fr; }
  .field.full, .repeat-field.full { grid-column: auto; }
  .topbar { padding-inline: 11px; }
  .mobile-brand { gap: 7px; }
  .text-button { font-size: 9px; }
  .mode-tag { font-size: 8px; }
  .content-wrap { padding-inline: 11px; }
  .status-pill { font-size: 0; gap: 0; width: 10px; height: 10px; padding: 0; border: 0; background: transparent; }
  .status-pill span { width: 9px; height: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
