/* ============================================================
   CodoPlayer — Design System  ·  "Signal"
   Light by default, dark on demand. Every surface is a token, so
   a theme is a palette swap rather than a second stylesheet.
   The standalone player (player.php) pins itself to dark, because
   a video app should read as a screen whatever the site is doing.
   ============================================================ */

:root {
  /* ---- grounds: page, banded section, card, footer ---- */
  --bg-0: #ffffff;
  --bg-1: #f4f6fa;
  --bg-2: #eaeef4;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --raise: #ffffff;
  --stroke: #dee4ee;
  --stroke-2: #c9d3e2;

  --text: #0b1220;
  --text-dim: #4b586d;
  --text-mute: #59677c;

  /* ---- brand: the logo and the platform marks, nothing else ---- */
  --brand-1: #6d5efc;
  --brand-2: #21d4fd;
  --brand-grad: linear-gradient(135deg, #6d5efc 0%, #3f8cff 52%, #21d4fd 100%);
  --text-grad: linear-gradient(90deg, var(--tag-fg), var(--tag-cyan));
  --brand-soft: rgba(11, 18, 32, .05);
  /* keyboard focus ring: at least 3:1 on every ground (brand-2 cyan was 1.5 to 1.8 on the light grounds) */
  --focus-ring: #6d5efc;

  /* ---- controls are monochrome and invert with the theme ---- */
  --btn-bg: #0b1220;
  --btn-fg: #ffffff;
  --btn-bg-h: #1b2740;
  --btn-div: rgba(255, 255, 255, .22);
  --hdr: rgba(255, 255, 255, .82);
  --hdr-past: rgba(255, 255, 255, .94);

  /* ---- platform marks on the primary button: the bright brand
          colours read on a black button, the deeper official
          alternates read on a white one ---- */
  --pm-android: #3ddc84; --pm-windows: #00a4ef; --pm-linux: #f0b429;
  --pmb-android: #3ddc84; --pmb-windows: #00a4ef; --pmb-linux: #f0b429;

  --ok: #176846;
  --warn: #805000;
  --danger: #b12b23;
  --danger-soft: rgba(217, 58, 43, .16);
  --danger-tint: #fff4f2;
  --tally: var(--danger);
  /* the pale violet / cyan of tags and the info pill were drawn for dark: deeper here (2.4:1 and 1.8:1 on white) */
  --tag-fg: #4b3ccc;
  --tag-cyan: #0b5f7a;
  --info: #0a6380;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow-1: 0 1px 2px rgba(10, 17, 32, .05), 0 10px 30px -12px rgba(10, 17, 32, .16);
  --lift: var(--shadow-1);
  --shadow-glow: 0 1px 2px rgba(10, 17, 32, .06), 0 12px 34px -14px rgba(10, 17, 32, .22);
  --scr-sh: 0 2px 6px rgba(11, 18, 32, .1), 0 30px 60px -24px rgba(11, 18, 32, .42);

  /* ---- type: a tight grotesque for display, a mono for every
          spec, version and channel number ---- */
  --font-display: "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", -apple-system,
                  BlinkMacSystemFont, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
               Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Dark is opt-in: only the header control (or player.php pinning
   itself) sets data-theme, never the operating system. */
[data-theme="dark"] {
  --bg-0: #0a0f1a;
  --bg-1: #0f1725;
  --bg-2: #070c15;
  --surface: #161f30;
  --surface-2: #1d2739;
  --raise: #1d2739;
  --stroke: #242f42;
  --stroke-2: #33415a;

  --text: #edf2f9;
  --text-dim: #9baabf;
  --text-mute: #8998ae;

  --brand-soft: rgba(255, 255, 255, .07);
  /* dark: the brand gradient itself, as these headlines always had; only the light theme needs the darker pair above */
  --text-grad: var(--brand-grad);
  --focus-ring: #21d4fd;

  --btn-bg: #f2f6fc;
  --btn-fg: #0a0f1a;
  --btn-bg-h: #ffffff;
  --btn-div: rgba(10, 15, 26, .22);
  --hdr: rgba(10, 15, 26, .78);
  --hdr-past: rgba(10, 15, 26, .95);

  --pmb-android: #0f9d58; --pmb-windows: #0078d4; --pmb-linux: #b27700;

  --ok: #3ddc97;
  --warn: #f5b544;
  --danger: #ff6b5c;
  --danger-soft: rgba(255, 107, 92, .22);
  --danger-tint: #2a1a1f;
  --tally: #ff6b5c;
  --tag-fg: #a9a0ff;
  --tag-cyan: #7fe3ff;
  --info: #21d4fd;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 34px -14px rgba(0, 0, 0, .85);
  --shadow-glow: 0 1px 2px rgba(0, 0, 0, .55), 0 14px 40px -14px rgba(0, 0, 0, .9);
  --scr-sh: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -26px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(109, 94, 252, .22); }
:focus-visible { outline: 2px solid var(--focus-ring, var(--brand-2)); outline-offset: 3px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- scrollbars ---- */
* { scrollbar-width: thin; scrollbar-color: var(--stroke-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }
*::-webkit-scrollbar-track { background: transparent; }

/* The aurora wash and the grid overlay belonged to the old dark-only
   look. They are retired; the classes stay inert so no page breaks. */
.aurora-bg::before, .aurora-bg::after { content: none; }
.grid-lines { display: none; }


/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; user-select: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(109, 94, 252, .4);
  flex: none;
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-img { border-radius: 11px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: .4px;
}
.brand-name b { color: var(--text-mute); font-weight: 400; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 14.5px; letter-spacing: .2px;
  border: 1px solid transparent;
  transition: transform .16s var(--ease), box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
}
.btn-primary:hover { background: var(--btn-bg-h); box-shadow: var(--shadow-1); transform: translateY(-1px); }

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

/* Theme colours on both sides: a fixed pale pink (#ff8ba0) over a see-through tint was made for the dark theme and read
   1.9:1 in the light one (manage.php's "Remove" in the confirm dialog, 2026-10-11). */
.btn-danger { background: var(--danger-tint); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--r-sm); }

/* ---- fields ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
/* A submit button sitting straight under the last field needs air, or it reads
   as part of the input. Scoped to the adjacency so grid-gapped admin forms,
   which space themselves, are untouched. */
.field + .btn, .field + .cf-turnstile + .btn { margin-top: 18px; }
/* The Cloudflare challenge is a fixed-width iframe, so left-aligned it hangs
   off-centre in every card it appears in — sign in, sign up, feedback, device
   and account sign-in, and both consoles. One rule covers all of them because
   one PHP helper emits them all. */
.cf-turnstile { display: flex; justify-content: center; margin: 4px 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); letter-spacing: .3px; }
.field .req { color: var(--info); }
.input, select.input, textarea.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder { color: var(--text-mute); }
.input:focus {
  border-color: rgba(109, 94, 252, .65);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, .18);
  background: var(--surface);
}
select.input option { background: var(--bg-2); }
/* A field the browser filled in by itself gets the browser's own pale blue: a white box inside a dark form. Keep it the
   field's own colour in both themes. */
input:-webkit-autofill, input:-webkit-autofill:hover, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset; box-shadow: 0 0 0 1000px var(--surface-2) inset;
}
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 3px rgba(109, 94, 252, .18);
  box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 3px rgba(109, 94, 252, .18);
}
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 8px; border-radius: 8px; color: var(--text-mute);
  display: grid; place-items: center;
}
.input-eye:hover { color: var(--text); background: var(--surface); }
.input-eye svg { width: 18px; height: 18px; }

