/* Kadunagra TradingHub — one look for every page.
   Loaded after each page's own stylesheet: it sets the shared colours (both older stylesheets
   read them through their own variable names) and draws the top bar, menus and page heading. */

:root {
  --hub-max: 1600px;
  --hub-pad: 24px;
  --hub-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --hub-radius: 12px;
  --hub-radius-sm: 8px;
  --hub-ctl: 34px;                         /* the height of every button, field and select */

  --hub-bg: #f4f6f9;
  --hub-surface: #ffffff;
  --hub-surface-2: #f8fafc;
  --hub-text: #0f172a;
  --hub-muted: #64748b;
  --hub-border: #e3e8ef;
  --hub-accent: #1d4ed8;
  --hub-accent-soft: #eef3ff;
  --hub-accent-ink: #ffffff;
  --hub-pos: #047857;
  --hub-neg: #dc2626;
  --hub-warn: #b7791f;
  --hub-warn-bg: #fff6e0;
  --hub-warn-text: #7a5600;
  --hub-bar: #0f1a2c;
  --hub-bar-text: #c9d3e3;
  --hub-bar-hover: #1b2840;
  --hub-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --hub-shadow-md: 0 6px 16px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06);

  /* the older stylesheets' names */
  --bg: var(--hub-bg);
  --panel: var(--hub-surface);
  --card: var(--hub-surface);
  --text: var(--hub-text);
  --muted: var(--hub-muted);
  --border: var(--hub-border);
  --accent: var(--hub-accent);
  --accent-ink: var(--hub-accent-ink);
  --up: var(--hub-pos);
  --pos: var(--hub-pos);
  --down: var(--hub-neg);
  --neg: var(--hub-neg);
  --row-hover: var(--hub-surface-2);
  --head-row: #f6f8fb;
  --warn-bg: var(--hub-warn-bg);
  --warn-text: var(--hub-warn-text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --hub-bg: #0e1218;
    --hub-surface: #161c25;
    --hub-surface-2: #1b222d;
    --hub-text: #e5e9f0;
    --hub-muted: #97a3b6;
    --hub-border: #273040;
    --hub-accent: #6b9bff;
    --hub-accent-soft: #1c2a47;
    --hub-accent-ink: #0b1220;
    --hub-pos: #3cc48f;
    --hub-neg: #f0706b;
    --hub-warn: #e2b04a;
    --hub-warn-bg: #2b2412;
    --hub-warn-text: #e8c56a;
    --hub-bar: #0a0f17;
    --hub-bar-text: #aab6c8;
    --hub-bar-hover: #161f2e;
    --hub-shadow: none;
    --head-row: #1d2531;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--hub-bg); color: var(--hub-text); font-family: var(--hub-font); margin: 0; }

/* ---- top bar ------------------------------------------------------------------------- */
.hub-bar { position: sticky; top: 0; z-index: 50; }
.hub-top {
  display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 var(--hub-pad);
  background: var(--hub-bar); color: var(--hub-bar-text);
}
.hub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.hub-logo {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #3b74f0, #1f4fbf); color: #fff; font-weight: 700; font-size: 15px;
}
.hub-name { font-size: 15px; letter-spacing: .2px; color: #e9eef7; }
.hub-name b { font-weight: 650; color: #fff; }

.hub-sections { display: flex; align-self: stretch; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hub-sections::-webkit-scrollbar { display: none; }
.hub-sections a {
  position: relative; display: flex; align-items: center; padding: 0 14px; white-space: nowrap;
  color: var(--hub-bar-text); text-decoration: none; font-weight: 500; font-size: 14px;
}
.hub-sections a:hover { color: #fff; background: var(--hub-bar-hover); }
.hub-sections a.active { color: #fff; }
.hub-sections a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #5b8cff;
}

.hub-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.hub-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; padding: 0;
  background: transparent; color: var(--hub-bar-text); cursor: pointer;
}
.hub-icon:hover, .hub-icon.active { background: var(--hub-bar-hover); color: #fff; }
.hub-out { margin: 0; display: contents; }

.hub-rec {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; margin-right: 6px; border-radius: 15px;
  background: var(--hub-bar-hover); color: var(--hub-bar-text); text-decoration: none; font: inherit; font-size: 12.5px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.hub-rec:hover { color: #fff; border-color: #33415a; }

/* the recorder popup */
.hub-dlg {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--hub-border); border-radius: 14px;
  background: var(--hub-surface); color: var(--hub-text); box-shadow: 0 24px 60px rgba(15, 23, 42, .28); font-family: var(--hub-font);
}
.hub-dlg::backdrop { background: rgba(10, 15, 25, .5); }
.hub-dlg > header, .hub-dlg > form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--hub-border); }
.hub-dlg > header h2, .hub-dlg > form > header h2 { margin: 0; font-size: 17px; font-weight: 650; }
.hub-dlg > header p, .hub-dlg > form > header p { margin: 4px 0 0; color: var(--hub-muted); font-size: 13px; }
.hub-dlg-body { padding: 8px 22px 4px; }
.hub-dlg-body .hub-note { margin: 12px 0 0; }
.hub-dlg > footer, .hub-dlg > form > footer { padding: 14px 22px 18px; border-top: 1px solid var(--hub-border); }
.hub-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--hub-muted); font-size: 16px; cursor: pointer; flex: none; }
.hub-x:hover { background: var(--hub-surface-2); color: var(--hub-text); }
/* recording: green button with a blinking red light · paused / off: red · needs attention: amber */
.hub-rec .dot { width: 9px; height: 9px; border-radius: 50%; background: #7a8699; flex: none; }
.hub-rec.on { background: #10804f; border-color: #16a265; color: #fff; font-weight: 600; }
.hub-rec.on:hover { background: #0d9358; }
.hub-rec.on .dot { background: #ff3030; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); animation: hub-rec-blink 1s ease-in-out infinite; }
.hub-rec.paused, .hub-rec.off { background: #c42f2f; border-color: #dc4545; color: #fff; font-weight: 600; }
.hub-rec.paused:hover, .hub-rec.off:hover { background: #d23737; }
.hub-rec.paused .dot, .hub-rec.off .dot { background: #fff; }
.hub-rec.warn { background: #b26b00; border-color: #cc8410; color: #fff; font-weight: 600; }
.hub-rec.warn .dot { background: #fff; }
@keyframes hub-rec-blink { 50% { opacity: .15; } }

.hub-select { height: 34px; padding: 0 10px; border: 1px solid var(--hub-border); border-radius: 8px; background: var(--hub-surface); color: var(--hub-text); font: inherit; font-size: 14px; }
.hub-select:focus { outline: 2px solid var(--hub-accent-soft); border-color: var(--hub-accent); }

/* the section's pages */
.hub-pages { background: var(--hub-surface); border-bottom: 1px solid var(--hub-border); box-shadow: var(--hub-shadow); }
.hub-pages-in { display: flex; align-items: stretch; gap: 2px; height: 46px; padding: 0 var(--hub-pad); overflow-x: auto; scrollbar-width: thin; }
.hub-pages a {
  position: relative; display: flex; align-items: center; padding: 0 14px; white-space: nowrap;
  color: var(--hub-muted); text-decoration: none; font-weight: 500; font-size: 14px;
}
.hub-pages a:hover { color: var(--hub-text); }
.hub-pages a.active { color: var(--hub-accent); }
.hub-pages a.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--hub-accent); border-radius: 2px;
}
/* a group of pages: a drop-down (Execution setup, Library) */
.hub-dd { position: relative; display: flex; align-items: stretch; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--hub-border); }
.hub-dd-btn {
  position: relative; display: flex; align-items: center; gap: 6px; margin: 7px 0; padding: 0 10px 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--hub-muted); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.hub-dd-btn:hover, .hub-dd-btn[aria-expanded="true"] { background: var(--hub-bg); color: var(--hub-text); }
.hub-dd-btn:focus-visible { outline: 2px solid var(--hub-accent); outline-offset: -2px; }
.hub-dd.active .hub-dd-btn { color: var(--hub-text); font-weight: 600; }
.hub-dd.active .hub-dd-btn::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 2px; background: var(--hub-accent); border-radius: 2px; }
.hub-dd-cur { padding: 2px 8px; border-radius: 999px; background: var(--hub-accent-soft); color: var(--hub-accent); font-size: 12.5px; font-weight: 600; }
.hub-dd-chev { color: var(--hub-muted); transition: transform .15s ease; }
.hub-dd-btn[aria-expanded="true"] .hub-dd-chev { transform: rotate(180deg); }
.hub-dd-menu {
  position: fixed; z-index: 60; min-width: 260px; max-width: calc(100vw - 16px); padding: 6px;
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  animation: hub-dd-in .12s ease-out;
}
@keyframes hub-dd-in { from { opacity: 0; transform: translateY(-4px); } }
.hub-pages .hub-dd-menu a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border-radius: 8px;
  white-space: normal; color: var(--hub-text); font-weight: 500;
}
.hub-pages .hub-dd-menu a span { color: var(--hub-muted); font-size: 12.5px; font-weight: 400; line-height: 1.35; }
.hub-pages .hub-dd-menu a:hover, .hub-pages .hub-dd-menu a:focus-visible { background: var(--hub-bg); outline: none; }
.hub-pages .hub-dd-menu a.active { background: var(--hub-accent-soft); color: var(--hub-accent); }
.hub-pages .hub-dd-menu a.active::after { display: none; }
@media (prefers-reduced-motion: reduce) { .hub-dd-menu { animation: none; } .hub-dd-chev { transition: none; } }

/* "Execution audit" waits for an audit */
.hub-pages a.hub-due, .hub-sections a.hub-due { font-weight: 600; }
.hub-pages a.hub-due { color: var(--hub-neg); }
.hub-pages a.hub-due::before, .hub-sections a.hub-due::before {
  content: ""; position: absolute; top: 9px; right: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--hub-neg); animation: hub-blink 1.2s ease-in-out infinite;
}
@keyframes hub-blink { 50% { opacity: .2; } }

/* ---- page heading -------------------------------------------------------------------- */
.hub-head-in {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--hub-max); margin: 0 auto; padding: 22px var(--hub-pad) 4px;
}
.hub-title h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.2px; color: var(--hub-text); }
.hub-title p { margin: 4px 0 0; color: var(--hub-muted); font-size: 13.5px; }
.hub-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* the older pages' content areas line up with the heading */
main, .layout { max-width: var(--hub-max) !important; margin-left: auto; margin-right: auto; padding-left: var(--hub-pad) !important; padding-right: var(--hub-pad) !important; }
main { padding-top: 16px; }
button.primary { color: var(--hub-accent-ink); }

@media (max-width: 900px) {
  :root { --hub-pad: 16px; }
  .hub-top { gap: 14px; }
  .hub-name { display: none; }
  .hub-rec .txt { display: none; }
  .hub-rec { padding: 0 10px; margin-right: 0; }
}

/* ---- the hub's own pages (sign in, settings, mapping) -------------------------------- */
.hub-main { max-width: var(--hub-max); margin: 0 auto; padding: 16px var(--hub-pad) 48px; }
.hub-card {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 12px;
  box-shadow: var(--hub-shadow); margin-bottom: 20px;
}
.hub-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hub-border); }
.hub-card > header h2 { margin: 0; font-size: 16px; font-weight: 650; }
.hub-card > header p { margin: 2px 0 0; color: var(--hub-muted); font-size: 13px; }
.hub-card .hub-body { padding: 18px 20px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.hub-grid .hub-card { margin-bottom: 0; }

.hub-field { display: grid; gap: 6px; margin-bottom: 14px; }
.hub-field > span { font-size: 13px; font-weight: 600; color: var(--hub-text); }
.hub-field small { color: var(--hub-muted); font-weight: 400; }
.hub-input, .hub-main input[type=text], .hub-main input[type=password], .hub-main input[type=number], .hub-main input[type=datetime-local], .hub-main select {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--hub-border); border-radius: 8px;
  background: var(--hub-surface); color: var(--hub-text); font: inherit; font-size: 14px;
}
.hub-main input:focus, .hub-main select:focus { outline: 2px solid var(--hub-accent-soft); border-color: var(--hub-accent); }
.hub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  border: 1px solid var(--hub-border); border-radius: 8px; background: var(--hub-surface); color: var(--hub-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.hub-btn:hover { border-color: var(--hub-muted); }
.hub-btn.primary { background: var(--hub-accent); border-color: var(--hub-accent); color: var(--hub-accent-ink); }
.hub-btn.primary:hover { filter: brightness(1.07); }
.hub-btn.danger { color: var(--hub-neg); }
.hub-btn.danger:hover { border-color: var(--hub-neg); }
.hub-btn.danger-solid { background: var(--hub-neg); border-color: var(--hub-neg); color: #fff; }
.hub-btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.hub-btn:disabled { opacity: .5; cursor: default; }
.hub-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.hub-note { padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin: 0 0 16px; }
.hub-note.ok { background: color-mix(in srgb, var(--hub-pos) 12%, transparent); color: var(--hub-pos); }
.hub-note.bad { background: color-mix(in srgb, var(--hub-neg) 12%, transparent); color: var(--hub-neg); }
.hub-note.warn { background: var(--hub-warn-bg); color: var(--hub-warn-text); }
.hub-note.info { background: var(--hub-accent-soft); color: var(--hub-text); }
.hub-muted { color: var(--hub-muted); }
.hub-small { font-size: 12.5px; }
.hub-pos { color: var(--hub-pos); }
.hub-neg { color: var(--hub-neg); }

.hub-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.hub-kv th, .hub-kv td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--hub-border); vertical-align: top; }
.hub-kv tr:last-child th, .hub-kv tr:last-child td { border-bottom: 0; }
.hub-kv th { width: 34%; color: var(--hub-muted); font-weight: 500; padding-right: 16px; }

.hub-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hub-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--hub-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--hub-border); }
.hub-table td { padding: 8px 10px; border-bottom: 1px solid var(--hub-border); vertical-align: middle; }
.hub-table tr:last-child td { border-bottom: 0; }
.hub-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hub-table input, .hub-table select { height: 34px !important; }

