/* shared.css — Terminal6 brand dashboards
 *
 * Everything in this file is shared by every <brand>.html page (Sprig, Basil,
 * future partners). Keep brand-specific sections (agentic strip, SERP rank
 * badges, chart cards, etc.) in the per-brand file.
 *
 * Rule: if a style only matters to one brand, it stays in that brand's HTML.
 * This file is deliberately the "boring shell" — tokens, layout, sidebar,
 * cards, tables, pills, loading/error states. Change here ripples to every
 * brand, so be conservative.
 */

:root{
  --bg:#F5F5F0;--bg-white:#FFF;--bg-cream:#F9F8F4;--bg-warm:#EEEAE2;--bg-sidebar:#EEEBE4;--bg-hover:#E8E4DB;
  --border:#DDD9D0;--border-s:#E8E4DC;
  --t1:#1a1a18;--t2:#5C5B57;--t3:#9C9A93;--tm:#B1ADA1;
  --acc:#C15F3C;--acc-h:#ae5630;--acc-l:#F0DDD4;--acc-d:rgba(193,95,60,.08);--acc-t:#B8533A;
  --g:#2E7D32;--gl:#E8F5E9;--r:#C62828;--rl:#FFEBEE;--a:#E65100;--al:#FFF3E0;--b:#1565C0;--bl:#E3F2FD;
  --sw:240px;
  --serif:'Source Serif 4',ui-serif,Georgia,serif;--sans:'DM Sans',system-ui,sans-serif;--mono:'JetBrains Mono',monospace;
  --sh:0 1px 3px rgba(0,0,0,.04);--shm:0 2px 8px rgba(0,0,0,.06);--rad:12px;--rs:8px;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{font-family:var(--sans);background:var(--bg);color:var(--t1);height:100vh;overflow:hidden;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* LAYOUT */
.app{display:grid;grid-template-columns:var(--sw) 1fr;height:100vh}

/* SIDEBAR */
.sb{background:var(--bg-sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;overflow-y:auto}
.sb-brand{padding:18px 16px 14px;border-bottom:1px solid var(--border)}
.sb-brand h1{font-family:var(--serif);font-size:18px;font-weight:600;display:flex;align-items:center;gap:8px}
.sb-brand .lm{width:28px;height:28px;background:var(--acc);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff}
.bs{margin-top:10px;background:var(--bg-white);border:1px solid var(--border);border-radius:var(--rs);padding:7px 11px;font-size:13px;width:100%;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--sh)}
.bd{width:7px;height:7px;border-radius:50%;background:var(--g)}
.ss{padding:14px 10px 4px}
.sl{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1.1px;color:var(--tm);padding:0 8px 7px}
.si{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:var(--rs);cursor:pointer;transition:all .15s;font-size:13px;color:var(--t2)}
.si:hover{background:var(--bg-hover);color:var(--t1)}
.si.act{background:var(--acc-d);color:var(--acc-t);font-weight:500}
.si .ic{width:28px;height:28px;border-radius:var(--rs);display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}
.si.sub{padding-left:47px;font-size:12.5px}
.si .soon{margin-left:auto;font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:var(--tm);background:var(--bg-warm);padding:1px 6px;border-radius:8px;font-weight:600}
.si.act .soon{background:var(--acc-l);color:var(--acc-t)}
.sb-b{margin-top:auto;padding:10px;border-top:1px solid var(--border)}
.sb-b .ui{display:flex;align-items:center;gap:9px;padding:6px}
.sb-b .ua{width:30px;height:30px;border-radius:var(--rs);background:var(--acc);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#fff;background-size:cover;background-position:center}

/* MAIN + TOP BAR */
.mn{display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}
.tb{padding:10px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px;flex-shrink:0;background:var(--bg-cream)}
.tb-t{font-family:var(--serif);font-size:16px;font-weight:600;display:flex;align-items:center;gap:9px}
.tb-note{font-size:11px;color:var(--t3);margin-left:auto}

/* VIEWS */
.vw{display:none;flex:1;overflow-y:auto;padding:24px}
.vw.act{display:block}
.vw::-webkit-scrollbar{width:5px}
.vw::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}

/* CARDS + GRIDS */
.cd{background:var(--bg-white);border:1px solid var(--border-s);border-radius:var(--rad);padding:16px;box-shadow:var(--sh)}
.kl{font-size:11px;color:var(--t3);text-transform:uppercase;letter-spacing:.5px;margin-bottom:7px;font-weight:500}
.kv{font-family:var(--mono);font-size:22px;font-weight:700;margin-bottom:3px}
.kd{font-size:12px;display:flex;align-items:center;gap:4px}
.kd.u{color:#15803d;font-weight:600}.kd.d{color:#b91c1c;font-weight:600}.kd.n{color:var(--t3)}
.g5{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.g4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:1100px){.g5{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(2,1fr)}}

/* SECTION HEADERS + TABLES */
.sec{margin-bottom:24px}
.sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}
.sec-h h3{font-family:var(--serif);font-size:15px;font-weight:600}
.sec-h .note{font-size:11px;color:var(--t3);font-weight:400;margin-left:4px}
.tbl{width:100%;border-collapse:collapse;font-size:12.5px;background:var(--bg-white);border-radius:var(--rad);overflow:hidden;border:1px solid var(--border-s);box-shadow:var(--sh)}
.tbl th{text-align:left;padding:9px 12px;font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;color:var(--t3);border-bottom:1px solid var(--border);font-weight:600;background:var(--bg-cream)}
.tbl td{padding:8px 12px;border-bottom:1px solid var(--border-s);color:var(--t2)}
.tbl tr:last-child td{border-bottom:none}
.tbl tr:hover td{background:var(--bg-cream)}
.tbl .r{text-align:right}
.mn2{font-family:var(--mono);font-size:11.5px}
.hi{color:var(--t1);font-weight:500}

/* PILLS (period selectors, granularity toggles) */
.pills{display:flex;gap:3px;margin-left:auto}
.pills button{padding:4px 11px;border-radius:5px;border:1px solid var(--border);background:transparent;color:var(--t3);font-family:var(--sans);font-size:11px;cursor:pointer;transition:all .15s}
.pills button:hover{background:var(--bg-white)}
.pills button.a{background:var(--bg-white);color:var(--acc-t);border-color:var(--acc);box-shadow:var(--sh);font-weight:500}

/* LOADING / ERROR / EMPTY STATES */
.loading{text-align:center;padding:40px;color:var(--t3);font-size:13px}
.error{text-align:center;padding:20px;color:var(--r);font-size:13px;background:var(--rl);border-radius:var(--rs)}
.empty{text-align:center;padding:24px;color:var(--t3);font-size:13px;font-style:italic}

/* DELTA PILL — inline DoD/WoW/MoM/YoY indicator for table cells */
.dp{font-family:var(--mono);font-size:11px;font-weight:500}
.dp.u{color:var(--g)}.dp.d{color:var(--r)}.dp.n{color:var(--t3)}

/* SECTION HEADER STRIP — used on tab landing pages (icon + title + pills) */
.head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.head .icon{width:40px;height:40px;border-radius:10px;background:var(--acc);display:flex;align-items:center;justify-content:center;font-size:18px;color:#fff}
.head h2{font-family:var(--serif);font-size:20px;font-weight:600;margin:0}
.head .sub{font-size:13px;color:var(--t2);margin:0}
.head .pills{margin-left:auto}

/* GENERIC PLACEHOLDER VIEW (stubs for "Phase 2" tabs) */
.placeholder-view{padding:48px 24px;text-align:center}
.placeholder-view .icon{width:56px;height:56px;border-radius:14px;background:var(--acc-d);display:inline-flex;align-items:center;justify-content:center;font-size:24px;color:var(--acc-t);margin-bottom:16px}
.placeholder-view h2{font-family:var(--serif);font-size:22px;font-weight:600;margin-bottom:8px}
.placeholder-view p{color:var(--t3);font-size:14px;max-width:480px;margin:0 auto 6px}
.placeholder-view .phase{display:inline-block;margin-top:14px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--acc-t);background:var(--acc-l);padding:5px 12px;border-radius:12px;font-weight:600}

/* INFO TOOLTIP — ⓘ icon next to column headers / tile labels with hover-revealed formula.
 * Desktop-only (hover). Usage: T6.tip('formula text') from shared.js returns the markup. */
.th-info{display:inline-block;margin-left:5px;width:14px;height:14px;line-height:13px;text-align:center;font-size:10px;font-weight:500;font-family:var(--sans);color:var(--t3);background:var(--bg-cream);border-radius:50%;cursor:help;position:relative;vertical-align:middle;font-style:normal;user-select:none}
.th-info:hover{background:var(--acc-l);color:var(--acc-t)}
.th-info .th-tip{
  position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);
  min-width:240px;max-width:360px;
  background:#2A2825;color:#F5F1E8;font-size:11.5px;font-weight:400;line-height:1.55;
  font-family:var(--sans);text-align:left;letter-spacing:normal;
  padding:10px 12px;border-radius:6px;
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  opacity:0;visibility:hidden;transition:opacity .12s ease, visibility .12s ease;
  z-index:500;white-space:normal;pointer-events:none;
}
.th-info .th-tip::before{
  content:'';position:absolute;bottom:100%;left:50%;transform:translateX(-50%);
  border:5px solid transparent;border-bottom-color:#2A2825;
}
.th-info:hover .th-tip{opacity:1;visibility:visible}
.th-info .th-tip code{font-family:var(--mono);font-size:11px;background:rgba(255,255,255,.08);padding:1px 4px;border-radius:3px;color:#F5E5AC}
.th-info .th-tip .nt{display:block;margin-top:6px;color:#C8BDAA;font-size:11px}
/* When the tip would overflow right edge, use .th-info.rt to anchor right-aligned */
.th-info.rt .th-tip{left:auto;right:-4px;transform:none}
.th-info.rt .th-tip::before{left:auto;right:8px;transform:none}

/* ============================================================
 * MOBILE / RESPONSIVE
 * Phones get a bottom-tab-bar layout (à la Amazon Seller / Shopify
 * mobile). The desktop sidebar is hidden; a fixed .tabnav at the
 * bottom drives navigation. The "Menu" tab opens a full-page
 * accordion view (#v-menu) with all other sidebar destinations.
 * ============================================================ */

/* Bottom tab nav — hidden on desktop, fixed at bottom on mobile */
.tabnav{display:none}

@media (max-width:900px){
  body{overflow:auto;height:auto;font-size:13.5px}
  .app{grid-template-columns:1fr;height:auto;min-height:100vh;max-width:100vw;overflow-x:hidden}
  /* Hide the desktop sidebar entirely on mobile — bottom nav replaces it */
  .sb{display:none}
  /* Grid items default to min-width:auto which lets them grow past the column
     width when content is wider — that's what causes the whole page to
     horizontal-scroll when a chart canvas or wide row appears. Force them to
     shrink with the viewport. */
  .mn{min-height:100vh;overflow:visible;min-width:0;max-width:100%}
  .vw{min-width:0;max-width:100%}
  canvas{max-width:100%}
  .tb{padding:10px 14px;position:sticky;top:0;z-index:50;flex-wrap:wrap;gap:10px;background:var(--bg-cream)}
  .tb-t{font-size:15px}
  .tb-note{font-size:10px;width:100%;margin:0;order:5;text-align:right}
  /* Reserve space for the fixed bottom tab bar (60px + safe area) */
  .vw{overflow-y:visible;padding:16px 12px 88px}
  .g5{grid-template-columns:repeat(2,1fr);gap:10px}
  .g4{grid-template-columns:repeat(2,1fr);gap:10px}
  .g3{grid-template-columns:repeat(2,1fr);gap:10px}
  .cd{padding:12px}
  .kv{font-size:18px}
  .sec{margin-bottom:18px}
  .sec-h{flex-wrap:wrap;gap:8px}
  .pills{margin-left:0;flex-wrap:wrap}
  .pills button{padding:5px 10px}
  .head{flex-wrap:wrap;gap:10px;margin-bottom:14px}
  .head .icon{width:32px;height:32px;font-size:16px;border-radius:8px}
  .head h2{font-size:17px}
  .head .sub{font-size:12px}
  .head .pills{margin-left:0;width:100%}
  /* Tables: keep readable font + opt-in horizontal scroll wrapper
     (wrap any wide .tbl in <div class="tbl-wrap">…</div>) */
  .tbl{font-size:11.5px}
  .tbl th,.tbl td{padding:7px 8px}
  .tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--rad);border:1px solid var(--border-s);box-shadow:var(--sh);background:var(--bg-white)}
  .tbl-wrap .tbl{border:none;box-shadow:none;border-radius:0;min-width:560px}
  /* Tooltip clipping mitigation */
  .th-info .th-tip{min-width:200px;max-width:min(360px,80vw)}

  /* ===== BOTTOM TAB NAV =====
     position:fixed pinned to viewport. translate3d forces GPU compositing
     so iOS Safari doesn't re-paint it during URL-bar animations (which
     causes the "moves / hides" symptom). The nav must be a direct <body>
     child for fixed to anchor to the visual viewport, not an ancestor. */
  .tabnav{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;
    background:var(--bg-white);border-top:1px solid var(--border);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom)) 4px;
    box-shadow:0 -2px 12px rgba(0,0,0,.04);
    -webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);
    -webkit-backface-visibility:hidden;backface-visibility:hidden;
    will-change:transform;
  }
  .tabnav .tn-btn{
    flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;padding:6px 2px;border:none;background:transparent;cursor:pointer;
    color:var(--t3);font-family:var(--sans);font-size:10.5px;font-weight:500;
    border-radius:var(--rs);min-height:54px;-webkit-tap-highlight-color:transparent;
  }
  .tabnav .tn-btn .tn-ic{font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;height:22px}
  .tabnav .tn-btn .tn-ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .tabnav .tn-btn.act{color:var(--acc-t)}
  .tabnav .tn-btn.act .tn-lb{font-weight:600}
  .tabnav .tn-btn:active{background:var(--bg-cream)}

  /* ===== MENU VIEW (full-page accordion) ===== */
  .mnu{padding:4px 2px}
  .mnu-grp{background:var(--bg-white);border:1px solid var(--border-s);border-radius:var(--rad);margin-bottom:12px;overflow:hidden;box-shadow:var(--sh)}
  .mnu-grp-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;-webkit-tap-highlight-color:transparent;font-family:var(--serif);font-size:14px;font-weight:600;color:var(--t1);background:var(--bg-cream);border-bottom:1px solid var(--border-s)}
  .mnu-grp-hd .mnu-chev{font-size:12px;color:var(--t3);transition:transform .18s ease}
  .mnu-grp.open .mnu-chev{transform:rotate(90deg)}
  .mnu-grp-body{display:none}
  .mnu-grp.open .mnu-grp-body{display:block}
  .mnu-row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border-s);cursor:pointer;font-size:14px;color:var(--t1);min-height:48px;-webkit-tap-highlight-color:transparent}
  .mnu-row:last-child{border-bottom:none}
  .mnu-row:active{background:var(--bg-cream)}
  .mnu-row .mnu-ic{width:28px;height:28px;border-radius:var(--rs);background:var(--bg-warm);display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
  .mnu-row .mnu-lb{flex:1}
  .mnu-row .mnu-sub{font-size:11px;color:var(--t3);margin-left:auto;background:var(--bg-warm);padding:2px 8px;border-radius:10px}
  .mnu-row .mnu-arr{color:var(--t3);font-size:14px;margin-left:auto}
  .mnu-row.act{color:var(--acc-t)}
  .mnu-row.act .mnu-ic{background:var(--acc-l)}
}

