/* ============================================================
   sponsorgrab — refreshed app shell
   Design system from DESIGN.md: warm neutrals, terracotta accent,
   Plus Jakarta + DM Sans + JetBrains Mono.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --bg-elev: #F5F4F1;
  --surface: #FFFFFF;
  --surface-2: #F3F2EF;
  --surface-3: #ECEAE5;
  --border: #E5E3DF;
  --border-strong: #D4CEC6;
  --text: #1A1A1A;
  --text-2: #5C5C5C;
  --text-3: #8A8A8A;
  --text-4: #B8B5AF;

  --accent: #D4553A;          /* terracotta — "grab" */
  --accent-hover: #B8432C;
  --accent-soft: #FBEEEA;
  --accent-line: rgba(212,85,58,0.22);

  --cyan: #06B6D4;            /* "sponsor" */
  --cyan-soft: #ECFEFF;

  --blue: #2563EB;
  --blue-soft: #EFF6FF;
  --green: #15803D;
  --green-soft: #ECFDF5;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --red: #B91C1C;
  --red-soft: #FEF2F2;

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 0 rgba(26,26,26,0.04);
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.05), 0 1px 1px rgba(26,26,26,0.03);
  --shadow-md: 0 4px 12px rgba(26,26,26,0.06), 0 2px 4px rgba(26,26,26,0.04);
  --shadow-lg: 0 12px 32px rgba(26,26,26,0.10), 0 4px 8px rgba(26,26,26,0.05);
}

[data-theme="dark"] {
  --bg: #141413;
  --bg-elev: #1A1A18;
  --surface: #1E1E1C;
  --surface-2: #25241F;
  --surface-3: #2D2C26;
  --border: #36352F;
  --border-strong: #4A4842;
  --text: #ECEAE3;
  --text-2: #A8A59E;
  --text-3: #7A7772;
  --text-4: #56534D;
  --accent: #E8694F;
  --accent-hover: #F07D65;
  --accent-soft: rgba(232,105,79,0.12);
  --accent-line: rgba(232,105,79,0.28);
  --cyan: #22D3EE;
  --blue: #5B8DEF;
  --blue-soft: rgba(91,141,239,0.12);
  --green: #4ADE80;
  --green-soft: rgba(74,222,128,0.10);
  --amber: #FCD34D;
  --amber-soft: rgba(252,211,77,0.10);
  --red: #FCA5A5;
  --red-soft: rgba(252,165,165,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
}

/* Utility */
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Layout */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }
.shell { max-width: 1280px; margin: 0 auto; padding: 24px 32px 80px; }
@media (max-width: 720px) { .shell { padding: 16px 16px 48px; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
  height: 56px;
}
@media (max-width: 720px) { .topbar-inner { padding: 0 16px; } }

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { height: 22px; display: block; }
.brand .b-1 { color: var(--cyan); }
.brand .b-2 { color: var(--accent); }

.topnav {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px;
}
.topnav a {
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  padding: 8px 12px; border-radius: var(--radius);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a.active { color: var(--text); background: var(--surface-2); }

.topbar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.iconbtn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-2);
  cursor: pointer;
  transition: all 120ms ease;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.user-chip:hover { border-color: var(--border-strong); }
.avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}

