/* ===========================================================================
   Futures Daily Report — website styles.
   macOS design layer, matched to Futures DeskMate's current look
   (src/styles.macos.css): graphite window chrome, ONE orange accent, SF Pro,
   vibrancy, soft layered shadows, spring motion. Dark default + light theme.
   The report reader is a native, typography-first reading view.
   =========================================================================== */

:root {
  /* surfaces — macOS graphite */
  --bg-0: #1b1c21;
  --bg-1: #232429;   /* workspace behind panels */
  --bg-2: #33343a;   /* window / panel */
  --bg-3: #43444c;   /* control fill */
  --bg-4: #525460;
  --side-bg: rgba(58, 59, 65, 0.66);
  --vibrancy: saturate(170%) blur(34px);
  --hover: rgba(255, 255, 255, 0.075);

  --line-1: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.20);
  --win-edge: rgba(255, 255, 255, 0.15);

  --text-1: #f5f5f8;
  --text-2: #b2b3bd;
  --text-3: #8a8b95;
  --text-4: #6b6c76;
  --text-on-accent: #ffffff;

  /* one accent: macOS crisp orange */
  --accent:       #d15a24;
  --accent-text:  #e79366;
  --accent-soft:  rgba(209, 90, 36, 0.22);
  --accent-line:  rgba(209, 90, 36, 0.50);

  --pos:  #3fcb84; --pos-soft:  rgba(63, 203, 132, 0.16);
  --neg:  #ff6f8e; --neg-soft:  rgba(255, 111, 142, 0.16);
  --warn: #ecc94b; --warn-soft: rgba(236, 201, 75, 0.16);
  --info: #a494f7; --info-soft: rgba(164, 148, 247, 0.16);
  --mark: var(--info);       /* mark price (purple) */
  --last: var(--accent-text);/* last price (orange) */

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-read: -apple-system, BlinkMacSystemFont, "SF Pro Text", "New York", "Inter", Georgia, serif;

  --r-ctl: 7px; --r-panel: 11px; --r-window: 13px; --r-pill: 999px;

  --tint: 16, 20, 28;
  --sh-1: 0 1px 2px rgba(0,0,0,0.22), 0 8px 22px -16px rgba(0,0,0,0.45);
  --sh-2: 0 18px 50px -14px rgba(0,0,0,0.55);
  --sh-inset: inset 0 1px 2px rgba(0,0,0,0.05);
  --sh-raise: inset 0 1px 1px rgba(255,255,255,0.26), 0 1px 2px rgba(var(--tint),0.22);
  --ring: 0 0 0 3.5px var(--accent-soft);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --dp: 150ms; --dm: 240ms;
}

:root[data-theme="light"] {
  --bg-0: #e6e7ec;
  --bg-1: #eff0f3;
  --bg-2: #ffffff;
  --bg-3: #f0f1f4;
  --bg-4: #e3e4e9;
  --side-bg: rgba(247, 247, 250, 0.70);
  --hover: rgba(0, 0, 0, 0.045);

  --line-1: rgba(0, 0, 0, 0.11);
  --line-2: rgba(0, 0, 0, 0.14);
  --line-3: rgba(0, 0, 0, 0.18);
  --line-strong: rgba(0, 0, 0, 0.24);
  --win-edge: rgba(0, 0, 0, 0.16);

  --text-1: #1f2024;
  --text-2: #6c6d76;
  --text-3: #96979f;
  --text-4: #b0b1b8;

  --accent: #c2410c;
  --accent-text: #c2410c;
  --accent-soft: rgba(194, 65, 12, 0.13);
  --accent-line: rgba(194, 65, 12, 0.40);
  --pos: #12a05f; --pos-soft: rgba(18, 160, 95, 0.12);
  --neg: #d0183f; --neg-soft: rgba(208, 24, 63, 0.10);
  --warn: #8a6d0b; --warn-soft: rgba(138, 109, 11, 0.12);
  --info: #6d51d6; --info-soft: rgba(109, 81, 214, 0.12);

  --sh-1: 0 1px 2px rgba(16,20,28,0.06), 0 8px 22px -18px rgba(16,20,28,0.18);
  --sh-2: 0 18px 50px -16px rgba(16,20,28,0.28);
  --sh-raise: inset 0 1px 1px rgba(255,255,255,0.9), 0 1px 2px rgba(var(--tint),0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(209, 90, 36, 0.10), transparent 60%),
    radial-gradient(900px 520px at -8% 0%, rgba(164, 148, 247, 0.08), transparent 55%),
    var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; }

