/* =========================================================
   CAMP – Student portal (dark)
   Shared portal styles. The Application Tracker uses all of it;
   later pages (Profile, Search…) can reuse the shell, buttons,
   fields, dialogs and sheets.

   Layout modes
   - Website, wide (> 1024px): fixed sidebar + content
   - Website, narrow (≤ 1024px): top bar + slide-in sidebar
   - Cards (≤ 760px or Android app): table → cards, side panel → bottom sheet
   - Android app (html.in-app): bottom tab bar + "More" sheet, no sidebar,
     no WhatsApp bubble
   ========================================================= */

:root {
  --brand: #3453FE;              /* buttons, links, focus */
  --brand-hover: #2440E8;
  --brand-light: #3453FE;        /* icons and links */
  --brand-pale: #2A3FC4;         /* text on brand tints */
  --brand-06: rgba(116, 137, 254, 0.06);
  --brand-10: rgba(116, 137, 254, 0.10);
  --brand-14: rgba(116, 137, 254, 0.14);
  --brand-25: rgba(116, 137, 254, 0.25);
  --brand-45: rgba(116, 137, 254, 0.45);

  --bg: #F6F7FB;
  --panel: #FFFFFF;
  --modal: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #FFFFFF;
  --line: #E5E8F0;
  --line-2: #D9DDE8;
  --line-3: #C9CEDC;

  --text: #16182A;
  --text-2: #3B3F54;             /* labels */
  --text-3: #23263A;
  --muted: #5B6072;
  --faint: #6B7280;
  --ghost: #9AA0AE;

  /* Status colours (tuned for light backgrounds) */
  --pending: #B45309;   --pending-bg: #FEF3C7;
  --applied: #1D4ED8;   --applied-bg: #DBEAFE;
  --interview: #6D28D9; --interview-bg: #EDE9FE;
  --offer: #047857;     --offer-bg: #D1FAE5;
  --rejected: #B91C1C;  --rejected-bg: #FEE2E2;
  --danger: #DC2626;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --sidebar-w: 264px;
  --radius: 14px;
  --radius-lg: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; flex-shrink: 0; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--faint); font-weight: 400; }
.mono { font-family: var(--font-mono); }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--text); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

.glow {
  position: fixed; top: -280px; right: -120px; z-index: 0;
  width: 680px; height: 680px; border-radius: 50%;
  background: var(--brand); opacity: 0.05; filter: blur(180px);
  pointer-events: none; transform: translateZ(0);
}

