/* ============================================================
   flynas · Revenue Desk
   Financial-Times editorial aesthetic — salmon paper, serif
   display, flynas teal accent, dark masthead chrome.
   ============================================================ */
:root {
  /* Paper / ink (FT salmon) */
  --paper: #FFF1E5;
  --paper-soft: #FFF9F1;
  --paper-edge: #F4E6D5;
  --ink: #1A1A1A;
  --ink-2: #262320;
  --ink-3: #3C3833;

  /* Sidebar / dark chrome — deep teal-charcoal */
  --sidebar-bg: #0C2321;

  /* Text */
  --text: #1A1A1A;
  --text-dim: #5A554E;
  --text-muted: #837D74;
  --text-faint: #AEA89C;
  --text-on-ink: #F4ECE2;
  --text-on-ink-dim: #9FB3AF;
  --text-on-ink-faint: #66807C;

  /* Hairlines */
  --rule: #1A1714;
  --rule-soft: #D8C9B4;
  --rule-dim: #ECDFCD;
  --rule-on-ink: #1E3936;

  /* Accents — flynas teal as brand (also the FT teal family) */
  --red: #0D7680;          /* NB: name kept = brand accent (charts/chrome) */
  --red-deep: #0A5A62;
  --red-soft: #DCEBEA;
  --accent: #0D7680;
  --accent-bright: #16A39B;
  --gold: #C9A14A;
  --green: #1C7C54;
  --green-soft: #DCEDE3;
  --amber: #A8741F;
  --amber-soft: #F3E6CB;
  --neg: #99122F;          /* FT claret — negatives / alerts */
  --neg-soft: #F6DCE3;

  /* Type stacks */
  --serif: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --sidebar-w: 248px;
  --copilot-w: 392px;
  --topbar-h: 64px;
  --statusbar-h: 28px;

  /* Legacy aliases */
  --brand: var(--accent);
  --brand-soft: var(--red-soft);
  --info: var(--ink);
  --pos: var(--green);
  --warn: var(--amber);
  --bg-0: var(--paper);
  --bg-1: var(--paper-soft);
  --bg-2: var(--paper-soft);
  --bg-3: var(--paper-edge);
  --bg-4: var(--paper-edge);
  --line: var(--rule-soft);
  --line-strong: var(--rule);
  --font-mono: var(--mono);
  --font-sans: var(--sans);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  overflow: hidden;
}
::selection { background: var(--accent); color: var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-soft); border: 2px solid var(--paper); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---------- Type primitives ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.smallcaps { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.dropcap::first-letter { font-family: var(--serif); font-weight: 500; float: left; font-size: 4.6em; line-height: 0.86; padding: 0.06em 0.1em 0 0; color: var(--ink); }

/* ---------- Headlines ---------- */
.headline { font-family: var(--serif); font-weight: 600; font-size: 54px; line-height: 1.03; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 12px; }
.headline em { font-style: italic; font-weight: 400; }
.subhead { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.5; color: var(--text-dim); max-width: 64ch; }
.section-h { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }

/* ---------- App shell ---------- */
.app { display: flex; height: 100vh; width: 100vw; min-width: 1280px; background: var(--paper); }
body { overflow: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.workspace { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.content { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--paper); }

/* ---------- Sidebar ---------- */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--sidebar-bg); color: var(--text-on-ink); display: flex; flex-direction: column; height: 100%; }
.sidebar-brand { padding: 22px 22px 20px; border-bottom: 1px solid var(--rule-on-ink); }
.sidebar-wordmark { font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; color: var(--text-on-ink); line-height: 1; }
.sidebar-wordmark em { color: var(--accent-bright); font-style: italic; }
.sidebar-tag { margin-top: 7px; font-size: 9px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent-bright); }
.sidebar-edition { padding: 16px 22px 10px; border-bottom: 1px solid var(--rule-on-ink); }
.sidebar-edition-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-on-ink-faint); }
.sidebar-edition-value { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-top: 2px; color: var(--text-on-ink); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0 18px; }
.nav-group-label { padding: 0 22px 8px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--text-on-ink-faint); }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 9px 22px; font-size: 13.5px; color: var(--text-on-ink-dim); cursor: pointer; border-left: 3px solid transparent; transition: color .12s, background .12s; }
.nav-item:hover { color: var(--text-on-ink); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--text-on-ink); border-left-color: var(--accent-bright); background: linear-gradient(90deg, rgba(22,163,155,.12), transparent 82%); }
.nav-num { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--text-on-ink-faint); min-width: 16px; }
.nav-item.active .nav-num { color: var(--accent-bright); }
.nav-label { flex: 1; font-weight: 500; }
.nav-shortcut { font-family: var(--mono); font-size: 9.5px; color: var(--text-on-ink-faint); }
.sidebar-footer { padding: 14px 22px; border-top: 1px solid var(--rule-on-ink); font-size: 10px; color: var(--text-on-ink-faint); }
.sidebar-footer-label { letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--text-on-ink-dim); }