/* ── window shell ─────────────────────────────────────────────────────────── */
.macwin {
  max-width: 1360px;
  margin: 20px auto;
  height: calc(100vh - 40px);
  min-height: 640px;
  background: var(--bg-2);
  border: 1px solid var(--win-edge);
  border-radius: var(--r-window);
  box-shadow: var(--sh-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

/* traffic lights + brand live on the sidebar top */
.sidebar {
  background: var(--side-bg);
  -webkit-backdrop-filter: var(--vibrancy);
  backdrop-filter: var(--vibrancy);
  border-right: 1px solid var(--line-1);
  display: flex; flex-direction: column; min-height: 0;
}
.side-top { padding: 12px 14px 10px; -webkit-app-region: drag; }
.lights { display: flex; gap: 8px; margin-bottom: 14px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lights .r { background: #ff5f57; } .lights .y { background: #febc2e; } .lights .g { background: #28c840; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 88%, white 14%), var(--accent));
  color: var(--text-on-accent); display: grid; place-items: center; font-weight: 700; font-size: 12px;
  box-shadow: var(--sh-raise), inset 0 0 0 .5px color-mix(in oklab, var(--accent) 70%, black);
}
.brand .title { font-size: 13px; font-weight: 600; letter-spacing: -0.015em; }
.brand .sub { font-size: 11px; color: var(--text-3); }

.side-search { padding: 6px 12px 8px; position: relative; }
.side-search svg { position: absolute; left: 21px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.side-search input {
  width: 100%; height: 28px; border-radius: var(--r-ctl); background: var(--bg-3);
  border: 1px solid var(--line-strong); color: var(--text-1); font-size: 12.5px; font-family: inherit;
  padding: 0 10px 0 30px; outline: none; box-shadow: var(--sh-inset);
  transition: border-color var(--dp) var(--spring), box-shadow var(--dp) var(--spring);
}
.side-search input::placeholder { color: var(--text-3); }
.side-search input:focus { border-color: var(--accent-line); box-shadow: var(--ring); }

.side-filters { display: flex; gap: 5px; padding: 0 12px 6px; flex-wrap: wrap; }
.fchip { font-size: 11px; font-weight: 550; color: var(--text-2); padding: 3px 9px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--line-2); transition: all var(--dp) var(--spring); }
.fchip:hover { background: var(--hover); color: var(--text-1); }
.fchip.on { background: var(--accent); color: var(--text-on-accent); border-color: transparent; box-shadow: var(--sh-raise); }

.side-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; min-height: 0; }
.side-sec { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-3); padding: 8px 8px 4px; }
.lrow {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: var(--r-ctl);
  color: var(--text-1); transition: background var(--dp) var(--spring), color var(--dp) var(--spring); cursor: pointer;
}
.lrow:hover { background: var(--hover); }
.lrow.active { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--sh-raise); }
.lrow .ld { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lrow .ldate { font-size: 12.5px; font-weight: 550; letter-spacing: -0.01em; }
.lrow .ldow { font-size: 10.5px; color: var(--text-3); }
.lrow.active .ldow { color: rgba(255,255,255,0.75); }
.lrow .dots { display: flex; gap: 4px; flex: none; }
.lrow .dot { width: 6px; height: 6px; border-radius: 50%; }
.lrow .dot.danger { background: var(--neg); }
.lrow .dot.news { background: var(--accent-text); }
.lrow.active .dot.danger { background: #ffd7de; }
.lrow.active .dot.news { background: #ffe4d3; }

.side-foot { border-top: 1px solid var(--line-1); padding: 8px 10px; display: flex; gap: 4px; }
.navbtn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 30px; border-radius: var(--r-ctl);
  background: transparent; border: 0; color: var(--text-2); font-size: 12px; font-weight: 550; transition: all var(--dp) var(--spring); }
.navbtn:hover { background: var(--hover); color: var(--text-1); }
.navbtn.active { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--sh-raise); }

/* ── main pane ────────────────────────────────────────────────────────────── */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-1); }
.toolbar {
  min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  -webkit-backdrop-filter: var(--vibrancy); backdrop-filter: var(--vibrancy);
  border-bottom: 1px solid var(--line-1); position: relative; z-index: 20; flex-wrap: wrap;
}
.toolbar .tb-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.015em; }
.toolbar .tb-sub { font-size: 11.5px; color: var(--text-3); }
.toolbar .sp { flex: 1; }
.ticker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px;
  border-radius: var(--r-pill); padding: 4px 11px; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-strong); }
