:root {
  --paper: #f3efe4;
  --paper-deep: #ebe5d6;
  --paper-soft: #f7f3e8;
  --surface: #fbf9f2;
  --surface-raised: #fffdf7;
  --ink: #17251f;
  --ink-soft: #42524a;
  --muted: #738076;
  --muted-light: #95a096;
  --line: rgba(23, 37, 31, 0.12);
  --line-strong: rgba(23, 37, 31, 0.22);
  --emerald: #0d4b35;
  --emerald-mid: #17684b;
  --emerald-soft: #dcece2;
  --lime: #d9f36b;
  --lime-soft: #eef8bc;
  --apricot: #f2b27c;
  --apricot-soft: #fae7d5;
  --rose: #b35038;
  --rose-soft: #f7e2db;
  --blue-soft: #e0ecf4;
  --blue-ink: #2b546d;
  --violet-soft: #e9e4f4;
  --violet-ink: #514372;
  --shadow-sm: 0 1px 0 rgba(23, 37, 31, 0.04);
  --shadow-card: 0 14px 40px rgba(23, 37, 31, 0.06);
  --shadow-drawer: -24px 0 80px rgba(23, 37, 31, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sidebar-width: 264px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(217, 243, 107, 0.32), transparent 62%),
    radial-gradient(900px 520px at -12% 8%, rgba(197, 229, 218, 0.45), transparent 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--emerald-mid);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(239, 234, 221, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
  background:
    radial-gradient(circle at 68% 28%, rgba(217, 243, 107, 0.22), transparent 38%),
    var(--emerald);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex: none;
}

.brand-mark .icon {
  width: 24px;
  height: 24px;
}

.brand-mark-small {
  width: 30px;
  height: 30px;
}

.brand-mark-small .icon {
  width: 17px;
  height: 17px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text span {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 6px 8px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 75, 53, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.55);
  font-size: 11.5px;
  color: var(--emerald);
  line-height: 1.3;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-mid);
  box-shadow: 0 0 0 3px rgba(23, 104, 75, 0.12);
  flex: none;
}

.status-dot.is-live {
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.status-dot.status-dot-muted {
  background: var(--muted-light);
  box-shadow: none;
}

.status-dot.status-dot-warn {
  background: #b57625;
  box-shadow: 0 0 0 3px rgba(181, 118, 37, 0.13);
}

.status-dot.status-dot-error {
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(179, 80, 56, 0.12);
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.005em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  opacity: 0.82;
}

.nav-item:hover {
  background: rgba(255, 253, 247, 0.68);
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--emerald);
  color: #fbfaef;
}

.nav-item.is-active .icon {
  color: var(--lime);
  opacity: 1;
}

.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(23, 37, 31, 0.07);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.nav-item.is-active .nav-count {
  background: rgba(217, 243, 107, 0.18);
  color: var(--lime);
}

.nav-chevron {
  margin-left: auto;
  display: inline-flex;
  opacity: 0.5;
}

.nav-chevron .icon {
  width: 14px;
  height: 14px;
}

.sidebar-spacer {
  flex: 1 1 auto;
  min-height: 16px;
}

.sidebar-note {
  margin: 6px 4px 4px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.48);
}

.note-kicker {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-mid);
}

.sidebar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.settings-link {
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 15px;
  margin-top: 4px;
}

.settings-link:hover {
  border-radius: var(--radius-sm);
}

.sidebar-version {
  margin: 0 6px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

/* Main + topbar */

.main {
  min-width: 0;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  margin: 0 -8px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 228, 0.82);
  backdrop-filter: blur(16px);
}

.topbar-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.crumb-muted {
  color: var(--muted);
}

.crumb-slash {
  color: var(--muted-light);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.next-scan {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.next-scan .icon {
  width: 14px;
  height: 14px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fbfaef;
}

.btn-primary:hover {
  background: var(--emerald-mid);
}

.btn-primary .icon {
  color: var(--lime);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 253, 247, 0.75);
}

.btn-plain {
  padding: 10px 2px;
  background: transparent;
  color: var(--emerald-mid);
}

.btn-plain:hover {
  color: var(--ink);
}

.btn-small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
}

