/* GetCoattail mobile app layer v2 — active only at viewport <= 768px.
   Design tokens per Coattail Mobile handoff (Newsreader / Geist / Geist Mono).
   Desktop (DC app) markup and rendering are untouched. */
#gcm { display: none; }

@media (max-width: 768px) {
  x-dc { display: none !important; }
  /* Backup to the JS sibling-hiding in mobile.v2.js: the DC runtime replaces
     <x-dc> with rendered DOM, so hide every body child except #gcm/scripts. */
  body > *:not(#gcm):not(script):not(style):not(link):not(noscript) { display: none !important; }
  #gcm {
    display: block;
    --paper: #F5F2EB; --card: #FFFDF8; --ink: #16150F; --body2: #3B3930;
    --muted: #6B675C; --faint: #8A8577;
    --line: #DDD7CA; --line2: #EDE8DD; --strong: #CFC8B8;
    --fill: #F1ECE1; --fill2: #EAE4D7; --press: #F8F4EC;
    --green: #1E7A4A; --greenBg: #E3F0E7; --red: #B4372B; --redBg: #F6E4E1;
    --hl: #E4EE6E; --bannerBg: #F4F7C9; --bannerLine: #D5DE5A;
    --dark2: #B9B3A3; --overlay: #A39C8A;
    background: var(--paper); color: var(--ink);
    font-family: Geist, "Apple SD Gothic Neo", system-ui, sans-serif;
    font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
    min-height: 100vh; padding-bottom: 104px;
  }
  #gcm * { box-sizing: border-box; }
  #gcm button { font-family: inherit; white-space: normal; }
  #gcm .serif { font-family: Newsreader, Georgia, serif; }
  #gcm .mono { font-family: "Geist Mono", ui-monospace, monospace; }

  /* ---------- common ---------- */
  #gcm main { padding: 6px 16px 6px; max-width: 560px; margin: 0 auto; }
  #gcm .view { display: none; }
  #gcm .view.on { display: block; }
  #gcm .eyebrow { font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  #gcm .sectitle { font-family: Newsreader, Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 3px 0 10px; }
  #gcm .pagetitle { font-family: Newsreader, Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1.05; letter-spacing: -.015em; margin: 4px 0 6px; }
  #gcm .note { font-size: 12px; color: var(--muted); line-height: 1.55; }
  #gcm .pos { color: var(--green); } #gcm .neg { color: var(--red); }
  #gcm .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; margin-bottom: 12px; }
  #gcm .card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
  #gcm .disc { font-size: 11px; color: var(--muted); line-height: 1.6; padding: 8px 2px 0; }
  #gcm .linkbtn { background: none; border: 0; color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; }
  #gcm .empty { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px; line-height: 1.6; }

  /* ---------- app bar ---------- */
  #gcm .appbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(245,242,235,.94); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  #gcm .appbar .brand { display: flex; align-items: center; gap: 8px; }
  #gcm .appbar .tile { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--paper);
    font-family: Newsreader, Georgia, serif; font-style: italic; font-size: 17px; line-height: 26px; text-align: center; flex: none; }
  #gcm .appbar .bname { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  #gcm .appbar .dateline { font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .1em; color: var(--muted); text-align: right; }

  #gcm .hero { font-family: Newsreader, Georgia, serif; font-size: 34px; line-height: 1.05; letter-spacing: -.015em; font-weight: 400; margin: 14px 0 14px; }
  #gcm .hero em { font-style: italic; color: var(--muted); }

  /* ---------- Today stat cards (horizontal scroll) ---------- */
  #gcm .hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
  #gcm .hscroll::-webkit-scrollbar { display: none; }
  #gcm .statcard { flex: none; width: 148px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
  #gcm .statcard .v { font-family: "Geist Mono", monospace; font-size: 21px; font-weight: 500; margin: 6px 0 3px; white-space: nowrap; }
  #gcm .statcard .v.geist { font-family: Geist, sans-serif; font-size: 18px; font-weight: 500; white-space: normal; line-height: 1.2; }
  #gcm .statcard .s { font-size: 11px; color: var(--muted); line-height: 1.45; }

  /* ---------- bought rows (Today) ---------- */
  #gcm .brow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line2); padding: 11px 2px; cursor: pointer; color: var(--ink); }
  #gcm .brow:last-child { border-bottom: 0; }
  #gcm .brow:active { background: var(--press); }
  #gcm .brow .mid { flex: 1; min-width: 0; }
  #gcm .brow .tk { font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 600; }
  #gcm .brow .nm { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gcm .bars { flex: none; width: 88px; }
  #gcm .bar-row { display: flex; align-items: center; gap: 5px; margin: 2px 0; }
  #gcm .bar-track { width: 52px; height: 5px; border-radius: 3px; background: var(--fill2); flex: none; overflow: hidden; }
  #gcm .bar-fill { height: 5px; border-radius: 3px; }
  #gcm .bar-fill.g { background: var(--green); } #gcm .bar-fill.r { background: var(--red); }
  #gcm .bar-n { font-family: "Geist Mono", monospace; font-size: 10.5px; color: var(--body2); }
  #gcm .brow .rt { text-align: right; flex: none; }
  #gcm .brow .rt .p { font-family: "Geist Mono", monospace; font-size: 13px; font-weight: 500; }
  #gcm .brow .rt .c { font-size: 11px; margin-top: 1px; }

  /* ---------- fresh filings ---------- */
  #gcm .frow { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line2); padding: 11px 2px; cursor: pointer; color: var(--ink); }
  #gcm .frow:last-child { border-bottom: 0; }
  #gcm .fbadge { flex: none; width: 76px; text-align: center; font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 600; letter-spacing: .03em; border: 1px solid var(--ink); border-radius: 5px; padding: 4px 0; margin-top: 1px; }
  #gcm .frow .mid { flex: 1; min-width: 0; }
  #gcm .frow .a { font-size: 13px; font-weight: 600; }
  #gcm .frow .a .mono { font-weight: 600; }
  #gcm .frow .b { font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.45; }
  #gcm .frow .dt { flex: none; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); }

  /* ---------- receipts (dark card) ---------- */
  #gcm .receipts { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 18px; margin-bottom: 12px; cursor: pointer; width: 100%; text-align: left; border: 0; display: block; }
  #gcm .receipts .eyebrow { color: var(--dark2); }
  #gcm .receipts .sentence { font-family: Newsreader, Georgia, serif; font-size: 22px; line-height: 1.25; margin: 8px 0 10px; }
  #gcm .receipts .sentence b { color: var(--hl); font-weight: 400; }
  #gcm .receipts .go { font-size: 13px; font-weight: 600; color: var(--paper); }

  /* ---------- pills (Find) ---------- */
  #gcm .pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
  #gcm .pills::-webkit-scrollbar { display: none; }
  #gcm .pills button { flex: none; border: 1px solid var(--strong); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 500; cursor: pointer; }
  #gcm .pills button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  /* segmented */
  #gcm .seg { display: flex; background: var(--fill2); border-radius: 11px; padding: 3px; gap: 2px; margin-bottom: 12px; }
  #gcm .seg button { flex: 1; border: 0; background: transparent; padding: 7px 2px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
  #gcm .seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(22,21,15,.12); }

  /* perf card (Find BEST) */
  #gcm .perfhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  #gcm .sharebtn { flex: none; border: 1px solid var(--strong); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 11px; font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 500; cursor: pointer; }
  #gcm .perfstats { display: flex; gap: 22px; margin-top: 10px; }
  #gcm .perfstats .v { font-family: "Geist Mono", monospace; font-size: 26px; font-weight: 500; }
  #gcm .perfstats .k { font-size: 11px; color: var(--muted); margin-top: 2px; }

  /* ranked table */
  #gcm .rhead, #gcm .rrow { display: grid; grid-template-columns: 26px 1fr 64px 64px; align-items: center; column-gap: 6px; }
  #gcm .rhead { padding: 4px 2px 6px; font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
  #gcm .rhead .r { text-align: right; }
  #gcm .rrow { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line2); padding: 10px 2px; cursor: pointer; color: var(--ink); text-align: left; }
  #gcm .rrow:last-child { border-bottom: 0; }
  #gcm .rrow:active { background: var(--press); }
  #gcm .rrow .rk { font-family: Newsreader, Georgia, serif; font-style: italic; font-size: 19px; color: var(--muted); }
  #gcm .rrow .tk { font-family: "Geist Mono", monospace; font-size: 13.5px; font-weight: 600; }
  #gcm .rrow .nm { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gcm .rrow .mv { font-family: "Geist Mono", monospace; font-size: 13px; text-align: right; }

  /* screen cards (Find screens) */
  #gcm .screen { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; margin-bottom: 10px; cursor: pointer; color: var(--ink); }
  #gcm .screen .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  #gcm .screen .nm { font-family: Newsreader, Georgia, serif; font-size: 20px; line-height: 1.15; }
  #gcm .screen .pass { font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 600; flex: none; }
  #gcm .screen .rule { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
  #gcm .tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  #gcm .tchip { background: var(--fill); border: 0; border-radius: 7px; padding: 5px 8px; font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
  #gcm .tchip.more { background: transparent; border: 1px solid var(--strong); color: var(--muted); }

  /* funds */
  #gcm .search { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 14px; font-size: 14px; margin-bottom: 12px; color: var(--ink); font-family: inherit; }
  #gcm .fund { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; margin-bottom: 8px; cursor: pointer; color: var(--ink); }
  #gcm .fund:active { background: var(--press); }
  #gcm .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--fill2); flex: none; display: flex; align-items: center; justify-content: center; font-family: Newsreader, Georgia, serif; font-style: italic; font-size: 17px; }
  #gcm .fund .mid { flex: 1; min-width: 0; }
  #gcm .fund .fn { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gcm .fund .fs { font-size: 12px; color: var(--muted); margin-top: 1px; }
  #gcm .fund .fv { font-family: "Geist Mono", monospace; font-size: 13px; flex: none; }

  /* stat strip */
  #gcm .strip { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 12px 0; column-gap: 10px; }
  #gcm .strip .k { font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
  #gcm .strip .v { font-family: "Geist Mono", monospace; font-size: 16px; font-weight: 500; margin-top: 3px; white-space: nowrap; }

  /* fund holdings */
  #gcm .hrow { display: grid; grid-template-columns: 1fr 92px 66px; align-items: center; column-gap: 8px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line2); padding: 10px 2px; cursor: pointer; color: var(--ink); text-align: left; }
  #gcm .hrow:last-child { border-bottom: 0; }
  #gcm .hrow .tk { font-family: "Geist Mono", monospace; font-size: 13.5px; font-weight: 600; }
  #gcm .hrow .nm { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gcm .hrow .wtrack { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
  #gcm .hrow .wfill { height: 6px; background: var(--ink); border-radius: 3px; }
  #gcm .hrow .wp { font-family: "Geist Mono", monospace; font-size: 11px; margin-top: 3px; }
  #gcm .cbadge { font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 600; padding: 4px 5px; border-radius: 5px; text-align: center; letter-spacing: .02em; }
  #gcm .cbadge.new { background: var(--hl); color: var(--ink); }
  #gcm .cbadge.add { background: var(--greenBg); color: var(--green); }
  #gcm .cbadge.reduce { background: var(--redBg); color: var(--red); }
  #gcm .cbadge.hold { background: transparent; color: var(--muted); }

  /* generic rows (lens panels, watchlist) */
  #gcm .srow { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line2); padding: 11px 2px; cursor: pointer; color: var(--ink); }
  #gcm .srow:last-child { border-bottom: 0; }
  #gcm .srow .mid { flex: 1; min-width: 0; }
  #gcm .srow .tk { font-family: "Geist Mono", monospace; font-weight: 600; font-size: 14px; }
  #gcm .srow .nm { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gcm .srow .rt { text-align: right; flex: none; }
  #gcm .srow .rt .a { font-family: "Geist Mono", monospace; font-weight: 500; font-size: 13px; }
  #gcm .srow .rt .b { font-size: 11px; color: var(--muted); }

  /* record */
  #gcm .macrow { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; margin: 12px 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  #gcm .divchart { position: relative; height: 96px; margin: 12px 0 2px; }
  #gcm .divchart .base { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); }
  #gcm .divchart .cols { position: absolute; inset: 0; display: flex; }
  #gcm .dcol { flex: 1; display: flex; flex-direction: column; }
  #gcm .dhalf { height: 50%; display: flex; justify-content: center; }
  #gcm .dhalf.top { align-items: flex-end; } #gcm .dhalf.bot { align-items: flex-start; }
  #gcm .dbar { width: 58%; max-width: 13px; border-radius: 2px; min-height: 0; }
  #gcm .dbar.g { background: var(--green); } #gcm .dbar.r { background: var(--red); }
  #gcm .axisrow { display: flex; justify-content: space-between; font-family: "Geist Mono", monospace; font-size: 9.5px; color: var(--muted); margin-bottom: 4px; }
  #gcm .sigstat { border-top: 1px solid var(--line2); padding: 12px 0 4px; }
  #gcm .sigstat:first-of-type { border-top: 0; }
  #gcm .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
  #gcm .g4 .k { font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
  #gcm .g4 .v { font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 500; margin-top: 2px; }

  /* stock detail */
  #gcm .co-name { font-size: 14px; color: var(--muted); }
  #gcm .big-ticker { font-family: "Geist Mono", monospace; font-size: 38px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
  #gcm .stk-price { font-family: "Geist Mono", monospace; font-size: 20px; font-weight: 500; text-align: right; white-space: nowrap; }
  #gcm .stk-chg { font-size: 12px; text-align: right; margin-top: 2px; white-space: nowrap; }
  #gcm canvas.chart { width: 100%; height: 180px; display: block; }
  #gcm .banner { border-radius: 16px; padding: 13px 15px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--card); display: flex; gap: 11px; align-items: flex-start; }
  #gcm .banner.on { background: var(--bannerBg); border-color: var(--bannerLine); }
  #gcm .bbadge { flex: none; font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .05em; padding: 5px 8px; border-radius: 5px; background: var(--fill); color: var(--muted); margin-top: 1px; }
  #gcm .banner.on .bbadge { background: var(--ink); color: var(--hl); }
  #gcm .banner .bt { font-size: 13px; line-height: 1.55; color: var(--body2); }
  #gcm .tech { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line2); border-left: 3px solid transparent; border-radius: 12px; padding: 11px 13px; margin-bottom: 7px; cursor: pointer; color: var(--ink); }
  #gcm .tech.on { background: var(--press); border-left-color: var(--ink); }
  #gcm .tech .tn { flex: 1; min-width: 0; }
  #gcm .tech .tn .a { font-weight: 600; font-size: 13.5px; }
  #gcm .tech .tn .b { font-size: 11px; color: var(--muted); margin-top: 1px; }
  #gcm .pill { font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 99px; background: var(--fill); color: var(--muted); flex: none; letter-spacing: .02em; }
  #gcm .pill.on { background: var(--hl); color: var(--ink); }
  #gcm .primary { width: 100%; height: 50px; border-radius: 14px; background: var(--ink); color: var(--paper); border: 0; font-size: 15px; font-weight: 600; cursor: pointer; margin: 4px 0 10px; }
  #gcm .primary:active { transform: scale(.98); }
  #gcm .outlink { display: block; text-align: center; width: 100%; background: none; border: 1px solid var(--strong); border-radius: 14px; padding: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 12px; }

  /* watchlist */
  #gcm .sig-tag { display: inline-block; background: var(--hl); color: var(--ink); font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; vertical-align: 2px; margin-left: 6px; }
  #gcm .empty-dash { border: 1.5px dashed var(--strong); border-radius: 16px; padding: 30px 18px; text-align: center; }
  #gcm .cta { display: inline-block; margin-top: 12px; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  #gcm .xbtn { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12px; cursor: pointer; }

  /* tab bar */
  #gcm .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(245,242,235,.94); backdrop-filter: blur(14px);
    display: flex; padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  #gcm .tabbar button { flex: 1; background: none; border: 0; color: var(--faint); cursor: pointer; padding: 4px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; letter-spacing: .03em; position: relative; }
  #gcm .tabbar button svg { width: 21px; height: 21px; }
  #gcm .tabbar button.on { color: var(--ink); }
  #gcm .tabbar .bdg { position: absolute; top: 0; right: calc(50% - 19px); background: var(--ink); color: var(--paper); font-size: 9px; min-width: 15px; height: 15px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

  /* push panels */
  #gcm .panel { position: fixed; inset: 0; z-index: 70; background: var(--paper); transform: translateX(102%); transition: transform .34s cubic-bezier(.2,.8,.2,1); overflow-y: auto; padding-bottom: 40px; }
  #gcm .panel.on { transform: translateX(0); }
  #gcm .phead { position: sticky; top: 0; z-index: 5; background: rgba(245,242,235,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
  #gcm .phead .back { border: 1px solid var(--line); background: var(--card); border-radius: 99px; height: 34px; padding: 0 13px; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; color: var(--ink); }
  #gcm .phead .tt { flex: 1; min-width: 0; }
  #gcm .pbody { padding: 14px 16px; max-width: 560px; margin: 0 auto; }
  #gcm .followbtn { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 12.5px; cursor: pointer; flex: none; white-space: nowrap; }
  #gcm .followbtn.on { background: var(--ink); color: var(--paper); }

  /* bottom sheets */
  #gcm .scrim { position: fixed; inset: 0; z-index: 80; background: rgba(22,21,15,.38); opacity: 0; pointer-events: none; transition: opacity .3s; }
  #gcm .scrim.on { opacity: 1; pointer-events: auto; }
  #gcm .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--paper); border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .36s cubic-bezier(.2,.8,.2,1); max-height: 88vh; overflow-y: auto; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
  #gcm .sheet.on { transform: translateY(0); }
  #gcm .sheet .grab { width: 38px; height: 5px; border-radius: 99px; background: var(--strong); margin: 2px auto 14px; }
  #gcm .sheet .shead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
  #gcm .sheet .stitle { font-size: 16px; font-weight: 700; }
  #gcm .sheet .x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill2); color: var(--ink); font-size: 14px; cursor: pointer; flex: none; }
  #gcm .stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
  #gcm .stat2 { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
  #gcm .stat2 .k { font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
  #gcm .stat2 .v { font-family: "Geist Mono", monospace; font-size: 20px; font-weight: 500; margin-top: 3px; }
  #gcm .sharecard { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 16px; aspect-ratio: 1.91/1; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 14px; }
  #gcm .sharecard .eyebrow { color: var(--dark2); }
  #gcm .sharecard .big { font-family: Newsreader, Georgia, serif; font-size: 21px; line-height: 1.3; }
  #gcm .sharecard .big b { color: var(--hl); font-weight: 400; }
  #gcm .sharecard .foot { display: flex; justify-content: space-between; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dark2); }
  #gcm .sheet .btnrow { display: flex; gap: 9px; }
  #gcm .sheet .btnrow button, #gcm .sheet .btnrow a { flex: 1; height: 48px; border-radius: 14px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
  #gcm .btn-outline { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
  #gcm .btn-ink { border: 0; background: var(--ink); color: var(--paper); }

  /* toast (top, per spec) */
  #gcm .toast { position: fixed; left: 50%; top: 54px; transform: translate(-50%, -12px); z-index: 100; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 86vw; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gcm .toast.on { opacity: 1; transform: translate(-50%, 0); }

  table.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  #gcm table.mini td, #gcm table.mini th { padding: 7px 4px; border-bottom: 1px solid var(--line2); text-align: right; font-family: "Geist Mono", monospace; font-size: 12px; }
  #gcm table.mini th { font-size: 9.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; font-weight: 500; }
  #gcm table.mini td:first-child, #gcm table.mini th:first-child { text-align: left; font-family: Geist, sans-serif; }
  #gcm table.mini tr:last-child td { border-bottom: 0; }
}
