/* Staker dashboard - clean, professional, financial-portal styling.
   One accent hue (teal-green, evoking SOL/growth) used consistently; text in
   neutral ink tokens, never the accent, per data-viz rules. */
:root {
  --bg: #f4f6f9;
  --bg-2: #eef1f6;           /* slightly deeper, for subtle panel contrast */
  --surface: #ffffff;
  --surface-2: #fbfcfe;      /* raised surfaces (tile hover, insets) */
  --ink: #10141b;
  --ink-2: #4a5361;
  --ink-3: #828b99;
  --line: #e7eaf0;
  --line-2: #eef1f5;         /* fainter divider */
  /* Solana Company brand: purple -> teal gradient. Charts use the teal end as
     the single accent hue; the gradient itself is used for the brand mark and
     hero emphasis. */
  --brand-purple: #9945ff;
  --brand-teal: #14b89a;
  --brand-grad: linear-gradient(120deg, #9945ff 0%, #7d5cf5 42%, #14c8a8 100%);
  --accent: #12b394;          /* teal end - charts, buttons */
  --accent-weak: #ddf3ee;
  --accent-ink: #0b7360;
  --pos: #1a7f5a;
  --warn: #b7791f;
  --radius: 14px;
  --radius-sm: 10px;
  /* layered, soft shadows for a premium material feel */
  --shadow: 0 1px 2px rgba(16,20,27,.04), 0 4px 14px -4px rgba(16,20,27,.06);
  --shadow-lg: 0 2px 6px rgba(16,20,27,.05), 0 14px 40px -10px rgba(16,20,27,.14);
  --ring: 0 0 0 3px rgba(18,179,148,.18);   /* focus ring */
  --font-ui: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "PingFang TC",
    "Microsoft YaHei", sans-serif;
  --font-num: "Inter var", "Inter", ui-monospace, "SF Mono", "Segoe UI", system-ui, sans-serif;
}
/* Dark palette, shared by (a) system-dark when no explicit choice is set, and
   (b) an explicit data-theme="dark". The theme switcher stamps data-theme on
   <html>; when it's "system" we remove the attribute and fall back to the media
   query. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f14; --bg-2: #0f131a; --surface: #161b23; --surface-2: #222834;
    --ink: #eef1f6; --ink-2: #aeb8c6; --ink-3: #79828f;
    --line: #242b36; --line-2: #1d232d; --accent: #2fd0b3; --accent-weak: #123a35;
    --accent-ink: #74e6d6;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -6px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 8px rgba(0,0,0,.5), 0 18px 46px -12px rgba(0,0,0,.6);
    --ring: 0 0 0 3px rgba(47,208,179,.22);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0f14; --bg-2: #0f131a; --surface: #161b23; --surface-2: #222834;
  --ink: #eef1f6; --ink-2: #aeb8c6; --ink-3: #79828f;
  --line: #242b36; --line-2: #1d232d; --accent: #2fd0b3; --accent-weak: #123a35;
  --accent-ink: #74e6d6;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -6px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.5), 0 18px 46px -12px rgba(0,0,0,.6);
  --ring: 0 0 0 3px rgba(47,208,179,.22);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
}
/* all tabular numbers get true monospaced-digit alignment + slashed zero */
.value, .num, td.num, .tile .value, [class*="tabular"], .valstats b {
  font-feature-settings: "tnum" 1, "zero" 1; font-variant-numeric: tabular-nums slashed-zero;
}
.hidden { display: none !important; }
::selection { background: var(--accent-weak); color: var(--accent-ink); }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-grad); }
/* logo: black variant on light theme, white on dark; hide the text label when
   a logo image is present so we don't double up. */
.brand .logo { height: 26px; width: auto; display: block; }
.brand .logo-white { display: none; }
/* system dark (no explicit light choice) -> white logo */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-black { display: none; }
  :root:not([data-theme="light"]) .brand .logo-white { display: block; }
}
/* explicit dark -> white logo; explicit light -> black logo (wins over system) */
:root[data-theme="dark"] .brand .logo-black { display: none; }
:root[data-theme="dark"] .brand .logo-white { display: block; }
:root[data-theme="light"] .brand .logo-black { display: block; }
:root[data-theme="light"] .brand .logo-white { display: none; }
.brand.has-logo .brand-text, .brand.has-logo .dot { display: none; }
.valstats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.valstats b { color: var(--ink); font-variant-numeric: tabular-nums; }

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px 60px; }

