:root {
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #667085;
  --border: #dce3ec;
  --blue: #2764d8;
  --blue-dark: #17469f;
  --blue-soft: #eaf2ff;
  --green: #15845d;
  --green-soft: #e9f8f1;
  --red: #c63f52;
  --red-dark: #9d2939;
  --red-soft: #fff0f2;
  --gold: #b87800;
  --gold-soft: #fff7df;
  --shadow: 0 18px 48px rgba(25, 46, 79, 0.1);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(198, 63, 82, 0.12), transparent 24rem),
    radial-gradient(circle at 100% 12%, rgba(39, 100, 216, 0.12), transparent 28rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
summary,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
summary,
label,
input[type="checkbox"] {
  cursor: pointer;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 48px 24px 30px;
  text-align: left;
}

.hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 46px;
}

.intro-card,
.preset-card,
.mode-dropdown,
.result-section {
  border: 1px solid rgba(220, 227, 236, 0.95);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px 22px;
}

.intro-card h2 {
  margin: 0 0 5px;
  font-size: 1.12rem;
}

.intro-card p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.builder {
  display: grid;
  gap: 18px;
}

.mode-dropdown {
  overflow: hidden;
}

.mode-dropdown > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  list-style: none;
  user-select: none;
}

.mode-dropdown > summary::-webkit-details-marker,
.filter-card > summary::-webkit-details-marker {
  display: none;
}

.mode-dropdown > summary::after {
  content: "⌄";
  margin-left: 6px;
  color: var(--muted);
  font-size: 1.45rem;
  transition: transform 160ms ease;
}

.mode-dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.summary-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.summary-main strong {
  display: block;
  font-size: 1.18rem;
}

.summary-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.mode-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
}

.include-mode .mode-symbol {
  background: var(--green);
}

.exclude-mode .mode-symbol {
  background: var(--red);
}

.selection-count {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.include-mode[open] > summary {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--green-soft), #fff 40%);
}

.exclude-mode[open] > summary {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--red-soft), #fff 40%);
}

.mode-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 18px;
  background: #fbfcfe;
}

.include-mode .mode-content {
  background: linear-gradient(180deg, #effaf5 0%, #f7fcfa 100%);
}

.exclude-mode .mode-content {
  background: linear-gradient(180deg, #fff1f3 0%, #fff8f9 100%);
}

.filter-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.filter-card.wide {
  grid-column: 1 / -1;
}

.filter-card > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  padding: 13px 15px;
  list-style: none;
  user-select: none;
}

.filter-card > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
}

.filter-card[open] > summary::after {
  content: "−";
}

.filter-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-weight: 900;
}

.filter-title-wrap {
  min-width: 0;
}

.filter-title {
  display: block;
  font-size: 0.93rem;
  font-weight: 850;
}

