/*
  Nidavellir status/error pages — hand-written, framework-free styling for the
  public Shrno tracker pages (expired, not-live, 404, error, password gate).
  Tokens mirror the identity-provider / console-app Nidavellir design system so
  the light & dark themes stay consistent across products.
*/

:root {
  --color-primary: #009fa4;
  --color-primary-dark: #006f6b;
  --color-primary-light: #69c9cf;
  --color-ink: #160647;
  --color-body: #434343;

  --color-surface: #ffffff;
  --color-surface-2: #f7f8fa;
  --color-border-soft: #ececf0;
  --color-muted: #6b7280;
  --color-chip: #f2f3f5;
  --color-chip-text: #4b5563;

  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;

  --color-accent: #7c5cff;
  --color-warning: #f59e0b;

  --page-bg: #f4f6f8;
  --shadow-card: 0 30px 70px rgba(20, 27, 45, 0.12);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
}

[data-theme="dark"] {
  --color-ink: #eef1f6;
  --color-body: #c3ccd9;

  --color-surface: #11151d;
  --color-surface-2: #171c26;
  --color-border-soft: #262d3a;
  --color-muted: #98a2b3;
  --color-chip: #1c2330;
  --color-chip-text: #c3ccd9;

  --color-danger-bg: rgba(220, 38, 38, 0.12);
  --color-success-bg: rgba(22, 163, 74, 0.12);
  --color-accent: #9d85ff;
  --color-warning: #fbbf24;

  --page-bg: #0b0e14;
  --shadow-card: 0 30px 70px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--color-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* ------------------------------------------------------------- layout */

.status-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 2rem;
  position: relative;
}

.status-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.status-bg .glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.4;
}

.status-bg .glow-1 {
  width: 460px; height: 460px;
  top: -160px; right: -120px;
  background: var(--color-primary-light);
}

.status-bg .glow-2 {
  width: 380px; height: 380px;
  bottom: -160px; left: -120px;
  background: var(--color-accent);
  opacity: 0.25;
}

[data-theme="dark"] .status-bg .glow { opacity: 0.22; }

.status-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-card);
  padding: 3rem 2.75rem;
  text-align: center;
  animation: card-in 0.4s ease;
}

.status-card.wide { max-width: 620px; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.status-logo svg { height: 34px; width: auto; display: block; }
.status-logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-ink);
}

.status-illustration {
  max-width: 260px;
  width: 70%;
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
}

.status-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-chip);
}

.status-icon svg { width: 38px; height: 38px; }
.status-icon.is-warning { background: var(--color-warning); background: color-mix(in srgb, var(--color-warning) 16%, transparent); color: var(--color-warning); }
.status-icon.is-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.status-icon.is-primary { background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.status-icon.is-muted { color: var(--color-muted); }

.status-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 0.85rem;
}

.status-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -1px;
}

.status-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0 auto 2rem;
  max-width: 42ch;
}

.status-text strong { color: var(--color-body); font-weight: 700; }

/* -------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-body);
  border-color: var(--color-border-soft);
}
.btn-ghost:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.btn svg { width: 18px; height: 18px; }

.btn-block { width: 100%; }

/* ---------------------------------------------------------------- form */

.form-field { text-align: left; margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.45rem;
}

.form-input-wrap { position: relative; }

.form-control {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 0.6rem;
  padding: 0.8rem 2.6rem 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder { color: var(--color-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.form-control.is-invalid { border-color: var(--color-danger); }

.form-icon {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  color: var(--color-muted);
  display: flex;
}

.form-icon svg { width: 18px; height: 18px; }

.form-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-danger);
}

/* -------------------------------------------------------------- footer */

.status-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem;
}

.status-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.status-footer-brand {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.status-footer-brand:hover { opacity: 1; }
.status-footer-brand img { height: 26px; width: auto; }

.status-footer-brand .logo-light { display: block; }
.status-footer-brand .logo-dark { display: none; }
[data-theme="dark"] .status-footer-brand .logo-light { display: none; }
[data-theme="dark"] .status-footer-brand .logo-dark { display: block; }

.status-footer-copy {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.status-footer a { color: var(--color-primary); font-weight: 600; }
.status-footer-copy a { color: var(--color-muted); }
.status-footer-copy a:hover { color: var(--color-primary); }

/* --------------------------------------------------------- theme toggle */

.theme-toggle-floating {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 30;
}

.theme-toggle {
  position: relative;
  height: 2rem;
  width: 3.9rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-chip);
  cursor: pointer;
  padding: 0;
}

.theme-toggle-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
}