/* ---- app shell with left sidebar ---- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px 10px; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  /* hide the scrollbar chrome but keep scrollability if it ever overflows */
  scrollbar-width: none; -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar { width: 0; height: 0; }
.sidebar .brand { padding: 4px 8px 12px; }
.sidebar .brand .logo { height: 23px; }
.navsection { font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-3); font-weight: 700; padding: 14px 10px 5px; opacity: .85; }

/* validator picker */
.valpicker { position: relative; margin: 4px 4px 10px; }
.valpicker-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; }
.valpicker-btn.single { cursor: default; }
.valpicker-btn .vp-caret { margin-left: auto; color: var(--ink-3); font-size: 11px; }
.valpicker-btn.single .vp-caret { display: none; }
.vp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); flex: none; }
.valpicker-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 5px;
  box-shadow: var(--shadow); display: none; }
.valpicker-menu.open { display: block; }
.vp-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 9px;
  border: 0; background: none; color: var(--ink-2); font-size: 13px; border-radius: 7px;
  cursor: pointer; text-align: left; }
.vp-item:hover { background: var(--bg); color: var(--ink); }
.vp-item.on { color: var(--accent-ink); font-weight: 600; }
.vp-item .vp-sub { margin-left: auto; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.navitem {
  display: flex; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; border: 0;
  background: none; width: 100%; text-align: left; text-decoration: none;
  /* force identical box metrics whether the item is a <button> or an <a> -
     buttons otherwise render a few px shorter, making the dashboard nav look
     tighter than the account/validators pages. */
  box-sizing: border-box; line-height: 20px; font-family: inherit;
  margin: 0; appearance: none; -webkit-appearance: none;
}
.navitem { position: relative; transition: background .14s ease, color .14s ease; }
.navitem:hover, .navitem:focus, .navitem:active { background: var(--bg); color: var(--ink); text-decoration: none; }
.navitem.active { background: var(--accent-weak); color: var(--accent-ink); font-weight: 600; }
.navitem.active::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--brand-grad); }
.navitem .ico { width: 18px; text-align: center; opacity: .75; font-size: 14px; }
.navitem.active .ico { opacity: 1; }
.sidebar .spacer { flex: 1; }
.sidebar-foot { padding: 12px 10px; border-top: 1px solid var(--line); margin-top: 8px; flex: none;
  display: flex; flex-direction: column; gap: 10px; }
.sidebar-foot .who { font-size: 13px; color: var(--ink-2); }
.sidebar-foot .who b { color: var(--ink); display: block; }
/* keep the theme toggle compact - don't let the column layout stretch it full-width */
.sidebar-foot .theme-toggle { align-self: flex-start; }

.content { min-width: 0; display: flex; flex-direction: column; }
.content-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;   /* wrap the two groups instead of overlapping when tight */
  padding: 14px 30px; border-bottom: 1px solid var(--line);
  background: var(--surface);   /* fallback for no color-mix support */
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  position: sticky; top: 0; z-index: 5;
  min-height: 66px; box-sizing: border-box;   /* uniform header height across pages */
}
/* both header groups may shrink so their contents never collide */
.content-top > div { min-width: 0; }
.content-top h1 { font-size: 19px; margin: 0; letter-spacing: -0.018em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-inner { padding: 28px 34px 44px; max-width: 1460px; width: 100%; flex: 1 0 auto; }

@media (max-width: 820px) {
  /* sidebar -> horizontal top bar with scrolling nav */
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; height: auto; flex-direction: row;
    align-items: center; gap: 4px; padding: 8px 12px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0 8px 0 2px; flex: none; }
  .sidebar .brand .logo { height: 22px; }
  .sidebar .navsection { display: none; }
  .sidebar .spacer, .sidebar-foot { display: none; }
  .navitem { width: auto; flex: none; white-space: nowrap; padding: 8px 12px; font-size: 13.5px; }
  .content-top { padding: 12px 16px; }
  .content-top h1 { font-size: 17px; }
  .content-inner { padding: 16px 14px 48px; }
  .content-top #epochBadge { display: none; }   /* save space; shown on validator view */
}