.filter-selection-label {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-body {
  padding: 15px;
  border-top: 1px solid var(--border);
}

.filter-description {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.option-chip {
  position: relative;
  min-width: 0;
}

.option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-chip label {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #344054;
  background: var(--surface-soft);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 760;
  transition: border-color 130ms ease, background 130ms ease, color 130ms ease,
    transform 130ms ease;
}

.option-chip label:hover {
  border-color: #9eb4d4;
  background: #f1f6ff;
  transform: translateY(-1px);
}

.option-chip input:focus-visible + label {
  outline: 3px solid rgba(39, 100, 216, 0.2);
  outline-offset: 2px;
}

.include-mode .option-chip input:checked + label {
  border-color: var(--green);
  color: #0e6647;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.exclude-mode .option-chip input:checked + label {
  border-color: var(--red);
  color: var(--red-dark);
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px var(--red);
}

.year-grid {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.rating-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.rating-layout > section,
.nundo-panel {
  min-width: 0;
}

.rating-section-label {
  margin-bottom: 9px;
}

.rating-star-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nundo-panel {
  padding: 13px;
  border: 1px solid #d9c8ef;
  border-radius: var(--radius-md);
  background: #f8f3ff;
}

.nundo-panel p {
  margin: 9px 0 0;
  color: #5f4a78;
  font-size: 0.76rem;
  line-height: 1.45;
}

.nundo-option label {
  min-height: 48px;
  border-color: #bca4dd;
  color: #563a78;
  background: #f2e9ff;
  font-weight: 850;
}

.nundo-option label:hover {
  border-color: #8c68ba;
  background: #eadcff;
}

.include-mode .nundo-option input:checked + label,
.exclude-mode .nundo-option input:checked + label {
  border-color: #7447a8;
  color: #4e277a;
  background: #e7d5fb;
  box-shadow: inset 0 0 0 1px #7447a8;
}

.event-calculation-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  color: #79520d;
  background: var(--gold-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: #475467;
  font-size: 0.75rem;
  font-weight: 820;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(39, 100, 216, 0.14);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.button {
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: #344054;
  border-color: var(--border);
  background: #fff;
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.button-small {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.79rem;
}

.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.custom-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.custom-term-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: #344054;
  background: var(--blue-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
}

.custom-term-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-term-pill button {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 0.72rem;
  line-height: 1;
}

.empty-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-section {
  position: sticky;
  z-index: 5;
  bottom: 10px;
  margin-top: 20px;
  padding: 22px;
}

.result-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.result-heading,
.result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.result-heading h2 {
  margin: 3px 0 0;
  font-size: 1.4rem;
}

.character-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

#searchOutput {
  width: 100%;
  min-height: 112px;
  margin: 16px 0 12px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #bfd0e7;
  border-radius: 12px;
  color: #172554;
  background: #f8fbff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.55;
}

#searchOutput:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(39, 100, 216, 0.14);
}

.result-actions {
  justify-content: flex-start;
}

.status-message {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 780;
}

.status-message.error {
  color: var(--red);
}

.syntax-help {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.syntax-help summary {
  color: #344054;
  font-weight: 820;
}

.syntax-help code {
  display: block;
  overflow-x: auto;
  padding: 10px;
  border-radius: 8px;
  color: #172554;
  background: var(--blue-soft);
  white-space: nowrap;
}

.safety-note {
  padding: 9px 10px;
  border-radius: 8px;
  color: #805700;
  background: var(--gold-soft);
}

footer {
  padding: 0 20px 30px;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}


.top-actions,
.preset-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.preset-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 22px;
}

.preset-card h2 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.preset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.preset-controls select {
  min-width: 210px;
  min-height: 43px;
  padding: 9px 34px 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
}

.danger-button {
  color: var(--red-dark);
}

.single-field {
  grid-template-columns: minmax(180px, 330px);
}

.section-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--border);
}

.iv-groups {
  display: grid;
  gap: 13px;
}

.iv-subgroup {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
}

.iv-subgroup h3 {
  margin: 0 0 9px;
  font-size: 0.84rem;
}

.iv-option-grid {
  grid-template-columns: repeat(5, minmax(80px, 1fr));
}

.event-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.event-picker {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
}

.event-picker .button {
  width: 100%;
  margin-top: 8px;
}

.event-pill-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.event-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #c9d8ed;
  border-radius: 10px;
  background: var(--blue-soft);
}

.event-pill strong,
.event-pill small {
  display: block;
}

.event-pill strong {
  font-size: 0.79rem;
}

.event-pill small {
  margin-top: 2px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
}

.event-pill button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
}

.custom-wide-field {
  grid-column: span 2;
}

