@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/app/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/app/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Tokens from the 9to4 CVI and the Claude workspace UX spec (7.11.2026): yellow marks only what comes next. */
:root {
  --deep-sea: #15403F;
  --deep-sea-2: #1f5655;
  --yellow: #F5C518;
  --yellow-2: #e6b70c;
  --sea-green: #2A9D8F;
  --cream: #FAF7F0;
  --card: #FFFEFB;
  --panel: #F1EEE5;
  --done: #D5EBE6;
  --tint: #FCEFB7;
  --ink: #15403F;
  --muted: #4E6E6B;
  --muted-dark: #B1BCB7;
  --line: #DFE1DB;
  --error: #8a2b22;
  --error-tint: #fdeceb;
  font: 15px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 14px; font-weight: 800; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sea-green); outline-offset: 2px; }

button, .button-link { cursor: pointer; border-radius: 999px; border: 0; padding: 0 18px; min-height: 38px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none; }
button:disabled { opacity: 0.45; cursor: default; }
.cta { background: var(--yellow); color: var(--deep-sea); font-weight: 800; }
.cta:hover:not(:disabled) { background: var(--yellow-2); }
.cta.stop { background: var(--card); box-shadow: inset 0 0 0 1px var(--muted); }
.primary { background: var(--deep-sea); color: var(--cream); }
.primary:hover:not(:disabled) { background: var(--deep-sea-2); }
.secondary { background: transparent; color: var(--deep-sea); box-shadow: inset 0 0 0 1px var(--muted); }
.secondary:hover:not(:disabled) { background: var(--panel); }
.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(250, 247, 240, 0.45); min-height: 32px; padding: 0 14px; font-weight: 600; }

.top { background: var(--deep-sea); color: var(--cream); display: flex; align-items: center; gap: 16px; padding: 16px max(16px, 4vw); }
.logo { display: block; width: 150px; height: auto; }
.product { color: var(--muted-dark); font-size: 14px; border-left: 1px solid rgba(250, 247, 240, 0.25); padding-left: 16px; }
.who { margin-left: auto; font-size: 13px; color: var(--muted-dark); }
.lang { margin-left: auto; background: transparent; color: var(--cream); border: 1px solid rgba(250, 247, 240, 0.45); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.lang option { color: var(--deep-sea); }
.who:not([hidden]) ~ .lang { margin-left: 0; }

main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 16px 32px; }
.workspace {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "request results" "history results";
}
.column-request { grid-area: request; gap: 20px; }
.column-results { grid-area: results; display: grid; gap: 16px; }
.column-history { grid-area: history; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; display: grid; gap: 12px; align-content: start; }
.panel > .section + .section { border-top: 1px solid var(--line); padding-top: 20px; }
.document { padding: 24px; gap: 24px; }
.section { display: grid; gap: 12px; align-content: start; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.narrow { max-width: 560px; margin: 8vh auto 0; gap: 16px; }
.narrow p { color: var(--muted); }
.narrow .cta { justify-self: start; }

.examples { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 30px; padding: 0 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; }
.chip:hover { background: var(--panel); }
.chip.active { background: var(--done); box-shadow: none; }
textarea, input[type="text"], input[type="number"] { width: 100%; border: 1px solid var(--muted-dark); border-radius: 12px; padding: 10px 12px; background: #fff; line-height: 1.5; }
textarea { resize: vertical; overflow: hidden; }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.markup { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.markup input { width: 72px; padding: 6px 8px; }
.hint { color: var(--muted); font-size: 13px; }
.error { color: var(--error); background: var(--error-tint); border: 1px solid #f1c4c0; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.steps .dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 5px; background: var(--sea-green); justify-self: center; }
.steps li.note .dot { background: transparent; border: 2px solid var(--sea-green); }
.steps li.fail .dot { background: var(--error); }
.steps li.working .dot { background: var(--yellow); animation: pulse 1s ease-in-out infinite; }
.steps small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
@keyframes pulse { 50% { transform: scale(0.6); } }
.usage { padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: grid; gap: 4px; }
.usage summary { cursor: pointer; width: fit-content; font-weight: 700; }
.usage details p { margin-top: 4px; overflow-wrap: anywhere; }

.empty { border-style: dashed; background: transparent; min-height: 260px; align-content: center; justify-items: start; padding: 32px; }
.empty ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.empty strong { color: var(--ink); }
.working-panel { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 24px; background: var(--panel); }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.25); animation: pulse 1s ease-in-out infinite; }
.failure { border-color: #f1c4c0; background: var(--error-tint); justify-items: start; padding: 24px; }
.failure h2 { color: var(--error); }

.summary { gap: 10px; }
.facts-row { display: grid; gap: 6px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--done); }
.facts.open li { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }

.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.total-block { display: grid; gap: 2px; }
.total { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; width: fit-content; background: linear-gradient(transparent 68%, var(--yellow) 68%, var(--yellow) 92%, transparent 92%); }
.total.pending { font-size: 26px; background: none; }
.status { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status.ready { background: var(--done); }
.status.check { background: var(--tint); }
.checks { background: var(--tint); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.checks ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 2px; }
.flag { font-size: 11px; font-weight: 800; background: var(--tint); border-radius: 4px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.supplier { display: block; font-size: 12px; color: var(--muted); }
.table-tools { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--deep-sea); width: 16px; height: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child { white-space: normal; }
th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 800; border-bottom: 0; }
.costs-hidden th:nth-child(3), .costs-hidden td:nth-child(3), .costs-hidden th:nth-child(4), .costs-hidden td:nth-child(4) { display: none; }
.build { background: var(--panel); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.build ul { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }

.field-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.subject { font-weight: 700; }
.email { font-size: 14px; line-height: 1.6; min-height: 140px; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.reply-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; display: grid; gap: 8px; }
.note ul { margin: 0; padding-left: 20px; }

.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history button { width: 100%; text-align: left; background: transparent; border-radius: 12px; padding: 8px 10px; min-height: 0; font-weight: 500; display: grid; gap: 4px; justify-content: stretch; white-space: normal; }
.history button:hover { background: var(--cream); }
.history button.active { background: var(--panel); }
.history .snippet { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history .meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: var(--ink); }
.tag.ready { background: var(--done); }
.tag.check { background: var(--tint); }
.tag.failed { background: var(--error-tint); color: var(--error); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 20px; }

@media (prefers-reduced-motion: reduce) { .steps li.working .dot, .pulse { animation: none; } }
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "request" "results" "history"; }
  .product { display: none; }
  .examples { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .total { font-size: 30px; }
}
@media (max-width: 560px) {
  .who { display: none; }
  .who:not([hidden]) ~ .lang { margin-left: auto; }
  .logo { width: 120px; }
  .reply-buttons { width: 100%; }
  .reply-buttons > * { flex: 1 1 auto; }
}