/* general small-screen rules (apply to all pages) */
@media (max-width: 640px) {
  .wrap { padding: 16px 14px 48px; }
  .topbar { padding: 12px 14px; }
  .brand .logo { height: 22px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px 14px; }
  .tile .value { font-size: 22px; }
  .panel { padding: 16px 15px; }
  h1 { font-size: 21px; }
  /* tables scroll horizontally instead of overflowing the viewport */
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .acct-name { display: none; }                 /* avatar only on mobile */
  .acct-menu { width: min(250px, calc(100vw - 28px)); }
  .searchrow { flex-direction: column; }
  .searchrow button { width: 100%; }
  .vs-inner { flex-direction: column; gap: 8px; }
  /* top-bar: keep every control on ONE row and stop them overlapping.
     Drop the least-essential items so the globe/bell/avatar always fit. */
  .content-top { gap: 8px; }
  .content-top > div { gap: 8px !important; min-width: 0; }
  .content-top > div:last-child { flex: none; }
  .price-badge { display: none; }               /* SOL price hidden on mobile */
  #report { display: none; }                    /* report button hidden on mobile */
  .lang-globe { padding: 6px 6px; }
  .lang-globe .lang-cur { display: none; }       /* globe icon only */
  .notif-btn, .lang-globe { font-size: 16px; }
  .lang-menu { width: min(200px, calc(100vw - 28px)); }
  .notif-menu { width: min(300px, calc(100vw - 28px)); }
}
@media (max-width: 400px) {
  .tiles { grid-template-columns: 1fr; }
}
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 22px; box-shadow: var(--shadow);
}
h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -0.021em; font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 4px; letter-spacing: -0.014em; font-weight: 700; }
.sub { color: var(--ink-2); font-size: 13.5px; margin: 0 0 15px; line-height: 1.6; }

/* search */
.search h1 { margin-top: 0; }
.searchrow { display: flex; gap: 10px; margin-top: 6px; }
#addr {
  flex: 1; padding: 12px 14px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
#addr:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
/* Base for ALL buttons: just reset chrome + cursor. No fill/shadow here, so
   utility buttons (nav items, tabs, toggles — all of which carry a class) don't
   inherit the accent look that was drawing a faint box around each nav item. */
button { cursor: pointer; font-family: inherit; border: 0; background: none; color: inherit; }
button:disabled { opacity: .5; cursor: default; }
/* Primary action buttons = classless buttons (this app gives every utility
   button a class) + anything explicitly marked .btn-primary. */
button:not([class]), button.btn-primary {
  padding: 11px 20px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(16,20,27,.08), inset 0 1px 0 rgba(255,255,255,.14);
  transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}
button:not([class]):hover, button.btn-primary:hover {
  filter: brightness(1.06); box-shadow: 0 3px 10px -2px rgba(18,179,148,.4); }
button:not([class]):active, button.btn-primary:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: var(--ring); }
button.secondary {
  padding: 11px 20px; font-size: 14.5px; font-weight: 600; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,20,27,.04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
button.secondary:hover { background: var(--bg); border-color: var(--ink-3); box-shadow: 0 1px 2px rgba(16,20,27,.06); }
button:disabled { opacity: .5; cursor: default; box-shadow: none; }

/* "Download report" — a distinct, sharper CTA in the brand purple, set apart
   from the teal primary and the muted secondary. */
button.btn-report {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; border-radius: 9px; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #8b46f0 0%, #7d5cf5 55%, #6d4bf0 100%);
  box-shadow: 0 1px 2px rgba(60,25,120,.22), 0 6px 16px -6px rgba(125,92,245,.5),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}
button.btn-report:hover { filter: brightness(1.07);
  box-shadow: 0 2px 4px rgba(60,25,120,.24), 0 10px 22px -6px rgba(125,92,245,.6),
    inset 0 1px 0 rgba(255,255,255,.2); }
button.btn-report:active { transform: translateY(1px); }
button.btn-report .rep-ico { font-size: 14px; line-height: 1; }
button.btn-report:disabled { filter: grayscale(.3); }
.hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); min-height: 18px; }
.hint.err { color: var(--warn); }

