/* The Bag Brigade — app-style site. Design: Fable canvas "The Bag Brigade Website Redesign" (11/16/2026), accent pulled to the logo green. */
:root {
  --bg: #000000;
  --panel: #0B0C0A;
  --panel-2: #12140F;
  --line: #20231C;
  --line-soft: #16180F;
  --line-strong: #4A5040;
  --text: #F1F3EA;
  --muted: #A9AE9E;
  --faint: #868C7A;
  --accent: #3ECB0B;
  --accent-hi: #5BE02A;
  --accent-bg: #0E1A06;
  --down: #FF8A65;
  --tip-bg: #1B1E16;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --sidebar: 240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 Inter, system-ui, -apple-system, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); }
.up { color: var(--accent); }
.dn { color: var(--down); }
.muted { color: var(--muted); }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 20px 14px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
}
.brand { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.brand img { width: 168px; height: auto; margin: -12px 0 -12px -4px; }
.brand span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.brand:hover { color: inherit; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--muted); font-weight: 500;
}
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; font-size: 12.5px; color: var(--muted); }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.88); backdrop-filter: blur(8px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line);
}
.top-logo { display: none; }
.search-btn {
  flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--faint); cursor: text; text-align: left;
}
.search-btn:hover { border-color: var(--line-strong); }
.search-btn span { flex: 1; }
kbd { padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font: 500 11.5px/1.2 var(--mono); }
.top-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.seg button { height: 42px; padding: 0 16px; border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 13.5px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #000; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; background: var(--accent); color: #000; font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-hi); color: #000; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

main.page { flex: 1; width: 100%; max-width: 1280px; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.page-head > div { display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font: 600 26px/1.2 var(--display); letter-spacing: -0.015em; }
.page-head p { font-size: 15px; color: var(--muted); max-width: 720px; }
.page-head .aside { margin-left: auto; font-size: 13px; color: var(--muted); }
.page-head .aside a, .link { color: var(--accent); font-weight: 500; }

.foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; max-width: 1280px; }
.foot p { line-height: 1.55; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a:hover { color: var(--accent); }

/* ── Alerts button + note ── */
.alerts-btn.on { border-color: var(--accent); color: var(--accent); }
.alerts-btn:disabled { opacity: .6; cursor: wait; }
.note-back { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); }
.note { max-width: 380px; width: 100%; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 20px; }
.note h2 { margin: 0 0 8px; font-size: 18px; }
.note p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.note .btn { width: 100%; }

/* ── Mobile shell ── */
.tabbar { display: none; }
.sheet-back { display: none; }
@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .top-logo { display: flex; align-items: center; }
  .top-logo img { width: 104px; height: auto; margin: -10px 0 -10px -3px; }
  .search-btn { order: 3; flex-basis: 100%; max-width: none; }
  .search-btn kbd { display: none; }
  .top-actions .btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .top-actions .alerts-btn { padding: 0 11px; }
  .alerts-btn span { display: none; }
  main.page { padding: 18px 16px 32px; gap: 20px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 14.5px; }
  .page-head .aside { margin-left: 0; }
  .foot { padding: 16px 16px 96px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px;
    color: var(--muted); font-size: 10.5px; font-weight: 500; background: none; border: 0; cursor: pointer;
  }
  .tabbar .ic { width: 20px; height: 20px; }
  .tabbar [aria-current="page"] { color: var(--accent); font-weight: 600; }
  .sheet-back.open { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); }
  .sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--panel); border-top: 1px solid var(--line-strong);
    border-radius: 18px 18px 0 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); visibility: hidden; transition: transform .2s ease, visibility .2s;
  }
  .sheet.open { transform: none; visibility: visible; }
  .sheet .grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 2px auto 10px; }
  .sheet a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 10px; font-weight: 500; }
  .sheet a:hover { background: var(--panel-2); }
}
@media (min-width: 900px) { .sheet { display: none; } }