.hub-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--hub-surface-2); color: var(--hub-muted); border: 1px solid var(--hub-border); }
.hub-badge.on { color: var(--hub-pos); border-color: color-mix(in srgb, var(--hub-pos) 35%, transparent); }
.hub-badge.off { color: var(--hub-neg); border-color: color-mix(in srgb, var(--hub-neg) 35%, transparent); }

/* sign in */
.hub-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--hub-accent) 18%, transparent), transparent), var(--hub-bg); }
.hub-login-box { width: 100%; max-width: 380px; }
.hub-login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.hub-login-brand .hub-logo { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
.hub-login-brand .hub-name { color: var(--hub-text); font-size: 19px; }
.hub-login-brand .hub-name b { color: var(--hub-text); }
.hub-login .hub-card .hub-body { padding: 26px; }
.hub-login h1 { margin: 0 0 4px; font-size: 18px; }
.hub-login .hub-btn { width: 100%; height: 40px; margin-top: 6px; }

/* the Lab's sticky settings bar sits under the (sticky) top bar */
.settings-bar { top: 103px !important; }

/* Library tabs (Individual results / ETF results) */
.hub-subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 3px; width: fit-content; max-width: 100%; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 9px; }
.hub-subtabs a { padding: 5px 12px; border-radius: 6px; color: var(--hub-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.hub-subtabs a:hover { color: var(--hub-text); }
.hub-subtabs a.active { background: var(--hub-accent); color: #fff; }

/* attention: a page that needs you now (hub_attention) — amber, pulsing as a whole */
.hub-dd.hub-att .hub-dd-btn { background: #d97706; color: #fff; border-radius: 999px; animation: hub-att-pulse 1.2s ease-in-out infinite; }
.hub-dd.hub-att .hub-dd-btn .hub-dd-cur { background: #fff; color: #b45309; }
.hub-dd-menu a.hub-att { background: #fff4e0; }
.hub-dd-menu a.hub-att b { color: #b45309; }
.hub-att-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #d97706; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; animation: hub-att-pulse 1.2s ease-in-out infinite; }
.hub-att-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #f59e0b; vertical-align: 2px; animation: hub-att-pulse 1.2s ease-in-out infinite; }
@keyframes hub-att-pulse { 0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, .55); } 50% { filter: brightness(1.18); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); } }
@media (prefers-reduced-motion: reduce) { .hub-dd.hub-att .hub-dd-btn, .hub-att-tag, .hub-att-dot { animation: none !important; } }

/* ========================================================================================
   Design v2 (2026-11-03) — one calm, professional look on every page.
   Loaded after each page's own stylesheet; the Live pages are body.acc-page, the Strategy lab
   body.pine-page, the hub's own pages body.hub-own. Only appearance — nothing here changes behaviour.
   ======================================================================================== */
body { font-family: var(--hub-font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--hub-accent) 18%, transparent); }

/* the top bar and the section's pages */
.hub-top { height: 58px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.hub-logo { border-radius: 9px; box-shadow: 0 2px 8px rgba(29, 78, 216, .45); }
.hub-pages-in { height: 48px; }
.hub-pages a { font-size: 14px; }

/* page heading */
.hub-head-in { padding: 28px var(--hub-pad) 8px; align-items: center; }
.hub-title h1 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.hub-title p { margin-top: 6px; font-size: 14px; max-width: 880px; }
main { padding-top: 18px; padding-bottom: 48px; }

/* cards and panels */
.hub-card { border-radius: var(--hub-radius); box-shadow: var(--hub-shadow); }
.hub-card > header { padding: 16px 22px; }
.hub-card > header h2 { font-size: 15.5px; font-weight: 600; }
.hub-card .hub-body { padding: 20px 22px; }

/* buttons, fields and selects: one height, one shape */
.hub-btn { height: var(--hub-ctl); border-radius: var(--hub-radius-sm); font-weight: 600; font-size: 13.5px; padding: 0 16px; transition: background-color .12s, border-color .12s, box-shadow .12s; }
.hub-btn:hover { border-color: #c8d0dc; background: var(--hub-surface-2); }
.hub-btn.primary { box-shadow: 0 1px 2px rgba(29, 78, 216, .3); }
.hub-btn.primary:hover { background: #1e40af; border-color: #1e40af; filter: none; }
.hub-btn.small { height: 28px; padding: 0 11px; font-size: 12.5px; }
.hub-input, .hub-main input[type=text], .hub-main input[type=password], .hub-main input[type=number], .hub-main input[type=datetime-local], .hub-main select { height: 38px; border-radius: var(--hub-radius-sm); border-color: #d6dde7; }
.hub-main input:focus, .hub-main select:focus, .hub-main textarea:focus { outline: 3px solid color-mix(in srgb, var(--hub-accent) 18%, transparent); outline-offset: 0; border-color: var(--hub-accent); }
.hub-note { border-radius: 10px; padding: 11px 15px; border: 1px solid transparent; }
.hub-note.ok { border-color: color-mix(in srgb, var(--hub-pos) 22%, transparent); background: color-mix(in srgb, var(--hub-pos) 8%, var(--hub-surface)); }
.hub-note.bad { border-color: color-mix(in srgb, var(--hub-neg) 22%, transparent); background: color-mix(in srgb, var(--hub-neg) 7%, var(--hub-surface)); }
.hub-note.warn { border-color: #f3dfa8; }
.hub-note.info { border-color: color-mix(in srgb, var(--hub-accent) 18%, transparent); }

/* the hub's own tables */
.hub-table { font-size: 13.5px; }
.hub-table th { font-size: 11.5px; letter-spacing: .05em; padding: 10px 12px; background: var(--hub-surface-2); border-bottom-color: var(--hub-border); }
.hub-table td { padding: 11px 12px; }
.hub-table tbody tr:hover td, .hub-table tr:hover td { background: #fafbfd; }

/* ---- the Live pages ---------------------------------------------------------------------- */
body.acc-page main { max-width: var(--hub-max); }
body.acc-page .cards { gap: 14px; margin-bottom: 22px; }
body.acc-page .card { border-radius: var(--hub-radius); box-shadow: var(--hub-shadow); padding: 16px 18px; border-color: var(--hub-border); }
body.acc-page .card .label { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--hub-muted); }
body.acc-page .card .value { font-size: 23px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; line-height: 1.2; }
/* the Live page's summary: the key figures stand out, the others stay quiet */
body.acc-page .live-card:not(.key-card) .value { font-size: 20px; font-weight: 600; }
body.acc-page .key-card { border-width: 1px; border-top-width: 3px; }
body.acc-page .key-card .label { color: var(--hub-text); font-weight: 600; }
body.acc-page .key-card .value { font-size: 28px; font-weight: 700; }
body.acc-page .key-card.main { border-color: var(--hub-border); border-top-color: var(--hub-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--hub-accent) 5%, var(--hub-surface)), var(--hub-surface) 70%); }
body.acc-page .key-card.base { border-color: var(--hub-border); border-top-color: #94a3b8; background: var(--hub-surface); }
body.acc-page .key-card.neg { border-color: var(--hub-border); border-top-color: var(--hub-neg); background: linear-gradient(180deg, color-mix(in srgb, var(--hub-neg) 5%, var(--hub-surface)), var(--hub-surface) 70%); }
body.acc-page .key-card.pos { border-color: var(--hub-border); border-top-color: var(--hub-pos); background: linear-gradient(180deg, color-mix(in srgb, var(--hub-pos) 5%, var(--hub-surface)), var(--hub-surface) 70%); }
body.acc-page .card .sub { font-size: 12px; margin-top: 4px; }
body.acc-page section.panel, body.acc-page .panel-lite { border-radius: var(--hub-radius); box-shadow: var(--hub-shadow); border-color: var(--hub-border); margin-bottom: 22px; }
body.acc-page section.panel > h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; padding: 14px 18px; flex-wrap: wrap; row-gap: 4px; }
body.acc-page section.panel > h2 .count { font-size: 13px; }
body.acc-page th { font-size: 11.5px; letter-spacing: .05em; color: var(--hub-muted); background: var(--hub-surface-2); padding: 10px 14px; font-weight: 600; }
body.acc-page td { padding: 10px 14px; }
body.acc-page tbody tr:hover { background: #fafbfd; }
body.acc-page button:not(.link):not(.hub-x), body.acc-page select { min-height: var(--hub-ctl); border-radius: var(--hub-radius-sm); padding: 0 13px; font-size: 13.5px; font-weight: 500; border-color: #d6dde7; transition: background-color .12s, border-color .12s; }
body.acc-page button:not(.link):not(.primary):hover { background: var(--hub-surface-2); border-color: #c3ccd8; }
body.acc-page button.link { font-size: 12.5px; font-weight: 500; color: var(--hub-accent); padding: 2px 6px; border-radius: 6px; }
body.acc-page button.link:hover { background: var(--hub-accent-soft); }
body.acc-page button.primary { background: var(--hub-accent); border-color: var(--hub-accent); color: #fff; font-weight: 600; }
body.acc-page button.primary:hover { background: #1e40af; border-color: #1e40af; }
body.acc-page td.actions button, body.acc-page .presets button { min-height: 30px; padding: 0 10px; font-size: 13px; }
body.acc-page input[type=date], body.acc-page input[type=text], body.acc-page input[type=password], body.acc-page input[type=number] { min-height: var(--hub-ctl); border-radius: var(--hub-radius-sm); border: 1px solid #d6dde7; }
body.acc-page .notice { border-radius: 10px; border: 1px solid #f3dfa8; padding: 11px 15px; }
body.acc-page .tag { border-radius: 999px; padding: 2px 9px; font-size: 11.5px; letter-spacing: .02em; }
body.acc-page .chips button { min-height: 30px; }
body.acc-page dialog { border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); }
/* a remark: at most two lines (clipped inside its own box, never half a third line in the cell's padding) */
body.acc-page td.remarks-preview { display: table-cell; overflow: visible; -webkit-line-clamp: unset; }
body.acc-page td.remarks-preview .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; line-height: 1.45; color: #334155; font-size: 13px; }

/* ---- the Strategy lab -------------------------------------------------------------------- */
body.pine-page .card { border-radius: var(--hub-radius); box-shadow: var(--hub-shadow); border-color: var(--hub-border); }
body.pine-page .card h2 { font-size: 16px; font-weight: 600; }
body.pine-page .card h3 { font-size: 14.5px; font-weight: 600; }
body.pine-page table { font-size: 13px; }
body.pine-page th { color: #475569; font-weight: 600; }
body.pine-page .btn { border-radius: var(--hub-radius-sm); }

/* numbers never break across lines (a value and its % stay together) */
.hub-table td.num, .hub-table th.num { white-space: nowrap; }

/* phones: the top menu scrolls sideways instead of running under the icons; cards two to a row */
.hub-sections { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .hub-top { gap: 8px; }
  .hub-sections a { padding: 0 10px; font-size: 13.5px; }
  body.acc-page .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.acc-page .card { padding: 12px 14px; }
  body.acc-page .live-card:not(.key-card) .value { font-size: 17px; }
  body.acc-page .key-card .value { font-size: 21px; }
  body.acc-page .card .label { font-size: 12px; }
}

/* an empty stage's call to action: a button, not a full-width bar */
body.pine-page .s2-empty .btn { align-self: center; justify-self: center; width: auto; padding-left: 22px; padding-right: 22px; }
