/* Vector — shared design system
   Loaded by every tool. Page-specific rules stay inline in each tool. */

:root {
  --canvas: #f7f7f8; --surface: #FFFFFF; --sunken: rgba(17,17,17,.05);
  /* --ink-2 was #8A8A8A, which measures 3.45:1 on white — under the 4.5:1
     needed for body text, and it carries most of the body copy on the site.
     --ink-3 was #B6B4AF at 2.07:1; it's decorative and on placeholders, but
     nudged up anyway. */
  --ink: #111111; --ink-2: #6E6E6E; --ink-3: #949494;
  --accent: #111111; --accent-press: #000000; --accent-tint: #ECECEE;
  /* Blue is reserved for buttons — the thing you press — plus the focus ring
     that indicates them. Everything else stays monochrome, so a spot of blue
     always means "this is the action". */
  --blue: #0071e3; --blue-press: #0062c4; --blue-tint: #E8F2FE;
  --green: #11875A; --green-tint: #E4F3EC;
  --amber: #A96500; --amber-tint: #F8EEDC;
  --coral: #C8402F; --coral-tint: #FBEAE6;
  --neutral: #8A8A8A; --neutral-tint: #ECECEE;
  --taupe: #D6D6D8; --taupe-ink: #9A9A9E;
  --line: rgba(17,17,17,0.09);
  --r-card: 22px; --r-input: 16px; --r-pill: 999px;
  /* Glass. Top-level surfaces get --glass; anything recessed inside them uses
     --sunken, which is now a translucent ink tint rather than a solid grey.
     Glass inside glass goes muddy and costs mono text its crispness. */
  --glass:       rgba(255,255,255,.68);
  --glass-hover: rgba(255,255,255,.80);
  --glass-dark:  rgba(17,17,17,.80);
  --blur: blur(26px) saturate(180%);

  --shadow-sm: inset 0 0 0 1px rgba(255,255,255,.55), 0 0 0 1px rgba(17,17,17,.06);
  --shadow:    inset 0 0 0 1px rgba(255,255,255,.70), 0 0 0 1px rgba(17,17,17,.11);
  --ease: cubic-bezier(0.22,1,0.36,1);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* ---------- background ----------
   An animated gradient mesh: no file to download and it gives the glass
   something real to refract. Swap in a video by uncommenting the <video>
   in the .bg block on any page — the mesh stays as the fallback. */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #eef1f6; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 44% at 22% 28%, rgba(0,113,227,.34), transparent 62%),
    radial-gradient(34% 40% at 78% 22%, rgba(120,90,220,.24), transparent 62%),
    radial-gradient(42% 46% at 68% 76%, rgba(0,150,190,.24), transparent 64%),
    radial-gradient(36% 40% at 26% 82%, rgba(80,120,235,.20), transparent 62%);
  filter: blur(28px);
  animation: drift 34s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0)    scale(1);    }
  50%  { transform: translate3d(-3%,2%,0) scale(1.09); }
  100% { transform: translate3d(3%,-2%,0) scale(1.04); }
}
/* The veil holds contrast steady wherever the mesh happens to drift. Without
   it a bright patch under a panel drags body text below the threshold. */
.bg-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,247,248,.62), rgba(247,247,248,.80));
}

body {
  margin: 0; padding: 0 0 100px; min-height: 100vh;
  background: transparent; color: var(--ink);
  font-family: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 500; -webkit-font-smoothing: antialiased;
}
::selection { background: #111111; color: #fff; }
a { color: var(--accent); text-decoration: none; }

.wrap { max-width: 900px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-wide { max-width: 1000px; }

/* ---------- masthead ---------- */
.masthead { padding-top: 56px; padding-bottom: 8px; }
.brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px;
}
.wordmark { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }
.badge {
  font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--r-pill); padding: 6px 13px; box-shadow: var(--shadow-sm);
}
.badge.link { margin-left: auto; }
h1 { font-size: 58px; line-height: 0.99; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; max-width: 15ch; }
.lead { font-size: 21px; line-height: 1.4; font-weight: 500; margin: 0 0 40px; max-width: 46ch; }
.dim { color: var(--ink-2); }

/* ---------- panels ---------- */
.panel {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 28px 30px 30px; margin-bottom: 16px;
}
.panel-flat { box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.panel .sub { font-size: 15px; font-weight: 500; color: var(--ink-2); margin: 0 0 22px; line-height: 1.5; }

/* ---------- fields ---------- */
.field {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 18px;
  border-radius: var(--r-pill); background: var(--sunken); width: 100%;
  transition: box-shadow 200ms var(--ease);
}
.field:focus-within { box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--blue-tint); }
.field > svg { color: var(--ink-3); flex: none; }
.field .pre { font-family: var(--mono); font-size: 16px; color: var(--ink-3); flex: none; }
.field input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
}
.field input::placeholder { color: var(--ink-3); }
.field.mono input { font-family: var(--mono); font-size: 16px; }