/* ---- a wrong box turns red and says why right under it (common.js fieldErr / formErr, owner 2026-10-11) ---- */
.input[aria-invalid="true"], .input[aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.input[aria-invalid="true"], .file-drop[aria-invalid="true"] { background: var(--danger-tint); }
[aria-invalid="true"]:focus-visible { outline-color: var(--danger); }
.file-drop[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:-webkit-autofill, .input[aria-invalid="true"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--danger-tint) inset, 0 0 0 3px var(--danger-soft);
  box-shadow: 0 0 0 1000px var(--danger-tint) inset, 0 0 0 3px var(--danger-soft);
}
.field-err {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 1px;
  color: var(--danger);
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  animation: err-in .2s var(--ease);
}
.field-err svg, .form-err svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: var(--danger); }
.form-err {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0;
  padding: 11px 14px;
  background: var(--danger-tint);
  border: 1px solid var(--danger);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1.45;
  animation: err-in .2s var(--ease);
}
.form-err + .btn, .form-err + .cf-turnstile { margin-top: 14px; }
@keyframes err-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ---- cards / glass ---- */
.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-1);
}
/* A card is a padded box, and the inset belongs HERE rather than in site.css:
   the admin and reseller consoles load theme.css + admin.css only, so anything
   defined in the site layer never reaches them and their cards render with
   their text against the border. */