.btn-wide {
  width: 100%;
}

.btn[data-loading="true"] .icon {
  animation: spin 0.9s linear infinite;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--emerald-mid);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.text-button:hover {
  color: var(--ink);
}

.text-button .icon {
  width: 13px;
  height: 13px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  background: var(--paper-deep);
  border-color: var(--line-strong);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.74fr);
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
  padding: 58px 0 52px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--emerald-mid);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 21px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  color: var(--emerald);
  font-weight: 500;
  font-style: italic;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.04em;
  bottom: 0.04em;
  height: 0.25em;
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-1.2deg);
  opacity: 0.82;
}

.hero-lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: rgba(251, 250, 239, 0.9);
  background:
    radial-gradient(340px 190px at 96% 0%, rgba(217, 243, 107, 0.22), transparent 66%),
    radial-gradient(320px 200px at 0% 100%, rgba(62, 133, 99, 0.42), transparent 70%),
    var(--emerald);
  box-shadow: 0 22px 55px rgba(13, 75, 53, 0.17);
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: -92px;
  right: -72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(217, 243, 107, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(217, 243, 107, 0.045),
    0 0 0 60px rgba(217, 243, 107, 0.03);
  pointer-events: none;
}

.panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(251, 250, 239, 0.72);
}

.panel-live .status-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(217, 243, 107, 0.14);
}

.panel-pill {
  padding: 4px 9px;
  border: 1px solid rgba(217, 243, 107, 0.24);
  border-radius: 999px;
  color: var(--lime);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.hero-total {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 24px 0 22px;
}

.hero-total-number {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.hero-total-label {
  padding-bottom: 4px;
  color: rgba(251, 250, 239, 0.6);
  font-size: 11px;
  line-height: 1.4;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(251, 250, 239, 0.14);
  border-bottom: 1px solid rgba(251, 250, 239, 0.14);
}

.hero-stats > div {
  padding: 13px 12px 13px 0;
}

.hero-stats > div + div {
  padding-left: 14px;
  border-left: 1px solid rgba(251, 250, 239, 0.12);
}

.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  color: rgba(251, 250, 239, 0.95);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  display: block;
  margin-top: 3px;
  color: rgba(251, 250, 239, 0.48);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.panel-sweep {
  padding-top: 15px;
}

.panel-sweep-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(251, 250, 239, 0.58);
  font-size: 10.5px;
}

.panel-sweep-row span:last-child {
  color: var(--lime);
  text-align: right;
}

.progress-track {
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(251, 250, 239, 0.12);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 400ms ease;
}

.panel-footnote {
  margin: 11px 0 0;
  color: rgba(251, 250, 239, 0.44);
  font-size: 10px;
  line-height: 1.45;
}

/* Startup note */

.view-note {
  display: flex;
  gap: 15px;
  margin: 0 0 26px;
  padding: 17px 19px;
  border: 1px solid rgba(13, 75, 53, 0.16);
  border-radius: var(--radius-md);
  background: rgba(220, 236, 226, 0.58);
}

.note-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.view-note strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.view-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Filters */

.controls {
  scroll-margin-top: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 249, 242, 0.76);
  box-shadow: var(--shadow-sm);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 13px;
  background: rgba(243, 239, 228, 0.55);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.search-field > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
}

.search-field input::placeholder {
  color: var(--muted-light);
}

.search-clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 37, 31, 0.07);
  color: var(--ink-soft);
}

.search-clear .icon {
  width: 12px;
  height: 12px;
}

.search-hint {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-light);
  background: rgba(255, 253, 247, 0.6);
  font-family: var(--mono);
  font-size: 9px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.chip:hover {
  color: var(--ink);
  background: rgba(235, 229, 214, 0.7);
}

