:root {
  color-scheme: only light;
  --ink: #1a2e24;
  --muted: #3e5649;
  --faint: #5c7366;
  --line: #d5e2da;
  --paper: #fbfaf6;
  --wash: #eef5f0;
  --focus: #1f6b4a;
  --button: #1f6b4a;
  --button-text: #ffffff;
  --card: #ffffff;
  --danger: #8a1f2b;
  --disabled: #c5d0c9;
  --disabled-text: #f7faf8;
  --shadow: 0 1px 2px rgba(26, 46, 36, 0.06);
  --shadow-dialog: 0 16px 48px rgba(26, 46, 36, 0.2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper) url("city-aerial.jpg") center top / cover no-repeat;
  letter-spacing: -0.011em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(251, 250, 246, 0.84);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  pointer-events: none;
}

.top,
main,
footer {
  position: relative;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--button);
  color: var(--button-text);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.app-error {
  position: relative;
  z-index: 6;
  margin: 12px 28px 0;
  color: var(--danger);
  font-weight: 600;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.mark .accent {
  color: var(--button);
  font-weight: 600;
}

.kinds {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mark .kind {
  background: var(--button);
  color: var(--button-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
}

.mark .sep {
  color: var(--ink);
  font-weight: 500;
}

.region {
  font-size: 13px;
  color: var(--muted);
}

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

.menu-label {
  max-width: 14rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-action {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#account-signout {
  max-width: min(24rem, 46vw);
}

.account-note {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.account-action,
.menu-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

main {
  min-height: calc(100vh - 120px);
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14vh 20px 48px;
}

.intro {
  width: min(720px, 100%);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

h1 span {
  color: var(--button);
}

.lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

#search {
  width: min(720px, 100%);
  margin-top: 36px;
}

.field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow);
}

.suburb-entry,
.alert-suburbs {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.suburb-entry {
  flex: 1;
}

.chips {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips:empty {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  background: var(--wash);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 4px 4px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

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

.chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.chip button:hover {
  background: var(--line);
  color: var(--ink);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

input[type="search"] {
  appearance: none;
  flex: 1 0 14em;
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  min-width: min(14em, 100%);
  min-height: 44px;
  padding: 8px 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  appearance: none;
  display: none;
}

input::placeholder {
  color: var(--faint);
}

button[type="submit"],
.dialog-primary,
.plan-year,
#alert-save {
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover,
.dialog-primary:hover,
.plan-year:hover,
#alert-save:hover:not(:disabled) {
  filter: brightness(1.08);
}

button[type="submit"]:disabled,
#alert-save:disabled {
  background: var(--disabled);
  color: var(--disabled-text);
  cursor: not-allowed;
  filter: none;
}

button[type="submit"] {
  flex: none;
  align-self: flex-start;
  font-size: 15px;
  min-height: 44px;
  padding: 0 22px;
}

.filters > div > label,
.alert-label,
.auth-email label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.filters {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--wash);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filters > div > label {
  display: block;
  margin-bottom: 6px;
}

.control {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 12px;
}

select.control {
  padding-right: 32px;
}

.combo {
  position: relative;
}

.combo.is-open {
  z-index: 3;
}

.combo-source {
  display: none;
}

.combo-input {
  padding-right: 36px;
  text-overflow: ellipsis;
}

.combo::after,
.multi-btn::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.combo::after {
  top: 22px;
}

.multi {
  position: relative;
}

.multi.is-open {
  z-index: 2;
}

.multi-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  cursor: pointer;
}

.multi-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-btn::after {
  top: 50%;
}

.menu {
  z-index: 4;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.menu li {
  border-radius: 8px;
  cursor: pointer;
}

.menu li:hover,
.menu li.is-active {
  background: var(--wash);
}

.menu mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.combo-empty,
.combo-empty:hover {
  color: var(--muted);
  background: transparent;
  cursor: default;
}

.suburb-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 280px;
  border-radius: 12px;
}

.suburb-list li {
  padding: 10px 12px;
}

.combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: calc(100vw - 40px);
  max-height: 240px;
  border-radius: 10px;
}

.combo-list li {
  padding: 8px 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.combo-list.is-up {
  top: auto;
  bottom: calc(100% + 4px);
}

.combo-list.is-sized {
  max-height: var(--menu-max);
}

.combo-list.is-floating,
.multi-panel.is-floating {
  position: absolute;
  z-index: 8;
  top: var(--menu-top);
  left: var(--menu-left);
  width: max-content;
  min-width: var(--menu-min);
  max-width: calc(100vw - 16px);
  max-height: var(--menu-max);
  right: auto;
  bottom: auto;
}

.multi-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: calc(100vw - 40px);
  border-radius: 10px;
}

.multi-panel label,
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.multi-panel label {
  padding: 8px 10px;
  border-radius: 8px;
}

.multi-panel label:hover {
  background: var(--wash);
}

.multi-panel input,
.checks input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--button);
  flex: 0 0 auto;
}

.alert-error {
  color: var(--danger);
  margin: 0 0 12px;
}

#search-error {
  margin-top: 12px;
}

footer {
  padding: 0 28px 28px;
  color: var(--faint);
  font-size: 13px;
}

.dialog {
  margin: auto;
  border: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}

.dialog::backdrop {
  background: rgba(26, 46, 36, 0.45);
}

.auth-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 16px;
}