/* refined inputs (pages set their own box; this adds smooth focus everywhere) */
input, textarea, select { transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
input:focus, textarea:focus, select:focus { outline: none !important; box-shadow: var(--ring); border-color: var(--accent) !important; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .8; }

/* login / auth pages: soft branded ambient background + elevated card */
.login-wrap {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(153,69,255,.10), transparent 60%),
    radial-gradient(900px 480px at 100% 110%, rgba(18,200,168,.12), transparent 55%),
    var(--bg);
}
.login-card { box-shadow: var(--shadow-lg) !important; border-radius: 18px !important; }
.login-card h1 { letter-spacing: -0.02em; }

/* hero tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line); }
.tile .label { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600; }
.tile .value { font-size: 29px; font-weight: 700; margin-top: 8px; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink); }
.tile .value .unit { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.tile .note { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.tile.accent .value { color: var(--accent-ink); }

/* ---- Overview redesign: hero band + stat strip + chart/side-panel grid ---- */

/* hero band — the headline portfolio value */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  background:
    radial-gradient(680px 300px at 8% -30%, rgba(153,69,255,.10), transparent 62%),
    radial-gradient(560px 320px at 102% 130%, rgba(20,200,168,.13), transparent 58%),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 16px;
}
.hero::before {   /* brand gradient rail on the left edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--brand-grad);
}
.hero-main { min-width: 0; }
.hero-label { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600; }
.hero-value { font-size: 46px; font-weight: 800; line-height: 1.02; margin-top: 6px;
  letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums slashed-zero; }
.hero-alt { font-size: 14px; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; }
.hero-side { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-metric { text-align: right; }
.hm-k { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.hm-v { font-size: 30px; font-weight: 700; color: var(--accent-ink); line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hm-d { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.hero-proj { max-width: 232px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--accent-weak);
  background: linear-gradient(135deg, rgba(153,69,255,.07), rgba(20,184,154,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.hp-head { display: flex; align-items: center; gap: 7px; }
.hp-ico { display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent-weak);
  color: var(--accent-ink); font-size: 13px; font-weight: 800; line-height: 1; }
.hp-k { font-size: 11px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600; }
.hp-amt { font-size: 26px; font-weight: 800; line-height: 1.05; margin-top: 8px;
  letter-spacing: -0.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* compact stat strip (denser than .tiles — 4-up, tighter) */
.statstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-bottom: 18px; }
.statstrip .tile { padding: 16px 18px; }
.statstrip .tile .value { font-size: 24px; margin-top: 6px; }

/* overview grid: earnings chart (wide) + validator-at-a-glance rail */
.ov-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch; }
.ov-grid > .panel { margin-bottom: 0; }

/* validator-at-a-glance side panel */
.vglance { display: flex; flex-direction: column; }
.vg-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.vg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-grad);
  box-shadow: 0 0 0 3px var(--accent-weak); flex: 0 0 auto; }