.ticker .sym { color: var(--text-3); }
.ticker .px { font-weight: 600; color: var(--text-1); }
.ticker.up .px { color: var(--pos); } .ticker.down .px { color: var(--neg); }

.content { flex: 1; overflow-y: auto; min-height: 0; }

/* buttons */
.btn { height: 30px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--bg-2); color: var(--text-1);
  font-size: 12px; font-weight: 560; letter-spacing: -0.005em; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255,255,255,0.07), 0 1px 2px rgba(var(--tint),0.16);
  transition: transform var(--dp) var(--spring), box-shadow var(--dp) var(--spring), background var(--dp) var(--spring); }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 4px 11px -4px rgba(var(--tint),0.32); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary { background: var(--accent); color: var(--text-on-accent);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.24), 0 1px 2px rgba(var(--tint),0.28), 0 0 0 2.5px color-mix(in oklab, var(--accent) 20%, transparent); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.24), 0 5px 14px -5px rgba(var(--tint),0.5), 0 0 0 2.5px color-mix(in oklab, var(--accent) 55%, transparent); }
.btn.icon { width: 30px; padding: 0; justify-content: center; }
.btn.copied { color: var(--pos); }

/* chips */
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }
.chip.pos { color: var(--pos); background: var(--pos-soft); }
.chip.neg { color: var(--neg); background: var(--neg-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.info { color: var(--info); background: var(--info-soft); }
.chip.muted { color: var(--text-2); background: var(--bg-3); }
.chip .k { color: var(--text-3); font-weight: 600; }

/* ── DOCUMENT VIEW (the full report as a paper sheet, Preview-style) ───────── */
.docwrap { padding: 18px 18px 44px; display: flex; justify-content: center; }
.doc-sheet { position: relative; width: 100%; max-width: 1120px; background: #fff; border-radius: 12px; box-shadow: var(--sh-2); overflow: hidden; min-height: 300px; }
.doc-loading { position: absolute; inset: 0; padding: 34px 40px; background: #fff; }
.doc { width: 100%; border: 0; display: block; background: #fff; min-height: 300px; }
@media (max-width: 860px) { .docwrap { padding: 10px; } }

/* ── READING VIEW (legacy summary render — kept for fallback) ──────────────── */
.reader { max-width: 780px; margin: 0 auto; padding: 30px 32px 80px; }
.r-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.r-title { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin: 4px 0 2px; }
.r-dow { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; }

.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 22px; }
.gcell { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-panel); padding: 12px 13px; box-shadow: var(--sh-inset); }
.gcell .v { font-family: var(--font-mono); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.gcell .v.neg { color: var(--neg); } .gcell .v.amb { color: var(--accent-text); }
.gcell .l { font-size: 10.5px; color: var(--text-3); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }

.macro-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.mchip { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.mchip .k { color: var(--text-3); margin-right: 6px; font-weight: 600; }
.mchip.pos { color: var(--pos); } .mchip.neg { color: var(--neg); } .mchip.flat { color: var(--text-2); }

.r-section { margin: 30px 0 0; }
.r-h { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3);
  padding-bottom: 8px; border-bottom: 1px solid var(--line-1); margin-bottom: 16px; }
.r-lead { font-family: var(--font-read); font-size: 17px; line-height: 1.65; color: var(--text-1); letter-spacing: -0.01em; }
.r-lead.dim { color: var(--text-2); font-size: 15.5px; }

/* news cards */
.newscard { background: var(--bg-2); border: 1px solid var(--line-1); border-left-width: 3px; border-radius: 0 var(--r-panel) var(--r-panel) 0;
  padding: 13px 15px; margin-bottom: 10px; box-shadow: var(--sh-1); }
.newscard.bullish { border-left-color: var(--pos); }
.newscard.bearish { border-left-color: var(--neg); }
.newscard.neutral { border-left-color: var(--text-3); }
.newscard .nh { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.newscard .nmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; font-size: 11.5px; color: var(--text-3); }
.newscard .nnote { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-top: 8px; }
.newscard a { color: var(--info); font-weight: 550; }
.newscard a:hover { text-decoration: underline; }
.tagpill { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill); }
.tagpill.bullish { color: var(--pos); background: var(--pos-soft); }
.tagpill.bearish { color: var(--neg); background: var(--neg-soft); }
.tagpill.neutral { color: var(--text-2); background: var(--bg-3); }

/* per-coin story */
.coinstory { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-1); }
.coinstory:first-of-type { border-top: 0; padding-top: 0; }
.cs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cs-sym { font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cs-tag { font-size: 10.5px; font-weight: 600; color: var(--text-2); background: var(--bg-3); border-radius: 6px; padding: 2px 8px; }
.cs-tag.danger { color: var(--neg); background: var(--neg-soft); }
.cs-headline { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; letter-spacing: -0.01em; }
.cs-narr { font-family: var(--font-read); font-size: 15px; line-height: 1.6; color: var(--text-2); }
.cs-danger { background: var(--neg-soft); border-radius: var(--r-ctl); padding: 11px 13px; margin-top: 12px; font-size: 13px; color: var(--text-1); line-height: 1.55; }
.cs-danger b { color: var(--neg); }
.cs-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.cs-stat .v { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.cs-stat .v.neg { color: var(--neg); } .cs-stat .v.amb { color: var(--accent-text); }
.cs-stat .l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em; }

/* chart figure — the report SVGs are dark-on-light, so frame them on a light card */
.figure { background: #fbfbfc; border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: 12px 12px 8px; margin: 14px 0; box-shadow: var(--sh-1); }
.figure svg { width: 100%; height: auto; display: block; }
.figure .cap { font-size: 11px; color: #8a8f98; margin-top: 6px; padding: 0 2px; }

.r-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line-1); font-size: 11px; color: var(--text-4); }

/* ── analytics ────────────────────────────────────────────────────────────── */
.pad { padding: 24px 28px 60px; max-width: 1100px; margin: 0 auto; }
.admin-login { max-width: 400px; margin: 8vh auto; }
.panel { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-panel); padding: 16px; box-shadow: var(--sh-1); }
.panel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); font-weight: 600; margin-bottom: 12px; }
.admin-login input { width: 100%; height: 32px; border-radius: var(--r-ctl); background: var(--bg-3); border: 1px solid var(--line-strong);
  color: var(--text-1); padding: 0 12px; font-family: var(--font-mono); font-size: 13px; outline: none; margin: 12px 0; box-shadow: var(--sh-inset); }