/* ---------- Brand (the CAMP logo) ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 52px; width: auto; }
.topbar .brand__logo { height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); color: #FFFFFF; box-shadow: 0 10px 26px rgba(116, 137, 254, 0.3); }
.btn--ghost { background: var(--surface-1); border-color: var(--line-3); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: rgba(22, 24, 42, 0.056); border-color: rgba(22, 24, 42, 0.176); color: var(--text); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #2A2D44; color: #FFFFFF; }
.btn--danger { background: var(--rejected); color: #FFFFFF; }
.btn--danger-text { background: transparent; color: var(--danger); padding: 0 12px; }
.btn--danger-text:hover { background: rgba(255, 138, 138, 0.08); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--faint);
}
.icon-btn:hover { background: rgba(22, 24, 42, 0.056); color: var(--text); }
.icon-btn--box { border-color: var(--line-2); border-radius: 12px; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field__label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input {
  width: 100%; min-height: 46px; padding: 0 14px;
  border-radius: 12px; border: 1px solid rgba(22, 24, 42, 0.080);
  background: #FFFFFF; color: var(--text);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 88px; }
select.input { background-color: #FFFFFF; padding: 0 12px; }
.input--mono { font-family: var(--font-mono); font-size: 14px; }
.input::placeholder { color: var(--ghost); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(116, 137, 254, 0.18); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- Shell ---------- */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: sticky; top: 0;
  width: var(--sidebar-w); height: 100vh; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 18px 22px;
  border-right: 1px solid rgba(22, 24, 42, 0.056);
  background: #FFFFFF;
  overflow-y: auto;
}
.sidebar__top { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.sidebar__close { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px;
  border-radius: 12px; color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.side-nav a:hover { background: rgba(22, 24, 42, 0.040); color: var(--text); }
.side-nav a[aria-current="page"] {
  color: var(--text); font-weight: 600;
  background: rgba(116, 137, 254, 0.13);
  box-shadow: inset 0 0 0 1px rgba(116, 137, 254, 0.28);
}
.side-nav a[aria-current="page"] svg { color: var(--brand-light); }
.coin-badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(245, 180, 84, 0.14); color: #B45309;
}

.inbox-card {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 16px;
  background: rgba(22, 24, 42, 0.024); border: 1px solid rgba(22, 24, 42, 0.056);
}
.inbox-card__status { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.inbox-card__time { font-size: 12px; color: var(--faint); }
.dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--ghost); }
.dot--ok { background: var(--offer); box-shadow: 0 0 0 4px rgba(74, 222, 154, 0.15); }
.dot--off { background: var(--pending); box-shadow: 0 0 0 4px rgba(245, 180, 84, 0.15); }
.dot--busy { background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.me { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #7489FE, #B98CFF); color: var(--bg);
  font-weight: 700; font-size: 14px;
}
.me__text { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.me__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__plan { font-size: 12px; color: var(--faint); }

.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(22, 24, 42, 0.35); }
.topbar { display: none; }

/* Main column */
.main {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 22px;
  padding: 36px 44px 64px;
  max-width: 1320px;
}

/* ---------- Page header + add form ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-head__title { display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1.05; letter-spacing: -0.03em; }
.app-greet, .inbox-pill { display: none; }

.add-form { flex: 0 1 520px; min-width: 280px; display: flex; gap: 10px; }
.add-form__field { position: relative; flex-grow: 1; min-width: 0; }
.add-form__field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.add-form .input { min-height: 48px; padding-left: 44px; border-radius: 14px; background: var(--surface-2); }
.add-form .btn { min-height: 48px; border-radius: 14px; padding: 0 22px; font-size: 15px; }
.add-form__plus { display: none; }

/* ---------- Notes & banners ---------- */
.note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  padding: 14px 18px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px;
}
.note__text { flex: 1 1 240px; color: var(--text-2); }
.note--amber { background: linear-gradient(90deg, rgba(245, 180, 84, 0.10), rgba(245, 180, 84, 0.03)); border-color: rgba(245, 180, 84, 0.28); }
.note__tag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #B45309; }
.note--amber .note__text { color: #78350F; }
.note__link { font-weight: 600; color: #B45309; }

.deadlines {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 12px 16px; border-radius: 16px;
  background: #FFFFFF; border: 1px solid var(--line);
}
.deadlines__icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 122, 122, 0.13); color: var(--danger); }
.deadlines__list { flex-grow: 1; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.deadlines__list button { padding: 0; border: none; background: none; text-align: left; }
.deadlines__list b { font-weight: 600; }
.deadlines__list .over { color: var(--danger); }
.deadlines__list .soon { color: #B45309; }

/* ---------- Pipeline ---------- */
.pipeline {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: var(--radius-lg);
  background: #FFFFFF; border: 1px solid var(--line);
}
.pipeline__bar { display: flex; gap: 3px; height: 8px; border-radius: 6px; overflow: hidden; background: rgba(22, 24, 42, 0.040); }
.pipeline__bar span { transition: opacity .2s ease, flex-grow .3s ease; }
.pipeline__filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.filter {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid transparent; background: transparent; color: var(--text);
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease;
}
.filter:hover { background: rgba(22, 24, 42, 0.040); }
.filter[aria-pressed="true"] { border-color: var(--brand-45); background: var(--brand-10); }
.filter__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.filter__dot { width: 8px; height: 8px; border-radius: 50%; }
.filter__count { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; }

/* ---------- Applications list ---------- */
.apps {
  position: relative;
  border-radius: var(--radius-lg);
  background: #FFFFFF; border: 1px solid var(--line);
  overflow: hidden;
}
.apps__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(22, 24, 42, 0.056); }
.apps__head h2 { font-size: 16px; font-weight: 600; }
.apps__hint { font-size: 13px; }

.table-wrap { overflow-x: auto; }
.apps-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.apps-table th {
  padding: 12px; text-align: left;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint);
}
.apps-table th:first-child, .apps-table td:first-child { padding-left: 22px; }
.apps-table th:last-child, .apps-table td:last-child { padding-right: 22px; text-align: right; }
.apps-table td { padding: 14px 12px; border-top: 1px solid rgba(22, 24, 42, 0.048); vertical-align: middle; }
.apps-table tbody tr { cursor: pointer; transition: background-color .12s ease; }
.apps-table tbody tr:hover { background: rgba(22, 24, 42, 0.028); }
.apps-table tbody tr.is-inst { background: rgba(116, 137, 254, 0.035); }
.apps-table tbody tr.is-open { background: rgba(116, 137, 254, 0.08); }
.apps-table .muted-cell { color: var(--muted); }
.apps-table .mono-cell { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.apps-table .chev { color: var(--ghost); display: inline-block; }

.company { display: flex; align-items: center; gap: 14px; }
.company__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.company__name {
  padding: 0; border: none; background: none; color: var(--text);
  font-size: 15px; font-weight: 600; text-align: left;
}
.company__sub { font-size: 13px; color: var(--faint); }

.logo {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  background: rgba(116, 137, 254, 0.13); border: 1px solid rgba(116, 137, 254, 0.27); color: var(--brand);
}
.logo--lg { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.logo[data-s="Pending"]   { background: rgba(245, 180, 84, 0.13); border-color: rgba(245, 180, 84, 0.27); color: var(--pending); }
.logo[data-s="Applied"]   { background: rgba(92, 200, 255, 0.12); border-color: rgba(92, 200, 255, 0.27); color: var(--applied); }
.logo[data-s="Interview"] { background: rgba(185, 140, 255, 0.13); border-color: rgba(185, 140, 255, 0.27); color: var(--interview); }
.logo[data-s="Offer"]     { background: rgba(74, 222, 154, 0.12); border-color: rgba(74, 222, 154, 0.27); color: var(--offer); }
.logo[data-s="Rejected"]  { background: rgba(255, 138, 138, 0.11); border-color: rgba(255, 138, 138, 0.27); color: var(--rejected); }

.tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px;
  background: var(--brand-14); color: var(--brand-pale);
}

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-s="Pending"]   { background: var(--pending-bg); color: var(--pending); }
.pill[data-s="Applied"]   { background: var(--applied-bg); color: var(--applied); }
.pill[data-s="Interview"] { background: var(--interview-bg); color: var(--interview); }
.pill[data-s="Offer"]     { background: var(--offer-bg); color: var(--offer); }
.pill[data-s="Rejected"]  { background: var(--rejected-bg); color: var(--rejected); }