/* ── Tooltips ("?") ── */
.q {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--muted);
  font: 600 11px/1 Inter, system-ui, sans-serif; cursor: help; flex: none; vertical-align: middle;
}
.q::after { content: ""; position: absolute; inset: -12px; }
.q:hover, .q:focus-visible, .q.on { border-color: var(--accent); color: var(--accent); outline: 0; }
.q .tt {
  display: none; position: absolute; z-index: 50; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--tip-bg); border: 1px solid var(--line-strong);
  color: var(--text); font: 400 12.5px/1.45 Inter, system-ui, sans-serif; text-align: left; white-space: normal;
  text-transform: none; letter-spacing: 0; box-shadow: 0 12px 32px rgba(0,0,0,.7); cursor: default;
}
.q.l .tt { left: -8px; transform: none; }
.q.r .tt { left: auto; right: -8px; transform: none; }
.q:hover .tt, .q:focus .tt, .q.on .tt { display: block; }

/* ── Cards & bits ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h2 { font: 600 17px/1.25 var(--display); }
.row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-head .push { margin-left: auto; }
.grid { display: grid; gap: 16px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .03em; border: 1px solid var(--line-strong); color: var(--muted); }
.pill.hot { border-color: #5A3A2E; color: var(--down); }
.skel { background: linear-gradient(90deg, var(--panel-2), #1a1d16, var(--panel-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .sheet { transition: none; } }
.spark { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spark.up { stroke: var(--accent); }
.spark.dn { stroke: var(--down); }
.note { font-size: 12.5px; color: var(--muted); }

/* Live banner */
.live { display: none; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #5A3A2E; background: #1A0D08; border-radius: 12px; font-weight: 500; }
.live.on { display: flex; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 0 4px rgba(255,77,77,.2); flex: none; }

/* ── Home ── */
.hero h1 { font: 600 30px/1.15 var(--display); letter-spacing: -0.02em; }
.hero p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 680px; }
.hero .q { margin: 0 2px; }
.pulse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-top { display: flex; align-items: center; gap: 8px; }
.tile-top .sym { font: 600 13px/1 var(--mono); }
.tile-top .nm { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.tile-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tile .val { font: 500 20px/1 var(--mono); }
.tile .chg { margin-top: 6px; font: 500 12.5px/1 var(--mono); display: block; white-space: nowrap; }
.home-mid .fed { align-self: start; }
.home-mid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.6fr); gap: 16px; }
.fed { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.count { display: flex; gap: 10px; }
.count div { flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.count b { display: block; font: 600 30px/1 var(--mono); color: var(--accent); }
.count span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.bar { height: 6px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.events { display: flex; flex-direction: column; }
.event { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.event:first-child { border-top: 0; padding-top: 4px; }
.date-chip { flex: none; width: 52px; height: 56px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.date-chip span { font: 500 10.5px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.date-chip b { font: 600 19px/1 var(--mono); }
.event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-body h3 { font-size: 14.5px; font-weight: 600; }
.event-body .t { font: 500 12px/1 var(--mono); color: var(--muted); }
.event-body p { font-size: 13.5px; color: var(--muted); }
.home-bot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.media { overflow: hidden; display: flex; flex-direction: column; }
.media .thumb { position: relative; background: var(--panel-2); aspect-ratio: 16 / 9; overflow: hidden; }
.media .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media.short .thumb { aspect-ratio: 9 / 16; max-height: 420px; }
.media .play { position: absolute; inset: 0; display: grid; place-items: center; }
.media .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.65); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.media .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.media h3 { font-size: 15px; line-height: 1.35; font-weight: 600; }
.media:hover h3 { color: var(--accent); }
.take { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.take .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font: 700 14px/1 var(--display); flex: none; }
.take p { font-size: 14.5px; line-height: 1.55; }
.take small { font-size: 12px; color: var(--faint); }

@media (max-width: 1180px) {
  .pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-bot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .home-bot .take { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .hero h1 { font-size: 24px; }
  .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .home-mid, .home-bot { grid-template-columns: 1fr; }
  .media.short .thumb { max-height: 360px; }
  .tile .spark { width: 56px; }
}

/* ── Markets ── */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; white-space: nowrap; padding: 0 12px; height: 46px; border-bottom: 1px solid var(--line);
  font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.tbl th > span { display: inline-flex; align-items: center; gap: 6px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl .sym { font: 600 14px/1 var(--mono); }
.tbl .nm { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tbl .num { font: 500 13.5px/1 var(--mono); white-space: nowrap; }
.tbl .read { font-size: 14px; line-height: 1.45; min-width: 280px; }
.tbl.simple { min-width: 860px; }
.tbl.pro { min-width: 1100px; }
.tbl.pro td { padding-top: 12px; padding-bottom: 12px; font: 400 12.5px/1 var(--mono); white-space: nowrap; }
.tbl.pro .sym { font-size: 13px; }
.rg line { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.rg circle { fill: var(--text); }
.mcards { display: none; flex-direction: column; gap: 10px; }
.mcard { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mcard-top { display: flex; align-items: center; gap: 10px; }
.mcard-top .id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mcard-top .px { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats span { font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.stats b { font: 500 13px/1 var(--mono); }
.legend { display: none; flex-wrap: wrap; gap: 8px 16px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tool h3 { font-size: 15px; font-weight: 600; }
.tool p { font-size: 13.5px; color: var(--muted); flex: 1; }
.tool .link { margin-top: 4px; font-size: 13.5px; }
.tool.feature { border-color: #24400F; background: linear-gradient(180deg, #0C1406, var(--panel)); }
@media (max-width: 1180px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .tbl-wrap.card { display: none; }
  .mcards, .legend { display: flex; }
  .tools { grid-template-columns: 1fr; }
}

/* ── Research ── */
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rcard { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rcard .big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.rcard .big b { font: 600 38px/1 var(--mono); letter-spacing: -0.02em; }
.rcard .big span { font: 500 13px/1.3 var(--mono); }
.rcard .lbl { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.rcard p { font-size: 14.5px; line-height: 1.55; }
.rcard .foot-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }
@media (max-width: 899px) { .rgrid { grid-template-columns: 1fr; } .rcard .big b { font-size: 32px; } }

/* ── Watch ── */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sgrid .media .thumb { aspect-ratio: 9 / 16; max-height: none; }
.sgrid .media .meta { padding: 10px 12px 12px; }
.sgrid .media h3 { font-size: 13px; }
.listen { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1180px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .vgrid { grid-template-columns: 1fr; } .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Calendar ── */
.cal-frame { width: 100%; height: 900px; border: 0; display: block; border-radius: 0 0 var(--radius) var(--radius); background: #0a0c12; }
.cal-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.fomc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fomc-list div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 4px; }
.fomc-list div.next { border-color: var(--accent); }
.fomc-list b { font: 600 14px/1.2 var(--mono); }
.fomc-list span { font-size: 12px; color: var(--muted); }
@media (max-width: 899px) { .cal-frame { height: 720px; } }

/* ── Community ── */
.discord { padding: 28px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; border-color: #24400F; background: linear-gradient(135deg, #0C1406, var(--panel) 60%); }
.discord h2 { font: 600 26px/1.2 var(--display); }
.discord p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.discord .btn { margin-top: 18px; }
.dstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dstats div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.dstats b { display: block; font: 600 26px/1 var(--mono); }
.dstats span { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.dstats .on { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.links3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.social { padding: 18px; display: flex; align-items: center; gap: 14px; }
.social .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.social div { display: flex; flex-direction: column; gap: 2px; }
.social b { font-weight: 600; }
.social span { font-size: 13px; color: var(--muted); }
.social:hover b { color: var(--accent); }
@media (max-width: 899px) { .discord { grid-template-columns: 1fr; padding: 20px; } .links3 { grid-template-columns: 1fr; } }

/* ── Search palette ── */
.pal-back { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.7); }
.pal-back.open { display: block; }
.pal {
  position: fixed; z-index: 91; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 24px));
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.8);
  display: none; flex-direction: column; max-height: 72vh; overflow: hidden;
}
.pal.open { display: flex; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; min-width: 0; height: 52px; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.pal-list { overflow-y: auto; padding: 8px; }
.pal-group { padding: 10px 10px 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; min-height: 48px; }
.pal-item:hover, .pal-item.sel { background: var(--panel-2); color: var(--text); }
.pal-item .k { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font: 600 10px/1 var(--mono); overflow: hidden; }
.pal-item .k img { width: 100%; height: 100%; object-fit: cover; }
.pal-item .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pal-item .tx b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .tx span { font-size: 12px; color: var(--muted); }
.pal-empty { padding: 18px 12px; color: var(--muted); font-size: 13.5px; }

/* Scam warning */
.scam { border-color: #5A3A2E; background: #140B07; display: flex; flex-direction: column; gap: 12px; }
.scam p { font-size: 15px; line-height: 1.55; }
.scam ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.scam ul b { color: var(--text); font-weight: 600; }
.warn-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--down); color: #000; display: grid; place-items: center; font: 700 15px/1 var(--display); flex: none; }