.theme-toggle-hint svg { width: 14px; height: 14px; }

.theme-toggle-hint-sun { left: 9px; color: #f59e0b; opacity: 0; }
.theme-toggle-hint-moon { right: 9px; color: #a5b4fc; opacity: 0.4; }
[data-theme="dark"] .theme-toggle-hint-sun { opacity: 0.4; }
[data-theme="dark"] .theme-toggle-hint-moon { opacity: 0; }

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.55rem;
  width: 1.55rem;
  border-radius: 9999px;
  background: var(--color-surface);
  box-shadow: 0 2px 6px rgba(20, 27, 45, 0.25);
  transition: left 0.25s cubic-bezier(0.4, 1.4, 0.5, 1);
}

[data-theme="dark"] .theme-toggle-knob { left: calc(100% - 1.85rem); }

.theme-toggle-knob svg { width: 14px; height: 14px; }
.theme-toggle-knob .icon-sun { display: block; color: #f59e0b; }
.theme-toggle-knob .icon-moon { display: none; color: #6366f1; }
[data-theme="dark"] .theme-toggle-knob .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle-knob .icon-moon { display: block; }

/* ------------------------------------------------------- 404 / errors */

.err404 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  animation: card-in 0.4s ease;
}
.err404 .status-logo { display: flex; justify-content: center; margin-bottom: 2.5rem; }

.err404-graphic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.err404-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6.5rem, 22vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(150deg, var(--color-primary-dark), var(--color-primary) 55%, var(--color-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.err404-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  color: #fff;
  animation: err404-bounce 3s ease-in-out infinite;
}
.err404-badge svg { width: 46%; height: 46%; }
.err404-badge-a {
  top: -0.5rem;
  right: -1.5rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(150deg, #8b5cf6, #7c3aed);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35);
}
.err404-badge-b {
  bottom: 0.5rem;
  left: -1.75rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(150deg, var(--color-primary-light), var(--color-primary));
  box-shadow: 0 14px 30px rgba(0, 159, 164, 0.35);
  animation-duration: 4s;
  animation-delay: 1s;
}

@keyframes err404-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.err404-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 0.85rem;
}
.err404-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 auto 2rem;
  max-width: 30rem;
}

.err404-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.err404-destinations {
  width: 100%;
  border-top: 1px solid var(--color-border-soft);
  padding-top: 2.25rem;
  text-align: left;
}
.err404-destinations-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}
.err404-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.err404-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.err404-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 27, 45, 0.1);
  border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
}
[data-theme="dark"] .err404-tile:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.err404-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.err404-tile:hover .err404-tile-icon { transform: scale(1.08); }
.err404-tile-icon svg { width: 20px; height: 20px; }
.err404-tile-text { display: flex; flex-direction: column; gap: 0.15rem; }
.err404-tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-ink);
}
.err404-tile-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------- index page */

.index-hero {
  max-width: 640px;
  box-shadow: 0 18px 44px rgba(20, 27, 45, 0.07);
}
[data-theme="dark"] .index-hero { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }

.index-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.index-lockup .status-logo { margin-bottom: 0; }

.index-poweredby {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.index-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 55%, transparent);
  animation: index-pulse 2s ease-out infinite;
}

@keyframes index-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.index-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin: 0 0 1rem;
}
.index-headline-grad {
  background: linear-gradient(100deg, var(--color-primary-dark), var(--color-primary) 45%, var(--color-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.index-host-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 2rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--color-chip);
  color: var(--color-chip-text);
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
}
.index-host-chip svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; }

.index-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.index-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  border-radius: 0.85rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.index-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.index-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}
.index-feature-icon svg { width: 22px; height: 22px; }
.index-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-ink);
}
.index-feature-desc {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--color-muted);
}

.index-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.index-actions .btn svg { width: 18px; height: 18px; }

.index-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-soft);
}
.index-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  color: var(--color-muted);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.index-socials a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.index-socials svg { width: 18px; height: 18px; }

/* --------------------------------------------------------- password page */