.chip.is-active {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(23, 37, 31, 0.05);
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 247, 0.44);
}

.select-label {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select-wrap select {
  max-width: 130px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  padding: 14px 2px 10px;
}

.result-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.clear-filters {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--emerald-mid);
  font-size: 11px;
  font-weight: 650;
}

.clear-filters:hover {
  text-decoration: underline;
}

/* Feed cards */

.feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  min-height: 240px;
}

.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.deal-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.deal-card.is-program {
  background:
    linear-gradient(150deg, rgba(220, 236, 226, 0.35), transparent 48%),
    var(--surface);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 70%;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.offer-free {
  background: var(--lime-soft);
  color: #405717;
}

.offer-credits {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.offer-lifetime {
  background: var(--apricot-soft);
  color: #7f421b;
}

.offer-discount {
  background: #f7edb9;
  color: #665512;
}

.offer-trial {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

.offer-program {
  background: var(--violet-soft);
  color: var(--violet-ink);
}

.offer-other {
  background: rgba(23, 37, 31, 0.07);
  color: var(--ink-soft);
}

.card-value {
  flex: none;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.027em;
  line-height: 1.18;
  text-wrap: pretty;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover {
  color: var(--emerald-mid);
}

.card-summary {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.card-summary.is-empty {
  display: none;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(243, 239, 228, 0.5);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-extras {
  border-color: transparent;
  background: transparent;
  color: var(--emerald-mid);
}

.program-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 37, 31, 0.08);
  border-radius: 10px;
  background: rgba(243, 239, 228, 0.55);
}

.program-details span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.4;
}

.program-details small {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-spacer {
  flex: 1 1 18px;
  min-height: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.card-source {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.card-source .icon {
  width: 12px;
  height: 12px;
  color: var(--muted-light);
}

.card-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-age {
  flex: none;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-age.is-new {
  color: var(--emerald-mid);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}

.card-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.card-open:hover {
  color: var(--emerald-mid);
  text-decoration: underline;
}

.card-open .icon {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.card-open:hover .icon {
  transform: translate(1px, -1px);
}

.save-button,
.hide-button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.save-button:hover,
.hide-button:hover {
  border-color: var(--line-strong);
  background: rgba(235, 229, 214, 0.7);
  color: var(--ink);
}

.save-button[aria-pressed="true"] {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--lime);
}

.save-button .icon,
.hide-button .icon {
  width: 14px;
  height: 14px;
}

.save-button[aria-pressed="true"] .icon {
  fill: currentColor;
}

.hide-button:hover {
  color: var(--rose);
}

.feed-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 36px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(251, 249, 242, 0.5);
  text-align: center;
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--emerald-mid);
}

.empty-mark .icon {
  width: 25px;
  height: 25px;
}

.feed-empty h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feed-empty p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.feed-empty .btn {
  margin-top: 18px;
}

.feed-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--muted);
  font-size: 12px;
}

.loading-radar {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.loading-radar::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.loading-radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(23, 104, 75, 0.24) 80deg, transparent 110deg);
  animation: radar-spin 1.4s linear infinite;
}

/* Source strip */

.source-strip {
  margin-top: 62px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.section-kicker {
  margin: 0 0 4px;
  color: var(--emerald-mid);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.source-tile {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(251, 249, 242, 0.62);
}

.source-tile-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 650;
}

.source-tile-top .status-dot {
  width: 6px;
  height: 6px;
}

.source-tile-top .source-state {
  margin-left: auto;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-tile p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-tile p strong {
  color: var(--ink-soft);
  font-weight: 650;
}

/* Footer */

.footer {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  margin-top: 50px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.footer p {
  max-width: 700px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
}

.footer-fine {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8.5px !important;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
}

/* Drawer */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 37, 31, 0.34);
  opacity: 0;
  transition: opacity 240ms ease;
  backdrop-filter: blur(2px);
}

.drawer-scrim.is-visible {
  opacity: 1;
}

.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: 100dvh;
  background: var(--surface);
  box-shadow: var(--shadow-drawer);
  transform: translateX(102%);
  transition: transform 280ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.settings-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.drawer-body {
  overflow-y: auto;
  padding: 0 24px 34px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-deep) transparent;
}

.drawer-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-section:last-child {
  border-bottom: 0;
}

.drawer-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-section-head h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.subtle {
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(243, 239, 228, 0.45);
  cursor: pointer;
}

.switch-row strong {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}

.switch-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: none;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: relative;
  width: 37px;
  height: 21px;
  border-radius: 999px;
  background: rgba(23, 37, 31, 0.16);
  transition: background 180ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 1px 3px rgba(23, 37, 31, 0.18);
  transition: transform 180ms ease;
}

.switch input:checked + .switch-track {
  background: var(--emerald);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
  background: var(--lime);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--emerald-mid);
  outline-offset: 3px;
}