@media (max-width: 800px) {
  .mode-content {
    grid-template-columns: 1fr;
  }

  .event-select-grid {
    grid-template-columns: 1fr;
  }

  .filter-card.wide {
    grid-column: auto;
  }

  .result-section {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero {
    flex-direction: column;
    padding-top: 34px;
    text-align: center;
  }

  .intro-card,
  .preset-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .preset-controls {
    width: 100%;
  }

  .preset-controls select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .iv-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-wide-field {
    grid-column: auto;
  }

  .mode-dropdown > summary {
    align-items: flex-start;
    padding: 17px;
  }

  .selection-count {
    display: none;
  }

  .mode-content {
    padding: 12px;
  }

  .field-grid,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-section {
    padding: 17px;
  }
}

@media (max-width: 390px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-main small {
    display: none;
  }
}

@media (max-width: 760px) {
 .rating-layout {
    grid-template-columns: 1fr;
  }

  .rating-star-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Sticky section headers and compact bottom copy dock
   -------------------------------------------------------------------------- */

:root {
  --copy-dock-space: 150px;
}

body {
  padding-bottom: var(--copy-dock-space);
}

/* Let sticky summaries use the page as their scroll container. */
.mode-dropdown {
  overflow: visible;
}

.mode-dropdown > summary {
  position: sticky;
  top: 0;
  z-index: 30;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(25, 46, 79, 0.08);
}

.mode-dropdown[open] > summary {
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.include-mode[open] > summary {
  background: linear-gradient(90deg, #e5f7ef 0%, #f7fcfa 55%, #ffffff 100%);
}

.exclude-mode[open] > summary {
  background: linear-gradient(90deg, #ffe8ec 0%, #fff7f8 55%, #ffffff 100%);
}

.mode-content {
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

/* The later Exclude summary naturally replaces the Include summary as it
   reaches the top of the viewport. */
.exclude-mode > summary {
  z-index: 31;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.result-section {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 100;
  width: min(1180px, calc(100% - 32px));
  margin: 0;
  padding: 10px 14px;
  transform: translateX(-50%);
  border-radius: 16px;
  box-shadow: 0 -8px 34px rgba(25, 46, 79, 0.18);
}

.result-section::before {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.result-heading {
  min-height: 20px;
}

.result-title-line {
  display: flex;
  align-items: center;
}

.result-heading .eyebrow {
  font-size: 0.68rem;
}

.character-count {
  font-size: 0.72rem;
}

#searchOutput {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  margin: 6px 0 7px;
  padding: 8px 10px;
  resize: none;
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.result-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}

.result-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.result-actions .button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.status-message {
  flex: 1 1 auto;
  min-height: 18px;
  margin: 0;
  text-align: right;
  font-size: 0.76rem;
}

/* The old help block is no longer part of the fixed dock. */
.syntax-help {
  display: none;
}

footer {
  padding-bottom: 10px;
}

@media (max-width: 800px) {
  .result-section {
    position: fixed;
  }
}

@media (max-width: 620px) {
  :root {
    --copy-dock-space: 168px;
  }

  .mode-dropdown > summary {
    top: 0;
  }

  .result-section {
    bottom: 6px;
    width: calc(100% - 16px);
    padding: 9px 10px;
  }

  #searchOutput {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .result-bottom-row {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .status-message {
    min-height: 16px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Quick cleanup presets and Never Transfer list
   -------------------------------------------------------------------------- */

.quick-presets-card,
.ban-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(220, 227, 236, 0.95);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-card-heading h2 {
  margin: 3px 0 5px;
  font-size: 1.24rem;
}

.section-card-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.review-reminder {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #ead39b;
  border-radius: 999px;
  color: #7a5405;
  background: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 820;
}

.quick-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-preset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quick-preset-card > summary {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 14px 44px 14px 15px;
  list-style: none;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.quick-preset-card > summary::-webkit-details-marker {
  display: none;
}

.quick-preset-card > summary::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
}

.quick-preset-card[open] > summary::after {
  content: "−";
}

.quick-preset-card[open] > summary {
  border-bottom: 1px solid var(--border);
  background: #f7faff;
}

.quick-preset-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.quick-preset-heading > span:last-child {
  min-width: 0;
}

.quick-preset-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-preset-heading strong,
.quick-preset-heading small {
  display: block;
}

.quick-preset-heading strong {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.96rem;
}

.quick-preset-heading small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.42;
}

.quick-preset-content {
  padding: 0 15px 15px;
}

.quick-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.quick-preset-card:has(.quick-field-grid .field:only-child) .quick-field-grid {
  grid-template-columns: 1fr;
}

.quick-preset-note {
  flex: 1 1 auto;
  margin: 11px 0 13px;
  padding: 9px 10px;
  border-left: 3px solid #9eb4d4;
  border-radius: 7px;
  color: #526077;
  background: #f3f6fa;
  font-size: 0.72rem;
  line-height: 1.45;
}

.quick-preset-content > .button {
  width: 100%;
  min-height: 39px;
  font-size: 0.8rem;
}

.ban-card code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #173a7a;
  background: var(--blue-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.ban-heading {
  align-items: center;
}

.toggle-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 820;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cfd6df;
  transition: background 150ms ease;
}

.toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(23, 32, 51, 0.2);
  transition: transform 150ms ease;
}

.toggle-control input:checked + .toggle-track {
  background: var(--green);
}

.toggle-control input:checked + .toggle-track span {
  transform: translateX(20px);
}

.toggle-control input:focus-visible + .toggle-track {
  outline: 3px solid rgba(39, 100, 216, 0.2);
  outline-offset: 2px;
}

.ban-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.ban-add-field {
  flex: 1 1 430px;
  max-width: 560px;
}

.ban-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ban-list-details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.ban-list-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  list-style: none;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 850;
}

.ban-list-details > summary::-webkit-details-marker {
  display: none;
}

.ban-list-details > summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 1.15rem;
}

.ban-list-details[open] > summary {
  border-bottom: 1px solid var(--border);
}

.ban-list-details[open] > summary::after {
  transform: rotate(180deg);
}

.ban-list-details .selection-count {
  margin-left: auto;
}

.ban-list-groups {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fbfcfe;
}

.ban-family-group {
  min-width: 0;
}

.ban-family-group h3 {
  margin: 0 0 8px;
  color: #475467;
  font-size: 0.78rem;
}

.ban-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

.ban-family-option {
  position: relative;
}

.ban-family-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ban-family-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #475467;
  background: #fff;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 760;
  transition: 130ms ease;
}

.ban-family-option label:hover {
  border-color: #9eb4d4;
  background: #f6f9fd;
}

.ban-family-option input:checked + label {
  border-color: var(--red);
  color: var(--red-dark);
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px var(--red);
}

.ban-family-option input:focus-visible + label {
  outline: 3px solid rgba(198, 63, 82, 0.18);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .quick-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .quick-presets-card,
  .ban-card {
    padding: 16px;
  }

  .section-card-heading,
  .ban-heading,
  .ban-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .review-reminder,
  .toggle-control {
    align-self: flex-start;
  }

  .quick-preset-grid {
    grid-template-columns: 1fr;
  }

  .ban-add-field {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
  }

  .ban-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ban-toolbar-actions .button {
    flex: 1 1 125px;
  }
}

@media (max-width: 430px) {
  .quick-field-grid {
    grid-template-columns: 1fr;
  }

  .ban-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   v7 UI cleanup: top help, collapsible tools, and compact wide-screen cards
   -------------------------------------------------------------------------- */

.top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 227, 236, 0.95);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar-copy {
  display: grid;
  gap: 4px;
}

.toolbar-copy strong {
  font-size: 0.98rem;
}

.help-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid #a9bddb;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 1.15rem;
  font-weight: 950;
  transition: 130ms ease;
}

.help-button:hover {
  border-color: var(--blue);
  background: #dce9ff;
  transform: translateY(-1px);
}

.help-button:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid rgba(39, 100, 216, 0.2);
  outline-offset: 2px;
}

.help-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(17, 32, 58, 0.3);
}