/* Deadline */
.dl { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.dl--none { color: var(--ghost); font-family: inherit; }
.dl--soon { color: #B45309; padding: 4px 8px; border-radius: 8px; background: rgba(245, 180, 84, 0.12); }
.dl--over { color: var(--danger); padding: 4px 8px; border-radius: 8px; background: rgba(255, 138, 138, 0.12); }

/* ATS ring */
.ring-cell { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.ring { position: relative; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring__track { stroke: rgba(22, 24, 42, 0.064); }
.ring--lg { width: 96px; height: 96px; }
.ring--lg .ring__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
}
.ring-none { color: var(--ghost); font-family: inherit; font-weight: 400; }

/* Cards (mobile / app) */
.cards { display: none; flex-direction: column; gap: 10px; padding: 14px; }
.card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px;
  border-radius: 18px; border: 1px solid rgba(22, 24, 42, 0.056);
  background: var(--surface-1); color: var(--text);
  text-align: left;
}
.card.is-inst { border-color: var(--brand-25); background: var(--brand-06); }
.card__body { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.card__row { display: flex; align-items: center; gap: 8px; }
.card__row--top { justify-content: space-between; align-items: baseline; }
.card__name, .card__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name { font-size: 15px; font-weight: 600; }
.card__sub { font-size: 13px; color: var(--faint); }
.card .pill { font-size: 12px; padding: 4px 10px; }
.card .pill::before { display: none; }
.card .dl { font-size: 11px; padding: 0; background: none; }
.card .ring-cell { margin-left: auto; font-size: 12px; gap: 6px; }
.card .tag { font-size: 10px; padding: 3px 7px; }

/* Empty + loading */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-14); color: var(--brand-light); margin-bottom: 6px; }
.empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.empty p { max-width: 420px; }
.loading, .skeleton { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.loading span:not(.sr-only), .skeleton span:not(.muted) {
  height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(22, 24, 42, 0.032), rgba(22, 24, 42, 0.072), rgba(22, 24, 42, 0.032));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.loading span:nth-child(1) { width: 92%; } .loading span:nth-child(2) { width: 74%; } .loading span:nth-child(3) { width: 84%; }
.skeleton { padding: 4px 0; }
.skeleton span:nth-child(1) { width: 94%; } .skeleton span:nth-child(2) { width: 78%; } .skeleton span:nth-child(3) { width: 86%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Detail panel ---------- */
.detail { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.detail__scrim { position: absolute; inset: 0; background: rgba(22, 24, 42, 0.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s ease; }
.detail__panel {
  position: relative;
  width: 520px; max-width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--panel);
  border-left: 1px solid rgba(22, 24, 42, 0.072);
  box-shadow: -40px 0 80px rgba(22, 24, 42, 0.10);
  animation: slide-in .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-handle { display: none; align-self: center; width: 40px; height: 4px; border-radius: 4px; background: rgba(22, 24, 42, 0.144); }

.detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 28px 14px; }
.detail__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.detail__id h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.detail__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 0 28px 20px; border-bottom: 1px solid rgba(22, 24, 42, 0.056);
}
.detail__link { margin-left: auto; font-size: 13px; font-weight: 600; }
.detail__inst-status {
  margin: 0 28px 0; padding: 10px 14px; border-radius: 10px;
  background: var(--brand-06); color: var(--brand-pale); font-weight: 600;
}
.detail__inst-status:not([hidden]) { margin-top: 14px; }
.status-select {
  min-height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
  font-size: 13px; font-weight: 600;
}
.status-select[data-s="Pending"]   { background: var(--pending-bg); color: var(--pending); border-color: rgba(245, 180, 84, 0.35); }
.status-select[data-s="Applied"]   { background: var(--applied-bg); color: var(--applied); border-color: rgba(92, 200, 255, 0.35); }
.status-select[data-s="Interview"] { background: var(--interview-bg); color: var(--interview); border-color: rgba(185, 140, 255, 0.35); }
.status-select[data-s="Offer"]     { background: var(--offer-bg); color: var(--offer); border-color: rgba(74, 222, 154, 0.35); }
.status-select[data-s="Rejected"]  { background: var(--rejected-bg); color: var(--rejected); border-color: rgba(255, 138, 138, 0.35); }
.status-select option { background: #FFFFFF; color: var(--text); }

.detail__body { flex-grow: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 22px; }
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.date {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border-radius: 14px;
  background: rgba(22, 24, 42, 0.024); border: 1px solid rgba(22, 24, 42, 0.056);
}
.date span { font-size: 12px; color: var(--faint); }
.date b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.date--edit { cursor: pointer; }
.date--edit input { padding: 0; border: none; background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 14px; min-width: 0; }
.date--edit:focus-within { border-color: var(--brand); }

.ats {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(116, 137, 254, 0.12), rgba(116, 137, 254, 0.02));
  border: 1px solid rgba(116, 137, 254, 0.22);
}
.ats__top { display: flex; align-items: center; gap: 20px; }
.ats__text { display: flex; flex-direction: column; gap: 4px; }
.ats__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ats__band { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.ats__missing { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px dashed rgba(22, 24, 42, 0.176); color: #3B3F54; }
.ats__tips { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.ats__tips li { display: flex; gap: 10px; }
.ats__tips li::before { content: "→"; color: var(--brand-light); font-family: var(--font-mono); font-size: 12px; padding-top: 2px; }
.ats__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ats__actions .btn { flex: 1 1 160px; min-height: 46px; }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(22, 24, 42, 0.024);
  color: var(--text); font-size: 13px; font-weight: 600; text-align: left;
}
.quick__btn svg { color: var(--brand-light); }
.quick__btn:hover { background: rgba(22, 24, 42, 0.056); border-color: rgba(22, 24, 42, 0.160); color: var(--text); }
.quick__btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.quick__btn.is-set svg { color: var(--offer); }

.detail__foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(22, 24, 42, 0.056);
}
.detail__foot-right { display: flex; gap: 10px; }

/* ---------- Dialogs ---------- */
.modal {
  width: 480px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  padding: 0; border: 1px solid rgba(22, 24, 42, 0.080); border-radius: 24px;
  background: var(--modal); color: var(--text);
  box-shadow: 0 40px 100px rgba(22, 24, 42, 0.10);
}
.modal--wide { width: 560px; }
.modal--narrow { width: 420px; }
.modal[open] { animation: slide-up .22s cubic-bezier(.2, .8, .2, 1); }
.modal::backdrop { background: rgba(22, 24, 42, 0.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__body { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.modal__body h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__head p { margin-top: 6px; }
.modal__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.modal__actions--split { justify-content: space-between; align-items: center; }
.connected { display: flex; align-items: center; gap: 8px; color: var(--faint); }

.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick {
  min-height: 44px; border-radius: 12px;
  border: 1px solid rgba(22, 24, 42, 0.080); background: rgba(22, 24, 42, 0.024);
  color: var(--text-2); font-size: 14px; font-weight: 600;
}
.pick[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-14); color: var(--text); }

.score-chip {
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
  padding: 8px 12px; border-radius: 12px;
  background: var(--brand-10); border: 1px solid var(--brand-25);
}
.score-chip span { font-size: 11px; color: var(--muted); }
.score-chip b { font-family: var(--font-mono); font-size: 18px; }

.edits { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.edit {
  display: flex; gap: 14px; padding: 14px 16px;
  border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(22, 24, 42, 0.064); background: rgba(22, 24, 42, 0.016);
}
.edit:has(input:checked) { border-color: rgba(116, 137, 254, 0.35); background: rgba(116, 137, 254, 0.07); }
.edit input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.edit__text { display: flex; flex-direction: column; gap: 4px; }
.edit__where { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-light); }
.edit__new { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.edit__old { font-size: 13px; line-height: 1.5; color: var(--ghost); text-decoration: line-through; }

.deep { display: flex; flex-direction: column; gap: 16px; }
.deep p { font-size: 15px; line-height: 1.6; color: var(--text-3); white-space: pre-line; }
.deep__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deep__col { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; font-size: 14px; color: var(--text-3); }
.deep__col h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.deep__col--good { background: rgba(74, 222, 154, 0.07); border: 1px solid rgba(74, 222, 154, 0.22); }
.deep__col--good h3 { color: #047857; }
.deep__col--gap { background: rgba(245, 180, 84, 0.07); border: 1px solid rgba(245, 180, 84, 0.22); }
.deep__col--gap h3 { color: #B45309; }

.upload { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-3); }
.upload > svg { color: var(--brand-light); }
.upload__text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.upload__text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload label.btn { cursor: pointer; }
.danger-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 138, 138, 0.12); color: var(--danger); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 80;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 50px rgba(22, 24, 42, 0.10);
  animation: slide-up .2s ease;
}
.toast.is-error { background: #FEE2E2; color: #991B1B; }

/* ---------- WhatsApp bubble (website) ---------- */
.whatsapp {
  position: fixed; right: 28px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(22, 24, 42, 0.048); border: 1px solid rgba(22, 24, 42, 0.096); color: var(--text);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.whatsapp:hover { background: rgba(22, 24, 42, 0.096); color: var(--text); }

/* ---------- App-only pieces (hidden on the website) ---------- */
.tabbar, .sheet { display: none; }

/* =========================================================
   WEBSITE, NARROW: top bar + slide-in sidebar
   ========================================================= */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 40;
    background: #FFFFFF;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.is-open { transform: none; box-shadow: 30px 0 60px rgba(22, 24, 42, 0.10); }
  .sidebar__close { display: inline-grid; }
  .topbar { display: flex; align-items: center; gap: 10px; margin: -12px 0 -4px -8px; }
  .main { padding: 24px 28px 56px; }
  .pipeline__filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   CARDS + BOTTOM SHEET (small screens and the Android app)
   ========================================================= */
@media (max-width: 760px) {
  .table-wrap, .apps__hint { display: none; }
  .cards { display: flex; }
  .main { padding: 20px 16px 48px; gap: 16px; }
  .page-head h1 { font-size: 30px; }
  .add-form { flex-basis: 100%; min-width: 0; }
  .grid-2, .dates { grid-template-columns: minmax(0, 1fr); }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .date--edit { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .pipeline { padding: 0; background: none; border: none; }
  .pipeline__bar { display: none; }
}

/* Shared bottom-sheet behaviour (≤ 760px or app) */
@media (max-width: 760px) {
  .detail { align-items: flex-end; }
  .detail__panel {
    width: 100%; height: auto; max-height: 90vh;
    border-left: none; border-top: 1px solid rgba(22, 24, 42, 0.080);
    border-radius: 26px 26px 0 0;
    padding-top: 10px;
    animation: slide-up .26s cubic-bezier(.2, .8, .2, 1);
  }
  .sheet-handle { display: block; }
  .detail__head { padding: 16px 20px 12px; }
  .detail__id h2 { font-size: 22px; }
  .detail__meta { padding: 0 20px 16px; }
  .detail__body { padding: 18px 20px; gap: 18px; }
  .detail__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .quick { gap: 8px; }
  .quick__btn { align-items: center; text-align: center; padding: 12px 6px; font-size: 12px; }
  .ring--lg { width: 72px; height: 72px; }
  .ring--lg svg { width: 72px; height: 72px; }
  .ring--lg .ring__num { font-size: 22px; }
  .modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .modal__body { padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .modal__actions .btn { flex: 1 1 auto; }
  .pipeline__filters { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .pipeline__filters::-webkit-scrollbar { display: none; }
  .filter { flex-direction: row; align-items: center; gap: 7px; flex-shrink: 0; min-height: 38px; padding: 0 14px; border-radius: 999px; border-color: rgba(22, 24, 42, 0.072); background: var(--surface-1); }
  .filter__label { color: var(--text); }
  .filter__count { font-family: var(--font-mono); font-size: 13px; }
  .apps { background: none; border: none; overflow: visible; }
  .apps__head { padding: 4px 2px 10px; border: none; }
  .cards { padding: 0; }
}

/* =========================================================
   ANDROID APP (html.in-app)
   ========================================================= */
html.in-app .sidebar, html.in-app .scrim, html.in-app .topbar, html.in-app .whatsapp, html.in-app .eyebrow[data-today] { display: none !important; }
html.in-app .main { padding: 22px 18px calc(110px + env(safe-area-inset-bottom, 0px)); gap: 16px; }
html.in-app .page-head { align-items: flex-start; gap: 16px; }
html.in-app .page-head__title { gap: 2px; flex: 1 1 0; min-width: 0; }
html.in-app .page-head { flex-wrap: wrap; }
html.in-app .inbox-pill { margin-top: 4px; }
html.in-app .app-greet { display: block; font-size: 13px; color: var(--faint); }
html.in-app .page-head h1 { font-size: 26px; }
html.in-app .inbox-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(22, 24, 42, 0.080);
  background: var(--surface-2); color: var(--text-2); font-size: 12px;
}
html.in-app .add-form { flex-basis: 100%; min-width: 0; gap: 8px; }
html.in-app .add-form .input { min-height: 46px; font-size: 16px; }
html.in-app .add-form .btn { width: 46px; min-height: 46px; padding: 0; }
html.in-app .add-form__label { display: none; }
html.in-app .add-form__plus { display: block; }
html.in-app .deadlines { padding: 10px 10px 10px 12px; gap: 12px; border-color: rgba(255, 138, 138, 0.22); background: rgba(255, 138, 138, 0.08); }
html.in-app .deadlines__icon { width: 30px; height: 30px; }
html.in-app .deadlines__list { font-size: 13px; }

/* The app always uses cards + sheets, whatever its width */
html.in-app .table-wrap, html.in-app .apps__hint { display: none; }
html.in-app .cards { display: flex; padding: 0; }
html.in-app .apps { background: none; border: none; overflow: visible; }
html.in-app .apps__head { padding: 4px 2px 10px; border: none; }
html.in-app .pipeline { padding: 0; background: none; border: none; }
html.in-app .pipeline__bar { display: none; }

/* Bottom tab bar */
html.in-app .tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(22, 24, 42, 0.072);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(22, 24, 42, 0.10);
}
html.in-app .tabbar a, html.in-app .tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0; border: none; border-radius: 16px;
  background: transparent; color: var(--faint);
  font-size: 11px; font-weight: 500;
}
html.in-app .tabbar [aria-current="page"] { background: var(--brand-14); color: var(--text); font-weight: 600; }
html.in-app .tabbar [aria-current="page"] svg { color: var(--brand-light); }

/* More sheet */
html.in-app .sheet { display: flex; position: fixed; inset: 0; z-index: 60; flex-direction: column; justify-content: flex-end; }
html.in-app .sheet[hidden] { display: none !important; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(22, 24, 42, 0.35); animation: fade .2s ease; }
.sheet__panel {
  position: relative;
  display: flex; flex-direction: column;
  padding: 10px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: var(--panel); border-top: 1px solid rgba(22, 24, 42, 0.080);
  animation: slide-up .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet__panel .sheet-handle { display: block; margin-bottom: 10px; }
.sheet__item { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px; border-radius: 14px; color: var(--text); font-size: 16px; }
.sheet__item svg { color: var(--brand-light); }
.sheet__item:hover { background: rgba(22, 24, 42, 0.040); color: var(--text); }
.sheet__item--danger, .sheet__item--danger svg { color: var(--danger); font-weight: 600; }
.sheet__divider { height: 1px; margin: 8px 12px; background: var(--line); }

/* App sheets (detail + dialogs) at any width */
html.in-app .detail { align-items: flex-end; }
html.in-app .detail__panel {
  width: 100%; height: auto; max-height: 90vh;
  border-left: none; border-top: 1px solid rgba(22, 24, 42, 0.080);
  border-radius: 26px 26px 0 0; padding-top: 10px;
  animation: slide-up .26s cubic-bezier(.2, .8, .2, 1);
}
html.in-app .detail .sheet-handle { display: block; }
html.in-app .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   ADDITIONS (wired to CAMP's real data)
   ========================================================= */

/* Search box in the list header */
.apps__tools { display: flex; align-items: center; gap: 14px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ghost); pointer-events: none; }
.search .input { min-height: 38px; width: 240px; padding: 0 12px 0 36px; border-radius: 10px; font-size: 14px; }
@media (max-width: 760px) {
  .apps__head { flex-wrap: wrap; }
  .apps__tools, .search, .search .input { width: 100%; }
}
html.in-app .apps__head { flex-wrap: wrap; }
html.in-app .apps__tools, html.in-app .search, html.in-app .search .input { width: 100%; }

/* Admin link (master only) */
.side-nav__admin { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }

/* Small text-style button */
.link-btn { padding: 0; border: none; background: none; color: var(--brand-light); font-size: 13px; font-weight: 600; }
.link-btn:hover { color: var(--text); }
.ats__more { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ATS report dialog */
.modal--report { width: 620px; }
.report__top { display: flex; align-items: center; gap: 20px; }
.report__scope { font-size: 13px; color: var(--faint); }
.report-parts { display: flex; flex-direction: column; gap: 14px; }
.report-part__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.report-part__head b { font-family: var(--font-mono); font-weight: 600; }
.report-parts .bar, .exp .bar { height: 6px; margin: 6px 0; border-radius: 6px; background: rgba(22, 24, 42, 0.056); overflow: hidden; }
.report-parts .bar span, .exp .bar span { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.report-part__detail { font-size: 13px; color: var(--faint); }
.report-block { display: flex; flex-direction: column; gap: 8px; }
.report-block__title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.issues { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.issues li { display: flex; gap: 10px; }
.issues li::before { content: "!"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--pending-bg); color: var(--pending); margin-top: 2px; }
.issues li.sev-high::before { background: var(--rejected-bg); color: var(--rejected); }
.chip--found { border-style: solid; border-color: rgba(74, 222, 154, 0.3); color: #047857; }
.chip--ai { border-color: var(--brand-45); color: var(--brand-pale); }
.ai-tag { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--brand-14); color: var(--brand-light); letter-spacing: 0.06em; vertical-align: 2px; margin-left: 6px; }

/* Experience match */
.exp { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--line); }
.exp__list { display: flex; flex-direction: column; gap: 10px; }
.exp__item { display: flex; flex-direction: column; gap: 4px; padding-left: 12px; border-left: 3px solid var(--line-3); font-size: 14px; }
.exp__item--covered { border-left-color: var(--offer); }
.exp__item--partial { border-left-color: var(--pending); }
.exp__item--missing { border-left-color: var(--rejected); }
.exp__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.exp__req-flag { font-size: 11px; color: var(--pending); margin-right: 8px; }
.exp__evidence { font-size: 13px; color: var(--faint); }

/* Deep Check result */
.deep__advice { font-size: 15px; line-height: 1.6; color: var(--text-3); white-space: pre-line; }

/* Tailor: editable suggestions */
.score-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.score-flow .score-chip { align-items: flex-start; }
.score-flow__arrow { color: var(--faint); font-family: var(--font-mono); }
.score-chip--up { background: var(--offer-bg); border-color: rgba(74, 222, 154, 0.35); }
.score-chip--up b { color: var(--offer); }
.edit { flex-direction: column; gap: 10px; cursor: default; }
.edit__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.edit__keep { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.edit__reason { font-size: 12px; color: var(--faint); text-align: right; }
.edit__label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ghost); }
.edit textarea.input { min-height: 84px; padding: 10px 12px; font-size: 14px; line-height: 1.5; resize: vertical; }
.edit__adds { font-size: 13px; color: #B45309; }
.edit.is-skipped { opacity: 0.5; }
.edit.is-skipped textarea { pointer-events: none; }
.status-line { font-size: 14px; color: var(--text-2); }
.status-line.is-error { color: var(--danger); }

/* Light theme: soft shadows lift the white panels off the page */
.pipeline, .apps, .deadlines, .note, .sidebar { box-shadow: 0 1px 2px rgba(22, 24, 42, 0.04); }
.card { background: #FFFFFF; box-shadow: 0 1px 2px rgba(22, 24, 42, 0.05); }



/* =========================================================
   SHARED PAGE PIECES (Profile, Search, Watchlist, Coins, Settings)
   ========================================================= */
.main--narrow { max-width: 1000px; }
.lead { font-size: 15px; color: var(--muted); }
.page-head--plain { align-items: flex-start; flex-direction: column; gap: 8px; }

.panel {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px; border-radius: 22px;
  background: #FFFFFF; border: 1px solid var(--line);
}
.panel h2 { font-size: 17px; font-weight: 600; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.panel__sub { font-size: 14px; line-height: 1.55; color: var(--muted); }
.panel--danger { background: rgba(255, 138, 138, 0.04); border-color: rgba(255, 138, 138, 0.22); }
.panel--danger h2 { color: #B91C1C; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.grow { flex-grow: 1; min-width: 0; }
.link-btn { padding: 0; border: none; background: none; color: var(--brand-light); font-size: 13px; font-weight: 600; }
.link-btn:hover { color: var(--text); }

/* Segmented control (Type, Sort, Add mode) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button {
  min-height: 36px; padding: 0 14px;
  border: none; border-radius: 9px;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--text); color: var(--bg); }

/* Pill tabs (Settings forwarding steps) */
.pill-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-tabs button {
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(22, 24, 42, 0.080); background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.pill-tabs button[aria-selected="true"] { border-color: var(--brand-45); background: var(--brand-14); color: var(--text); }

/* Status tags */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge--ok { background: rgba(74, 222, 154, 0.12); color: #047857; }
.badge--warn { background: rgba(245, 180, 84, 0.12); color: #B45309; }
.badge--off { background: rgba(22, 24, 42, 0.048); color: var(--muted); }

/* Read-only value boxes */
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(22, 24, 42, 0.024); min-width: 0; }
.kv span { font-size: 12px; color: var(--faint); }
.kv b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.inline-edit { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: rgba(22, 24, 42, 0.024); }
.inline-edit__value { font-family: var(--font-mono); font-size: 15px; }

/* Soft chips */
.chips-soft { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-soft { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--brand-14); color: #2A3FC4; }
button.chip-soft { border: 1px solid rgba(116, 137, 254, 0.3); background: rgba(116, 137, 254, 0.08); }
button.chip-soft:hover { background: rgba(116, 137, 254, 0.16); }

/* Switch */
.switch-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 14px; background: rgba(22, 24, 42, 0.024); cursor: pointer;
}
.switch-row__text { display: flex; flex-direction: column; gap: 2px; }
.switch-row__text b { font-size: 15px; font-weight: 600; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; border-radius: 999px; background: rgba(22, 24, 42, 0.112); transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(22, 24, 42, 0.25); transition: left .2s ease; }
.switch-row input:checked + .switch { background: var(--brand); }
.switch-row input:checked + .switch::after { left: 23px; }
.switch-row input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(116, 137, 254, 0.5); }

/* Progress bar */
.bar { height: 8px; border-radius: 8px; background: rgba(22, 24, 42, 0.064); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 8px; background: var(--pending); transition: width .3s ease; }

/* Input with a leading icon */
.with-icon { position: relative; display: flex; min-width: 0; }
.with-icon > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.with-icon > .input { padding-left: 44px; }
.input--lg { min-height: 52px; border-radius: 14px; font-size: 16px; background: var(--surface-2); }
.btn--lg { min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 15px; }

/* Data table (coin activity) */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 22px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.data-table td { padding: 13px 22px; border-top: 1px solid rgba(22, 24, 42, 0.048); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-weight: 700; }
.data-table .when { color: var(--muted); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.plus { color: #047857; } .minus { color: var(--danger); }

/* ---------- Profile ---------- */
.today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.today__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: 18px;
  background: #FFFFFF; border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s ease;
}
.today__card:hover { border-color: rgba(22, 24, 42, 0.144); color: var(--text); }
.today__card--brand { background: linear-gradient(160deg, rgba(116, 137, 254, 0.14), rgba(116, 137, 254, 0.03)); border-color: rgba(116, 137, 254, 0.3); }
.today__label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.today__label--red { color: var(--danger); } .today__label--violet { color: #6D28D9; } .today__label--brand { color: var(--brand-light); }
.today__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.today__sub { font-size: 14px; color: var(--muted); }

.photo-row { display: flex; align-items: center; gap: 18px; }
.avatar--xl {
  width: 80px; height: 80px; font-family: var(--font-display); font-weight: 800; font-size: 28px;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(22, 24, 42, 0.096);
  background-size: cover; background-position: center;
}

.file-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(22, 24, 42, 0.024); }
.file-row--ok { background: rgba(74, 222, 154, 0.06); border-color: rgba(74, 222, 154, 0.22); }
.file-row__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(22, 24, 42, 0.048); color: var(--muted); }
.file-row--ok .file-row__icon { background: rgba(74, 222, 154, 0.12); color: #047857; }
.file-row__text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.file-row__text b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row label.btn { cursor: pointer; }

.career { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 18px; background: linear-gradient(160deg, rgba(116, 137, 254, 0.11), rgba(116, 137, 254, 0.02)); border: 1px solid rgba(116, 137, 254, 0.22); }
.career__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-light); }
.career__big { font-family: var(--font-display); font-weight: 700; font-size: 22px; }

.coins-panel { background: linear-gradient(150deg, rgba(245, 180, 84, 0.10), rgba(245, 180, 84, 0.02) 60%); border-color: rgba(245, 180, 84, 0.22); }
.coins-panel__num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: #B45309; }
.coins-panel a { color: #B45309; font-weight: 600; font-size: 14px; }
.mini-list { border-top: 1px solid var(--line); }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(22, 24, 42, 0.048); font-size: 14px; }
.mini-list .num { font-family: var(--font-mono); }

/* ---------- Job Search ---------- */
.search-panel { gap: 16px; padding: 22px; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-row .with-icon:first-child { flex: 2 1 280px; }
.search-row .with-icon:nth-child(2) { flex: 1 1 200px; }
.select { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(22, 24, 42, 0.080); background: #FFFFFF; color: var(--text); font-size: 14px; }
.select:focus { outline: none; border-color: var(--brand); }
.suggest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); margin-left: auto; }

.results { display: flex; flex-direction: column; gap: 12px; }
.result {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px; border-radius: 20px;
  background: #FFFFFF; border: 1px solid var(--line);
  transition: border-color .15s ease;
}
.result:hover { border-color: rgba(22, 24, 42, 0.128); }
.result .logo { width: 44px; height: 44px; font-size: 18px; }
.result__body { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.result__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.result__title h3 { font-size: 17px; font-weight: 600; }
.result__meta { font-size: 14px; color: var(--text-2); }
.result__meta .sep { color: var(--ghost); }
.result__summary { font-size: 14px; line-height: 1.55; color: var(--faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.result__actions { display: flex; gap: 8px; }
.match { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(74, 222, 154, 0.12); color: #047857; }
.source { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--brand-14); color: var(--brand-pale); white-space: nowrap; }
.btn--tracked { border: 1px solid rgba(74, 222, 154, 0.35); background: rgba(74, 222, 154, 0.10); color: #047857; }
.result--locked { align-items: center; background: rgba(22, 24, 42, 0.012); }
.result--locked .ghost-line { display: block; height: 12px; border-radius: 6px; background: rgba(22, 24, 42, 0.056); }
.lock-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.unlock {
  position: relative; margin-top: -76px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 80px 24px 28px; text-align: center;
  background: linear-gradient(180deg, rgba(246, 247, 251, 0), var(--bg) 45%);
}
.unlock__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(245, 180, 84, 0.12); color: #B45309; }
.unlock h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.unlock p { max-width: 460px; color: var(--muted); }
.btn--gold { background: var(--pending); color: #1A1206; }
.btn--gold:hover:not(:disabled) { background: #F8C473; color: #1A1206; }

/* ---------- Watchlist ---------- */
.combo { position: relative; flex: 1 1 360px; display: flex; flex-direction: column; }
.combo__list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  max-height: 280px; overflow-y: auto;
  padding: 6px; border-radius: 14px;
  background: #FFFFFF; border: 1px solid rgba(22, 24, 42, 0.080);
  box-shadow: 0 24px 50px rgba(22, 24, 42, 0.10);
}
.combo__option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.combo__option[aria-selected="true"], .combo__option:hover { background: rgba(116, 137, 254, 0.10); }
.combo__option .logo { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.combo__text { display: flex; flex-direction: column; }
.combo__text b { font-size: 14px; font-weight: 600; }
.combo__text span { font-size: 12px; color: var(--faint); }
.hint-line { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.hint-line svg { margin-top: 2px; }

.co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.co-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: 20px;
  background: #FFFFFF; border: 1px solid var(--line);
  transition: border-color .15s ease;
}
.co-card:hover { border-color: rgba(22, 24, 42, 0.128); }
.co-card__top { display: flex; align-items: flex-start; gap: 14px; }
.co-card__top .logo { width: 46px; height: 46px; border-radius: 13px; font-size: 19px; }
.co-card__name { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.co-card__name h3 { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.co-card__name span { font-size: 13px; color: var(--faint); }
.co-card__tools { display: flex; gap: 2px; }
.co-card__tools .icon-btn { width: 34px; height: 34px; }
.co-card__links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.co-card__links > * { padding: 4px 10px; border-radius: 999px; background: rgba(22, 24, 42, 0.040); color: var(--text-2); }
.co-card__links a:hover { background: rgba(22, 24, 42, 0.080); color: var(--text); }
.co-card .btn { margin-top: auto; border-color: rgba(116, 137, 254, 0.35); background: rgba(116, 137, 254, 0.10); }

.openings { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; }
.opening { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(22, 24, 42, 0.024); border: 1px solid rgba(22, 24, 42, 0.056); }
.opening__text { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.opening__text b { font-size: 15px; font-weight: 600; }
.opening__text span { font-size: 13px; color: var(--faint); }

/* ---------- Coins ---------- */
.coin-hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(245, 180, 84, 0.25);
  background: linear-gradient(135deg, rgba(245, 180, 84, 0.12), rgba(245, 180, 84, 0.02) 55%);
}
.coin-hero__balance { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 30px; }
.coin-hero__pass { display: flex; flex-direction: column; gap: 16px; padding: 30px; background: rgba(255, 255, 255, 0.65); border-left: 1px solid rgba(245, 180, 84, 0.18); }
.coin-hero__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #B45309; }
.coin-hero__pass .coin-hero__label { color: var(--muted); }
.coin-hero h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.coin-orb {
  display: grid; place-items: center; width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE3A8, #F5B454 55%, #C98A2A);
  box-shadow: 0 12px 30px rgba(245, 180, 84, 0.35), inset 0 -4px 8px rgba(22, 24, 42, 0.10);
  color: #4A3008; font-family: var(--font-display); font-weight: 800; font-size: 28px;
}
.big-number { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.04em; }
.ticks { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }

.dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.dots span { display: grid; place-items: center; height: 30px; border-radius: 8px; background: rgba(22, 24, 42, 0.048); font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: transparent; }
.dots span.is-done { background: var(--pending); color: #1A1206; }
.dots span.is-bonus { background: transparent; border: 1px dashed rgba(245, 180, 84, 0.5); color: #B45309; }
.dots span.is-bonus.is-done { background: var(--pending); border-style: solid; color: #1A1206; }

.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pack {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px; border-radius: 18px;
  border: 1px solid rgba(22, 24, 42, 0.080); background: #FFFFFF;
  color: var(--text); text-align: left;
  transition: border-color .15s ease, transform .15s ease;
}
.pack:hover { border-color: rgba(245, 180, 84, 0.5); transform: translateY(-1px); }
.pack--best { border-color: rgba(245, 180, 84, 0.4); background: rgba(245, 180, 84, 0.07); }
.pack__flag { position: absolute; top: -10px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; background: var(--pending); color: #1A1206; }
.pack__note { font-size: 13px; color: var(--muted); }
.pack__coins { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.pack__coins small { font-size: 15px; font-weight: 600; color: var(--muted); }
.pack__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 600; }
.pack__price s { font-size: 13px; font-weight: 400; color: var(--ghost); }

.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #1B1B24, #0E0E13); display: grid; place-items: center; color: var(--ghost); font-size: 13px; }
.video-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-box__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(22, 24, 42, 0.064); }
.video-box__bar span { display: block; height: 100%; width: 0; background: var(--pending); }

/* ---------- Settings ---------- */
.setting-head { display: flex; align-items: flex-start; gap: 16px; }
.setting-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; background: rgba(22, 24, 42, 0.048); }
.conn-list { display: flex; flex-direction: column; gap: 8px; }
.conn { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: rgba(22, 24, 42, 0.024); border: 1px solid rgba(22, 24, 42, 0.056); }
.conn__email { flex-grow: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.conn form { margin: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { min-height: 50px; border-radius: 14px; border-color: rgba(116, 137, 254, 0.3); background: rgba(116, 137, 254, 0.06); font-family: var(--font-mono); }
.copy-row .btn { min-width: 108px; min-height: 50px; border-radius: 14px; }
.steps-box { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: rgba(22, 24, 42, 0.020); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 14px; font-size: 14px; line-height: 1.5; color: #3B3F54; counter-increment: step; }
.steps { counter-reset: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: var(--brand-14); color: var(--brand-pale); font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.danger-form { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 138, 138, 0.18); }
.btn--danger-outline { border-color: rgba(255, 138, 138, 0.4); background: transparent; color: var(--danger); }
.btn--danger-outline:hover { background: rgba(255, 138, 138, 0.10); }

/* ---------- Page responsiveness ---------- */
@media (max-width: 1180px) {
  .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cols-2, .coin-hero { grid-template-columns: minmax(0, 1fr); }
  .coin-hero__pass { border-left: none; border-top: 1px solid rgba(245, 180, 84, 0.18); }
}
@media (max-width: 760px) {
  .today { grid-template-columns: minmax(0, 1fr); }
  .co-grid, .kv-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 20px; border-radius: 20px; }
  .result { flex-wrap: wrap; padding: 16px; }
  .result__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .big-number { font-size: 56px; }
  .coin-hero__balance, .coin-hero__pass { padding: 22px; }
  .suggest-row { margin-left: 0; }
  .data-table th, .data-table td { padding-left: 16px; padding-right: 16px; }
}
html.in-app .cols-2, html.in-app .coin-hero, html.in-app .co-grid, html.in-app .kv-grid { grid-template-columns: minmax(0, 1fr); }
html.in-app .today { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
html.in-app .today::-webkit-scrollbar { display: none; }
html.in-app .today__card { flex: 0 0 78%; scroll-snap-align: start; }
html.in-app .coin-hero__pass { border-left: none; border-top: 1px solid rgba(245, 180, 84, 0.18); }
html.in-app .panel { padding: 20px; }
html.in-app .result { flex-wrap: wrap; padding: 16px; }
html.in-app .result__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
html.in-app .big-number { font-size: 56px; }
@media (max-width: 760px) {
  .search-row > *, .search-row .btn { flex: 1 1 100%; }
  .search-panel .row > .seg { flex: 1 1 100%; }
  .search-panel .row > .seg button { flex: 1; }
  .search-panel .row > .select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  #results-head .seg { flex: 1 1 100%; }
  #results-head .seg button { flex: 1; }
}
html.in-app .search-row > *, html.in-app .search-row .btn { flex: 1 1 100%; }
html.in-app .search-panel .row > .seg, html.in-app #results-head .seg { flex: 1 1 100%; }
html.in-app .search-panel .row > .seg button, html.in-app #results-head .seg button { flex: 1; }
html.in-app .search-panel .row > .select { flex: 1 1 calc(50% - 5px); min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Light theme: soft shadows lift the white page panels */
.panel, .today__card, .result, .co-card, .pack { box-shadow: 0 1px 2px rgba(22, 24, 42, 0.05); }

/* Coins: the YouTube player fills the video box */
.video-box #yt-player, .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box #ad-note { position: relative; z-index: 1; color: #C9CEDC; }
.match, .source, .badge { white-space: nowrap; flex-shrink: 0; }