.webhook-form {
  margin-top: 16px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.optional {
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.webhook-form input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-raised);
  font-size: 11.5px;
}

.webhook-form input::placeholder {
  color: var(--muted-light);
}

.webhook-form input:focus {
  outline: 0;
  border-color: var(--emerald-mid);
  box-shadow: 0 0 0 3px rgba(23, 104, 75, 0.09);
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.field-help code,
.mini-note code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 8.5px;
}

.form-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.result-line {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.result-line.is-good {
  color: var(--emerald-mid);
}

.result-line.is-bad {
  color: var(--rose);
}

.automation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(243, 239, 228, 0.45);
}

.automation-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.automation-status .status-dot {
  margin-top: 5px;
}

.automation-status strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}

.automation-status small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.mini-note {
  margin-top: 10px;
  padding: 11px 13px;
  border-left: 2px solid var(--lime);
  background: rgba(238, 248, 188, 0.26);
  font-size: 10px;
  line-height: 1.55;
}

.mini-note p {
  margin: 0;
  color: var(--ink-soft);
}

.source-list,
.run-list {
  display: flex;
  flex-direction: column;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(23, 37, 31, 0.07);
  font-size: 10.5px;
}

.source-row:last-child {
  border-bottom: 0;
}

.source-row .status-dot {
  width: 6px;
  height: 6px;
}

.source-row-name {
  font-weight: 600;
  color: var(--ink-soft);
}

.source-row-detail {
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(23, 37, 31, 0.07);
  font-size: 9.5px;
}

.run-row:last-child {
  border-bottom: 0;
}

.run-time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}

.run-main {
  min-width: 0;
}

.run-main strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-main small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-count {
  color: var(--emerald-mid);
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.run-count.is-bad {
  color: var(--rose);
}

.data-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.drawer-about {
  padding-bottom: 10px;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.drawer-about p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

/* Toasts */

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 243, 107, 0.28);
  border-radius: 11px;
  background: var(--emerald);
  color: #fbfaef;
  box-shadow: 0 16px 45px rgba(13, 75, 53, 0.24);
  font-size: 11.5px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in 220ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.toast .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--lime);
}

.toast.is-leaving {
  animation: toast-out 200ms ease forwards;
}

.toast.is-error {
  border-color: rgba(242, 178, 124, 0.35);
  background: #63331f;
}

.toast.is-error .icon {
  color: var(--apricot);
}

.eyebrow-dot.loading {
  animation: pulse-dot 1.1s ease-in-out infinite;
  transform-origin: left center;
}

.feed-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
}

.source-tile-foot {
  margin-top: 9px !important;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light) !important;
  font-family: var(--mono);
  font-size: 8.5px !important;
  letter-spacing: 0.02em;
}