@media (max-width:480px){
  /* g4 stays 2-col on phones so 4 KPIs fit on screen at once (Amazon-Seller
     style). g5 / g3 still collapse to 1-col since they're rarely 2-fittable
     at this width. */
  .g5,.g3{grid-template-columns:1fr}
  .g4{grid-template-columns:repeat(2,1fr);gap:8px}
  .vw{padding:14px 10px 88px}
  .kv{font-size:17px}
  .cd{padding:11px 12px}
  .tb-t{font-size:14px}
  .tb-t span{max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
}

/* Touch devices get slightly larger tap targets */
@media (pointer:coarse){
  .pills button{padding:6px 11px}
}

/* === Workbench === */
.wb-root { display: flex; height: calc(100vh - 80px); gap: 12px; padding: 12px; box-sizing: border-box; }
.wb-sidebar { width: 280px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.wb-panel { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 12px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wb-panel-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.wb-panel-hint { font-size: 10px; color: #888; font-weight: 400; }
.wb-tabs { display: flex; gap: 2px; }
.wb-tab { background: transparent; border: none; padding: 2px 8px; font-size: 11px; color: #777; cursor: pointer; border-radius: 3px; }
.wb-tab.active { background: #e8f0fe; color: #1a73e8; }
.wb-panel-list { flex: 1; overflow-y: auto; }
.wb-empty { font-size: 12px; color: #999; text-align: center; padding: 24px 0; }

.wb-main { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wb-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid #ddd; border-radius: 6px; }
.wb-btn { background: #fff; border: 1px solid #ccc; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.wb-btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.wb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wb-spacer { flex: 1; }
.wb-view-name { font-size: 13px; font-weight: 600; color: #333; margin-left: 12px; }
.wb-status { font-size: 11px; color: #666; }

.wb-editor { flex: 1; min-height: 200px; max-height: 40%; background: #fafafa; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.wb-editor .cm-editor { height: 100%; font-size: 13px; }

.wb-result { flex: 1; background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: auto; }
.wb-result table { border-collapse: collapse; font-size: 11.5px; table-layout: auto; min-width: 100%; }
.wb-result th, .wb-result td {
  padding: 3px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  white-space: nowrap;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.wb-result th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid #ddd;
  z-index: 1;
}
.wb-result tbody tr:nth-child(even) td { background: #fafbfc; }
.wb-result tbody tr:hover td { background: #f1f7fe; }
.wb-result td.num, .wb-result th.num { text-align: right; }
/* Sticky first column so wide tables stay anchored on horizontal scroll */
.wb-result th:first-child,
.wb-result td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  border-right: 1px solid #eee;
}
.wb-result thead th:first-child { z-index: 3; background: #f5f5f5; }
.wb-result tbody tr:nth-child(even) td:first-child { background: #fafbfc; }
.wb-result tbody tr:hover td:first-child { background: #f1f7fe; }
.wb-truncation-banner { background: #fff3cd; color: #856404; padding: 8px 12px; font-size: 12px; border-bottom: 1px solid #ffeaa7; }
.wb-pager { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid #f0f0f0; font-size: 12px; }
.wb-view-row { display: flex; align-items: center; gap: 4px; padding: 6px 4px; border-bottom: 1px solid #f5f5f5; }
.wb-view-row-main { flex: 1; cursor: pointer; }
.wb-view-row-name { font-weight: 500; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.wb-view-row-meta { font-size: 10px; color: #888; margin-top: 2px; }
.wb-pill { font-size: 9px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.wb-pill-shared { background: #e6f4ea; color: #137333; }
.wb-pill-author { background: #f0f0f0; color: #555; font-weight: 400; }
.wb-row-menu { background: transparent; border: none; color: #aaa; cursor: pointer; padding: 4px 6px; font-size: 14px; }
.wb-row-menu:hover { color: #333; }
.wb-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.wb-modal { background: #fff; border-radius: 8px; padding: 24px; width: 420px; max-width: 90vw; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.wb-modal h3 { margin: 0 0 16px; font-size: 16px; }
.wb-modal label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 4px; color: #444; }
.wb-modal input[type=text], .wb-modal input:not([type]), .wb-modal textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; font-family: inherit; }
.wb-modal-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.wb-modal-hint { color: #888; font-size: 11px; }
.wb-modal-error { color: #c00; font-size: 12px; min-height: 16px; margin-top: 8px; }
.wb-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.wb-view-menu { background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; min-width: 140px; padding: 4px 0; }
.wb-view-menu button { display: block; width: 100%; background: transparent; border: none; padding: 6px 12px; text-align: left; font-size: 12px; cursor: pointer; }
.wb-view-menu button:hover { background: #f0f0f0; }
.wb-recent-row { padding: 8px 4px; border-bottom: 1px solid #f5f5f5; }
.wb-recent-sql { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.wb-recent-sql:hover { color: #000; }
.wb-recent-meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: #888; }
.wb-promote { background: transparent; border: none; color: #1a73e8; cursor: pointer; font-weight: 500; font-size: 10px; padding: 0; }
.wb-promote:hover { text-decoration: underline; }
.wb-recent-empty { color: #aaa; font-style: italic; }