.vg-epoch { margin: 16px 0 6px; }
.vg-epoch-top { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
.vg-epoch-top b { color: var(--ink); }
.vg-list { margin: 8px 0 0; display: flex; flex-direction: column; }
.vg-row { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.vg-row:last-child { border-bottom: 0; }
.vg-row dt { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.vg-row dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600;
  text-align: right; font-variant-numeric: tabular-nums; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-row dd.accent { color: var(--accent-ink); }
.vg-status.ok { color: var(--pos); } .vg-status.warn { color: var(--warn); }
.vg-rank { color: var(--ink-3); font-weight: 500; }
.vg-link { margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none; }
.vg-link:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .ov-grid { grid-template-columns: 1fr; }
  .statstrip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 20px 20px; }
  .hero-value { font-size: 36px; }
  .hero-side { width: 100%; justify-content: space-between; }
  .statstrip { grid-template-columns: 1fr 1fr; }
}

/* charts */
.chart { width: 100%; }
.chart-legend { display: flex; gap: 18px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart svg { display: block; max-width: 100%; }
.axis text { fill: var(--ink-3); font-size: 11px; }
.axis line, .axis path { stroke: var(--line); }
.gridline { stroke: var(--line); stroke-dasharray: 2 3; }
.tt {
  position: fixed; pointer-events: none; z-index: 40; opacity: 0;
  transition: opacity .08s; white-space: nowrap;
  background: #10141b; color: #fff; border: 1px solid rgba(255,255,255,.12);
  padding: 9px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.35;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 1px;
}
.tt .tt-k { font-size: 11px; color: #9aa4b2; text-transform: uppercase; letter-spacing: .04em; }
.tt b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.tt .tt-s { font-size: 11px; color: #9aa4b2; }

/* accounts table */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
/* wrap wide/dense tables in this so they scroll WITHIN their own box at any
   width instead of forcing the whole page to scroll horizontally. Preferred
   over the ≤640px `table{display:block}` hack (which leaves a dead zone at
   641–820px where the content column is narrow but the table still overflows). */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 480px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
thead th { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: var(--bg-2); }
th { color: var(--ink-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
td { color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums slashed-zero; }
td.addr { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink-2); }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--accent-weak); color: var(--accent-ink); font-weight: 600; }
.badge.warn { background: #fdf0d9; color: var(--warn); }
.badge.ok { background: rgba(26,127,90,.14); color: var(--pos); }
.badge.muted { background: var(--surface-2); color: var(--ink-3); }

/* notifications bell */
.notif-wrap { position: relative; display: inline-block; }
.notif-btn { background: none; border: 0; font-size: 17px; cursor: pointer; padding: 6px 8px;
  border-radius: 8px; line-height: 1; position: relative; filter: grayscale(.2); }
.notif-btn:hover { background: var(--bg); }
.notif-badge { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px;
  padding: 0 4px; background: var(--brand-grad); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.notif-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-height: 420px;
  overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 6px; z-index: 55; display: none; }
.notif-menu.open { display: block; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 700; font-size: 13px; }
.notif-head .link { font-size: 12px; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 8px; }
.notif-item.unread { background: var(--accent-weak); }
.notif-item .ni-ico { font-size: 15px; }
.ni-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.ni-b { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.ni-when { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.notif-empty { padding: 24px 10px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* language globe (next to the notification bell) */
.lang-wrap { position: relative; display: inline-block; }
.lang-globe { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0;
  font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 8px; line-height: 1; }
.lang-globe:hover { background: var(--bg); }
.lang-globe .lang-cur { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 6px; z-index: 55; display: none; }
.lang-menu.open { display: block; }
.lang-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--ink); }
.lang-item:hover { background: var(--bg); }
.lang-item.on { color: var(--accent-ink); font-weight: 600; }
.lang-item .lang-tag { display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; }
.lang-item.on .lang-tag { background: var(--accent-weak); border-color: var(--accent); }
.lang-item .lang-check { margin-left: auto; color: var(--accent-ink); }

/* validator health chips (ValidBlocks) */
.health-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.hchip { display: flex; flex-direction: column; gap: 3px; min-width: 100px;
  padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.hchip:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.hchip .hk { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 600; }
.hchip .hv { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hchip.accent { border-color: var(--accent); background: var(--accent-weak); }
.hchip.accent .hv { color: var(--accent-ink); }
.hchip.ok .hv { color: var(--pos); }
.hchip.warn .hv { color: var(--warn); }
/* vs-network comparison rows on the performance page */
.cmp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 18px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row .cmp-label { font-size: 13.5px; color: var(--ink-2); }
.cmp-row .cmp-us { font-size: 16px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; text-align: right; }
.cmp-row .cmp-net { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; min-width: 120px; }
.cmp-head { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 18px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 700; padding-bottom: 4px; }
.cmp-head span:not(:first-child) { text-align: right; }
.cmp-head span:last-child { min-width: 120px; }
.pool-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pool-row:last-child { border-bottom: 0; }

/* charts 2-per-row on desktop, 1-per-row on narrow screens. `stretch` makes
   both panels in a row the SAME height (they were staggering before). The
   bottom margin matches .panel's 22px so the grid is separated from whatever
   panel follows it (it was touching the next full-width panel). */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  align-items: stretch; margin-bottom: 22px; }
.chart-grid > .panel { margin-bottom: 0; display: flex; flex-direction: column; }
.chart-grid > .panel .chart { margin-top: auto; }   /* pin chart to bottom so titles align across a row */
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; gap: 0; } .chart-grid > .panel { margin-bottom: 20px; } }

/* "Us vs the network": chart on the left, comparison table on the right */
.cmp-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .cmp-split { grid-template-columns: 1fr; gap: 16px; } }

/* account menu (top-right avatar + dropdown) */
.acct { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.acct-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0;
  padding: 4px 6px 4px 4px; border-radius: 24px; cursor: pointer; }
.acct-btn:hover { background: var(--bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-btn .caret { color: var(--ink-3); font-size: 11px; }
.acct-name { font-size: 13.5px; color: var(--ink); font-weight: 600; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 8px; z-index: 50; display: none; }
.acct-menu.open { display: block; }
.acct-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-head .avatar { width: 40px; height: 40px; }
.acct-head .info { min-width: 0; }
.acct-head .n { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head .e { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head .role { font-size: 11px; color: var(--accent-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.acct-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 8px; color: var(--ink-2); font-size: 14px; cursor: pointer; text-decoration: none;
  border: 0; background: none; width: 100%; text-align: left; }
.acct-item:hover { background: var(--bg); color: var(--ink); }
.acct-item .ico { width: 16px; text-align: center; opacity: .85; }
.acct-menu .divider { height: 1px; background: var(--line); margin: 6px 4px; }
.acct-menu .theme-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 13px; color: var(--ink-2); }

/* theme toggle (segmented) */
.theme-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--line); }
.theme-btn { background: none; color: var(--ink-3); padding: 4px 9px; font-size: 13px;
  border-radius: 6px; line-height: 1; }
.theme-btn:hover { color: var(--ink); filter: none; background: none; }
.theme-btn.on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }

/* language switcher (EN / 繁 / 简) — same pill style as the theme toggle */
.lang-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--line); }
.lang-btn { background: none; color: var(--ink-3); padding: 4px 9px; font-size: 13px;
  border-radius: 6px; line-height: 1; font-weight: 600; }
.lang-btn:hover { color: var(--ink); filter: none; background: none; }
.lang-btn.on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }
/* login/simple pages: a small inline switcher pinned top-right */
.lang-corner { position: fixed; top: 16px; right: 18px; z-index: 20; }

/* on-chain us-vs-cluster comparison bars (Performance page) */
.oc-head { display: flex; align-items: center; gap: 10px; }
.oc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink);
  background: var(--accent-weak); border: 1px solid var(--accent-weak);
  padding: 3px 9px; border-radius: 999px; cursor: default; }