/* ---------- Top masthead ---------- */
.topbar { height: var(--topbar-h); background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; display: flex; align-items: stretch; flex-shrink: 0; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ink); }
.masthead { flex: 1; display: flex; align-items: center; padding: 0 26px; gap: 16px; white-space: nowrap; }
.masthead > * { flex-shrink: 0; }
.masthead-issue { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.masthead-divider { flex: 1; height: 1px; background: var(--rule-soft); }
.masthead-live { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.masthead-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(13,118,128,.45); } 50% { box-shadow: 0 0 0 6px rgba(13,118,128,0); } }
.masthead-live em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; padding: 0 20px; border-left: 1px solid var(--rule-soft); }
.topbar-search { width: 230px; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--paper-soft); border: 1px solid var(--rule-soft); border-radius: 3px; font-size: 12.5px; color: var(--text-muted); cursor: pointer; }
.topbar-search:hover { border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--rule-soft); border-radius: 3px; cursor: pointer; transition: all .12s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-buy { color: var(--green); border-color: var(--green); }
.btn-buy:hover { background: var(--green); color: #fff; }
.btn-sell { color: var(--neg); border-color: var(--neg); }
.btn-sell:hover { background: var(--neg); color: #fff; }
.btn-ghost { border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--ink); border-color: var(--rule-soft); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--rule-soft); }

/* ---------- Status bar ---------- */
.statusbar { height: var(--statusbar-h); border-top: 1px solid var(--rule-soft); background: var(--paper-soft); display: flex; align-items: center; gap: 22px; padding: 0 24px; font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.04em; flex-shrink: 0; }
.statusbar-section { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-pos { background: var(--green); }
.dot-warn { background: var(--amber); }
.dot-neg { background: var(--neg); }
.dot-info { background: var(--accent); }

/* ---------- Panels & cards ---------- */
.panel { background: var(--paper-soft); border: 1px solid var(--rule-soft); border-radius: 3px; }
.panel-flat { background: transparent; border: none; border-top: 1px solid var(--ink); padding-top: 16px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--rule-soft); gap: 14px; }
.panel-head-title { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; color: var(--ink); }
.panel-head-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; font-style: italic; }
.panel-body { padding: 16px 18px; }
.panel-body-flush { padding: 0; }