.toast-action {
  flex: none;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(217, 243, 107, 0.5);
  border-radius: 0;
  background: transparent;
  color: var(--lime);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.toast-action:hover {
  border-bottom-color: var(--lime);
  color: #fff;
}

/* Motion */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* Responsive */

@media (max-width: 1120px) {
  .main {
    padding: 0 30px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 6.4vw, 5rem);
  }

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

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    padding: 0;
  }

  .brand-text span,
  .sidebar-status,
  .sidebar-note,
  .sidebar-spacer,
  .sidebar-version {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark .icon {
    width: 20px;
    height: 20px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .primary-nav {
    order: 3;
    flex: 1 0 100%;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    width: auto;
    min-height: 37px;
    flex: none;
    padding: 7px 11px;
    font-size: 12px;
  }

  .nav-item .icon {
    width: 15px;
    height: 15px;
  }

  .nav-count {
    min-width: 19px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .settings-link {
    width: auto;
    margin-left: auto;
    min-height: 34px;
    padding: 7px 9px;
    border-top: 0;
  }

  .settings-link span:not(.nav-chevron) {
    display: none;
  }

  .settings-link .nav-chevron {
    margin: 0;
  }

  .main {
    padding: 0 22px;
  }

  .topbar {
    min-height: 58px;
    margin: 0 -6px;
    padding: 0 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding: 40px 0 38px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 10vw, 4.8rem);
  }

  .hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }

  .panel-top,
  .hero-total,
  .panel-sweep {
    grid-column: 1;
  }

  .hero-stats {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    grid-template-columns: 1fr;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid rgba(251, 250, 239, 0.14);
    padding-left: 20px;
  }

  .hero-stats > div {
    padding: 4px 0;
  }

  .hero-stats > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(251, 250, 239, 0.12);
  }

  .hero-total {
    margin: 22px 0 16px;
  }

  .hero-total-number {
    font-size: 58px;
  }

  .feed {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-fine {
    text-align: left;
  }

  .section-heading {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 0 16px;
  }

  .primary-nav {
    gap: 2px;
  }

  .primary-nav .nav-item {
    flex: 1 1 0;
    justify-content: center;
    padding: 7px 4px;
    font-size: 11px;
  }

  .primary-nav .nav-item .icon {
    display: none;
  }

  .primary-nav .nav-count {
    min-width: 17px;
    padding: 1px 4px;
    font-size: 8.5px;
  }

  .settings-link .nav-chevron {
    display: none;
  }

  .topbar {
    gap: 10px;
  }

  .topbar-crumb {
    font-size: 10.5px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .next-scan {
    display: none;
  }

  .hero {
    padding: 32px 0 30px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13.6vw, 4rem);
    line-height: 0.92;
  }

  .hero-lede {
    margin-top: 19px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .hero-panel {
    display: block;
    padding: 18px;
    border-radius: 20px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(251, 250, 239, 0.14);
    border-bottom: 1px solid rgba(251, 250, 239, 0.14);
  }

  .hero-stats > div {
    padding: 11px 8px 11px 0;
  }

  .hero-stats > div + div {
    padding-left: 10px;
    border-top: 0;
    border-left: 1px solid rgba(251, 250, 239, 0.12);
  }

  .hero-total {
    margin: 22px 0 16px;
  }

  .hero-total-number {
    font-size: 56px;
  }

  .view-note {
    padding: 14px;
  }

  .note-mark {
    width: 36px;
    height: 36px;
  }

  .controls {
    padding: 9px;
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .chip-row {
    width: calc(100% + 2px);
  }

  .filter-selects {
    width: 100%;
  }

  .select-wrap {
    flex: 1;
    justify-content: space-between;
  }

  .select-wrap select {
    max-width: none;
    flex: 1;
    text-align: right;
  }

  .result-bar {
    min-height: 40px;
    padding: 11px 2px 8px;
  }

  .card-title {
    font-size: 20px;
  }

  .deal-card {
    padding: 17px;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .settings-drawer {
    width: 100vw;
  }

  .drawer-head {
    padding: 20px 18px 16px;
  }

  .drawer-body {
    padding: 0 18px 28px;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    left: 14px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }

  .footer {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