.help-dialog::backdrop {
  background: rgba(12, 22, 39, 0.58);
  backdrop-filter: blur(3px);
}

.help-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(110deg, var(--blue-soft), #fff 58%);
}

.help-dialog-header h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #344054;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.help-dialog-body {
  display: grid;
  gap: 13px;
  max-height: calc(82vh - 82px);
  padding: 18px 22px 24px;
  overflow-y: auto;
}

.help-dialog-body section {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.help-dialog-body h3 {
  margin: 0 0 7px;
  font-size: 0.96rem;
}

.help-dialog-body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.help-dialog-body code,
.help-example code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.help-dialog-body p code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #173a7a;
  background: var(--blue-soft);
}

.help-example {
  margin-top: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 8px;
  color: #172554;
  background: #eaf2ff;
  font-size: 0.82rem;
  white-space: nowrap;
}

.help-dialog-body .help-safety {
  border-color: #ead39b;
  background: var(--gold-soft);
}

.tool-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.tool-dropdown {
  overflow: hidden;
  border: 1px solid rgba(220, 227, 236, 0.95);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-dropdown > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 15px 20px;
  list-style: none;
  user-select: none;
}

.tool-dropdown > summary::-webkit-details-marker {
  display: none;
}

.tool-dropdown > summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: 2px;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
}