textarea.area {
  width: 100%; min-height: 200px; resize: vertical;
  background: var(--sunken); border: 0; border-radius: var(--r-input);
  padding: 16px 18px; outline: none;
  font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink);
  transition: box-shadow 200ms var(--ease);
}
textarea.area:focus { box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--blue-tint); }
textarea.area::placeholder { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn-inset {
  flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: var(--blue); color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700;
  cursor: pointer; transition: background 160ms var(--ease);
}
.btn-inset:hover { background: var(--blue-press); }
.btn-inset:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-inset:disabled { background: var(--taupe); color: var(--taupe-ink); cursor: not-allowed; }
.btn-inset.loading { color: transparent; position: relative; background: var(--blue); }
.btn-inset.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
.btn-block {
  width: 100%; height: 52px; border: 0; border-radius: var(--r-pill);
  background: var(--blue); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 160ms var(--ease);
}
.btn-block:hover { background: var(--blue-press); }
.btn-block:disabled { background: var(--taupe); color: var(--taupe-ink); cursor: not-allowed; }

.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-sm); transition: transform 160ms var(--ease);
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- controls ---------- */
.rows { display: grid; gap: 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.row label { font-size: 16px; font-weight: 600; }
.row .hint { font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-top: 2px; max-width: 46ch; line-height: 1.45; }

.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--taupe); border-radius: var(--r-pill); transition: background 200ms var(--ease); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 220ms var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.mini-seg { display: inline-flex; background: var(--sunken); border-radius: var(--r-pill); padding: 3px; gap: 3px; flex: none; }
.mini-seg button {
  border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--ink-2); padding: 7px 15px; border-radius: var(--r-pill); cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.mini-seg button[aria-pressed="true"] { background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 0 0 1px rgba(17,17,17,.07); }