/* ============================================================
   PAGE HEADER (inside shell)
   ============================================================ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-head .crumbs {
  font-size: 12px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}
.page-head .sub {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
  max-width: 60ch;
}
.page-head-actions { display: flex; gap: 8px; align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-icon { padding: 6px 8px; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
  color: var(--red);
  border-color: rgba(185,28,28,0.25);
}
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.input, .select, .textarea {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  transition: border 120ms ease, box-shadow 120ms ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: var(--text-3); }
.textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='none' stroke='%238A8A8A' stroke-width='1.5' d='M2 4l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-3);
}
.field-hint { font-size: 12px; color: var(--text-3); }

/* search input with icon */
.search {
  position: relative; flex: 1; min-width: 0; max-width: 360px;
}
.search input {
  padding-left: 34px;
  height: 36px;
}
.search svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filterbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.filterbar .divider { width: 1px; height: 20px; background: var(--border); }
.filterbar .spacer { flex: 1; }
.filter-count {
  font-size: 12px; color: var(--text-3); font-weight: 500;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab .pill {
  font-size: 11px; padding: 1px 7px;
  background: var(--surface-2); color: var(--text-3);
  border-radius: 999px; font-weight: 600;
}
.tab.active .pill { background: var(--accent-soft); color: var(--accent); }

.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fadeIn 160ms ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* ============================================================
   KPI / STAT TILES
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  overflow: hidden;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.delta-up { color: var(--green); font-weight: 600; }
.delta-down { color: var(--red); font-weight: 600; }
.delta-flat { color: var(--text-3); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.card-body { padding: 16px; }
.card-section { padding: 14px 16px; }
.card-section + .card-section { border-top: 1px solid var(--border); }

/* ============================================================
   TABLES
   ============================================================ */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tbl thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
.tbl thead th.sortable { cursor: pointer; }
.tbl thead th.sortable:hover { color: var(--text); }
.tbl thead th .arr { margin-left: 4px; opacity: 0.5; font-size: 10px; }
.tbl thead th.sorted .arr { opacity: 1; color: var(--accent); }
.tbl tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 100ms ease; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover { background: var(--bg-elev); }
.td-num { text-align: right; font-variant-numeric: tabular-nums; }
.td-center { text-align: center; }
.td-muted { color: var(--text-3); }

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: rgba(21,128,61,0.18); }
.badge-blue  { background: var(--blue-soft);  color: var(--blue);  border-color: rgba(37,99,235,0.18); }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(180,83,9,0.18); }
.badge-red   { background: var(--red-soft);   color: var(--red);   border-color: rgba(185,28,28,0.18); }
.badge-accent{ background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge-mono  { font-family: var(--mono); font-size: 11px; padding: 1px 6px; }

/* Letter-grade pills */
.grade {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: #fff;
}
.grade-A { background: var(--accent); }
.grade-B { background: var(--blue); }
.grade-C { background: #6E6B65; }
.grade-D { background: #B8B5AF; }

/* Chip / tag for industry */
.chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.chip-link { cursor: pointer; }
.chip-link:hover { background: var(--surface-3); color: var(--text); }

/* ============================================================
   UTILITY ROWS
   ============================================================ */
.hstack { display: flex; align-items: center; gap: 8px; }
.vstack { display: flex; flex-direction: column; gap: 8px; }
.hstack-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* sparkline bars */
.spark { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.spark span {
  display: inline-block; width: 4px; background: var(--accent); border-radius: 1px;
  opacity: 0.85;
}

/* score bar */
.scorebar {
  position: relative;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.scorebar > span {
  display: block; height: 100%; border-radius: 3px;
  background: var(--accent);
}

/* empty state */
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.empty h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* toast / banner */
.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 13px;
  margin-bottom: 16px;
}
.banner strong { color: var(--text); }
.banner .banner-actions { margin-left: auto; display: flex; gap: 8px; }

/* divider */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* segment control */
.segment {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  gap: 0;
}
.segment button {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 120ms ease;
}
.segment button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* progress strip (pipeline) */
.steps {
  display: flex; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.steps button {
  flex: 1;
  padding: 9px 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background 120ms ease, color 120ms ease;
  position: relative;
}
.steps button:last-child { border-right: none; }
.steps button:hover { background: var(--bg-elev); color: var(--text-2); }
.steps button.done { background: var(--green-soft); color: var(--green); }
.steps button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.steps .stage-count {
  display: block;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 2px;
  color: inherit;
}

/* ============================================================
   PROSPECT CARD
   ============================================================ */
.prospect {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.prospect:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .prospect { grid-template-columns: 1fr; } }
.prospect + .prospect { margin-top: 10px; }

.prospect-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.prospect-rank {
  font-family: var(--mono);
  font-size: 12px; color: var(--text-3);
  margin-top: 4px;
  min-width: 22px;
}
.prospect-title { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.prospect-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.prospect-name a { color: var(--text); text-decoration: none; }
.prospect-name a:hover { color: var(--accent); }
.prospect-meta {
  font-size: 12px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.prospect-explain {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 6px 0 12px;
}
.prospect-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}
.prospect-info dt { color: var(--text-3); }
.prospect-info dd { color: var(--text); }

.prospect-side {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (max-width: 720px) {
  .prospect-side { border-left: none; border-top: 1px solid var(--border); padding: 16px 0 0; }
}
.prospect-score {
  display: flex; align-items: baseline; gap: 8px;
}
.prospect-score-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.prospect-score-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 700; }

.score-row {
  display: grid; grid-template-columns: 70px 1fr 32px;
  align-items: center; gap: 8px;
  font-size: 12px;
}
.score-row > .lbl { color: var(--text-3); }
.score-row > .val { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

.prospect-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* keyword chips strip */
.kw-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.kw {
  font-size: 11px; padding: 2px 7px;
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-3);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.footer a { color: var(--text-3); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ============================================================
   TOOLTIP
   ============================================================ */
.tip { position: relative; }
.tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.tip:hover::after { opacity: 1; }

/* focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