.tool-dropdown[open] > summary::after {
  content: "−";
}

.tool-dropdown[open] > summary {
  border-bottom: 1px solid var(--border);
}

.quick-tools[open] > summary {
  background: linear-gradient(90deg, #fff7df 0%, #fffdf7 58%, #fff 100%);
}

.ban-tools[open] > summary {
  background: linear-gradient(90deg, #fff0f2 0%, #fff9fa 58%, #fff 100%);
}

.tool-symbol {
  background: var(--gold);
}

.shield-symbol {
  background: var(--red);
}

.tool-summary-note {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.tool-content.quick-presets-card,
.tool-content.ban-card {
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: #fbfcfe;
  box-shadow: none;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.event-help-link {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f6fa;
}

/* These cards no longer need to consume both builder columns. */
.category-encounter,
.category-max,
.category-type,
.category-numeric,
.category-custom {
  grid-column: auto;
}

.category-encounter .option-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.category-max .option-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.category-type .option-grid {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.compact-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.custom-form-grid .custom-wide-field {
  grid-column: auto;
}

.compact-actions .button {
  flex: 1 1 150px;
}

.category-numeric .filter-body,
.category-custom .filter-body {
  min-width: 0;
}

.category-numeric .custom-term-pill,
.category-custom .custom-term-pill {
  max-width: 100%;
}

@media (min-width: 801px) {
  .category-encounter .option-chip label,
  .category-max .option-chip label,
  .category-type .option-chip label {
    padding-inline: 7px;
    font-size: 0.78rem;
  }

  .category-numeric .custom-row,
  .category-custom .custom-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 700px) {
  .top-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-toolbar .top-actions {
    width: 100%;
  }

  .top-toolbar .button {
    flex: 1 1 130px;
  }

  .tool-dropdown > summary {
    align-items: flex-start;
    padding: 15px 16px;
  }

  .tool-summary-note {
    display: none;
  }

  .tool-content.quick-presets-card,
  .tool-content.ban-card {
    padding: 15px;
  }
}

@media (max-width: 430px) {
  .toolbar-copy {
    display: none;
  }

  .top-toolbar {
    padding: 12px;
  }

  .help-button {
    width: 41px;
    height: 41px;
  }

  .help-dialog-header,
  .help-dialog-body {
    padding-inline: 15px;
  }
}

.status-message.workflow-instruction { color: #7a5405; font-weight: 800; }

/* Keep closed quick-preset cards compact when a neighboring preset is open. */
.quick-preset-grid {
  align-items: start;
}

.status-message.workflow-instruction {
  color: #7a5405;
  font-weight: 800;
}


/* --------------------------------------------------------------------------
   v9 combined storage controls and GO Fest quick-clean preset
   -------------------------------------------------------------------------- */
.top-toolbar {
  display: block;
}

.toolbar-top-row,
.saved-preset-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.saved-preset-inline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.saved-preset-copy h2 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.saved-preset-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-preset-card.wide {
  grid-column: 1 / -1;
}

.quick-preset-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.quick-preset-actions.multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-preset-actions .button {
  width: 100%;
  min-height: 39px;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .toolbar-top-row,
  .saved-preset-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-top-row,
  .saved-preset-inline,
  .saved-preset-inline .preset-controls {
    width: 100%;
  }

  .saved-preset-inline .preset-controls select {
    flex: 1 1 180px;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .quick-preset-actions.multiple {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   v10 lights, support prompt, featured GO Fest preset, and neutral branding
   -------------------------------------------------------------------------- */
.storage-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid #b9c8dc;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), #6b8ff0);
  box-shadow: var(--shadow);
  font-size: 2.35rem;
  font-weight: 900;
  transform: rotate(-4deg);
}

.lights-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(154, 173, 202, 0.75);
  border-radius: 999px;
  color: #22324e;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(20, 40, 72, 0.16);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 850;
  transition: 160ms ease;
}

.lights-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(20, 40, 72, 0.22);
}

.lights-toggle:focus-visible {
  outline: 3px solid rgba(39, 100, 216, 0.25);
  outline-offset: 2px;
}

.lights-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.quick-preset-card.featured {
  order: -100;
  border-color: #d7ae49;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 70%);
  box-shadow: 0 12px 28px rgba(151, 105, 0, 0.12);
}

.quick-preset-card.featured > summary {
  background: linear-gradient(90deg, #fff4cf, #ffffff 72%);
}

.quick-preset-card.featured .quick-preset-icon {
  color: #fff;
  background: linear-gradient(145deg, #b87800, #e0a82f);
}

.tools-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 11px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.tools-page-link.is-disabled {
  color: var(--muted);
  background: var(--surface-soft);
  cursor: not-allowed;
  opacity: 0.78;
}

.support-dialog {
  width: min(510px, calc(100% - 30px));
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(121, 147, 186, 0.35);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.support-dialog::backdrop {
  background: rgba(3, 8, 17, 0.72);
  backdrop-filter: blur(5px);
}

.support-dialog .power-glow {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #b87800, #e4b64d);
  box-shadow: 0 0 38px rgba(228, 182, 77, 0.36);
  font-size: 1.9rem;
}

.support-dialog h2 {
  margin: 6px 0 10px;
  font-size: 1.65rem;
}

.support-dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-dialog-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.support-dialog-actions .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.kofi-button {
  background: #6f4e37;
}

.kofi-button:hover {
  background: #553927;
}

.support-skip {
  padding: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 750;
}

/* Dark-mode / "lights off" state. */
body.lights-off {
  --page: #070b13;
  --surface: #111827;
  --surface-soft: #182234;
  --text: #edf3ff;
  --muted: #a8b3c5;
  --border: #334155;
  --blue: #78a7ff;
  --blue-dark: #b8d0ff;
  --blue-soft: #1a3158;
  --green: #45c99a;
  --green-soft: #102d26;
  --red: #ff7184;
  --red-dark: #ff9aa7;
  --red-soft: #351820;
  --gold: #e6b94e;
  --gold-soft: #332910;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  background:
    radial-gradient(circle at 10% 0%, rgba(198, 63, 82, 0.09), transparent 24rem),
    radial-gradient(circle at 100% 12%, rgba(39, 100, 216, 0.11), transparent 28rem),
    var(--page);
}

body,
.top-toolbar,
.tool-dropdown,
.mode-dropdown,
.filter-card,
.quick-preset-card,
.result-section,
.help-dialog,
.support-dialog,
input,
select,
textarea,
.button,
.lights-toggle {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.lights-off .hero-copy,
body.lights-off footer,
body.lights-off .saved-preset-copy p,
body.lights-off .section-card-heading p,
body.lights-off .quick-preset-heading small,
body.lights-off .quick-preset-note,
body.lights-off .field-hint,
body.lights-off .help-dialog-body p,
body.lights-off .support-dialog p:not(.eyebrow) {
  color: var(--muted);
}

body.lights-off .top-toolbar,
body.lights-off .tool-dropdown,
body.lights-off .mode-dropdown,
body.lights-off .filter-card,
body.lights-off .quick-preset-card,
body.lights-off .ban-list-details,
body.lights-off .help-dialog,
body.lights-off .support-dialog {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

body.lights-off .tool-content.quick-presets-card,
body.lights-off .tool-content.ban-card,
body.lights-off .mode-content,
body.lights-off .ban-list-groups,
body.lights-off .filter-body {
  background: #0d1523;
}

body.lights-off .include-mode .mode-content {
  background: linear-gradient(180deg, #102820, #0d1716);
}

body.lights-off .exclude-mode .mode-content {
  background: linear-gradient(180deg, #2b151b, #171014);
}

body.lights-off .include-mode[open] > summary {
  background: linear-gradient(90deg, #153a2e, #111827 62%);
}

body.lights-off .exclude-mode[open] > summary {
  background: linear-gradient(90deg, #441d26, #111827 62%);
}

body.lights-off .quick-tools[open] > summary,
body.lights-off .quick-preset-card.featured > summary {
  background: linear-gradient(90deg, #3b3014, #111827 68%);
}

body.lights-off .ban-tools[open] > summary {
  background: linear-gradient(90deg, #3a1820, #111827 68%);
}

body.lights-off .quick-preset-card.featured {
  border-color: #8d7132;
  background: #151b27;
}

body.lights-off input,
body.lights-off select,
body.lights-off textarea,
body.lights-off .button-secondary,
body.lights-off .ban-family-option label,
body.lights-off .event-picker,
body.lights-off .iv-subgroup,
body.lights-off .nundo-panel {
  color: var(--text);
  background: #121c2b;
  border-color: var(--border);
}

body.lights-off .option-chip label {
  color: #d7dfed;
  background: #121c2b;
  border-color: var(--border);
}

body.lights-off .option-chip input:checked + label {
  color: #cfe0ff;
  background: #1a3158;
}

body.lights-off #searchOutput {
  color: #dce8ff;
  background: #0c1422;
  border-color: #405879;
}

body.lights-off .result-section::before {
  background: rgba(12, 19, 31, 0.97);
}

body.lights-off .help-dialog-header {
  background: linear-gradient(110deg, #1a3158, #111827 62%);
}

body.lights-off .help-dialog-body section {
  background: #182234;
  border-color: var(--border);
}

body.lights-off .help-dialog-body .help-safety {
  background: #332910;
  border-color: #77602b;
}

body.lights-off .help-example,
body.lights-off .help-dialog-body p code,
body.lights-off .custom-term-pill,
body.lights-off .event-pill {
  color: #d9e7ff;
  background: #1a3158;
}

body.lights-off .lights-toggle {
  color: #fff4cc;
  background: rgba(25, 34, 49, 0.95);
  border-color: #6e5a2b;
  box-shadow: 0 0 28px rgba(230, 185, 78, 0.16);
}

body.lights-off .dialog-close {
  color: var(--text);
  background: #172235;
  border-color: var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text h1 {
  margin: 0;
  line-height: 1.05;
}
@media (max-width: 640px) {
  .site-logo {
    width: 60px;
    height: 60px;
  }
}
.brand-text .subtitle {
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .site-logo {
    width: 52px;
    height: 52px;
  }

  .brand-block {
    gap: 10px;
  }

  .brand-text h1 {
    font-size: 1.7rem;
  }
}
@media (max-width: 620px) {
  .hero {
    padding-top: 82px;
  }

  .storage-mark {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 1.9rem;
  }

  .lights-toggle {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 420px) {
  .lights-toggle-label {
    display: none;
  }

  .lights-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}