/* ---------- output ---------- */
.out { background: var(--sunken); border-radius: var(--r-input); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.mono-out {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 15px; line-height: 1.7;
  word-break: break-all; margin: 0; -webkit-user-select: all; user-select: all;
}
.mono-out .k { color: var(--ink-3); }

/* ---------- notices ---------- */
.notices { display: grid; gap: 10px; margin-top: 18px; }
.notice {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start;
  border-radius: var(--r-input); padding: 15px 17px; font-size: 15px; line-height: 1.5; font-weight: 500;
}
.notice .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.notice.warn { background: var(--amber-tint); color: #7d4a00; }
.notice.warn .ic { background: rgba(169,101,0,.16); color: var(--amber); }
.notice.bad  { background: var(--coral-tint); color: #8f2c20; }
.notice.bad .ic { background: rgba(200,64,47,.16); color: var(--coral); }
.notice.good { background: var(--green-tint); color: #0c6141; }
.notice.good .ic { background: rgba(17,135,90,.16); color: var(--green); }
.notice.info { background: var(--sunken); color: var(--ink-2); }
.notice.info .ic { background: rgba(17,17,17,.06); color: var(--ink-2); }
.notice code { font-family: var(--mono); font-size: 13.5px; background: rgba(17,17,17,.06); border-radius: 5px; padding: 1px 5px; }

/* ---------- check rows ---------- */
.checks { display: flex; flex-direction: column; gap: 12px; }
.check {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  padding: 22px 26px; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start;
  animation: rise 460ms var(--ease) both;
}
.disc {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; line-height: 1;
}
.disc.pending { background: var(--sunken); }
.disc.pending::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid var(--ink-3); border-top-color: transparent; animation: spin 750ms linear infinite;
}
.disc.pass { background: var(--green-tint);  color: var(--green); }
.disc.warn { background: var(--amber-tint);  color: var(--amber); }
.disc.fail { background: var(--coral-tint);  color: var(--coral); }
.disc.info { background: var(--neutral-tint);color: var(--neutral); }
.disc.skip { background: var(--sunken); color: var(--ink-3); }

.check .body { min-width: 0; }
.check .title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.check .state { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 10px; }
.state.pass { color: var(--green); } .state.warn { color: var(--amber); }
.state.fail { color: var(--coral); } .state.info { color: var(--ink-3); } .state.skip { color: var(--ink-3); }
.check .note { font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink-2); margin: 5px 0 0; }
.check .record {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--ink);
  background: rgba(17,17,17,.055); border-radius: var(--r-input); padding: 14px 16px; margin-top: 14px;
  white-space: pre-wrap; word-break: break-all; font-weight: 400;
}
.check .record .k { color: var(--ink-2); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-top: 56px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.section .blurb { font-size: 17px; margin: 0 0 24px; max-width: 52ch; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-foot p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.site-foot p i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.site-foot img { display: block; height: auto; max-width: 200px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--r-pill); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease), transform 240ms var(--ease); z-index: 30;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.notice-line { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--coral); display: none; }
.notice-line.show { display: block; }

/* Without backdrop-filter, translucent panels over a moving background are
   unreadable — fall back to near-solid. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .check, .badge, .icon-btn { background: rgba(255,255,255,.95); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::after { transition: none !important; animation: none !important; }
  .bg-mesh { transform: none; }
  .bg-video { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .masthead { padding-top: 40px; }
  h1 { font-size: 46px; }
  .lead { font-size: 19px; }
  .badge.link { margin-left: 0; }
  .section h2 { font-size: 28px; }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 34px; max-width: none; }
  .lead { font-size: 17px; max-width: none; }
  .panel { padding: 20px 18px 22px; border-radius: 18px; }
  .panel h2 { font-size: 18px; }
  .panel .sub { font-size: 14.5px; margin-bottom: 18px; }
  .section { padding-top: 40px; }
  .section h2 { font-size: 25px; }
  .section .blurb { font-size: 15.5px; }

  .row { flex-direction: column; align-items: stretch; gap: 12px; }
  .row .hint { max-width: none; }
  .row:has(.switch) { flex-direction: row; align-items: center; }
  .row:has(.switch) > div { flex: 1; min-width: 0; }

  .mini-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; }
  .mini-seg button { padding: 13px 10px; font-size: 14px; }

  .field { height: 54px; padding: 0 8px 0 16px; }
  .out { flex-direction: column; gap: 12px; padding: 16px; }
  .mono-out { font-size: 14px; }
  .icon-btn { align-self: flex-end; width: 48px; height: 48px; }

  .notice { grid-template-columns: 26px 1fr; gap: 12px; padding: 13px 14px; font-size: 14.5px; }
  .notice .ic { width: 26px; height: 26px; font-size: 13px; }

  .check { grid-template-columns: 36px 1fr; padding: 18px 16px; gap: 14px; border-radius: 18px; }
  .disc { width: 36px; height: 36px; font-size: 15px; }
  .check .title { font-size: 16px; }
  .check .state { display: block; margin-left: 0; margin-top: 3px; }
  .check .note { font-size: 15px; }
  .check .record { font-size: 12.5px; padding: 12px; }

  .site-foot { justify-content: center; text-align: center; margin-top: 40px; }
}
@media (max-width: 380px) {
  h1 { font-size: 30px; }
  .mini-seg button { font-size: 13px; padding: 13px 6px; }
}

/* ============================================================
   PRINT — the "download report" path
   Browsers have a good PDF engine already, so the report is produced by
   print-to-PDF rather than a JS library. That keeps the text selectable and
   searchable in the PDF, and adds nothing to page weight.
   ============================================================ */
@media print {
  /* Backgrounds and glass cost ink and look muddy on paper. */
  .bg, .bg-mesh, .bg-veil, .bg-video { display: none !important; }
  * {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body {
    background: #fff !important; color: #000;
    padding: 0 !important; font-size: 11pt;
  }
  .wrap { max-width: none; padding: 0 !important; }

  /* Chrome the report doesn't need */
  .masthead, .brandrow, h1, .lead, form, .site-foot, .toast,
  .btn-inset, .btn-block, .icon-btn, .sticky-record, .notice-line,
  .try, .kicker, .refresh-mini, .bento, .note, .out-actions,
  .seg, .mini-seg, .switch, input, textarea, .stage .use,
  .report-bar, .btn-ghost {
    display: none !important;
  }

  /* Panels and cards become plain bordered blocks */
  .panel, .check, .verdict-card, .alt, .res, .hop, .stage, .policy, .auth, .note-card {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px !important;
    padding: 10pt 12pt !important;
    margin-bottom: 6pt !important;
    break-inside: avoid; page-break-inside: avoid;
  }
  .checks { gap: 6pt !important; }

  /* Records must print in full — truncation makes the report useless */
  .check .record, .mono-out, .demo, .record {
    background: #f4f4f4 !important;
    border: 1px solid #e0e0e0 !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    font-size: 8.5pt !important;
    overflow: visible !important;
    max-height: none !important;
  }

  /* Status still needs to read once it's flattened to paper */
  .disc { border: 1px solid #999 !important; }
  .disc.pass { background: #e4f3ec !important; color: #0a6b45 !important; }
  .disc.warn { background: #f8eedc !important; color: #8a5300 !important; }
  .disc.fail { background: #fbeae6 !important; color: #a5331f !important; }
  .disc.info, .disc.skip { background: #eee !important; color: #555 !important; }
  .state.pass { color: #0a6b45 !important; }
  .state.warn { color: #8a5300 !important; }
  .state.fail { color: #a5331f !important; }
  .notice { border: 1px solid #d4d4d4 !important; break-inside: avoid; }

  .section { padding-top: 14pt !important; break-inside: auto; }
  .section h2 { font-size: 14pt !important; margin-bottom: 2pt !important; }
  .section .blurb, .panel .sub { font-size: 9.5pt !important; color: #555 !important; }
  .eyebrow { font-size: 8pt !important; color: #666 !important; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }

  a { color: #000 !important; text-decoration: none; }

  /* Report header and footer, hidden on screen */
  .print-only { display: block !important; }
  .print-head {
    display: flex !important; align-items: flex-start; justify-content: space-between;
    gap: 20pt; border-bottom: 2px solid #111; padding-bottom: 10pt; margin-bottom: 14pt;
  }
  .print-head .who { font-size: 17pt; font-weight: 800; letter-spacing: -.02em; }
  .print-head .what { font-size: 10pt; color: #555; margin-top: 2pt; }
  .print-head .meta { text-align: right; font-size: 9pt; color: #555; line-height: 1.5; }
  .print-head .meta b { display: block; font-size: 12pt; color: #111; font-family: var(--mono); }
  .print-foot {
    margin-top: 16pt; padding-top: 8pt; border-top: 1px solid #d4d4d4;
    font-size: 8.5pt; color: #666; display: flex; justify-content: space-between; gap: 20pt;
  }

  @page { margin: 14mm 12mm; }
}

/* Print-only blocks stay hidden on screen */
.print-only { display: none; }

/* Download button, shown once there's a result worth exporting */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  color: var(--ink); font-family: inherit; font-size: 14.5px; font-weight: 700;
  cursor: pointer; transition: background 180ms var(--ease);
}
.btn-ghost:hover { background: var(--glass-hover); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-ghost svg { flex: none; }
.report-bar {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 28px; flex-wrap: wrap;
}
/* A class rule setting display beats the hidden attribute, so state it
   explicitly — otherwise the button shows before there's a result. */
.report-bar[hidden] { display: none; }
@media (max-width: 620px) {
  .report-bar { justify-content: stretch; }
  .btn-ghost { flex: 1; justify-content: center; }
}

/* ============================================================
   LOADING
   Two patterns, because the tools behave differently. The domain checker
   streams results in as each check resolves, so a determinate bar showing
   "9 of 18" is meaningful. The others fire everything at once and render in
   one go, so a skeleton showing the shape of what's coming is better than a
   spinner over an empty page.
   ============================================================ */

/* ---------- top progress bar ---------- */
#vprogress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: transparent; pointer-events: none;
  opacity: 0; transition: opacity 260ms var(--ease);
}
#vprogress.on { opacity: 1; }
#vprogress i {
  display: block; height: 100%; width: 0;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0,113,227,.55);
  transition: width 320ms var(--ease);
}
/* Unknown total — sweep rather than pretend to know a percentage. */
#vprogress.indeterminate i {
  width: 34%; animation: vsweep 1150ms var(--ease) infinite;
}
@keyframes vsweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(400%); }
}

/* Count beside the bar, so the number is available without hunting for it */
#vprogress b {
  position: absolute; top: 9px; right: 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-2); background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--r-pill); padding: 4px 11px;
  box-shadow: var(--shadow-sm); opacity: 0;
  transition: opacity 200ms var(--ease);
}
#vprogress.counting b { opacity: 1; }

/* ---------- skeletons ---------- */
.skel { background: rgba(17,17,17,.07); border-radius: 7px; position: relative; overflow: hidden; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: translateX(-100%);
  animation: vshimmer 1250ms var(--ease) infinite;
}
.skel-line { height: 11px; margin-bottom: 9px; }
.skel-line:last-child { margin-bottom: 0; }
.skel-w80 { width: 80%; } .skel-w60 { width: 60%; }
.skel-w45 { width: 45%; } .skel-w30 { width: 30%; }
.skel-title { height: 15px; width: 38%; margin-bottom: 13px; }
.skel-block { height: 54px; border-radius: 10px; margin-top: 13px; }
.skel-disc { width: 40px; height: 40px; border-radius: 50%; }

@keyframes vshimmer { to { transform: translateX(100%); } }

.skeleton-card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  padding: 22px 26px; display: grid; grid-template-columns: 40px 1fr; gap: 18px;
  align-items: start; margin-bottom: 12px;
}
@media (max-width: 620px) {
  .skeleton-card { grid-template-columns: 36px 1fr; padding: 18px 16px; gap: 14px; }
  .skel-disc { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; opacity: 0; }
  #vprogress.indeterminate i { animation: none; width: 100%; }
}