.pwd-card { max-width: 500px; }
.pwd-card .index-lockup { margin-bottom: 2rem; }

.pwd-graphic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}
.pwd-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.6rem;
  color: #fff;
  background: linear-gradient(150deg, var(--color-primary-dark), var(--color-primary) 55%, var(--color-primary-light));
  box-shadow: 0 18px 38px rgba(0, 159, 164, 0.35);
}
.pwd-lock svg { width: 44%; height: 44%; }

.pwd-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  color: #fff;
  animation: err404-bounce 3.4s ease-in-out infinite;
}
.pwd-badge svg { width: 50%; height: 50%; }
.pwd-badge-a {
  top: -0.85rem;
  right: -1.15rem;
  width: 2.6rem;
  height: 2.6rem;
  background: linear-gradient(150deg, #8b5cf6, #7c3aed);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
}
.pwd-badge-b {
  bottom: -0.65rem;
  left: -1.1rem;
  width: 2.3rem;
  height: 2.3rem;
  background: linear-gradient(150deg, var(--color-success), #12854f);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
  animation-duration: 4.2s;
  animation-delay: 0.8s;
}

.pwd-form {
  text-align: left;
  max-width: 22rem;
  margin: 0 auto;
}
.pwd-form .btn { margin-top: 0.25rem; }

.pwd-assurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-soft);
}
.pwd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-chip-text);
}
.pwd-chip svg { width: 14px; height: 14px; color: var(--color-primary); }

/* --------------------------------------------------------- not-live page */

.nlive-when {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 1.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
}
.nlive-when-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.nlive-when-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-ink);
}

.nlive-cta { max-width: 22rem; margin: 0 auto; }

/* --------------------------------------------------------- expired page */

/* Themed variant of the graphic lockup */
.exp-badge-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 55%, transparent);
  animation: exp-pulse 2s ease-out infinite;
}
@keyframes exp-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--color-primary) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 0%, transparent); }
}

.exp-lock {
  color: #fff;
  background: linear-gradient(150deg, var(--color-primary-dark), var(--color-primary) 55%, var(--color-primary-light));
  box-shadow: 0 18px 38px rgba(0, 159, 164, 0.35);
}
.exp-badge-a {
  background: linear-gradient(150deg, #f43f5e, #e11d48);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.35);
}
.exp-badge-b {
  background: linear-gradient(150deg, #8b5cf6, #7c3aed);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
}
.exp-chip svg { color: var(--color-primary); }

/* Countdown redirect block */
.exp-redirect {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 23rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface-2));
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  text-align: left;
}

/* Circular countdown ring */
.exp-ring {
  position: relative;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
}
.exp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.exp-ring-track { fill: none; stroke: color-mix(in srgb, var(--color-primary) 16%, transparent); stroke-width: 4; }
.exp-ring-progress {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.exp-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
}
.exp-ring-num svg { width: 1.1rem; height: 1.1rem; }

.exp-redirect-body { min-width: 0; }
.exp-redirect-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}
.exp-redirect-target {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exp-redirect.is-paused {
  border-color: var(--color-border-soft);
  background: var(--color-surface-2);
}
.exp-redirect.is-paused .exp-ring-progress,
.exp-redirect.is-paused .exp-ring-num { stroke: var(--color-muted); color: var(--color-muted); }

.exp-redirect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.exp-redirect-actions .btn { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.exp-cancel {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 0.55rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exp-cancel:hover { color: var(--color-ink); }

@media (max-width: 480px) {
  .status-card { padding: 2.25rem 1.5rem; }
  .status-title { font-size: 1.4rem; }
  .status-code { font-size: 2.75rem; }
  .index-headline { font-size: 2rem; }
  .err404-grid { grid-template-columns: 1fr; }
  .err404-actions .btn { flex: 1 1 100%; }
  .err404-badge-a { right: -0.5rem; width: 3.25rem; height: 3.25rem; }
  .err404-badge-b { left: -0.75rem; width: 2.9rem; height: 2.9rem; }
  .index-features { grid-template-columns: 1fr; gap: 0.6rem; }
  .index-feature {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
  }
  .index-feature-icon { margin-bottom: 0; }
  .index-feature-title { flex: 1 1 auto; }
  .index-feature-desc { flex: 1 0 100%; }
}