.card {
  background: var(--bg-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.2vw, 28px);
}

/* ---- pills / badges ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .35px;
  border: 1px solid;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok     { color: var(--ok);     border-color: rgba(47, 210, 125, .4); background: rgba(47, 210, 125, .1); }
.pill-warn   { color: var(--warn);   border-color: rgba(245, 181, 68, .4); background: rgba(245, 181, 68, .1); }
.pill-danger { color: var(--danger); border-color: rgba(255, 84, 112, .4); background: rgba(255, 84, 112, .1); }
.pill-info   { color: var(--info); border-color: rgba(33, 212, 253, .4); background: rgba(33, 212, 253, .09); }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  background: var(--brand-soft); color: var(--tag-fg); border: 1px solid rgba(109,94,252,.3);
}
.tag.cyan { background: rgba(33,212,253,.1); color: var(--tag-cyan); border-color: rgba(33,212,253,.3); }

/* ---- tabs ---- */
.tabs {
  display: flex; gap: 4px; padding: 5px;
  background: var(--bg-1);
  border: 1px solid var(--stroke);
  border-radius: 13px;
}
.tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px;
  border-radius: 9px;
  font-weight: 600; font-size: 13.5px;
  color: var(--text-dim);
  transition: all .2s var(--ease);
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); background: var(--surface); }
.tab.active {
  color: var(--btn-fg);
  background: var(--btn-bg);
}

/* ---- switch ---- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 44px; height: 24px; border-radius: 99px; flex: none;
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  transition: background .2s;
  position: relative;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px rgba(10,17,32,.3); transition: transform .2s var(--ease);
}
.switch input:checked + .track { background: var(--btn-bg); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ---- checkbox ---- */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--stroke-2);
  background: var(--bg-1);
  display: grid; place-items: center;
  transition: all .18s;
}
.check .box svg { width: 12px; height: 12px; fill: none; stroke: var(--btn-fg); stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .16s var(--ease); }
.check input:checked + .box { background: var(--btn-bg); border-color: transparent; }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }

/* ---- modal ---- */
.modal-veil {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Anchored near the top, not centred: a dialog whose form changes height (Xtream → M3U in manage.php, the admin's
     forms) grows downward instead of re-centring, so the control just clicked stays under the pointer. */
  display: grid; place-items: start center;
  padding: clamp(20px, 8vh, 90px) 20px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.modal-veil.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px;
  max-height: calc(100vh - clamp(20px, 8vh, 90px) - 20px);
  overflow-y: auto;
  padding: 28px;
  transform: translateY(14px) scale(.98);
  transition: transform .24s var(--ease);
}
.modal-veil.open .modal { transform: none; }
.modal h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; }
.modal .sub { color: var(--text-mute); font-size: 13.5px; margin: 0 0 20px; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  padding: 8px; border-radius: 9px; color: var(--text-mute);
}
.modal-x:hover { background: var(--surface); color: var(--text); }
.modal-x svg { width: 16px; height: 16px; }

