/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 .badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1;
}
.badge-ready { background: #22c55e; color: #fff; }
.badge-generating { background: #0ea5e9; color: #fff; }
.badge-queued { background: #a78bfa; color: #fff; }
.badge-failed { background: #ef4444; color: #fff; }
.badge-muted { background: #94a3b8; color: #fff; }

/* optional: tighten story cards */
.story-card header { display: flex; align-items: center; gap: .75rem; }
.story-thumb { width: 64px; height: 64px; }
.meta { display: grid; gap: .25rem; }
.meta small { opacity: .8; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* === Robust responsive grid === */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* === Neutralize Pico's <article> extras and make proper cards === */
.story-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--muted-border-color, #e5e7eb);
  border-radius: 12px;
  background: var(--surface);      /* kill the big gradient */
  box-shadow: none;                /* kill the heavy shadow */
}

/* Pico adds big block margins to header/footer; reset them */
.story-card header,
.story-card footer {
  margin: 0;
  padding: 0;
}

/* Top area */
.story-card header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Thumbnail */
.story-thumb,
.story-thumb svg {
  width: 48px;
  height: 48px;
}
.story-thumb { flex: 0 0 48px; }
figure { margin: 0; }

/* Middle area stretches to fill; keeps footer at bottom */
.meta {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
  flex: 1;
}

/* Footer actions */
.actions {
  margin-top: auto;        /* pushes footer to bottom of card */
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

button.danger, a[role="button"].danger {
  background: #ef4444;
  color: #fff;
}
button.danger:hover, a[role="button"].danger:hover {
  background: #dc2626;
}

/* Compact vertical rhythm just for pages with body.compact */
body.compact {
  /* Pico spacing variables (v1) */
  --spacing: 0.75rem;                    /* default ~1rem */
  --block-spacing: 1rem;                 /* space around sections/cards */
  --typography-spacing-vertical: 0.75rem;/* paragraph/heading gaps */
}

/* Header/nav tighter */
body.compact header.container {
  padding-block: 0.75rem; /* reduce top/bottom padding */
}

/* Main spacing tighter */
body.compact main.container {
  margin-top: 1rem;       /* was ~2rem in our previous CSS */
}

/* Headings a bit tighter */
body.compact h1 {
  margin: 0 0 0.5rem 0;
}

/* Optional: make the intro paragraph under H1 tighter */
body.compact header + p,
body.compact .page-lead {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Grid that actually wraps */
.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* Neutral, predictable card */
.kid-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--muted-border-color, #e5e7eb);
  border-radius: 12px;
  background: var(--surface); /* avoid Pico's article gradient */
  box-shadow: none;
}

/* Tighten inner spacing */
.kid-card header,
.kid-card footer { margin: 0; padding: 0; }

.kid-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.kid-card .meta { margin-top: .5rem; display: grid; gap: .25rem; }
.kid-card .actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
}
.badge-child  { background: #6b5bff; }
.badge-friend { background: #0ea5e9; }
.badge-muted  { background: #9ca3af; }

.form-card {
  max-width: 720px;
  margin: 1.5rem auto 3rem;
  background: var(--pico-card-background-color, #ffffff);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 2rem;
  border: 1px solid var(--muted-border-color, #e5e7eb);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}


.form-card fieldset { margin-bottom: 1rem; }
.form-card .actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}


/* Grid of theme cards */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

/* Each theme card */
.theme-card {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.theme-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Keep text color the same but highlight title */
.theme-card:has(input[type="radio"]:checked) .mode-title {
  color: var(--primary);
  font-weight: 700;
}

/* Hide the default radio */
.theme-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* When checked, highlight */
.theme-card input[type="radio"]:checked + img {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}
.theme-card input[type="radio"]:checked ~ .theme-name {
  color: var(--primary);
  font-weight: 700;
}

/* Image */
.theme-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-bottom: 1px solid var(--muted-border-color);
}

/* Name below */
.theme-name {
  padding: 0.5rem;
  font-size: 0.9rem;
}

/* --- Reading Mode Switch --- */
.mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--muted-border-color, #ddd);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  width: 240px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.mode-switch:hover {
  box-shadow: 0 0 0 2px var(--primary);
}

.mode-label {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

input[type="radio"].mode-radio {
  display: none;
}

input[type="radio"].mode-radio:checked + label .mode-label.active {
  opacity: 1;
  color: var(--primary);
}


/* --- Friend Selection Grid --- */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

/* Card container */
.friend-card {
  position: relative;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

/* Image */
.friend-card img {
  width: 100%;
  aspect-ratio: 1 / 1;        /* keeps square shape */
  object-fit: contain;        /* shows entire image */
  background: #f8fafc;        /* light neutral background */
  padding: 0.5rem;            /* some breathing space */
  border-bottom: 1px solid var(--muted-border-color);
  border-radius: 8px 8px 0 0; /* optional rounded top */
}

/* Name */
.friend-name {
  padding: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Hover and checked styles */
.friend-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Hide checkbox */
.friend-card input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Checked state
.friend-card input[type="checkbox"]:checked + img {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.friend-card input[type="checkbox"]:checked ~ .friend-name {
  color: var(--primary);
  font-weight: 700;
} */

.friend-card:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Keep text color the same but highlight title */
.friend-card:has(input[type="checkbox"]:checked) .friend-name {
  color: var(--primary);
  font-weight: 700;
}

/* --- Kid selection grid --- */
.kid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

/* Reuse same visual pattern as themes/friends */
.kid-card {
  position: relative;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.kid-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.kid-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-bottom: 1px solid var(--muted-border-color);
}

.kid-name {
  padding: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Hide radio */
.kid-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Selected look */
.kid-card input[type="radio"]:checked + img {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}
.kid-card input[type="radio"]:checked ~ .kid-name {
  color: var(--primary);
  font-weight: 700;
}

/* --- Reading Mode Card Grid --- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Each mode card */
.mode-card {
  position: relative;
  border: 2px solid var(--muted-border-color, #d0d7de);
  border-radius: 12px;
  background: var(--surface);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Hover state */
.mode-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Hide radio button */
.mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  appearance: none; /* hide native input UI completely */
}


/* Icon, title, description */
.mode-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.mode-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mode-desc {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.2;
}

/* --- Selected (Checked) Look --- */
.mode-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Keep text color the same but highlight title */
.mode-card:has(input[type="radio"]:checked) .mode-title {
  color: var(--primary);
  font-weight: 700;
}

/* Optional: stronger color for emoji if you like */
.mode-card:has(input[type="radio"]:checked) .mode-icon {
  filter: brightness(1.1);
}

/* Header: title left, compact toolbar right */
.reader-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

/* Inline toolbar (no full-width buttons) */
.reader-controls {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.reader-controls button {
  width: auto;            /* override Pico’s 100% width */
}

/* Smaller buttons so they don’t dominate */
.btn-compact {
  padding: .25rem .5rem;
  font-size: .9rem;
  line-height: 1.1;
  border-radius: 8px;
}

/* Optional: keep toolbar visible when scrolling long stories (desktop only) */
@media (min-width: 900px) {
  .reader-header {
    position: sticky;
    top: .5rem;
    z-index: 10;
    backdrop-filter: saturate(100%) blur(0px);
  }
}

/* Reader base */
.reader { --reader-max: 68ch; }
.reader .story {
  max-width: var(--reader-max);
  margin: 0 auto;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* Make all descendants inherit the story's size */
.reader .story * {
  font-size: inherit !important;
}

/* Paragraph rhythm */
.reader .story p { margin: 0 0 1em 0; }
.reader .story p + p { text-indent: 1.2em; }

.nav-toggle { width: auto; padding: .25rem .5rem; border-radius: 8px; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: 0.95rem;
}

.page-header {
  max-width: 720px;
  margin: 2rem auto 1rem;
  text-align: left;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: .25rem;
}

.page-subtitle {
  font-size: .95rem;
  color: var(--muted-text-color, #6b7280);
}

.alert-errors {
  max-width: 720px;
  margin: 1rem auto;
  border: 1px solid var(--muted-border-color, #e5e7eb);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fff7f7;
}

.form-card {
  max-width: 720px;
  margin: 1.5rem auto 3rem;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.section {
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.section-hint {
  font-size: .9rem;
  color: var(--muted-text-color, #6b7280);
  margin-bottom: .75rem;
  text-align: center;
}

.subsection {
  margin-top: 1rem;
}

.subsection-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

/* child banner when only one child */
.child-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #fef3c7, #fffbeb);
  margin-bottom: 1rem;
}

.child-banner__emoji {
  font-size: 1.8rem;
}

.child-banner__title {
  margin: 0;
  font-size: 1.4rem;
}

.child-banner__hint {
  margin: .15rem 0 0;
  font-size: .6rem;
  color: var(--muted-text-color, #6b7280);
}

.link-inline {
  color: #0b7cff;
  text-decoration: none;
}
.link-inline:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0b7cff, #22c1c3);
  color: #ffffff;
  cursor: pointer;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-alert {
  display: inline-block;
  width: auto;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f87171, #ef4444); /* red gradient */
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, transform 0.1s;
}

.btn-alert:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-alert:active {
  filter: brightness(0.95);
  transform: translateY(0);
}

/* dark mode variant */
html[data-theme="dark"] .btn-alert {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
}

















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

.section {
  margin-bottom: 2rem;
  border: none;
  padding: 0;
  position: relative;
}

/* Centered titles with decorative line */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
  display: inline-block;
  background: #fff;
  padding: 0 .75rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.section-title span {
  position: relative;
  z-index: 2;
}

/* Centered section titles when used with <hr> instead of ::before */
.section-title-centered {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 auto 1rem;
  color: #444;
}


.friends-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

/* pill-style "add friend" button */
.chip-add-friend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px dashed var(--muted-border-color, #e5e7eb);
  background: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #0b7cff;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.chip-add-friend__icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #0b7cff;
  color: #fff;
  font-size: 0.9rem;
}

.chip-add-friend:hover {
  background: #eff6ff;
  border-color: #0b7cff;
  transform: translateY(-1px);
}

/* Advanced options wrapper */
.advanced-section {
  margin-top: 1.5rem;
}

/* Hide the default triangle marker */
.advanced-summary::-webkit-details-marker {
  display: none;
}

/* Summary row looks like a pill/button */
.advanced-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--muted-border-color, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.advanced-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.advanced-hint {
  font-size: 0.85rem;
  color: var(--muted-text-color, #6b7280);
}

.advanced-body {
  margin-top: 1rem;
}

/* Extras layout */
.extras-grid {
  display: grid;
  gap: 0.75rem;
}

.extra-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.extra-option input[type="checkbox"] {
  margin-top: 0.2rem;
}

.extra-text strong {
  display: block;
  font-size: 0.9rem;
}

.extra-text small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-text-color, #6b7280);
}

.mode-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.mode-card.disabled:hover {
  transform: none;
  border-color: var(--muted-border-color, #d0d7de);
}

.mode-card.disabled input[type="radio"] {
  pointer-events: none;
}

.mode-badge {
  background: #e5e7eb;
  color: #374151;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Top Navigation Bar --- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--muted-border-color, #e5e7eb);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary, #0b7cff);
  text-decoration: none;
}

.links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  text-decoration: none;
  color: var(--pico-color);   /* <-- use Pico's adaptive text color */
  font-weight: 500;
}

.links a:hover {
  color: var(--primary, #0b7cff);
}

/* Make "New Story" button pop */
.nav-btn {
  padding: .45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #0b7cff, #22c1c3);
  color: #fff !important;
  text-decoration: none;
  transition: filter 0.2s;
}

.nav-btn:hover {
  filter: brightness(1.05);
}

/* Theme toggle */
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
  transition: transform 0.2s;
}

.theme-toggle-btn:hover {
  transform: rotate(-10deg);
}

/* --- Mobile nav layout --- */
@media (max-width: 640px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-inline: 1rem; /* keep some horizontal padding */
  }

  .brand {
    font-size: 1.1rem;
  }

  .links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .links li {
    display: flex;
    align-items: center;
  }

  .nav-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
  }

  /* theme toggle: icon only on mobile */
  .theme-toggle-label {
    display: none;
  }

  .theme-toggle-btn {
    padding: 0.3rem;
    border-radius: 999px;
  }
}

/* 🌙 Dark mode tweaks */
html[data-theme="dark"] body {
  background-color: #020617;
}

/* main card */
html[data-theme="dark"] .form-card {
  background: #020617;
  border-color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* section title line on dark background */
html[data-theme="dark"] .section-title {
  color: #e5e7eb;
  background: #020617;
}

/* child banner */
html[data-theme="dark"] .child-banner {
  background: linear-gradient(90deg, #1f2937, #0f172a);
}

/* “add friend” pill */
html[data-theme="dark"] .chip-add-friend {
  background: #0b1120;
  border-color: #1f2937;
  color: #93c5fd;
}
html[data-theme="dark"] .chip-add-friend__icon {
  background: #38bdf8;
}

/* advanced options pill */
html[data-theme="dark"] .advanced-summary {
  background: #020617;
  border-color: #1f2937;
}

.length-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.25rem;
}

.length-option {
  position: relative;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

/* hide radios */
.length-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* label & desc */
.length-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.length-desc {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

/* selected state */
.length-option:has(input[type="radio"]:checked) {
  background: #ffffff;
  color: #0b7cff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.length-option:has(input[type="radio"]:checked) .length-desc {
  color: #0b7cff;
}

/* dark mode */
html[data-theme="dark"] .length-toggle {
  background: #020617;
}

html[data-theme="dark"] .length-option {
  color: #e5e7eb;
}

html[data-theme="dark"] .length-option:has(input[type="radio"]:checked) {
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .length-option:has(input[type="radio"]:checked) .length-desc {
  color: #93c5fd;
}
.notice-card {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--muted-border-color, #e5e7eb);
  background: #f9fafb;
}

.notice-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.notice-text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-text-color, #6b7280);
}

.btn-inline {
  display: inline-block;
  width: auto; /* override your full-width .btn-primary */
}

/* dark mode */
html[data-theme="dark"] .notice-card {
  background: #020617;
  border-color: #1f2937;
}
