/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --page: #f6f6f3;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --text-1: #0b0b0b;
  --text-2: #52514e;
  --text-3: #898781;
  --grid: #e7e6e0;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --border-strong: rgba(11, 11, 11, 0.18);
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --accent-wash: rgba(42, 120, 214, 0.10);
  --good: #006300;
  --bad: #c22f2f;
  --warn-bg: #fff6e0;
  --warn-ink: #6b4d00;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --pos: #2a78d6; --neg: #e34948; --mid: #f0efec;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .foot-band { --band-1: #0d366b; --band-2: #184f95; --band-3: #256abf; box-shadow: none; }
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #252523;
    --text-1: #f0efec; --text-2: #c3c2b7; --text-3: #898781;
    --grid: #2c2c2a; --axis: #45453f; --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.2);
    --accent: #3987e5; --accent-wash: rgba(57, 135, 229, 0.16);
    --good: #2fbf2f; --bad: #ff7a7a; --warn-bg: #2b2412; --warn-ink: #f2cf7a;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --pos: #3987e5; --neg: #e66767; --mid: #383835;
    --shadow: none;
  }
}
:root[data-theme="dark"] .foot-band { --band-1: #0d366b; --band-2: #184f95; --band-3: #256abf; box-shadow: none; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #252523;
  --text-1: #f0efec; --text-2: #c3c2b7; --text-3: #898781;
  --grid: #2c2c2a; --axis: #45453f; --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #3987e5; --accent-wash: rgba(57, 135, 229, 0.16);
  --good: #2fbf2f; --bad: #ff7a7a; --warn-bg: #2b2412; --warn-ink: #f2cf7a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --pos: #3987e5; --neg: #e66767; --mid: #383835;
  --shadow: none;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page); color: var(--text-1); font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--text-3); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--good); }
.down { color: var(--bad); }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; font-size: 16px; }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; }
.brand-lg { font-size: 22px; }
.brand-lg svg { width: 30px; height: 30px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn-ink); letter-spacing: 0; }

/* buttons */
.primary-btn {
  width: 100%; border: 0; border-radius: 10px; padding: 12px 16px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; cursor: pointer; transition: filter .15s;
}
.primary-btn:hover { filter: brightness(1.07); }
.primary-btn:disabled { opacity: .55; cursor: progress; }
.ghost-btn, .icon-btn, .dd-btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: 9px; cursor: pointer; padding: 7px 11px;
}
.ghost-btn:hover, .icon-btn:hover, .dd-btn:hover { border-color: var(--border-strong); }
.icon-btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; }
#more-btn svg { fill: var(--text-2); stroke: none; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

/* -------------------------------------------------------------- connect */
.connect { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 16px; }
.connect-card {
  width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 32px 26px; box-shadow: var(--shadow);
}
.lede { color: var(--text-2); font-size: 15px; margin: 12px 0 26px; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.token-row { display: flex; gap: 8px; }
.token-row input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--page);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}
.token-row input:focus, .filters input:focus, .filters select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.connect-opts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 18px; color: var(--text-2); font-size: 13px; }
.check { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--accent); }
.progress { margin-top: 18px; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
#progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.progress-msg { margin-top: 8px; color: var(--text-2); font-size: 13px; }
.error-box { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); font-size: 13px; }
.alt-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 13.5px; }
.dot { color: var(--text-3); }
.help { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 14px; color: var(--text-2); font-size: 13px; }
.help summary { cursor: pointer; font-weight: 600; color: var(--text-1); }
.help ol { padding-left: 20px; margin: 10px 0 0; }
.help li { margin: 4px 0; }
.privacy, .disclaimer { color: var(--text-3); font-size: 12px; margin: 14px 0 0; }