/* ---------- KPI tiles ---------- */
.kpi { padding: 15px 18px 17px; background: var(--paper-soft); border: 1px solid var(--rule-soft); border-radius: 3px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.kpi::before { content: ''; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--accent); }
.kpi-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim); }
.kpi-value { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); margin-top: 2px; font-variant-numeric: lining-nums tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--text-muted); font-style: italic; display: flex; align-items: center; gap: 8px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; }
.kpi-delta.pos { color: var(--green); }
.kpi-delta.neg { color: var(--neg); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; height: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; border-radius: 3px; border: 1px solid transparent; white-space: nowrap; }
.pill-pos { background: var(--green-soft); color: var(--green); }
.pill-neg { background: var(--neg-soft); color: var(--neg); }
.pill-warn { background: var(--amber-soft); color: var(--amber); }
.pill-info { background: var(--paper-edge); color: var(--ink-3); }
.pill-brand { background: var(--accent); color: var(--paper); }
.pill-teal { background: var(--red-soft); color: var(--accent); }
.pill-outline { border-color: var(--rule-soft); color: var(--text-dim); }
.pill-umrah { background: #1C7C54; color: #fff; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; padding: 9px 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--ink); background: var(--paper-soft); position: sticky; top: 0; z-index: 1; }
.tbl td { font-size: 13px; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--rule-dim); color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--paper-edge); }
.tbl tr.selected { background: var(--paper-edge); box-shadow: inset 3px 0 0 var(--accent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .num.mono { font-family: var(--mono); }
.tbl tr.clickable { cursor: pointer; }
.tbl-zebra tbody tr:nth-child(even) td { background: rgba(0,0,0,.018); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }

/* ---------- Layout helpers ---------- */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }
.grid-6 { grid-template-columns: repeat(6,1fr); }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.flex-1 { flex: 1; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.text-pos { color: var(--green); }
.text-neg { color: var(--neg); }
.text-warn { color: var(--amber); }
.text-info { color: var(--accent); }
.text-accent { color: var(--accent); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); padding: 0 18px; flex-wrap: wrap; }
.tab { padding: 11px 16px 10px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .1s, border-color .1s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Filter chip ---------- */
.filter-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; font-size: 11.5px; font-weight: 500; color: var(--text-dim); background: transparent; border: 1px solid var(--rule-soft); border-radius: 3px; cursor: pointer; transition: all .12s; }
.filter-chip:hover { color: var(--ink); border-color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filterbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Inputs ---------- */
.input { height: 32px; padding: 0 11px; font-family: var(--sans); font-size: 13px; color: var(--ink); background: var(--paper-soft); border: 1px solid var(--rule-soft); border-radius: 3px; outline: none; }
.input:focus { border-color: var(--accent); }

/* ---------- Charts ---------- */
.axis-text { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--text-dim); font-variant-numeric: tabular-nums; }
.axis-line { stroke: var(--ink); stroke-width: 1; }
.grid-line { stroke: var(--rule-dim); stroke-width: 1; stroke-dasharray: 2 3; }
.bar { transition: opacity .15s; }
.bar:hover { opacity: .85; }
.spark { display: block; }
.heat-cell { text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 7px 6px; border-radius: 3px; }

/* ---------- Misc ---------- */
.stars { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink); font-weight: 500; }
.boxed { border: 1px solid var(--rule-soft); background: var(--paper-soft); padding: 14px 16px; }
.kbd { font-family: var(--mono); font-size: 9.5px; padding: 1px 5px; color: var(--text-on-ink-faint); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; font-weight: 600; cursor: pointer; }
.section-rule { height: 1px; background: var(--ink); margin: 22px 0 18px; position: relative; }
.section-rule::before { content: ''; position: absolute; top: -2px; left: 0; width: 64px; height: 5px; background: var(--accent); }
.page { max-width: 1320px; margin: 0 auto; padding: 34px 46px 64px; }
.page-head { margin-bottom: 26px; }
.tip { position: absolute; background: var(--ink); color: var(--paper); border-radius: 3px; padding: 6px 9px; font-size: 10.5px; font-family: var(--mono); pointer-events: none; white-space: nowrap; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.pullquote { font-family: var(--serif); font-size: 25px; line-height: 1.25; font-style: italic; color: var(--ink); border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 8px 0; }
.article-col { max-width: 70ch; font-family: var(--serif); font-size: 18.5px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.article-col, .article-col p, .article-col li, .article-col > div { font-weight: 600; }
.article-col p { margin: 0 0 13px; }
.article-col > div { margin: 0 0 10px; }
.article-col h2 { font-family: var(--serif); font-size: 27px; font-weight: 700; margin: 20px 0 8px; color: var(--ink); }
.article-col h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
.article-col strong { font-weight: 700; color: var(--ink); }
.article-col ul, .article-col ol { margin: 4px 0 13px; padding-left: 22px; }
.article-col li { margin: 4px 0; }
.article-col code { font-family: var(--mono); font-size: 13px; background: var(--paper-edge); padding: 1px 5px; border-radius: 3px; }
.article-col table { border-collapse: collapse; width: 100%; margin: 14px 0; font-family: var(--sans); font-size: 14.5px; }
.article-col th { text-align: left; border-bottom: 1.5px solid var(--ink); padding: 8px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.article-col td { border-bottom: 1px solid var(--rule-dim); padding: 8px 12px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.byline { display: flex; align-items: baseline; gap: 14px; font-size: 11.5px; color: var(--text-dim); font-style: italic; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: 8px 0; margin-bottom: 16px; }
.byline strong { font-style: normal; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; color: var(--ink); }

/* ---------- Hajj / event banner ---------- */
.banner { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border: 1px solid var(--accent); border-left: 5px solid var(--accent); background: linear-gradient(90deg, var(--red-soft), var(--paper-soft) 70%); border-radius: 3px; }
.banner-glyph { font-family: var(--serif); font-size: 26px; color: var(--accent); font-style: italic; }
.banner-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.banner-body { font-size: 12px; color: var(--text-dim); }

/* ---------- Copilot — full-screen workbench ---------- */
.copilot { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: flex; flex-direction: column; }
.copilot-head { height: var(--topbar-h); padding: 0 28px; border-bottom: 2px solid var(--ink); position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.copilot-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ink); }
.copilot-scroll { flex: 1; overflow-y: auto; }
.copilot-msgs { max-width: 980px; margin: 0 auto; padding: 30px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.msg { padding: 13px 16px; font-size: 14px; line-height: 1.6; border-radius: 6px; white-space: normal; }
.msg-user { align-self: flex-end; max-width: 70%; background: var(--ink); color: var(--paper); font-size: 14px; }
.msg-ai { align-self: stretch; background: var(--paper-soft); color: var(--ink); border: 1px solid var(--rule-soft); }
.msg-ai > div + div { margin-top: 2px; }
.msg-ai table { border-collapse: collapse; margin: 10px 0; font-size: 13px; width: 100%; font-family: var(--sans); }
.msg-ai th { text-align: left; border-bottom: 1.5px solid var(--ink); padding: 6px 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.msg-ai td { border-bottom: 1px solid var(--rule-dim); padding: 6px 10px; font-variant-numeric: tabular-nums; }
.msg-ai code { font-family: var(--mono); font-size: 12.5px; background: var(--paper-edge); padding: 1px 5px; border-radius: 3px; }
.msg-ai strong { font-weight: 700; }
.msg-ai h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 12px 0 5px; }
.msg-ai h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 10px 0 4px; }
.msg-ai ul, .msg-ai ol { margin: 5px 0 10px; padding-left: 22px; }
.msg-ai li { margin: 3px 0; }
.copilot-footer { border-top: 1px solid var(--rule-soft); background: var(--paper-soft); flex-shrink: 0; }
.copilot-foot-inner { max-width: 980px; margin: 0 auto; padding: 12px 28px 16px; }
.copilot-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.copilot-input { display: flex; gap: 8px; }
.copilot-empty { max-width: 980px; margin: 0 auto; padding: 60px 28px; text-align: center; }

/* ---------- Responsive (compact) ---------- */
@media (max-width: 1280px) { .app { min-width: 0; } }
@media (max-width: 1100px) {
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2,1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2,1fr) !important; }
  .copilot { position: fixed; right: 0; top: 0; bottom: 0; z-index: 60; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
  .page { padding: 24px 22px 60px; }
  .headline { font-size: 40px; }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .app { min-width: 0; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr !important; }
  .masthead { padding: 0 14px; gap: 10px; }
  .topbar-actions { padding: 0 12px; }
  .headline { font-size: 32px; }
}