.oc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(20,184,154,.18); }
.oc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin-top: 16px; }
.oc-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: var(--surface-2); }
.oc-k { font-size: 12px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 600; }
.oc-v { font-size: 28px; font-weight: 800; line-height: 1.05; margin: 8px 0 2px;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.oc-v.good { color: var(--accent-ink); }
.oc-v.warn { color: var(--warn); }
.oc-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
/* the mini comparison bar: ours (accent) over cluster (muted) baseline */
.oc-bars { display: flex; flex-direction: column; gap: 8px; }
.oc-bar { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; }
.oc-bar .bl { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.oc-track { height: 8px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.oc-fill { height: 100%; border-radius: 5px; transition: width .5s ease; }
.oc-fill.us { background: var(--brand-grad); }
.oc-fill.net { background: var(--ink-3); opacity: .55; }
.oc-bar .bv { font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.oc-note { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }
.oc-win { color: var(--pos); font-weight: 700; }
@media (max-width: 900px) { .oc-grid { grid-template-columns: 1fr; } }

/* admin: per-client rebate setter */
.rebate-set { display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding-top: 12px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.rs-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.rs-input { width: 70px; padding: 6px 8px; font-size: 13px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface-2); color: var(--ink); text-align: right; }
.rs-suffix { font-size: 13px; color: var(--ink-3); margin-left: -4px; }
.rs-hint { font-size: 11.5px; color: var(--ink-3); }
/* admin: rebate request rows */
.rebate-req { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: var(--surface-2); }
.rr-who { font-size: 14px; font-weight: 700; color: var(--ink); }
.rr-u { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.rr-detail { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.rr-note { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-style: italic; }
.rr-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* rebate panel (My rewards) */
.rebate-panel { position: relative; overflow: hidden;
  background: radial-gradient(600px 240px at 100% -20%, rgba(153,69,255,.07), transparent 60%),
    radial-gradient(500px 240px at 0% 120%, rgba(20,200,168,.09), transparent 58%), var(--surface); }
.rb-head { display: flex; align-items: center; gap: 12px; }
.rb-badge { font-size: 12px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-weak); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.rb-calc { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rb-row { display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 16px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.rb-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.rb-row.rb-total { border-bottom: 0; background: var(--bg); }
.rb-row.rb-total span { color: var(--ink); font-weight: 600; }
.rb-row.rb-total b { font-size: 20px; color: var(--accent-ink); }
.rb-usd { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.rb-est { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-3); background: var(--bg);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-left: 6px;
  vertical-align: 1px; }
.rb-effective { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--accent-weak); border: 1px solid var(--accent-weak); }
.rb-eff-k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rb-eff-v { font-size: 22px; font-weight: 800; color: var(--accent-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rb-eff-note { font-size: 12px; color: var(--ink-3); }
.rb-actions { margin-top: 16px; }
.rb-note { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; }
.rb-confirm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rb-confirm-q { font-size: 13px; color: var(--ink-2); }

/* brand gradient accents (#8) */
.tile.accent { position: relative; overflow: hidden; }
.tile.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--brand-grad); }
.brand .dot { background: var(--brand-grad); }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* SOL price badge + currency toggle (top bar right) */
.price-badge { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px; }
.price-badge b { color: var(--ink); }
.cur-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); }
.cur-btn { background: none; color: var(--ink-3); padding: 4px 10px; font-size: 12.5px;
  font-weight: 600; border: 0; border-radius: 6px; cursor: pointer; }
.cur-btn.on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }

/* epoch progress widget (top bar) */
.epoch-widget { min-width: 180px; }
.epoch-top { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink-2); }
.epoch-top b { color: var(--ink); }
.epoch-pct { font-variant-numeric: tabular-nums; color: var(--accent-ink); font-weight: 600; }
.epoch-track { height: 6px; border-radius: 4px; background: var(--bg); overflow: hidden; margin: 4px 0 3px; }
.epoch-fill { height: 100%; background: var(--brand-grad); border-radius: 4px; transition: width .4s; }
.epoch-sub { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* APY explainer (gross - commission = net) */
.apy-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.apy-cell { flex: 1; min-width: 150px; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; background: var(--bg); }
.apy-cell.accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-weak); }
.apy-k { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.apy-v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.apy-cell.accent .apy-v { color: var(--accent-ink); }
.apy-d { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.apy-op { display: flex; align-items: center; font-size: 22px; color: var(--ink-3); font-weight: 700; }
.apy-row code, .sub code { font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  background: var(--bg); padding: 1px 5px; border-radius: 5px; }

/* composition bar */
.comp-bar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.comp-seg { height: 100%; transition: width .3s; min-width: 2px; }

/* section clarification note (validator vs client) */
.section-note { background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 18px; font-size: 13px; }
.section-note b { color: var(--ink); }

/* vs-holding callout */
.vs-holding { margin-bottom: 20px; }
.vs-inner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px;
  border-radius: var(--radius); border: 1px solid var(--accent-weak);
  background: linear-gradient(120deg, rgba(153,69,255,.06), rgba(20,184,154,.08));
  font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.vs-inner b { color: var(--ink); }
.vs-ico { font-size: 22px; color: var(--accent-ink); font-weight: 700; line-height: 1.2; }

.actions { margin: 4px 0 40px; }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }

/* global site footer: social icons LEFT · links CENTER · copyright RIGHT,
   sticks to the bottom of the content column (flex-shrink 0). */
.site-foot { border-top: 1px solid var(--line); padding: 16px 32px; margin-top: 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--ink-3); flex: 0 0 auto; }
.site-foot .links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.site-foot .copy { text-align: right; }
.site-foot a { color: var(--ink-3); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .social { display: flex; gap: 10px; justify-content: flex-start; }
.site-foot .social a { display: inline-flex; width: 28px; height: 28px; align-items: center;
  justify-content: center; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.site-foot .social a:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) { .site-foot { grid-template-columns: 1fr; text-align: center; }
  .site-foot .copy, .site-foot .social { justify-content: center; text-align: center; } }

@media print {
  .topbar, .search, .actions, #go, button { display: none !important; }
  .panel { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}
