/* The shared AI Studio application layer. Existing workflows use one visual language. */
:root { --paper: #f5f5f1; --white: #fff; --paper-deep: #eeeee8; --ink: #222d29; --muted: #5d6862; --rule: #dce0d9; --signal: #a64930; --signal-dark: #80351f; --green: #35664e; --shadow: none; }
html { font-size: 16px; scroll-behavior: auto; scroll-padding-top: 138px; }
body { background: var(--paper); background-image: none; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled, textarea:disabled { opacity: .65; cursor: wait; }
a { text-underline-offset: 4px; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
h1, h2, h3 { color: var(--ink); font-family: "Libre Franklin", sans-serif; letter-spacing: -.035em; text-transform: none; }
h2 { font-size: 22px; line-height: 1.35; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 650; }
.eyebrow, .kicker { font: 500 12px/1.5 "Libre Franklin", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.muted, .quiet-note { color: var(--muted); }
.quiet-note { font-size: 14px; line-height: 1.75; margin: 0; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.studio-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.studio-masthead { min-height: 76px; max-width: 1280px; margin: auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.studio-brand { display: flex; gap: 11px; align-items: center; font-size: 23px; font-weight: 650; letter-spacing: -.8px; text-decoration: none; white-space: nowrap; }
.studio-brand > span { color: var(--signal); font-size: 34px; font-weight: 400; }
.studio-brand small { margin-left: 7px; padding-left: 17px; border-left: 1px solid var(--rule); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.studio-account { display: flex; align-items: center; gap: 26px; }
.private-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.private-label i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.text-button { font: 500 14px/1.5 "Libre Franklin", sans-serif; text-transform: none; }
.studio-nav { display: flex; gap: 27px; max-width: 1280px; margin: auto; padding: 0 36px; overflow-x: auto; scrollbar-width: thin; }
.studio-nav a { display: flex; align-items: center; min-height: 49px; padding: 0 1px; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.studio-nav a:hover { color: var(--ink); }
.studio-nav a[aria-current="page"] { color: var(--ink); border-color: var(--signal); }
.dashboard, .control-room { max-width: 1280px; padding: 38px 36px 40px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font: 650 34px/1.25 "Libre Franklin", sans-serif; letter-spacing: -1.3px; text-transform: none; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 16px; margin: 12px 0 0; max-width: 760px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.refresh-button { display: inline-flex; align-items: center; gap: 18px; padding: 10px 15px; min-height: 44px; border: 1px solid var(--rule); border-radius: 7px; background: var(--white); color: var(--ink); font-size: 14px; }
.refresh-button span { font-size: 20px; }
.studio-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; border: 1px solid var(--rule); border-radius: 10px; background: var(--white); overflow: hidden; }
.studio-metrics > a { padding: 18px 24px; display: grid; text-decoration: none; border-right: 1px solid var(--rule); }
.studio-metrics > a:last-child { border-right: 0; }
.studio-metrics > a:hover { background: #fafaf7; }
.studio-metrics span { color: var(--muted); font-size: 14px; }
.studio-metrics strong { font-size: 32px; line-height: 1.4; font-weight: 650; letter-spacing: -1px; }
.studio-metrics small { color: var(--muted); font-size: 12px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(285px, 1fr); gap: 24px; align-items: start; }
.primary-stack, .secondary-stack { display: grid; gap: 24px; min-width: 0; }
.section-card { background: var(--white); border: 1px solid var(--rule); border-radius: 11px; padding: 26px; min-width: 0; }
main > .section-card + .section-card { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-card > p { margin: 14px 0; }
.section-footnote { margin: 17px 0 0 !important; font-size: 13px; color: var(--muted); line-height: 1.7; }
.text-link { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.text-link:hover { color: var(--signal); text-decoration: underline; }
.count-badge { display: inline-flex; justify-content: center; align-items: center; background: #eeeee9; padding: 3px 9px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
h2 .count-badge { margin-left: 7px; }
.file-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: start; gap: 15px; padding: 23px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.file-row:last-child { border-bottom: 0; padding-bottom: 7px; }
.file-icon { display: grid; place-items: center; height: 39px; background: #f1f2ec; border: 1px solid #e4e7dd; color: #4e6457; border-radius: 8px; font-size: 20px; }
.file-row h3 { margin: 6px 0; font-size: 18px; line-height: 1.5; }
.file-row h3 a { text-decoration: none; }
.file-row h3 a:hover { text-decoration: underline; }
.file-row p { margin: 6px 0; color: var(--muted); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.file-meta { color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.file-download { font-size: 13px; text-decoration: none; white-space: nowrap; margin-top: 7px; }
.file-download:hover { text-decoration: underline; }
.next-step-card { padding: 27px; border: 1px solid #dfd8c8; border-radius: 11px; background: #eeeade; }
.next-step-card h2 { margin: 14px 0; font-size: 27px; line-height: 1.3; letter-spacing: -.8px; }
.next-step-card p:not(.eyebrow) { font-size: 15px; line-height: 1.85; color: #5b6056; }
.button { min-height: 45px; font: 500 14px/1.45 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: 0; padding: 11px 16px; border-radius: 6px; gap: 16px; text-decoration: none; }
.button:hover { transform: none; filter: brightness(.95); }
.button-dark { background: #283b31; color: white; }
.next-step-card .button { margin-top: 8px; }
.next-step-divider { border-top: 1px solid #d5cfbe; margin: 26px 0 20px; }
.support-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.resource-link { display: flex; justify-content: space-between; gap: 14px; margin: 11px 0 6px; font-size: 15px; font-weight: 500; text-decoration: none; }
.resource-link:hover { text-decoration: underline; }
.next-step-card small { font-size: 13px; color: var(--muted); display: block; }
.compact-card p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 7px 0 22px; }
.compact-card p:last-child { margin-bottom: 0; }
.decision-list { display: grid; }
.unified-dashboard .decision-row { display: block; min-height: 0; border: 1px solid var(--rule); border-radius: 8px; margin: 10px 0; }
.unified-dashboard .decision-row.risk-high { border-left: 3px solid var(--red); }
.unified-dashboard .decision-copy { padding: 20px; }
.unified-dashboard .decision-copy header { flex-wrap: wrap; gap: 10px; }
.unified-dashboard .decision-copy h3 { font: 650 19px/1.45 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: -.4px; margin: 13px 0 8px; }
.unified-dashboard .decision-copy p { font-size: 15px; line-height: 1.8; margin: 0 0 15px; color: var(--muted); }
.unified-dashboard .decision-copy footer { font: 400 13px/1.5 "Libre Franklin", sans-serif; letter-spacing: 0; text-transform: none; }
.agent-label { font: 500 12px/1.5 "Libre Franklin", sans-serif; text-transform: none; color: var(--muted); letter-spacing: 0; }
.status-pill { font: 500 12px/1.5 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: 0; padding: 3px 7px; }
.studio-empty { padding: 20px 0; }
.studio-empty h3 { margin: 0 0 10px; }
.studio-empty p { color: var(--muted); font-size: 15px; }
.library-disclosure > summary, .notes-disclosure > summary { cursor: pointer; font-size: 18px; font-weight: 650; }
.library-disclosure summary small, .notes-disclosure summary small { display: block; margin-top: 7px; font-size: 14px; font-weight: 400; color: var(--muted); }
.library-disclosure[open] > summary, .notes-disclosure[open] > summary { margin-bottom: 23px; }
.prepare-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 36px; margin-bottom: 28px; }
.preparation-guidance { padding: 15px 0; }
.preparation-guidance h2 { font-size: 28px; line-height: 1.35; margin: 10px 0 24px; }
.preparation-guidance ol { padding-left: 23px; color: var(--muted); font-size: 15px; }
.preparation-guidance li { padding-left: 6px; margin-bottom: 19px; }
.preparation-guidance strong { color: var(--ink); display: block; }
.preparation-form label, .choice-fields label { display: grid; gap: 10px; font-size: 15px; font-weight: 500; }
.preparation-form label + label, .choice-fields label + label { margin-top: 25px; }
.preparation-form select, .work-card select, .choice-fields input, .choice-fields textarea, .preparation-form textarea { width: 100%; min-height: 47px; border: 1px solid #b8c1b7; background: #fff; color: var(--ink); padding: 12px 14px; border-radius: 6px; font: 400 16px/1.65 "Libre Franklin", sans-serif; }
textarea { resize: vertical; }
textarea::placeholder, input::placeholder { color: #6a746c; opacity: 1; }
.form-finish { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-top: 1px solid var(--rule); margin-top: 25px; padding-top: 20px; }
.form-finish p { font-size: 14px; margin: 0 0 5px; color: var(--muted); }
.form-finish small { font-size: 13px; color: var(--muted); }
.form-message, #preparation-message { font-size: 14px; color: var(--green); }
.form-message.error { color: var(--red); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work-card { border: 1px solid var(--rule); border-radius: 8px; padding: 23px; min-width: 0; overflow-wrap: anywhere; }
.work-card h3 { margin: 12px 0; }
.work-card p { font-size: 14px; color: var(--muted); }
.work-card form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-top: 20px; }
.work-card label { display: grid; gap: 6px; font-size: 14px; }
.strategy-lead { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 24px; border-left: 3px solid var(--green); }
.strategy-lead h2 { font-size: 26px; margin: 0 0 13px; }
.strategy-lead p:last-child { max-width: 720px; color: var(--muted); margin: 0; }
.strategy-lead .button { flex-shrink: 0; }
.strategy-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.strategy-paths h2 { margin: 16px 0 12px; }
.strategy-paths p { font-size: 16px; line-height: 1.8; }
.strategy-paths p.muted { font-size: 15px; }
.path-number { font-size: 13px; color: var(--muted); font-weight: 500; }
.meetup-card { background: #edf1e9; }
.inline-note { color: var(--muted); font-size: 15px; padding: 25px 0; }
.inline-note strong { color: var(--ink); }
.choice-card { border-top: 1px solid var(--rule); padding: 24px 0; }
.choice-heading { display: flex; gap: 14px; align-items: baseline; }
.choice-heading h3 { margin: 0; font-size: 20px; }
.choice-heading p { margin: 8px 0 22px; color: var(--muted); font-size: 14px; }
.choice-number { font-size: 13px; color: var(--signal); }
.choice-fields { max-width: 780px; }
.noscript-note { font-size: 14px; color: var(--muted); }
.studio-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 23px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
/* Retain existing operational panels, with legible type and calmer spacing. */
.panel { border-radius: 10px; box-shadow: none; }
.panel-heading { min-height: 72px; padding: 16px 23px; gap: 18px; flex-wrap: wrap; }
.panel-heading h2 { font: 650 19px/1.4 "Libre Franklin", sans-serif; text-transform: none; }
.panel-heading span, .panel-heading b, .panel-heading p, .panel-heading a { font: 400 13px/1.5 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.domain-agent-grid { padding: 0; gap: 18px; }
.domain-agent { border-radius: 8px; padding: 23px; }
.domain-agent header { flex-wrap: wrap; }
.domain-agent header strong, .specialist-card header strong { font: 650 17px/1.45 "Libre Franklin", sans-serif; text-transform: none; }
.domain-agent p, .specialist-card p, .run-row p, .delegation-row p { font-size: 15px; line-height: 1.8; }
.domain-agent footer, .domain-agent header b, .specialist-card footer, .run-row small, .runtime-meta, .runtime-row time, .run-row time, .delegation-row time { font-size: 12px; line-height: 1.6; }
.run-row strong, .runtime-row strong, .delegation-row strong { font-size: 16px; line-height: 1.5; }
.runtime-row, .delegation-row, .run-row { padding: 21px; gap: 15px; }
.run-list { padding: 0; }
.runtime-path, code { overflow-wrap: anywhere; }
.company-branches { padding: 0; }
.empty-state strong { font-size: 16px; }
.empty-state p { font-size: 14px; max-width: 440px; line-height: 1.7; margin-top: 10px; }
/* The same shell on social, workspace, proposal and reading pages. */
.topbar { background: white; backdrop-filter: none; font-size: 14px; }
.wordmark { font: 650 24px "Libre Franklin", sans-serif; text-transform: none; }
.hero-row h1, .control-hero h1, .workspace-hero h1 { font: 650 34px/1.25 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: -1.2px; }
.workspace-page { max-width: 1280px; margin: auto; padding: 38px 36px; }
.workspace-hero { margin-bottom: 30px; }
.report-card h3 { font: 650 20px/1.45 "Libre Franklin", sans-serif; text-transform: none; }
.report-card p { font-size: 15px; line-height: 1.8; }
.decision-page { max-width: 1280px; padding: 38px 36px; margin: auto; gap: 36px; }
.decision-brief h1 { font: 650 32px/1.35 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: -1px; }
.decision-summary p, .reasoning-block p, .evidence-card p, .company-profile p { font-size: 16px; line-height: 1.85; }
.decision-form label > span { font-size: 14px; }
.decision-form textarea { font: 400 16px/1.8 "Libre Franklin", sans-serif; border-radius: 6px; }
.decision-payload { margin: 22px 0; }
.decision-payload summary { cursor: pointer; font-size: 14px; }
.payload-code { font-size: 13px; line-height: 1.8; }
.reading-page { max-width: 960px; margin: 30px auto 70px; padding: 0 28px; }
.reading-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; font-size: 14px; }
.reading-toolbar > div { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.reading-paper { background: white; padding: 46px 58px; border: 1px solid var(--rule); border-radius: 10px; }
.document-content, .report-document { max-width: 72ch; margin: auto; font: 400 17px/1.85 "Libre Franklin", sans-serif; }
.document-content h1, .report-document h1 { margin: 15px 0 30px; font: 650 32px/1.35 "Libre Franklin", sans-serif; letter-spacing: -1px; text-transform: none; }
.document-content h2, .report-document h2 { font: 650 24px/1.45 "Libre Franklin", sans-serif; text-transform: none; margin: 40px 0 16px; }
.document-content h3, .report-document h3 { font-size: 19px; margin: 30px 0 12px; }
.document-content p, .document-content li, .report-document p, .report-document li { font-size: 17px; line-height: 1.9; color: #39443e; }
.document-content p, .report-document p { margin: 16px 0; }
.document-content li, .report-document li { margin: 9px 0; }
.document-content pre, .report-document pre { background: #f0f2ec; padding: 20px; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 6px; font: 400 13px/1.85 "DM Mono", monospace; }
.document-content code { font: 400 .86em/1.8 "DM Mono", monospace; overflow-wrap: anywhere; }
.document-content blockquote { margin: 22px 0; padding: 1px 22px; background: #f5f6f1; border-left: 3px solid #96a18f; }
.document-content a { color: #36664e; }
.document-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--rule); margin: 24px 0; }
.document-table table { border-collapse: collapse; min-width: 540px; width: 100%; }
.document-table th, .document-table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.8; vertical-align: top; }
.document-table th { background: #f0f2ec; }
.source-reference { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.reading-notice { font-size: 14px; color: var(--muted); margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
.login-page { background: #edf0e9; }
.login-card { border-color: var(--rule); border-radius: 12px; background: white; box-shadow: 0 15px 60px #283b310a; padding: 34px; }
.login-copy { padding: 42px 0 32px; }
.login-copy h1 { font-size: 36px; }
.stack label { font: 500 14px/1.6 "Libre Franklin", sans-serif; text-transform: none; letter-spacing: 0; }
.stack input { border-radius: 6px; font-size: 16px; }
.login-card footer { font: 400 12px/1.5 "Libre Franklin", sans-serif; text-transform: none; }
@media (max-width: 1000px) {
  .overview-grid, .prepare-grid { grid-template-columns: minmax(0, 1fr); }
  .secondary-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary-stack > .quiet-note { grid-column: 1 / -1; }
  .strategy-lead { align-items: flex-start; flex-direction: column; gap: 22px; }
  .file-row { grid-template-columns: 36px minmax(0, 1fr); }
  .file-download { grid-column: 2; margin-top: 0; }
  .preparation-guidance { padding: 0 10px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 125px; }
  .studio-masthead { padding: 0 20px; min-height: 68px; }
  .studio-brand { font-size: 21px; gap: 8px; }
  .studio-brand small, .private-label { display: none; }
  .studio-nav { padding: 0 20px; gap: 25px; }
  .studio-nav a { font-size: 14px; min-height: 46px; }
  .dashboard, .control-room, .workspace-page, .decision-page { padding: 26px 20px; }
  .page-heading { align-items: flex-start; gap: 15px; flex-direction: column; margin-bottom: 23px; }
  .page-heading h1 { font-size: 29px; line-height: 1.3; letter-spacing: -.9px; }
  .page-heading p:not(.eyebrow) { font-size: 15px; line-height: 1.8; }
  .studio-metrics { grid-template-columns: repeat(2, 1fr); }
  .studio-metrics > a { padding: 15px 18px; border-bottom: 1px solid var(--rule); }
  .studio-metrics > a:nth-child(2) { border-right: 0; }
  .studio-metrics > a:nth-child(n+3) { border-bottom: 0; }
  .studio-metrics strong { font-size: 29px; }
  .secondary-stack, .strategy-paths, .activity-grid, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .section-card, .next-step-card { padding: 21px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .section-heading h2 { font-size: 21px; }
  .file-row { gap: 10px; }
  .file-row h3 { font-size: 17px; }
  .file-row p { font-size: 13px; }
  .unified-dashboard .decision-copy { padding: 17px; }
  .unified-dashboard .decision-copy h3 { font-size: 18px; }
  .unified-dashboard .decision-copy footer { align-items: flex-start; flex-direction: column; }
  .studio-footer { flex-direction: column; gap: 6px; font-size: 12px; }
  .reading-page { padding: 0 18px; margin-top: 24px; }
  .reading-paper { padding: 28px 22px; }
  .reading-toolbar { flex-wrap: wrap; gap: 15px; }
  .document-content h1 { font-size: 27px; }
  .document-content h2 { font-size: 23px; }
  .document-content p, .document-content li { font-size: 16px; line-height: 1.9; }
  .domain-agent-grid { grid-template-columns: minmax(0, 1fr); }
  .runtime-row, .run-row, .delegation-row { padding: 17px; min-width: 0; }
}
@media print {
  .studio-header, .studio-footer, .skip-link, .reading-toolbar { display: none !important; }
  body { background: white; }
  .reading-page { max-width: none; padding: 0; margin: 0; }
  .reading-paper { border: 0; padding: 0; }
  .document-content { max-width: none; }
  .document-content h1 { font-size: 25pt; }
  .document-content p, .document-content li { font-size: 11pt; line-height: 1.65; }
  .document-content h2, .document-content h3 { break-after: avoid; }
  .document-table { overflow: visible; }
  .document-table table { min-width: 0; }
}