/* ---------------------------------------------------------------- topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 12px 24px 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 5px 10px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 500; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text-1); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.dropdown { position: relative; }
.dd-btn { display: inline-flex; gap: 8px; align-items: center; height: 36px; max-width: 260px; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg) translateY(-2px); flex: none; }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 6px; z-index: 30;
}
.dd-right { left: auto; right: 0; min-width: 210px; }
.dd-menu button, .dd-menu label { display: flex; width: 100%; gap: 9px; align-items: center; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dd-menu button:hover, .dd-menu label:hover { background: var(--surface-2); }
.dd-menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 4px; }
.dd-menu .acct-meta { margin-left: auto; color: var(--text-3); font-size: 12px; }
.dd-menu input { accent-color: var(--accent); }

.tabs { max-width: 1360px; margin: 0 auto; padding: 0 16px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: none; padding: 9px 12px 11px; cursor: pointer; color: var(--text-2); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs button:hover { color: var(--text-1); }
.tabs button[aria-selected="true"] { color: var(--text-1); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------ view */
.view { max-width: 1360px; margin: 0 auto; padding: 22px 24px 40px; }
.foot { max-width: 1360px; margin: 8px auto 0; padding: 0 24px 24px; }
/* designed footer band: author's strategies */
.foot-band {
  --band-1: #1c5cab; --band-2: #2a78d6; --band-3: #4a93ea;
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px 20px; color: #fff;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 18px 32px; align-items: center;
  background:
    radial-gradient(520px 260px at 92% -20%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(420px 240px at -5% 120%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg, var(--band-1), var(--band-2) 55%, var(--band-3));
  box-shadow: 0 10px 30px rgba(28, 92, 171, .18);
}
.foot-band::after { /* faint chart line motif */
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L60 88 L110 94 L170 70 L230 76 L290 52 L350 60 L410 34 L470 42 L530 18 L600 10' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.foot-copy, .foot-cards, .foot-band-note { position: relative; z-index: 1; }
.foot-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.16); }
.foot-copy h2 { margin: 10px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.foot-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: 13.5px; max-width: 380px; }
.foot-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.foot-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 14px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px);
  transition: background .15s, transform .15s, border-color .15s;
}
.foot-card:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.foot-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.foot-card-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.foot-card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--band-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.foot-card-text b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-card-text span { font-size: 12px; color: rgba(255,255,255,.75); }
.foot-card-cta { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--band-1); transition: transform .15s; }
.foot-card:hover .foot-card-cta { transform: translate(2px, -2px); }
.foot-card-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foot-band-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11.5px; color: rgba(255,255,255,.68); }
.foot-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 14px 4px 0; color: var(--text-3); font-size: 12px; }
.foot-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text-2); }
.foot-brand svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; }
#foot-info { flex: 1; min-width: 200px; }
@media (max-width: 980px) {
  .foot-band { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 18px; }
}
@media (max-width: 620px) {
  .foot-cards { grid-template-columns: minmax(0, 1fr); }
  .foot-copy h2 { font-size: 19px; }
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; margin: 0; letter-spacing: -0.015em; font-weight: 650; }
.section-head .sub { color: var(--text-3); font-size: 13px; }

