/* QuantAI (ai.html) — the tool is scoped under .qa so it never touches the rest of the site.
   Palette follows site.css: navy for actions, map-red for warnings and the forecast. */
.qa {
  --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #EDF1F5; --ink: #0E1726; --ink-2: #3A4658; --ink-3: #5A6679; --line: #DDE3EA;
  --accent: #0C203B; --accent-ink: #FFFFFF; --accent-soft: #E4E9F0;
  --ok: #1F7A4D; --ok-soft: #E3F1E9; --warn: #8F5509; --warn-soft: #FBEFD9; --bad: #C4412B; --bad-soft: #FBE9E5; --code-bg: #F7F9FB;
  --c1: #1C3A63; --c2: #C26A12; --c3: #6C4AB6; --c4: #1F7A4D; --c5: #C4412B; --c6: #5A6679;
  --shadow: 0 1px 2px rgba(12,32,59,.05), 0 6px 18px -10px rgba(12,32,59,.22); --r: 12px;
  scroll-margin-top: 84px;
}
.qa * { box-sizing: border-box; }
.qa { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
.qa h1, .qa h2, .qa h3, .qa h4 { margin: 0; text-wrap: balance; }
.qa p { margin: 0; }
.qa a { color: var(--accent); }
.qa button, .qa input, .qa select, .qa textarea { font: inherit; color: inherit; }
.qa :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa .num { font-variant-numeric: tabular-nums; }
.qa .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.qa .top-in { max-width: 1280px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.qa .brand { display: flex; align-items: baseline; gap: .55rem; min-width: 0; }
.qa .brand b { font-family: var(--f-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.qa .brand span { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.qa .sections { display: flex; gap: .25rem; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-left: auto; }
.qa .sections button { border: 0; background: transparent; padding: .42rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.qa .sections button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.qa .shell { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 2rem; }
.qa .rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); align-self: start; padding-block: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.qa .rail-group h4 { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .4rem .6rem; font-weight: 600; }
.qa .rail nav { display: flex; flex-direction: column; gap: 2px; }
.qa .rail nav button { text-align: left; border: 0; background: transparent; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; display: grid; grid-template-columns: 1.6rem 1fr; gap: .3rem; align-items: baseline; color: var(--ink); }
.qa .rail nav button:hover { background: var(--surface-2); }
.qa .rail nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.qa .rail nav .k { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); }
.qa .rail nav button[aria-current="page"] .k { color: var(--accent); }
.qa .rail nav small { grid-column: 2; font-size: .74rem; color: var(--ink-3); font-weight: 400; line-height: 1.3; }
.qa .rail-note { font-size: .76rem; color: var(--ink-3); line-height: 1.45; padding: 0 .6rem; }
.qa .main { min-width: 0; padding-block: 1.6rem 4rem; }
.qa .ph { margin-bottom: 1.3rem; display: grid; gap: .35rem; }
.qa .ph .eyebrow { font-family: var(--f-mono); font-size: .74rem; color: var(--accent); letter-spacing: .02em; }
.qa .ph .ph-t { font-family: var(--f-display); font-size: 1.85rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.qa .ph p { color: var(--ink-2); max-width: 70ch; }
.qa .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.qa .stack { display: flex; flex-direction: column; gap: 1rem; }
.qa .row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.qa .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qa .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.qa .card h2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.qa .card h3 { font-size: .95rem; font-weight: 600; }
.qa .sub { font-size: .85rem; color: var(--ink-2); }
.qa .muted { color: var(--ink-3); }
.qa .label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; letter-spacing: .01em; }
.qa .field { display: flex; flex-direction: column; min-width: 0; }
.qa .row > .field { flex: 1 1 180px; }
.qa .field small { font-size: .74rem; color: var(--ink-3); margin-top: .25rem; }
.qa input[type=text], .qa input[type=number], .qa select, .qa textarea { width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); line-height: 1.4; }
.qa textarea { resize: vertical; min-height: 5.5rem; }
.qa input:focus, .qa select:focus, .qa textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.qa .btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: .55rem 1rem; border-radius: 8px; font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.qa .btn:hover { filter: brightness(1.06); }
.qa .btn:disabled { opacity: .5; cursor: not-allowed; }
.qa .btn.ghost { background: transparent; color: var(--accent); }
.qa .btn.quiet { background: transparent; border-color: var(--line); color: var(--ink-2); }
.qa .btn.sm { padding: .32rem .65rem; font-size: .8rem; }
.qa .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.qa .chip { border: 1px solid var(--line); background: var(--surface); padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; cursor: pointer; color: var(--ink-2); }
.qa .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.qa .chip .t { font-family: var(--f-mono); font-size: .66rem; color: var(--ink-3); margin-left: .3rem; }
.qa .pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.qa .pill.ok { background: var(--ok-soft); color: var(--ok); }
.qa .pill.warn { background: var(--warn-soft); color: var(--warn); }
.qa .pill.bad { background: var(--bad-soft); color: var(--bad); }
.qa .pill.acc { background: var(--accent-soft); color: var(--accent); }
.qa .notice { border-radius: 8px; padding: .65rem .85rem; font-size: .85rem; border: 1px solid; }
.qa .notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); }
.qa .notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--ink); }
.qa .notice.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); }
.qa .notice b { font-weight: 600; }
.qa hr.sep { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.qa .q { display: grid; gap: .45rem; }
.qa .q > .qt { font-weight: 600; font-size: .92rem; }
.qa .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem; }
.qa .opt { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .55rem .7rem; cursor: pointer; font-size: .86rem; color: var(--ink); line-height: 1.35; }
.qa .opt:hover { border-color: var(--accent); }
.qa .opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.qa .audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qa .audit li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .5rem; padding: .5rem 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.qa .audit li:first-child { border-top: 0; }
.qa .audit .ic { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); margin-top: .05rem; }
.qa .audit .ic.ok { background: var(--ok-soft); color: var(--ok); }
.qa .audit .ic.no { background: var(--warn-soft); color: var(--warn); }
.qa .audit .ic.fin { background: var(--accent); color: var(--accent-ink); }
.qa .audit b { font-weight: 600; }
.qa .audit li.final { font-weight: 600; }
.qa .tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.qa table.t { border-collapse: collapse; width: 100%; font-size: .84rem; font-variant-numeric: tabular-nums; }
.qa table.t caption { text-align: left; padding: .55rem .7rem; font-weight: 600; font-size: .84rem; caption-side: top; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.qa table.t th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .76rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.qa table.t td { padding: .42rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.qa table.t tr:last-child td { border-bottom: 0; }
.qa table.t td:not(:first-child), .qa table.t th:not(:first-child) { text-align: right; }
.qa table.t td.l, .qa table.t th.l { text-align: left; }
.qa .tnote { font-size: .76rem; color: var(--ink-3); padding: .4rem .7rem .55rem; }
.qa .apa { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: .8rem 1rem; border-radius: 0 8px 8px 0; font-family: var(--f-display); font-size: 1rem; line-height: 1.6; }
.qa .code { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qa .code-tabs { display: flex; align-items: center; gap: 2px; padding: .3rem .4rem 0; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.qa .code-tabs button { border: 0; background: transparent; padding: .4rem .75rem; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--ink-2); border-radius: 6px 6px 0 0; }
.qa .code-tabs button[aria-selected="true"] { background: var(--code-bg); color: var(--accent); box-shadow: 0 1px 0 var(--code-bg); }
.qa .code-tabs .sp { margin-left: auto; display: flex; gap: .3rem; padding-bottom: .3rem; }
.qa pre.src { margin: 0; padding: .9rem 1rem; background: var(--code-bg); font: .78rem/1.6 var(--f-mono); overflow: auto; max-height: 460px; white-space: pre; tab-size: 4; }
.qa pre.src .cm { color: var(--ink-3); }
.qa .res-head { display: flex; gap: .7rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.qa .res-head h2 { font-size: 1.3rem; }
.qa .meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.qa .sect-t { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: .45rem; }
.qa details.fold > summary { cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: .4rem; }
.qa details.fold > summary::before { content: "▸"; color: var(--ink-3); transition: transform .15s; }
.qa details.fold[open] > summary::before { transform: rotate(90deg); }
.qa details.fold > summary::-webkit-details-marker { display: none; }
.qa .chart { width: 100%; max-width: 640px; height: auto; display: block; }
.qa .chart text { fill: var(--ink-2); font: 11px var(--f-body); }
.qa .chart .ax { stroke: var(--line); }
.qa .chart .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.qa .vt td { vertical-align: middle; }
.qa .vt select, .qa .vt input { padding: .3rem .4rem; font-size: .8rem; }
.qa .vt code, .qa code.n { font-family: var(--f-mono); font-size: .78rem; background: var(--surface-2); padding: .05rem .35rem; border-radius: 4px; }
.qa .drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 1.2rem; text-align: center; color: var(--ink-2); cursor: pointer; background: var(--bg); }
.qa .drop:hover, .qa .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.qa .bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.qa .bar > i { display: block; height: 100%; background: var(--warn); }
.qa .big { font-family: var(--f-display); font-size: 2.6rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.qa .kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .86rem; }
.qa .kv dt { color: var(--ink-3); }
.qa .kv dd { margin: 0; }
.qa ul.clean { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; font-size: .88rem; }
.qa .check-item { display: grid; grid-template-columns: 1.2rem 1fr; gap: .55rem; align-items: start; padding: .4rem 0; border-top: 1px dashed var(--line); font-size: .88rem; cursor: pointer; }
.qa .check-item input { margin-top: .25rem; accent-color: var(--accent); }
.qa .check-item.done span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line); }
.qa .prog { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.qa .prog > i { display: block; height: 100%; background: var(--ok); transition: width .2s; }
.qa .log-item { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.qa .log-item:first-child { border-top: 0; }
.qa .log-item .k { font-family: var(--f-mono); color: var(--ink-3); font-size: .8rem; }
.qa-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; z-index: 50; box-shadow: var(--shadow); }
.qa .spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
.qa * { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
.qa .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
.qa .rail { position: static; padding-block: .8rem 0; }
.qa .rail nav { flex-direction: row; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
.qa .rail nav button { grid-template-columns: auto; white-space: nowrap; border: 1px solid var(--line); }
.qa .rail nav small, .qa .rail nav .k, .qa .rail-note, .qa .rail-group h4 { display: none; }
.qa .grid2, .qa .grid3 { grid-template-columns: minmax(0, 1fr); }
.qa .brand span { display: none; }
.qa .ph .ph-t { font-size: 1.5rem; }
}

/* neutralise site.css rules that share class or element names with the tool */
.qa { font-size: 15px; line-height: 1.55; background: transparent; }
.qa h1, .qa h2, .qa h3, .qa h4 { margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.qa h3 { font-family: var(--f-body); }
.qa p { margin: 0; }
.qa .ph .ph-t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.qa .apa { font-family: var(--f-body); font-size: 1rem; }
.qa .card h2, .qa .res-head h2 { font-family: var(--f-display); font-weight: 600; }
.qa .btn { min-height: 0; justify-content: flex-start; border-width: 1px; transition: none; line-height: 1.3; font-size: .88rem; }
.qa .btn:hover { transform: none; }
.qa .btn.sm { font-size: .8rem; }
.qa .card { display: block; overflow: visible; transition: none; }
.qa .card.stack { display: flex; }
.qa .card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.qa .label { display: block; font-family: var(--f-body); text-transform: none; letter-spacing: .01em; font-size: .78rem; color: var(--ink-2); margin-bottom: .3rem; }
.qa .label::before { display: none; }
.qa .field input, .qa .field select, .qa .field textarea, .qa input[type=text], .qa input[type=number], .qa select, .qa textarea { min-height: 0; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .92rem; }
.qa .field textarea { min-height: 5.5rem; }
.qa svg.chart { display: block; }
.qa .chart text { font-family: var(--f-body); }
.qa pre.src { font-family: var(--f-mono); }
.qa .shell { padding: 0; max-width: none; }
.qa .rail { top: 92px; }
.qa-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.qa .sections { margin-left: 0; }
.qa-bar .note { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }
.qa-toast { background: #0E1726; color: #fff; font-family: var(--f-body); }
@media (max-width: 900px) { .qa .rail { position: static; } }

/* page sections around the tool */
.qa-hero { background: var(--navy); color: #E6ECF4; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.qa-hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 5.6rem); margin-bottom: .2em; }
.qa-hero .lead { color: #C3CEDC; max-width: 60ch; }
.qa-hero .crumbs, .qa-hero .crumbs a { color: #93A2B6; }
.qa-hero .label { color: #A9B6C8; }
.qa-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; font-family: var(--f-mono); font-size: .82rem; color: #B8C4D4; }
.qa-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.qa-badges .icon { color: #F08A74; }
.qa-steps { list-style: none; margin: 1.75rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 980px; }
.qa-steps li { display: flex; gap: .8rem; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .9rem 1rem; }
.qa-steps li > b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F08A74; color: #0C203B; font-family: var(--f-display); font-size: .95rem; }
.qa-steps strong { display: block; color: #fff; font-weight: 600; margin-bottom: .15rem; }
.qa-steps span { font-size: .9rem; color: #C3CEDC; line-height: 1.45; }
.qa-app { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.qa-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.qa-how article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.qa-how h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.qa-how p { color: var(--ink-2); font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .qa-how, .qa-steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   QuantAI skin: a hand-set, editorial look that matches the site.
   Hairlines instead of boxes, the site's red-square marker, journal
   tables, a serif for write-ups, a navy code panel.
   ------------------------------------------------------------------ */
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.qa { --serif: "Source Serif", Georgia, "Times New Roman", serif; --red: #C4412B; --navy: #0C203B; --hair: #DDE3EA; }

/* section tabs: text tabs with the site's red underline */
.qa-bar { border-bottom: 1px solid var(--hair); padding-bottom: 0; align-items: flex-end; }
.qa .sections { background: none; padding: 0; gap: 1.6rem; border-radius: 0; }
.qa .sections button { background: none; border-radius: 0; padding: .2rem 0 .85rem; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.qa .sections button:hover { color: var(--navy); }
.qa .sections button[aria-pressed="true"] { background: none; color: var(--navy); border-bottom-color: var(--red); }
.qa-bar .note { padding-bottom: .9rem; }

/* tool rail: a quiet contents list */
.qa .rail { gap: 1.4rem; }
.qa .rail-group h4 { font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; color: var(--ink-3); display: flex; align-items: center; gap: .5rem; margin-left: 0; }
.qa .rail-group h4::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 1px; }
.qa .rail nav { gap: 0; border-left: 1px solid var(--hair); }
.qa .rail nav button { border-radius: 0; padding: .55rem .2rem .55rem .9rem; margin-left: -1px; border-left: 2px solid transparent; }
.qa .rail nav button:hover { background: none; color: var(--navy); }
.qa .rail nav button[aria-current="page"] { background: none; border-left-color: var(--navy); color: var(--navy); }
.qa .rail nav .k { color: var(--ink-3); }
.qa .rail-note { padding: 0; font-size: .8rem; }

/* page heads: site label style */
.qa .ph { gap: .5rem; margin-bottom: 1.6rem; }
.qa .ph .eyebrow { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: .5rem; }
.qa .ph .eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 1px; }
.qa .ph .ph-t { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.025em; }
.qa .ph p { font-size: 1rem; color: var(--ink-2); }

/* surfaces: flat paper with hairlines, no drop shadows */
.qa .card { box-shadow: none; border-color: var(--hair); border-radius: 14px; padding: 1.5rem 1.6rem; }
.qa .card:hover { box-shadow: none; }
.qa .sect-t { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; color: var(--ink-3); }
.qa .res-head h2, .qa .res-head h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; }
.qa .res-head h2 { font-size: 1.45rem; }

/* badges instead of pills */
.qa .pill { border-radius: 4px; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .03em; padding: .2rem .5rem; background: transparent; border: 1px solid var(--hair); color: var(--ink-2); }
.qa .pill.acc { background: var(--navy); border-color: var(--navy); color: #fff; }
.qa .pill.ok { border-color: #BFDCCB; color: var(--ok); }
.qa .pill.warn { border-color: #EBCB9C; color: var(--warn); }
.qa .pill.bad { border-color: #EDBCB2; color: var(--bad); }

/* controls */
.qa .btn { border-radius: 10px; padding: .6rem 1.05rem; font-weight: 600; }
.qa .btn.quiet { border-color: var(--hair); color: var(--navy); background: #fff; }
.qa .btn.quiet:hover { border-color: var(--navy); }
.qa .btn.ghost { border-color: var(--navy); color: var(--navy); }
.qa .btn.sm { padding: .38rem .7rem; border-radius: 8px; }
.qa .chip { border-radius: 8px; padding: .38rem .7rem; font-size: .84rem; color: var(--ink); background: #fff; border-color: var(--hair); }
.qa .chip:hover { border-color: var(--navy); }
.qa .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.qa .chip[aria-pressed="true"] .t { color: #AFC0D6; }
.qa .opt { border-radius: 10px; padding: .7rem .85rem; border-color: var(--hair); }
.qa .opt[aria-pressed="true"] { background: #fff; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.qa .opt[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 1px; margin-right: .5rem; vertical-align: .12em; }
.qa .field input, .qa .field select, .qa .field textarea, .qa input[type=text], .qa input[type=number], .qa select, .qa textarea { border-radius: 10px; padding: .6rem .75rem; border-color: var(--hair); }
.qa .label { font-weight: 600; color: var(--ink); font-size: .82rem; }

/* notes: a coloured rule, not a coloured box */
.qa .notice { border: 0; border-left: 3px solid; border-radius: 0 8px 8px 0; padding: .7rem 1rem; background: #F7F9FB; }
.qa .notice.info { border-left-color: var(--navy); }
.qa .notice.warn { border-left-color: #D18A2A; background: #FDF8F0; }
.qa .notice.bad { border-left-color: var(--red); background: #FCF4F2; }

/* rules applied: a margin checklist */
.qa .audit li { border-top: 0; padding: .45rem 0; }
.qa .audit .ic { width: 1.05rem; height: 1.05rem; border-radius: 3px; font-size: .64rem; background: #fff; border: 1px solid var(--hair); color: var(--ink-3); }
.qa .audit .ic.ok { border-color: #BFDCCB; background: #F0F8F3; color: var(--ok); }
.qa .audit .ic.no { border-color: #EBCB9C; background: #FDF6EA; color: var(--warn); }
.qa .audit .ic.fin { border-color: var(--red); background: var(--red); color: #fff; }

/* journal tables (booktabs): heavy top and bottom rules, light mid rule */
.qa .tw { border: 0; border-radius: 0; }
.qa table.t { font-size: .88rem; }
.qa table.t caption { background: none; border: 0; padding: 0 0 .5rem; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: .98rem; color: var(--ink); }
.qa table.t thead th { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); font-size: .78rem; padding: .5rem .6rem; }
.qa table.t td { border-bottom: 0; padding: .38rem .6rem; }
.qa table.t tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.qa table.t tbody tr:hover td { background: #F7F9FB; }
.qa .tnote { padding: .45rem 0 0; font-size: .78rem; }

/* write-ups read like the results section of a paper */
.qa .apa { font-family: var(--serif); font-size: 1.06rem; line-height: 1.65; background: none; border-left: 2px solid var(--red); border-radius: 0; padding: .2rem 0 .2rem 1.1rem; color: var(--ink); }

/* code: a navy panel */
.qa .code { border: 0; border-radius: 12px; background: var(--navy); }
.qa .code-tabs { background: transparent; border-bottom: 1px solid rgba(255,255,255,.1); padding: .45rem .6rem 0; }
.qa .code-tabs button { color: #9FB0C6; font-family: var(--f-mono); font-weight: 500; font-size: .78rem; }
.qa .code-tabs button[aria-selected="true"] { background: transparent; color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.qa .code-tabs .btn.quiet { background: transparent; color: #DCE5F0; border-color: rgba(255,255,255,.25); }
.qa pre.src { background: transparent; color: #E6ECF4; }
.qa pre.src .cm { color: #8396AF; }

/* charts in the site palette */
.qa { --c1: #1C3A63; --c2: #C4412B; --c3: #7A8CA3; --c4: #1F7A4D; --c5: #C4412B; --c6: #B8792A; }

/* chat: a conversation, not a stack of bubbles */
.qa .qa-say { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; max-width: 100%; min-width: 0; }
.qa .qa-result, .qa .qa-result > *, .qa #qa-thread { min-width: 0; }
.qa .qa-result .tw { overflow-x: auto; }
.qa .qa-by { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: .45rem; }
.qa .qa-by::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 1px; }
.qa .qa-said { font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 68ch; }
.qa .qa-said.err { border-left: 3px solid #D18A2A; padding-left: .8rem; }
.qa .qa-you { align-self: flex-end; max-width: 80%; background: var(--navy); color: #fff; padding: .65rem 1rem; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; line-height: 1.5; }
.qa #qa-thread { padding: .25rem .25rem .5rem 0; }
.qa #qa-chat-form textarea { border-radius: 14px; padding: .8rem 1rem; font-size: 1rem; }
.qa .card.qa-chat { padding: 1.4rem 1.6rem 1.2rem; }
.qa .qa-result { border: 1px solid var(--hair); border-radius: 12px; padding: 1.1rem 1.2rem; background: #fff; display: flex; flex-direction: column; gap: .8rem; }
.qa .starter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.qa .starter-list button { text-align: left; background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: .8rem .95rem; cursor: pointer; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.qa .starter-list button:hover { border-color: var(--navy); }
.qa .starter-list button::before { content: "→ "; color: var(--red); font-family: var(--f-mono); }

/* misc */
.qa .big { font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.qa .prog { height: 4px; border-radius: 2px; }
.qa .prog > i { background: var(--navy); }
.qa .check-item { border-top-color: var(--hair); }
.qa .drop { border-color: #C9D1DC; border-radius: 14px; background: #fff; padding: 1.6rem; }
.qa .drop:hover, .qa .drop.over { border-color: var(--navy); background: #F7F9FB; }
.qa hr.sep { border-top-color: var(--hair); }
.qa details.fold > summary { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .qa .sections { gap: 1.1rem; }
  .qa .sections button { font-size: .98rem; }
  .qa .rail nav { border-left: 0; }
  .qa .rail nav button { border: 1px solid var(--hair); border-radius: 8px; margin: 0; padding: .45rem .75rem; }
  .qa .rail nav button[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
  .qa .card { padding: 1.1rem 1.1rem; }
}

/* ------------------------------------------------------------------
   QuantAI app shell: full-screen chat layout (sidebar + conversation)
   ------------------------------------------------------------------ */
body.qa-page { background: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qa-app2 { position: relative; display: grid; grid-template-columns: 276px minmax(0, 1fr); height: 100vh; height: 100dvh; background: #fff; font-size: 15px; }
.qa-app2 .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qa-app2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.qa-app2 .icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.qa-app2 .icon-btn:hover { background: #E9EDF2; color: var(--navy); }
.qa-app2 .icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.qa-app2 .icon-btn.sm svg { width: 15px; height: 15px; }

/* sidebar */
#qa-side { background: #F4F6F9; border-right: 1px solid #E4E8EE; display: flex; flex-direction: column; min-height: 0; padding: .75rem .65rem; gap: .5rem; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: .1rem .35rem .25rem; }
.side-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.side-brand img { border-radius: 8px; }
.side-x { display: none !important; }
.side-new { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem .8rem; border-radius: 12px; border: 1px solid #DCE2EA; background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: 0 1px 2px rgba(12,32,59,.05); }
.side-new:hover { border-color: var(--navy); }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; padding: .25rem 0; margin: 0 -.2rem; }
.side-h { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #7C899B; padding: .9rem .6rem .35rem; }
.side-item { display: block; width: 100%; text-align: left; padding: .5rem .6rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: .9rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item:hover { background: #E7EBF1; }
.side-item.on, .side-chat.on .side-item { background: #E2E7EE; font-weight: 600; color: var(--navy); }
.side-grp > summary { list-style: none; display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 9px; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ink); }
.side-grp > summary::-webkit-details-marker { display: none; }
.side-grp > summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.6px solid #8A96A8; border-bottom: 1.6px solid #8A96A8; transform: rotate(-45deg); transition: transform .15s; }
.side-grp[open] > summary::after { transform: rotate(45deg); }
.side-grp > summary:hover { background: #E7EBF1; }
.side-grp .side-item { padding-left: 2.15rem; font-size: .87rem; color: var(--ink-2); }
.side-grp .side-item.on { color: var(--navy); }
.side-chat { display: flex; align-items: center; border-radius: 9px; }
.side-chat .side-item { flex: 1; min-width: 0; }
.side-chat .icon-btn { opacity: 0; }
.side-chat:hover .icon-btn, .side-chat.on .icon-btn, .side-chat .icon-btn:focus-visible { opacity: 1; }
.side-empty { font-size: .84rem; color: #7C899B; padding: .2rem .6rem; margin: 0; }
.side-foot { border-top: 1px solid #E1E6ED; padding-top: .7rem; display: flex; flex-direction: column; gap: .65rem; }
.side-data { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .65rem; background: #fff; border: 1px solid #E1E6ED; border-radius: 12px; }
.side-data b { font-size: .85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-data small { font-size: .76rem; color: #7C899B; }
.side-data-btns { display: flex; gap: .4rem; margin-top: .35rem; }
.qa-app2 .side-link-btn { font-family: var(--f-body); font-size: .78rem !important; line-height: 1.4; font-weight: 600; color: var(--navy); background: #F4F6F9; border: 1px solid #E1E6ED; border-radius: 8px; padding: .3rem .55rem; cursor: pointer; }
.qa-app2 .side-link-btn:hover { border-color: var(--navy); }
.side-links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: 0 .5rem; font-size: .8rem; }
.side-links a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.side-links a:hover { color: var(--navy); text-decoration: underline; }
.side-links svg { width: 14px; height: 14px; }

/* main column */
#qa-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#qa-top { height: 54px; flex: none; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-bottom: 1px solid transparent; }
.qa-main.is-tool ~ #qa-top, #qa-view:has(.is-tool) #qa-top { border-bottom-color: #EEF1F5; }
.top-title { font-weight: 600; color: var(--ink); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.only-m { display: none !important; }
.back-btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #DCE2EA; background: #fff; border-radius: 10px; padding: .4rem .75rem; font-weight: 600; font-size: .86rem; color: var(--navy); cursor: pointer; }
.back-btn:hover { border-color: var(--navy); }
.qa-main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.qa-main.is-chat { display: flex; flex-direction: column; }
.tool-wrap { max-width: 1060px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

/* empty chat: centred welcome */
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 2rem 1rem 3rem; width: 100%; max-width: 800px; margin: 0 auto; }
.chat-hello { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.chat-hello img { border-radius: 12px; }
.chat-hello h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -.03em; color: var(--navy); margin: 0; line-height: 1.1; }
.chat-hello p { color: var(--ink-2); max-width: 52ch; margin: 0; font-size: 1rem; }
.suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: 100%; }
.suggest button { text-align: left; border: 1px solid #E1E6ED; background: #fff; border-radius: 14px; padding: .8rem 1rem; cursor: pointer; display: flex; flex-direction: column; gap: .15rem; transition: background .15s, border-color .15s; }
.suggest button:hover { background: #F7F9FB; border-color: #C9D1DC; }
.suggest b { font-weight: 600; font-size: .92rem; color: var(--ink); }
.suggest span { font-size: .86rem; color: #6B788B; }
.chat-data { font-size: .82rem; color: #6B788B; text-align: center; margin: 0; }

/* conversation */
.chat-thread { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 1.5rem 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.6rem; }
.msg.you { display: flex; justify-content: flex-end; }
.msg.you .bubble { max-width: 78%; background: #EEF1F5; color: var(--ink); padding: .7rem 1rem; border-radius: 20px; white-space: pre-wrap; line-height: 1.55; }
.msg.bot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .85rem; align-items: start; }
.msg.bot .av { border-radius: 8px; margin-top: .1rem; }
.msg.bot .body { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.msg.bot .text { line-height: 1.65; color: var(--ink); font-size: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.msg.bot .text.err { border-left: 3px solid #D18A2A; padding-left: .8rem; }
.msg.bot .text ul { margin: 0; }
.typing { display: inline-flex; gap: 5px; padding: .6rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B6; animation: qa-dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes qa-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }

/* composer */
.chat-dock { position: sticky; bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff 28%); padding: 1rem 1.25rem .75rem; }
.composer { width: 100%; max-width: 800px; margin: 0 auto; display: flex; align-items: flex-end; gap: .4rem; background: #fff; border: 1px solid #D5DCE5; border-radius: 26px; padding: .45rem .45rem .45rem .5rem; box-shadow: 0 2px 12px -6px rgba(12,32,59,.18); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: #9DAABB; box-shadow: 0 4px 18px -8px rgba(12,32,59,.28); }
.composer.big { padding: .7rem .6rem .6rem .7rem; border-radius: 28px; }
.composer textarea { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; resize: none; background: transparent !important; padding: .5rem .25rem !important; font-family: var(--f-body) !important; font-weight: 400 !important; color: var(--ink); font-size: 1rem !important; line-height: 1.5; max-height: 220px; min-height: 0 !important; border-radius: 0 !important; }
.composer.big textarea { min-height: 3.2rem !important; }
.composer .attach { cursor: pointer; }
.composer .send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.composer .send:hover { background: #1C3A63; }
.composer .send:disabled { background: #C9D1DC; cursor: default; }
.disclaimer { text-align: center; font-size: .74rem; color: #7C899B; margin: .5rem auto 0; max-width: 800px; }

/* results inside chat */
.qa-app2 .qa-result { border: 1px solid #E1E6ED; border-radius: 14px; padding: 1rem 1.1rem; background: #fff; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.qa-app2 .qa-result .tw { overflow-x: auto; }

/* below-the-fold page sections */
.qa-about { border-top: 1px solid #E4E8EE; }

/* phones and small tablets */
#qa-scrim { position: fixed; inset: 0; background: rgba(12,32,59,.35); z-index: 40; border: 0; }
@media (max-width: 900px) {
  .qa-app2 { grid-template-columns: minmax(0, 1fr); }
  #qa-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); z-index: 50; transform: translateX(-102%); transition: transform .2s ease; padding-top: calc(env(safe-area-inset-top, 0px) + .75rem); box-shadow: 0 0 40px rgba(12,32,59,.2); }
  #qa-side.open { transform: none; }
  .side-x { display: inline-grid !important; }
  .only-m { display: inline-grid !important; }
  #qa-top { border-bottom-color: #EEF1F5; padding-top: env(safe-area-inset-top, 0px); }
  .back-btn span { display: none; }
  .suggest { grid-template-columns: minmax(0, 1fr); }
  .suggest button:nth-child(n+3) { display: none; }
  .chat-empty { justify-content: flex-end; }
  .tool-wrap { padding: 1rem 1rem 3rem; }
  .msg.you .bubble { max-width: 88%; }
  .chat-dock { padding: .75rem .75rem calc(env(safe-area-inset-bottom, 0px) + .5rem); }
  .side-chat .icon-btn { opacity: 1; }
}

/* data check list */
.qa .dq { list-style: none; margin: .2rem 0; padding: 0; display: grid; gap: .45rem; }
.qa .dq li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.qa .dq .dq-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .45rem; background: #9AA6B6; }
.qa .dq .dq-warn .dq-dot { background: #C9741A; }
.qa .dq li .btn { margin-left: .35rem; vertical-align: baseline; }

/* Chat-first: tools folded away, suggestion chips under replies */
.side-more { margin-top: 1rem; border-top: 1px solid #E1E6ED; padding-top: .4rem; }
.side-more > summary { list-style: none; cursor: pointer; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #7C899B; padding: .6rem .6rem .35rem; display: flex; align-items: center; }
.side-more > summary::-webkit-details-marker { display: none; }
.side-more > summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.6px solid #8A96A8; border-bottom: 1.6px solid #8A96A8; transform: rotate(-45deg); transition: transform .15s; }
.side-more[open] > summary::after { transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.chips .chip { border: 1px solid #DDE3EA; background: #fff; color: var(--ink-2); border-radius: 999px; padding: .42rem .85rem; font: inherit; font-size: .86rem; cursor: pointer; text-align: left; transition: border-color .15s, color .15s, background .15s; }
.chips .chip:hover { border-color: var(--navy); color: var(--navy); background: #F5F7FA; }
.chips .chip.tool { color: var(--navy); font-weight: 600; }


/* Simplified chat-first workspace */
.qa-app2 { grid-template-columns: 252px minmax(0, 1fr); }
.chat-empty { max-width: 760px; gap: 1.05rem; padding-top: clamp(1.25rem, 5vh, 3rem); }
.chat-hello { gap: .8rem; }
.chat-hello h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); }
.chat-hello p { max-width: 58ch; line-height: 1.65; }
.start-actions { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: .15rem; }
.start-actions > span { color: #6B788B; font-size: .78rem; }
.start-upload { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: .55rem .95rem; border: 1px solid #0C203B; border-radius: 999px; background: #0C203B; color: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; }
.start-upload:hover { background: #1C3A63; }
.start-upload svg { width: 17px; height: 17px; }
.chat-empty .composer.big { margin-top: .15rem; box-shadow: 0 5px 24px -12px rgba(12,32,59,.3); }
.chat-empty .suggest { margin-top: .1rem; gap: .55rem; }
.chat-empty .suggest button { border-radius: 12px; padding: .75rem .9rem; min-height: 76px; }
.chat-empty .suggest b { font-size: .9rem; }
.chat-empty .suggest span { line-height: 1.4; }
.chat-data { max-width: 58ch; line-height: 1.5; }
@media (max-width: 900px) {
  .qa-app2 { grid-template-columns: minmax(0, 1fr); }
  .chat-empty { gap: .9rem; padding: 1.25rem .85rem 1.5rem; }
  .chat-hello h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .start-actions { gap: .45rem; }
  .chat-empty .suggest { grid-template-columns: minmax(0, 1fr); }
  .chat-empty .suggest button { min-height: 0; padding: .7rem .85rem; }
}