/* ---- toast ---- */
#toasts {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
/* base icon size — bare icon() calls default to this; context rules
   (.btn svg, .toast svg, .im-lock svg, .th-paused svg, …) override it. Without
   this, an icon() outside a sized container renders at the browser's huge default. */
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* Both colours come from the theme: a fixed dark box over the theme's text colour was dark navy on dark navy in the
   light theme ("Wrong email or password" could not be read, owner 2026-10-11). web/tests/theme_pairs.py guards it. */
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--raise);
  color: var(--text);
  border: 1px solid var(--stroke-2);
  border-left-width: 4px;
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  font-size: 14px; font-weight: 600;
  animation: toast-in .3s var(--ease);
  max-width: min(92vw, 480px);
}
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--danger); }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---- spinner ---- */
.spinner {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  border: 2.5px solid var(--stroke);
  border-top-color: var(--text);
  animation: spin .8s linear infinite;
}
.spinner.lg { width: 38px; height: 38px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- skeleton ---- */
.skel {
  background: linear-gradient(100deg, var(--bg-1) 40%, var(--bg-2) 50%, var(--bg-1) 60%);
  background-size: 200% 100%;
  animation: skel 1.3s infinite;
  border-radius: var(--r-sm);
}
@keyframes skel { to { background-position: -200% 0; } }

/* ---- misc ---- */
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }
.grow { flex: 1; }
.hidden { display: none !important; }
/* The UA's `[hidden] { display: none }` loses to any class that sets display
   (.setting-card is display:flex), so `<div class="card" hidden>` rendered as
   an empty card. Make the attribute always win. */
[hidden] { display: none !important; }
.divider { height: 1px; background: var(--stroke); margin: 18px 0; border: 0; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px; text-align: center; color: var(--text-mute);
}
.empty-state svg { width: 46px; height: 46px; opacity: .4; }
.empty-state .t { font-weight: 600; color: var(--text-dim); font-size: 15.5px; }

/* ---- subscription / line expiry (player, manage, portal) ----
   Severity is carried by the WORDS first ("Expires in 3 days") — these colours
   are a second signal, never the only one. Each severity sets its own solid +
   translucent pair; no color-mix(), which the rest of this sheet avoids. */
.sev-none   { --sev: var(--ok);     --sev-b: rgba(47, 210, 125, .40); --sev-f: rgba(47, 210, 125, .10); }
.sev-warn   { --sev: var(--warn);   --sev-b: rgba(245, 181, 68, .42); --sev-f: rgba(245, 181, 68, .10); }
.sev-danger { --sev: var(--danger); --sev-b: rgba(255, 84, 112, .42); --sev-f: rgba(255, 84, 112, .10); }

.sub-line .sub-head { font-weight: 700; font-size: 16px; color: var(--sev); }
.sub-line.sev-none .sub-head { color: var(--text); }
.sub-line .sub-sub { font-size: 12.5px; color: var(--text-mute); margin-top: 5px; line-height: 1.45; }

.line-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 10px 14px 16px; margin-bottom: 18px;
  border: 1px solid var(--sev-b);
  background: var(--sev-f);
  border-radius: var(--r-md);
}
.line-banner .lb-icon { color: var(--sev); display: flex; flex-shrink: 0; }
.line-banner .lb-icon svg { width: 22px; height: 22px; }
.line-banner .lb-body { flex: 1; min-width: 0; }
.line-banner .lb-title { font-weight: 700; font-size: 15px; color: var(--sev); }
.line-banner .lb-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.line-banner .lb-x {
  flex-shrink: 0; background: none; border: 0; cursor: pointer;
  color: var(--text-mute); padding: 6px; border-radius: 8px; line-height: 0;
}
.line-banner .lb-x:hover { color: var(--text); background: var(--surface-2); }
.line-banner .lb-x svg { width: 16px; height: 16px; }

/* Compact badge for playlist rows */
.line-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  color: var(--sev); white-space: nowrap;
  border: 1px solid var(--sev-b);
  background: var(--sev-f);
}
.line-chip .lc-trial {
  font-size: 9.5px; font-weight: 800; letter-spacing: .6px; color: var(--text-dim);
}

@media (max-width: 640px) {
  .btn { padding: 11px 16px; }
  .modal { padding: 22px 18px; }
}