.grid { display: grid; gap: 16px; }
.g-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mt { margin-top: 16px; }
@media (max-width: 980px) { .g-2, .g-3-1, .g-1-1 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 620; letter-spacing: -0.005em; }
.card .card-sub { color: var(--text-3); font-size: 12.5px; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head .card-sub { margin-bottom: 0; }
.chart { position: relative; height: 300px; }
.chart.sm { height: 220px; }
.chart.lg { height: 360px; }

.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px 14px; box-shadow: var(--shadow); min-width: 0; }
.tile .t-label { color: var(--text-2); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.tile .t-value { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-sub { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.info { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--axis); color: var(--text-3); font-size: 10px; align-items: center; justify-content: center; cursor: help; font-weight: 600; }

/* legend list next to donuts */
.legend-list { list-style: none; margin: 8px 0 0; padding: 0; }
.legend-list li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--grid); font-size: 13px; }
.legend-list li:first-child { border-top: 0; }
.legend-list .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-list .lv { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-2); }
.legend-list .lp { width: 54px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-1); font-weight: 550; }
.donut-wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut-wrap .chart { height: 180px; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 8px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
table.data th { color: var(--text-3); font-weight: 550; font-size: 12px; position: sticky; top: 0; background: var(--surface); }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--text-1); }
table.data th.sorted::after { content: " ↓"; }
table.data th.sorted.asc::after { content: " ↑"; }
table.data .l { text-align: left; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr.click { cursor: pointer; }
table.data tfoot td { font-weight: 650; border-bottom: 0; border-top: 1px solid var(--axis); }
.inst-name { display: flex; flex-direction: column; min-width: 160px; max-width: 280px; }
.inst-name b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.inst-name span { color: var(--text-3); font-size: 11.5px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; background: var(--surface-2); color: var(--text-2); }
.wbar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--surface-2); vertical-align: middle; margin-left: 6px; overflow: hidden; }
.wbar i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
.more-row { text-align: center; padding: 12px; }

/* heatmaps */
table.heat td { text-align: center; min-width: 52px; font-size: 12px; border: 2px solid var(--surface); border-radius: 6px; padding: 7px 4px; }
table.heat th { text-align: center; border: 0; }
table.heat td.yr { font-weight: 650; }
table.heat td.lab, table.heat th.lab { text-align: left; color: var(--text-2); font-weight: 550; background: none; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters input, .filters select { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; }
.filters input[type="search"] { min-width: 200px; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 5px 11px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--accent-wash); border-color: transparent; color: var(--accent); font-weight: 600; }
.mini-seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.mini-seg button { border: 0; background: transparent; padding: 4px 9px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 12.5px; }
.mini-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text-1); font-weight: 550; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* notes */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 9px 12px; border-radius: 9px; background: var(--warn-bg); color: var(--warn-ink); margin-bottom: 8px; font-size: 12.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--text-3); text-align: center; padding: 30px 10px; font-size: 13px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--grid); font-size: 13px; }
.activity li:first-child { border-top: 0; }
.activity .a-main { min-width: 0; flex: 1; }
.activity .a-main b { font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity .a-main span { color: var(--text-3); font-size: 12px; }
.activity .a-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-input { width: 70px; }
.prose { color: var(--text-2); font-size: 13.5px; max-width: 760px; }
.prose h4 { color: var(--text-1); margin: 18px 0 6px; font-size: 14px; }
.prose p, .prose li { margin: 6px 0; }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.42); }
.modal-panel { position: relative; width: 100%; max-width: 980px; background: var(--page); border-radius: 18px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal h2 { margin: 0 40px 4px 0; font-size: 20px; letter-spacing: -0.015em; }

@media (max-width: 720px) {
  .topbar-inner, .view, .foot { padding-left: 16px; padding-right: 16px; }
  .foot-band { border-radius: 18px; }
  .connect-card { padding: 26px 20px 20px; }
  .tile .t-value { font-size: 20px; }
  .g-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 12px 11px; }
  .seg button { padding: 5px 7px; }
}

/* language switch */
.connect-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-seg button { padding: 4px 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }

/* author's strategies banner (start page) */
.promo {
  width: 100%; max-width: 520px; border-radius: 18px; padding: 20px 22px 16px;
  background: linear-gradient(135deg, var(--accent-wash), transparent 70%), var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.promo-head h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.promo-head p { margin: 4px 0 14px; color: var(--text-2); font-size: 13px; }
.promo-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.promo-item {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.promo-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.promo-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.promo-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-wash); display: inline-flex; align-items: center; justify-content: center; }
.promo-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promo-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.promo-text b { font-weight: 620; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-text span { color: var(--text-3); font-size: 12px; }
.promo-cta { flex: none; color: var(--accent); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.promo-note { margin: 12px 0 0; color: var(--text-3); font-size: 11.5px; }
@media (max-width: 520px) { .promo { padding: 18px 16px 14px; } }