.auth-dialog h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.auth-dialog p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.auth-email {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-email label {
  margin: 8px 0 0;
}

.auth-email .dialog-primary {
  align-self: stretch;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 22px;
  font-size: 16px;
}

.auth-dialog .auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.auth-dialog .auth-or::before,
.auth-dialog .auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sso {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sso-google,
.plan-month {
  border: 1px solid var(--button);
  background: var(--card);
  color: var(--button);
}

.sso-google:hover,
.plan-month:hover {
  background: var(--wash);
}

.auth-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.dialog-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

body.is-app {
  background: var(--paper);
}

body.is-app::before {
  display: none;
}

body.is-app .top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

body.is-app main {
  align-items: stretch;
  min-height: 0;
  padding: 0;
}

body.is-app #search {
  width: 100%;
  margin-top: 0;
}

body.is-results .field {
  margin: 8px 0 20px;
  padding: 4px 4px 4px 12px;
}

body.is-results input[type="search"] {
  min-height: 36px;
  padding: 4px 0;
}

body.is-results .field button[type="submit"],
.filter-dialog button[type="submit"] {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.filter-open,
.filter-close {
  flex: none;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-open:hover,
.filter-close:hover,
.bin:hover {
  background: var(--wash);
}

.filter-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border-radius: 16px;
  overflow: visible;
}

.filter-dialog[open] {
  display: flex;
  flex-direction: column;
}

.filter-dialog-body {
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.filter-dialog-bar,
.filter-dialog-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.filter-dialog-bar {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: var(--card);
}

.filter-dialog-bar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.filter-dialog .filters {
  margin: 16px;
}

.filter-dialog-foot {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  background: var(--card);
}

.filter-dialog-foot .alert-error {
  flex: 1 0 100%;
  margin: 0;
}

.sheet {
  width: min(880px, calc(100% - 32px));
  margin: 8px auto 48px;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
}

.profile-intro {
  min-width: 0;
  flex: 1;
}

.profile h1,
.result-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: left;
}

.profile h1 {
  margin-bottom: 8px;
}

.profile-lead {
  margin: 0;
  color: var(--muted);
}

.account-panel {
  width: min(280px, 100%);
  flex: none;
}

.account-email {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.plan-card {
  padding: 20px 16px 18px;
  border-radius: 16px;
  background: var(--wash);
  text-align: center;
}

.plan-card-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-card-value {
  margin: 8px 0 0;
  color: var(--button);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plan-card-ends,
.plan-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#plan-open {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  text-align: center;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.plans-dialog {
  flex-direction: column;
  align-items: stretch;
}

.plans-dialog .plan {
  text-align: center;
}

.plan {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.plan-back {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

#payment-confirm {
  margin-top: 16px;
}

.plan-price {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.alert-form {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.alert-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.alert-form h2,
.alert-card h2,
.card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.alert-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.alert-when {
  margin: 4px 0 16px;
  color: var(--muted);
}

.alert-label {
  display: block;
  margin-bottom: 6px;
}

.alert-suburbs {
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.alert-suburbs input[type="search"] {
  flex: 1 0 10em;
  min-width: min(10em, 100%);
  min-height: 36px;
  padding: 4px 0;
}

.alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.alert-records {
  grid-column: 1 / -1;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.checks label {
  gap: 8px;
  min-height: 0;
}

.alert-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}

.alert-actions .alert-error {
  margin: 0 auto 0 0;
}

#alert-save {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.alert-list {
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-list:empty {
  display: none;
}

.alert-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: start;
  width: 100%;
}

.card,
.alert-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.alert-card h2,
.alert-card p {
  grid-column: 1;
}

.alert-card p,
.result-head p,
.sample-note,
.card p {
  margin: 0;
  color: var(--muted);
}

.bin {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.bin:hover {
  border-color: var(--muted);
}

.bin svg {
  width: 20px;
  height: 20px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.result-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.weekly-alert-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: none;
}

.weekly-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  border: 1px solid var(--button);
  border-radius: 999px;
  background: var(--card);
  color: var(--button);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 0 14px;
  cursor: pointer;
}

.weekly-alert-idle,
.weekly-alert-idle:hover {
  background: var(--card);
  cursor: default;
}

.weekly-alert:disabled {
  border-color: var(--line);
  color: var(--faint);
  background: var(--card);
  cursor: not-allowed;
}

.weekly-alert.is-saved {
  border-color: var(--line);
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
}

.weekly-alert-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.sample-note {
  margin-top: 8px;
  font-size: 14px;
}

.cards {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h2 {
  margin: 8px 0 4px;
}

.card-hit {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-hit:hover h2 {
  text-decoration: underline;
}

.detail-back {
  display: inline-block;
  margin: 20px 0 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.detail {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.detail h1 {
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.detail-head p {
  margin: 0;
}

.detail-gate p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.detail-map {
  margin: 14px 0 0;
}

.detail-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
  background: var(--wash);
}

.detail-map figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 14px;
}

.detail-facts {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 8px 16px;
  margin: 16px 0 0;
}

.detail-facts dt {
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}

.detail-facts dd {
  margin: 0;
}

.detail-types {
  margin: 0;
  padding-left: 1.1em;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-cdc,
.tag-cc {
  background: var(--wash);
  color: var(--ink);
}

.card-status,
.card-meta {
  font-size: 14px;
}

.card-meta {
  margin-top: 4px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pager button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.pager button[aria-current="page"] {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-text);
}

.pager button:disabled {
  color: var(--faint);
  cursor: default;
}

.pager-gap {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--faint);
}

@media (max-width: 720px) {
  .profile-top {
    flex-wrap: wrap;
  }

  .account-panel {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .top,
  body.is-app .top {
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-error {
    margin-right: 16px;
    margin-left: 16px;
  }

  main {
    padding-top: 10vh;
    align-items: stretch;
  }

  .field {
    padding: 8px;
  }

  input[type="search"] {
    padding: 8px 4px;
  }

  .filters,
  .alert-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .result-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .weekly-alert-wrap {
    justify-content: space-between;
  }

  .weekly-alert-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
