:root { color-scheme: light; --ink: #15332f; --muted: #526b64; --accent: #186957; --line: #dce5df; --paper: #fffefa; --bg: #f1f4ee; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, .primary { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #e3b95a; outline-offset: 4px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding: 18px max(24px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: white; font-size: 27px; line-height: 1; font-family: Georgia, serif; }
.brand-divider { color: #a4b1a9; margin: 0 4px; }
.badge { display: inline-block; border: 1px solid #bfd4c9; background: #e7efe5; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 5px 9px; white-space: nowrap; }
.demo-notice { padding: 11px 24px; text-align: center; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: #eaf0e6; }
.demo-notice strong { margin-right: 8px; }
.home-layout { max-width: 1240px; margin: 88px auto 110px; padding: 0 24px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 80px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-weight: 500; font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -.035em; line-height: 1.15; }
.intro h1 { font-size: clamp(38px, 4vw, 54px); margin-bottom: 24px; }
.lede { color: var(--muted); font-size: 17px; max-width: 490px; }
.steps { margin-top: 34px; display: grid; gap: 14px; }
.steps p { margin: 0; font-size: 14px; }
.steps span { display: inline-block; margin-right: 16px; font-size: 11px; color: var(--accent); border: 1px solid #c6d4c8; border-radius: 50%; width: 31px; line-height: 29px; text-align: center; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 30px #27463b05; min-width: 0; }
.start-card { padding: 38px; }
h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.02em; font-weight: 500; margin-bottom: 16px; }
.start-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
input:not([type=checkbox]), textarea { border: 1px solid #c7d6cc; background: white; color: var(--ink); border-radius: 6px; padding: 12px 14px; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #71857a; font-size: 13px; }
textarea { resize: vertical; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: 6px; display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; padding: 12px 18px; text-decoration: none; }
.primary:hover:not(:disabled) { background: #0f5142; }
.start-card button { width: 100%; margin: 20px 0 16px; }
.small { font-size: 12px !important; color: var(--muted); line-height: 1.6; margin: 0; }
.workspace { max-width: 1240px; padding: 36px 24px 60px; margin: 0 auto; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.workspace-heading h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; overflow-wrap: anywhere; }
.workspace-heading p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.quiet-link { font-size: 12px; white-space: nowrap; }
.view-nav { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 12px 0; display: flex; gap: 24px; margin-bottom: 18px; font-size: 13px; }
.panes { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 25px 26px 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 21px; margin: 0; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.status-dot { font-size: 11px; color: var(--muted); white-space: nowrap; }
.status-dot::before { content: ""; display: inline-block; height: 6px; width: 6px; border-radius: 50%; margin-right: 6px; background: #5b8768; }
.muted { color: var(--muted); background: #f1f3ed; border-color: var(--line); font-size: 9px; }
.messages { padding: 24px; max-height: 570px; overflow-y: auto; display: grid; gap: 16px; }
.control-panel { margin-bottom: 20px; padding: 18px 22px; background: #edf2e9; border: 1px solid var(--line); border-radius: 8px; }
.control-panel p { margin-bottom: 10px; }
.control-panel p:last-child { margin-bottom: 0; }
.control-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.control-actions .secondary { width: auto; margin: 0; }
.control-panel [role="alert"] { color: #8b291d; }
.message { border-radius: 9px; padding: 16px 18px; font-size: 14px; overflow-wrap: anywhere; }
.message p:last-child { margin-bottom: 0; white-space: pre-wrap; }
.message.assistant { background: #edf2e9; margin-right: 16px; }
.message.user { background: #f5f2e9; margin-left: 30px; }
.message-author { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.composer { padding: 20px 24px; border-top: 1px solid var(--line); }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.composer-actions span { font-size: 11px; color: var(--muted); }
.sample-form { padding: 0 24px 24px; }
.secondary { background: transparent; border: 1px solid #b9cbbd; border-radius: 6px; padding: 10px 13px; font-size: 12px; color: var(--accent); width: 100%; margin-bottom: 10px; }
.brief-meta { padding: 15px 26px 0; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.progress-note { margin: 0 26px 8px; padding: 12px; background: #faf4e6; border-radius: 6px; font-size: 12px; color: #725b2a; }
.brief-sections { padding: 8px 26px 12px; }
.brief-sections section { padding: 16px 0; border-bottom: 1px solid #e9ede6; }
.brief-sections section:last-child { border: 0; }
h3 { font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.brief-sections p, .brief-sections ul { font-size: 13px; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.brief-sections ul { padding-left: 18px; }
.brief-sections li + li { margin-top: 7px; }
.unknown { color: #64786c; font-style: italic; }
.approval-panel { margin: 0 16px 16px; padding: 21px; border: 1px solid #d5e0d2; border-radius: 8px; background: #f0f4e9; }
.approval-panel > p { font-size: 12px; color: var(--muted); }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.6; font-weight: 400; margin: 14px 0; }
.checkbox-label input { margin-top: 4px; flex: none; }
.approval-panel .primary { width: 100%; }
.download { display: block; font-size: 12px; margin-top: 17px; }
.version-history { padding: 6px 26px 24px; font-size: 12px; }
.version-history ul { padding-left: 18px; }
.tabs { display: flex; gap: 4px; padding: 12px 26px 0; border-bottom: 1px solid var(--line); }
.tabs[hidden] { display: none; }
.tab { border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; padding: 9px 14px; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); background: var(--paper); border-color: var(--line); box-shadow: inset 0 3px 0 var(--accent); }
.tab-marker { margin-left: 6px; padding: 2px 7px; border: 1px solid #c9a348; border-radius: 10px; background: #faf4e6; color: #725b2a; font-size: 10px; font-weight: 700; }
.sketch { padding: 16px 26px 22px; color: #3d3d3d; }
.sketch p { margin-bottom: 8px; }
.sketch-label { padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 4px; background: #f3f3f1; color: #5a5a5a; font-size: 11px; }
.sketch-label strong { color: #2f2f2f; letter-spacing: .1em; text-transform: uppercase; }
.sketch-removed, .sketch-caption, .sketch-purpose, .sketch-empty { color: #666; font-size: 12px; }
.sketch-empty { margin: 14px 0 0; padding: 30px 14px; border: 1.5px dashed #b0b0b0; border-radius: 6px; text-align: center; }
.sketch-screen { margin-top: 14px; padding: 14px 16px 8px; border: 1.5px solid #8a8a8a; border-radius: 6px; background: #fcfcfb; }
.sketch-kind { margin-bottom: 2px !important; color: #7a7a7a; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sketch-screen h3 { margin-bottom: 4px; color: #2f2f2f; font-size: 15px; }
.sketch-record { margin: 12px 0; padding: 10px 12px 4px; border: 1px solid #a8a8a8; border-radius: 4px; background: #fff; }
.sketch-record-title { color: #3d3d3d; font-size: 12px; font-weight: 650; }
.sketch-scroll { overflow-x: auto; }
.sketch table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.sketch th, .sketch td { padding: 6px 9px; border: 1px solid #a8a8a8; border-radius: 2px; text-align: left; vertical-align: top; }
.sketch th { min-width: 92px; background: #ececea; color: #3d3d3d; font-weight: 600; }
.sketch td { color: #7a7a7a; font-style: italic; white-space: nowrap; }
.sketch .sketch-assumed { border-style: dashed; }
.sketch th.sketch-assumed { background: #fff; }
.sketch-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 3px; background: #3d3d3d; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.sketch-unconfirmed { margin-left: 4px; color: #666; font-size: 10px; font-style: italic; font-weight: 400; white-space: nowrap; }
.error-layout { max-width: 680px; margin: 60px auto; padding: 36px; }
.error-layout h1 { font-size: 32px; }
footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; font-size: 11px; color: var(--muted); }
footer span { display: block; }
@media (max-width: 760px) {
  .site-header { padding: 16px; min-height: 72px; gap: 8px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand-divider { margin: 0; }
  .brand-mark { width: 28px; height: 28px; font-size: 23px; }
  .site-header .badge { font-size: 8px; padding: 5px; letter-spacing: .06em; }
  .demo-notice { font-size: 11px; padding: 10px 16px; }
  .demo-notice strong { display: block; }
  .home-layout { grid-template-columns: 1fr; gap: 32px; margin: 40px auto 50px; padding: 0 20px; }
  .intro h1 { font-size: 39px; }
  .steps { gap: 8px; margin-top: 22px; }
  .start-card { padding: 24px; }
  .workspace { padding: 28px 14px 40px; }
  .workspace-heading { align-items: flex-start; }
  .quiet-link { white-space: normal; max-width: 80px; text-align: right; }
  .panes { grid-template-columns: 1fr; gap: 24px; }
  .panel-heading { padding: 20px; }
  .panel-heading h2 { font-size: 20px; }
  .messages { padding: 18px; max-height: 520px; }
  .composer { padding: 18px; }
  .sample-form { padding: 0 18px 18px; }
  .composer-actions { flex-wrap: wrap; }
  .brief-meta, .brief-sections { padding-left: 20px; padding-right: 20px; }
  .progress-note { margin-left: 20px; margin-right: 20px; }
  .tabs { padding: 10px 20px 0; }
  .sketch { padding: 14px 16px 18px; }
  .sketch-screen { padding: 12px 10px 6px; }
  .error-layout { margin: 30px 16px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