.admin-login input:focus { border-color: var(--accent-line); box-shadow: var(--ring); }
.note { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.err { color: var(--neg); font-size: 12.5px; margin-top: 8px; }

.adminbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg-3); border-radius: 9px; box-shadow: inset 0 0 0 .5px var(--line-2); }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 550; transition: all var(--dp) var(--spring); }
.seg button:active { transform: scale(0.97); }
.seg button.on { background: var(--bg-2); color: var(--text-1); box-shadow: 0 1px 2px rgba(0,0,0,0.13), 0 0 0 .5px var(--win-edge); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-panel); padding: 14px; box-shadow: var(--sh-1); }
.kpi .v { font-family: var(--font-mono); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.kpi .l { font-size: 10.5px; color: var(--text-3); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }
.kpi .s { font-size: 10.5px; color: var(--text-4); margin-top: 2px; }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar { display: grid; grid-template-columns: 128px 1fr 42px; gap: 10px; align-items: center; font-size: 12px; }
.bar .lab { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); }
.bar .track { background: var(--bg-3); border-radius: var(--r-pill); height: 9px; overflow: hidden; box-shadow: var(--sh-inset); }
.bar .fill { height: 100%; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 80%, white 8%), var(--accent)); border-radius: var(--r-pill); }
.bar .val { text-align: right; font-family: var(--font-mono); color: var(--text-3); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th { text-align: left; color: var(--text-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em; }
table.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line-1); font-family: var(--font-mono); }
table.tbl tr:hover td { background: var(--hover); }

/* states */
.empty { display: grid; place-content: center; text-align: center; height: 100%; color: var(--text-3); padding: 40px; }
.empty .big { font-size: 16px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 37%, var(--bg-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-panel); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.anim { animation: slideIn var(--dm) var(--ease); }

.toast { position: fixed; bottom: 22px; right: 22px; background: var(--bg-2); border: 1px solid var(--win-edge);
  color: var(--text-1); padding: 11px 15px; border-radius: var(--r-ctl); box-shadow: var(--sh-2); font-size: 12.5px; font-weight: 600;
  z-index: 100; opacity: 0; transform: translateY(8px); transition: all 0.2s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 860px) {
  .macwin { grid-template-columns: 1fr; margin: 0; height: 100vh; min-height: 0; border-radius: 0; border: 0; }
  .sidebar { position: absolute; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform var(--dm) var(--spring); }
  .sidebar.open { transform: none; box-shadow: var(--sh-2); }
  .charts2 { grid-template-columns: 1fr; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .reader { padding: 22px 18px 60px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
