:root {
  --forest-950: #10271f;
  --forest-900: #18392e;
  --forest-800: #244d3e;
  --forest-700: #356452;
  --sage: #9db49f;
  --cream: #f7f1e4;
  --paper: #fffdf7;
  --sand: #e8b85e;
  --sand-dark: #b77d25;
  --clay: #bc6849;
  --ink: #21332b;
  --muted: #6c786f;
  --line: #dcd9ce;
  --success: #2f7d55;
  --danger: #a64b3d;
  --shadow: 0 18px 55px rgba(23, 53, 43, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  min-width: 320px;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 34px;
}

.brand {
  color: var(--forest-950);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand em {
  color: var(--clay);
  font-style: normal;
  font-weight: 600;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-900);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 15px solid var(--sand);
}

.brand-mark::before { left: 4px; }
.brand-mark::after { left: 14px; border-bottom-color: var(--paper); }
.brand-mark i { left: 10px; bottom: 4px; border-width: 5px; border-bottom-width: 9px; border-bottom-color: var(--forest-700); z-index: 2; }

.top-actions { display: flex; align-items: center; gap: 13px; }

.privacy-pill {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.account-pill { text-decoration: none; }

.privacy-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #63a879;
  box-shadow: 0 0 0 4px rgba(99, 168, 121, .14);
}

main { overflow: hidden; }

.hero {
  max-width: 1172px;
  margin: 0 auto;
  min-height: 420px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 73% 20%, rgba(232, 184, 94, .12), transparent 21%),
    linear-gradient(135deg, var(--forest-950), var(--forest-900));
  color: var(--paper);
  padding: 68px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 70px;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 360px;
  height: 260px;
  z-index: -1;
  opacity: .14;
  background:
    linear-gradient(153deg, transparent 49%, var(--sage) 50% 52%, transparent 53%) 0 0 / 90px 80px,
    linear-gradient(207deg, transparent 49%, var(--sage) 50% 52%, transparent 53%) 0 0 / 90px 80px;
  transform: rotate(-5deg);
}

.eyebrow {
  margin: 0 0 12px;
  font: 500 11px/1.2 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--clay);
}

.hero .eyebrow { color: var(--sand); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(42px, 5vw, 67px);
  line-height: .98;
  letter-spacing: -.045em;
}

h1 span { color: var(--sand); }

.hero-description {
  color: #cbd7cf;
  max-width: 610px;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.hero-facts { display: flex; align-items: center; gap: 13px; color: #a9bdb0; font-size: 13px; }
.hero-facts i { width: 3px; height: 3px; border-radius: 50%; background: var(--sand); }

.how-card {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .065);
  backdrop-filter: blur(10px);
  padding: 23px 24px 19px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.how-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 17px;
  font: 500 11px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #a9bdb0;
}

.signal { display: flex; align-items: end; gap: 3px; height: 13px; }
.signal b { display: block; width: 3px; background: var(--sand); border-radius: 2px; }
.signal b:nth-child(1) { height: 5px; }
.signal b:nth-child(2) { height: 9px; }
.signal b:nth-child(3) { height: 13px; }

.how-card ol { list-style: none; padding: 0; margin: 21px 0 18px; counter-reset: steps; }
.how-card li { counter-increment: steps; display: grid; grid-template-columns: 31px 1fr; column-gap: 12px; margin: 16px 0; }
.how-card li::before {
  content: counter(steps);
  width: 29px; height: 29px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(232,184,94,.42); color: var(--sand);
  font: 500 11px "DM Mono", monospace;
  grid-row: 1 / 3;
}
.how-card strong { font-size: 14px; margin-bottom: 3px; }
.how-card li span { font-size: 12px; line-height: 1.45; color: #9eb0a5; }
.how-card > p { margin: 0; color: #82978a; font-size: 11px; text-align: center; }

.watch-builder,
.watches {
  max-width: 1085px;
  margin: 0 auto;
}

.watch-builder {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  padding: 29px 34px 27px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 66, 56, .08);
  border-radius: var(--radius);
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { margin-bottom: 0; font: 700 28px/1.16 "Fraunces", Georgia, serif; letter-spacing: -.025em; }

.text-button {
  border: 0;
  background: transparent;
  color: var(--forest-700);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 0;
}

#watchForm {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.field-campground { grid-column: span 4; }
.field-date { grid-column: span 3; }
.field-compact, .form-action { grid-column: span 2; }

.field { min-width: 0; position: relative; }
.field label { display: block; margin-bottom: 8px; color: #4b5d53; font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }

input, select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  transition: border-color .16s, box-shadow .16s;
}

input:focus, select:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(53,100,82,.12); }
input[type="search"] { padding-left: 37px; padding-right: 34px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 20px, calc(100% - 11px) 20px; background-size: 4px 4px; background-repeat: no-repeat; }
.length-input { position: relative; }
.length-input input { padding-right: 36px; }
.length-input span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }

.search-wrap { position: relative; }
.search-icon { position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border: 1.7px solid var(--muted); border-radius: 50%; z-index: 1; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); transform: rotate(45deg); right: -4px; bottom: -2px; border-radius: 1px; }
.search-spinner { position: absolute; right: 13px; top: 14px; width: 18px; height: 18px; border: 2px solid #dfe2dd; border-top-color: var(--clay); border-radius: 50%; opacity: 0; }
.search-spinner.active { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field-hint { margin: 6px 0 0; font-size: 10px; color: #8a928c; }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: 70px; max-height: 295px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 38px rgba(24, 57, 46, .16); padding: 6px; }
.search-result { width: 100%; border: 0; border-radius: 7px; background: transparent; text-align: left; padding: 11px 12px; display: flex; justify-content: space-between; gap: 12px; }
.search-result:hover, .search-result:focus { background: #f3f3ec; outline: none; }
.search-result strong { font-size: 13px; display: block; color: var(--ink); }
.search-result span { font-size: 11px; color: var(--muted); }
.search-result em { color: var(--clay); font: 500 10px "DM Mono", monospace; font-style: normal; white-space: nowrap; }
.search-empty { padding: 14px; font-size: 12px; color: var(--muted); }

.form-action { display: flex; align-items: flex-end; justify-content: flex-end; min-height: 72px; margin-top: 0; }
.form-action .button { width: 100%; }
.button { border: 0; border-radius: 9px; min-height: 42px; padding: 0 18px; font-weight: 600; font-size: 12px; transition: transform .15s, background .15s, color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { min-width: 176px; height: 46px; background: var(--clay); color: white; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px 0 19px; box-shadow: 0 8px 18px rgba(188,104,73,.22); }
.button-primary:hover { background: #aa5a3d; }
.button-primary b { font-size: 18px; font-weight: 400; }
.button-secondary { background: var(--forest-900); color: white; }
.button-ghost { background: transparent; color: var(--forest-800); border: 1px solid #ccd3cc; }
.button-small { min-height: 34px; padding: 0 13px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.form-message { min-height: 0; font-size: 12px; margin-top: 0; color: var(--danger); }
.form-message:not(:empty) { margin-top: 12px; }
.form-message a { color: var(--forest-700); font-weight: 700; text-underline-offset: 3px; }

.watches { padding: 77px 0 90px; }
.watches-heading { padding-bottom: 22px; border-bottom: 1px solid #d8d5ca; }
.watch-list { display: grid; gap: 14px; }

.watch-card {
  background: rgba(255,255,255,.56);
  border: 1px solid #ddd9ce;
  border-radius: 14px;
  padding: 20px 21px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  grid-template-areas:
    "main meta"
    "actions actions";
  align-items: end;
  column-gap: 34px;
  row-gap: 17px;
  transition: border-color .18s, background .18s;
}
.watch-card.has-match { background: #fffaf0; border-color: #d9b56e; box-shadow: inset 4px 0 0 var(--sand-dark); }
.watch-main { grid-area: main; min-width: 0; }
.watch-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.watch-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47,125,85,.1); }
.watch-status.paused { color: var(--muted); }
.watch-status.found { color: var(--sand-dark); }
.watch-main h3 { font: 700 19px "Fraunces", serif; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-main p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.watch-meta { grid-area: meta; display: grid; grid-template-columns: repeat(3, minmax(86px, 1fr)); gap: 18px; }
.watch-meta span { display: block; color: #8b948e; font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 5px; }
.watch-meta strong { display: block; color: #41534a; font-size: 12px; }
.watch-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid #e2dfd5;
}
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d5d6ce; background: transparent; color: var(--muted); border-radius: 8px; font-size: 14px; }
.icon-button:hover { color: var(--forest-900); border-color: var(--forest-700); }
.icon-button.danger:hover { color: var(--danger); border-color: var(--danger); }
.reserve-link { height: 36px; display: inline-flex; align-items: center; text-decoration: none; background: var(--clay); color: white; padding: 0 13px; border-radius: 8px; font-size: 11px; font-weight: 600; margin-right: auto; }
.official-check-link { display: inline-flex; align-items: center; color: var(--teal); font-size: 11px; font-weight: 700; line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; margin-right: auto; }

.match-results { grid-column: 1 / -1; min-width: 0; border-top: 1px solid #e3d7bd; padding-top: 14px; }
.match-results-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.match-results-header > span { color: #7f765f; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.match-toggle { flex: 0 0 auto; }
.match-panel { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.match-panel.expanded { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-height: 430px; overflow-x: hidden; overflow-y: auto; padding: 2px 7px 7px 2px; }
.match-chip { flex: 0 0 auto; border-radius: 8px; background: white; border: 1px solid #e3d3b1; padding: 9px 11px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.match-panel.expanded .match-chip { min-width: 0; }
.match-chip:hover { border-color: var(--sand-dark); transform: translateY(-1px); }
.match-chip strong { display: block; font-size: 11px; margin-bottom: 3px; }
.match-chip span { display: block; font-size: 9px; color: var(--muted); }

.empty-state { text-align: center; padding: 52px 20px 30px; }
.empty-state h3 { font: 700 19px "Fraunces", serif; margin-bottom: 7px; }
.empty-state p { margin: 0 auto; max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-illustration { width: 82px; height: 62px; position: relative; margin: 0 auto 14px; }
.empty-illustration span, .empty-illustration i { position: absolute; bottom: 8px; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 43px solid #a9bbaa; }
.empty-illustration span { left: 2px; }
.empty-illustration i { right: 0; border-left-width: 18px; border-right-width: 18px; border-bottom-width: 34px; border-bottom-color: #6f8c77; }
.empty-illustration b { position: absolute; height: 2px; background: var(--clay); left: 0; right: 0; bottom: 7px; }

.check-history { max-width: 1172px; margin: 0 auto 88px; }
.history-heading { align-items: flex-end; padding-bottom: 20px; }
.history-intro { color: var(--muted); font-size: 12px; margin: -5px 0 0; }
.history-actions { display: flex; align-items: center; gap: 13px; }
.history-actions > span { color: var(--muted); font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.history-actions .button:disabled { cursor: default; }
.history-table-wrap { overflow-x: auto; border: 1px solid #d8d5ca; border-radius: 14px; background: rgba(255, 255, 255, .55); }
.history-table { width: 100%; min-width: 960px; border-collapse: collapse; text-align: left; }
.history-table th { background: rgba(238, 241, 233, .8); color: #78857d; padding: 11px 14px; font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; border-bottom: 1px solid #d8d5ca; white-space: nowrap; }
.history-table td { color: #41534a; padding: 14px; font-size: 11px; vertical-align: top; border-bottom: 1px solid #e2dfd5; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table td:first-child { min-width: 180px; }
.history-table td:nth-child(2) { min-width: 185px; max-width: 255px; }
.history-table td:nth-child(3) { min-width: 150px; max-width: 260px; }
.history-table td:nth-child(6) { min-width: 120px; }
.history-table td:last-child { min-width: 150px; }
.history-table td > strong { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; }
.history-table td > span:not(.history-status), .history-table td > small { display: block; color: #899188; font-size: 9px; line-height: 1.45; margin-top: 3px; }
.history-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 8px; font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.history-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.history-status.success { color: var(--success); background: rgba(47, 125, 85, .1); }
.history-status.error { color: var(--danger); background: rgba(166, 75, 61, .1); }
.history-empty { border: 1px dashed #cbc9be; border-radius: 14px; padding: 30px 24px; display: grid; gap: 4px; text-align: center; color: var(--muted); }
.history-empty[hidden] { display: none; }
.history-empty strong { color: var(--forest-800); font: 700 16px "Fraunces", serif; }
.history-empty span { font-size: 11px; }

.history-page-main { max-width: 1172px; margin: 0 auto; padding-bottom: 88px; overflow: visible; }
.history-hero { min-height: 250px; border-radius: 26px; background: linear-gradient(135deg, var(--forest-950), var(--forest-900)); color: var(--paper); padding: 48px 54px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.history-hero::after { content: ""; position: absolute; width: 260px; height: 190px; right: -25px; top: -50px; opacity: .13; background: linear-gradient(153deg, transparent 49%, var(--sage) 50% 52%, transparent 53%) 0 0 / 70px 62px, linear-gradient(207deg, transparent 49%, var(--sage) 50% 52%, transparent 53%) 0 0 / 70px 62px; transform: rotate(-7deg); }
.history-hero > * { position: relative; z-index: 1; }
.history-hero .eyebrow { color: var(--sand); }
.history-hero h1 { font-size: clamp(42px, 5vw, 62px); margin-bottom: 10px; }
.history-hero p:last-child { max-width: 590px; margin: 0; color: #cbd7cf; font-size: 14px; line-height: 1.6; }
.history-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; min-width: 330px; }
.history-hero-actions > span { width: 100%; color: #a9bdb0; font: 500 9px "DM Mono", monospace; text-transform: uppercase; text-align: right; letter-spacing: .09em; }
.history-hero-actions .button { color: var(--paper); border-color: rgba(255, 255, 255, .28); }
.history-hero-actions .button:hover { border-color: var(--sand); }
.history-hero-actions .history-clear:hover { color: #ffd4c8; border-color: #db8b74; }
.history-summary { margin: -24px 32px 28px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dedbd1; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.history-summary > div { padding: 18px 21px; border-right: 1px solid #e2dfd5; }
.history-summary > div:last-child { border-right: 0; }
.history-summary span { display: block; color: #899188; font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.history-summary strong { color: var(--forest-900); font: 700 23px "Fraunces", serif; }
.history-page .check-history { max-width: none; margin: 0; }
.history-surface { min-height: 180px; }
.history-page footer a { color: #c5d3ca; text-underline-offset: 3px; }

footer { background: var(--forest-950); color: #869b8f; padding: 25px 34px; font-size: 10px; display: flex; justify-content: space-between; gap: 20px; }
footer p { margin: 0; }
footer strong { color: #c5d3ca; }
footer a { color: #c5d3ca; text-underline-offset: 3px; }
.legal-copy { display: block; max-width: 840px; padding: clamp(28px, 5vw, 64px); }
.legal-copy h1 { margin-bottom: 20px; }
.legal-copy h2 { margin-top: 32px; }
.legal-copy p { line-height: 1.7; }
.payment-fallback { display: block; margin-top: 10px; text-align: center; font-size: 12px; color: var(--forest-700); text-underline-offset: 3px; }

.toast-region { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { max-width: 350px; background: var(--forest-950); color: white; border-radius: 10px; padding: 13px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.22); font-size: 12px; animation: toast-in .2s ease-out; }
.toast.error { background: #7e352b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(9, 27, 21, .72);
  backdrop-filter: blur(5px);
  padding: 28px 18px;
  overflow-y: auto;
}

.modal-backdrop[hidden] { display: none; }

.settings-modal {
  width: min(720px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  padding: 29px 31px 26px;
}

.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-header .eyebrow { margin-bottom: 6px; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.modal-close:hover { border-color: var(--forest-700); color: var(--forest-900); }
.modal-intro { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 13px 0 20px; }
.settings-section { border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px 14px; margin-top: 12px; }
.channel-section { padding: 0; overflow: hidden; }
.channel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: rgba(247, 246, 239, .72); }
.channel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.channel-title > div { display: grid; gap: 2px; }
.channel-title strong { color: var(--forest-900); font-size: 13px; }
.channel-title small { color: var(--muted); font-size: 10px; }
.channel-heading-actions { display: flex; align-items: center; gap: 11px; }
.channel-controls { min-width: 0; border: 0; margin: 0; padding: 16px 18px 15px; transition: opacity .18s ease; }
.channel-controls:disabled { opacity: .42; }
.master-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.master-switch input { position: absolute; opacity: 0; pointer-events: none; }
.master-switch > span { width: 38px; height: 22px; border-radius: 99px; background: #c9cdc7; position: relative; transition: background .18s ease; }
.master-switch > span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform .18s ease; }
.master-switch input:checked + span { background: var(--success); }
.master-switch input:checked + span::after { transform: translateX(16px); }
.master-switch input:focus-visible + span { outline: 3px solid rgba(23, 107, 98, .22); outline-offset: 2px; }
.master-switch b { font-size: 0; }
.settings-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.settings-section-heading > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.channel-icon { width: 27px; height: 27px; border-radius: 7px; background: #eef1e9; color: var(--forest-700); display: grid; place-items: center; font: 500 12px "DM Mono", monospace; }
.setup-status { color: var(--clay); background: rgba(188, 104, 73, .09); border-radius: 99px; padding: 5px 8px; font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.setup-status.ready { color: var(--success); background: rgba(47, 125, 85, .1); }
.recipient-grid, .credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.settings-section details { margin-top: 12px; border-top: 1px solid #e7e3d9; padding-top: 11px; }
.settings-section summary { color: var(--forest-700); cursor: pointer; font-size: 11px; font-weight: 600; list-style-position: outside; margin-left: 15px; }
.credential-grid { margin-top: 13px; }
.fixed-value { height: 46px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #f1f1e9; color: var(--forest-800); padding: 0 12px; font-size: 13px; }
.test-channel { margin-top: 6px; }
.ntfy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin-top: 5px; }
.ntfy-actions .text-button { margin: 0; }
.ntfy-privacy { margin-top: 9px; }
.sample-alert-preview { margin-top: 14px; border: 1px solid #ded8c9; border-radius: 10px; background: #f7f4eb; padding: 13px 14px; display: grid; gap: 5px; }
.sample-alert-preview > span { color: #899188; font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.sample-alert-preview strong { color: var(--forest-900); font-size: 12px; }
.sample-alert-preview p { color: var(--muted); font-size: 11px; margin: 0; }
.sample-alert-preview a { color: var(--teal); font-size: 11px; font-weight: 700; text-underline-offset: 3px; }
.sample-alert-preview small { color: #899188; font-size: 9px; line-height: 1.45; margin-top: 3px; }
.sample-alert-details { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; padding: 12px 18px; }
.sample-alert-details > summary { color: var(--forest-700); cursor: pointer; font-size: 11px; font-weight: 700; }
.sample-alert-details .sample-alert-preview { margin: 12px 0 2px; }
.security-note { color: #899188; font-size: 10px; line-height: 1.5; margin: 14px 2px 0; }
.interval-section .settings-section-heading { margin-bottom: 11px; }
.interval-section .field { max-width: 330px; }
.provider-note { color: var(--forest-700); background: #eef1e9; border-radius: 8px; font-size: 10px; line-height: 1.45; margin: 10px 0 0; padding: 9px 10px; }
.edit-modal { max-width: 650px; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.edit-weekday { grid-column: 1 / -1; }
.modal-actions { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.modal-actions > span { color: var(--danger); font-size: 11px; }
.modal-actions .button { flex: 0 0 auto; }

body.modal-open { overflow: hidden; }

.access-page { min-height: 100vh; background: var(--forest-950); }
.access-page .topbar { background: transparent; color: white; }
.access-page .brand { color: white; }
.access-page .top-actions .button { color: white; border-color: rgba(255, 255, 255, .35); }
.access-main { min-height: calc(100vh - 76px); padding: 68px max(24px, calc((100vw - 1180px) / 2)) 90px; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(460px, 1.15fr); gap: 72px; align-items: start; }
.access-intro { color: white; padding-top: 42px; position: sticky; top: 105px; }
.access-intro .eyebrow { color: var(--gold); }
.access-intro h1 { font-size: clamp(43px, 5vw, 70px); line-height: .98; margin: 13px 0 24px; }
.access-intro h1 span { color: #bad1c5; }
.access-intro > p:last-child { color: #b7c6bf; max-width: 500px; font-size: 16px; line-height: 1.7; }
.access-card, .account-panel { background: var(--paper); border-radius: 22px; padding: 34px; box-shadow: 0 30px 90px rgba(0, 0, 0, .3); }
.access-card { margin-top: 28px; }
.access-card h2, .account-panel h2 { margin: 7px 0 0; color: var(--forest-950); }
.access-copy { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 10px 0 22px; }
.access-submit { width: 100%; margin-top: 17px; }
.access-back { display: block; margin: 16px auto 0; }
.code-input { font: 600 26px "DM Mono", monospace; letter-spacing: .3em; text-align: center; }
.account-panel { grid-column: 2; }
.account-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-heading h2 { font: 600 20px "DM Sans", sans-serif; overflow-wrap: anywhere; }
.access-time { flex: 0 0 auto; text-align: right; padding: 10px 13px; border-radius: 9px; background: #eef1e9; }
.access-time span { display: block; color: var(--muted); font: 500 8px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.access-time strong { display: block; color: var(--success); margin-top: 4px; font-size: 12px; }
.dashboard-link { width: 100%; margin-top: 22px; }
.dashboard-link b { margin-left: auto; }
.plan-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin: 36px 0 18px; }
.plan-heading > p { color: var(--muted); max-width: 280px; margin: 0; font-size: 11px; line-height: 1.5; text-align: right; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.plan-card { position: relative; border: 1px solid var(--line); border-radius: 13px; padding: 19px 16px 16px; display: flex; flex-direction: column; min-width: 0; }
.plan-card.featured { border-color: var(--gold); box-shadow: inset 0 3px var(--gold); }
.plan-name { color: var(--forest-700); font-size: 12px; font-weight: 700; margin: 0; }
.plan-price { color: var(--forest-950); font: 700 31px "Fraunces", serif; margin: 13px 0 3px; }
.plan-price small { font-size: 15px; vertical-align: top; margin-right: 2px; }
.plan-duration { color: var(--muted); font-size: 9px; }
.plan-value { color: var(--forest-700); font-size: 9px; font-weight: 600; min-height: 28px; margin: 7px 0 14px; line-height: 1.45; }
.plan-badge { position: absolute; right: 9px; top: 9px; background: rgba(232, 184, 94, .2); color: #8c651d; padding: 4px 6px; border-radius: 99px; font: 500 7px "DM Mono", monospace; text-transform: uppercase; }
.paypal-button { width: 100%; min-height: 50px; margin-top: auto; border: 1px solid #e1ad17; border-radius: 9px; background: #ffc439; color: #142c8e; padding: 7px 11px 7px 13px; display: flex; align-items: center; justify-content: space-between; gap: 9px; text-decoration: none; box-shadow: 0 5px 12px rgba(176, 127, 0, .17); transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.paypal-button:hover { background: #ffcf55; border-color: #cf9900; box-shadow: 0 7px 17px rgba(176, 127, 0, .25); transform: translateY(-1px); }
.paypal-button:focus-visible { outline: 3px solid rgba(0, 156, 222, .27); outline-offset: 3px; }
.paypal-button-copy { min-width: 0; display: grid; gap: 1px; text-align: left; }
.paypal-button-copy > small { color: #3c4a73; font: 600 7px "DM Sans", sans-serif; letter-spacing: .01em; }
.paypal-button-copy > strong { font: 800 italic 16px Arial, sans-serif; letter-spacing: -.8px; line-height: 1; white-space: nowrap; }
.paypal-button-copy b { color: #003087; }
.paypal-button-copy i { color: #009cde; font-style: italic; }
.paypal-arrow { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; background: rgba(255, 255, 255, .48); display: grid; place-items: center; color: #003087; font-size: 12px; font-weight: 800; }
.payment-steps { margin-top: 22px; background: #f3f2e9; border-radius: 13px; padding: 20px; }
.payment-steps > strong { color: var(--forest-950); font-size: 13px; }
.payment-steps ol { color: var(--muted); font-size: 11px; line-height: 1.6; padding-left: 19px; margin: 10px 0 18px; }
.claim-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 11px; }
.owner-panel { margin-top: 37px; padding-top: 1px; border-top: 1px solid var(--line); }
.admin-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #f8f7f1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.admin-card > div:first-child strong { color: var(--forest-950); font-size: 13px; }
.admin-card > div:first-child p { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 5px 0 0; }
.admin-card .button { width: 100%; margin-top: auto; }
.admin-card .form-message { min-height: 16px; margin: -3px 0 0; }
.owner-subsection { margin-top: 30px; padding-top: 1px; border-top: 1px solid var(--line); }
.compact-heading { margin-top: 24px; }
.claim-list { display: grid; gap: 8px; }
.claim-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; }
.claim-row > div:first-child { min-width: 0; display: grid; gap: 4px; }
.claim-row > div:first-child strong { color: var(--forest-950); font-size: 11px; overflow-wrap: anywhere; }
.claim-row > div:first-child span { color: var(--muted); font: 400 9px "DM Mono", monospace; }
.claim-status { border-radius: 99px; padding: 5px 7px; background: #ecebe3; color: var(--muted); font: 500 8px "DM Mono", monospace; text-transform: uppercase; }
.claim-status.approved { color: var(--success); background: rgba(47, 125, 85, .1); }
.claim-status.activated { color: var(--success); background: rgba(47, 125, 85, .1); }
.claim-status.rejected { color: var(--danger); background: rgba(126, 53, 43, .1); }
.claim-status.delivery-failed { color: var(--danger); background: rgba(126, 53, 43, .1); }
.claim-status.sending { color: #8c651d; background: rgba(232, 184, 94, .2); }
.claim-actions { display: flex; gap: 6px; }
.claim-empty { color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .access-main { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .access-intro { position: static; padding-top: 0; }
  .account-panel { grid-column: 1; }
}

@media (max-width: 620px) {
  .access-main { padding-left: 12px; padding-right: 12px; }
  .access-card, .account-panel { padding: 25px 20px; border-radius: 17px; }
  .account-heading, .plan-heading { display: block; }
  .access-time { text-align: left; margin-top: 15px; }
  .plan-heading > p { text-align: left; margin-top: 9px; }
  .plan-grid { grid-template-columns: 1fr; }
  .claim-grid { grid-template-columns: 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .claim-row { grid-template-columns: 1fr auto; }
  .claim-actions { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .hero { margin: 0 18px; padding: 55px 44px; gap: 35px; }
  .watch-builder, .watches, .check-history { margin-left: 34px; margin-right: 34px; }
  #watchForm { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .history-page-main { margin-left: 34px; margin-right: 34px; }
}

@media (max-width: 730px) {
  .topbar { height: 68px; padding: 0 18px; }
  .privacy-pill { display: none; }
  .hero { grid-template-columns: 1fr; padding: 43px 27px; }
  .how-card { display: none; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .watch-builder { margin: -22px 12px 0; padding: 24px 20px; }
  .section-heading { align-items: flex-start; }
  #watchForm { grid-template-columns: 1fr 1fr; }
  .field-date, .field-compact { grid-column: auto; }
  .field-campground, .form-action { grid-column: 1 / -1; }
  .form-action .button { width: 100%; }
  .watches { margin: 0 18px; padding-top: 60px; }
  .check-history { margin-left: 18px; margin-right: 18px; margin-bottom: 66px; }
  .history-heading { align-items: flex-start; }
  .watch-card {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "meta" "actions";
    gap: 17px;
    align-items: start;
  }
  .watch-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-actions { justify-content: flex-start; }
  footer { flex-direction: column; }
  .settings-modal { padding: 24px 20px 21px; }
  .recipient-grid, .credential-grid { grid-template-columns: 1fr; }
  .channel-heading { align-items: flex-start; }
  .channel-heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-weekday { grid-column: auto; }
  .modal-actions { align-items: stretch; flex-direction: column; }
  .modal-actions .button { width: 100%; }
  .history-page-main { margin: 0 18px; padding-bottom: 66px; }
  .history-hero { min-height: 0; padding: 39px 31px 53px; align-items: flex-start; flex-direction: column; gap: 26px; }
  .history-hero-actions { min-width: 0; width: 100%; justify-content: flex-start; }
  .history-hero-actions > span { text-align: left; }
  .history-summary { margin-left: 18px; margin-right: 18px; }
  .history-page .check-history { margin: 0; }
}

@media (max-width: 470px) {
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .top-actions .button { font-size: 10px; padding: 0 9px; }
  .watch-meta { grid-template-columns: 1fr 1fr; }
  #notifyButton { display: none; }
  .top-actions .nav-link { display: none; }
  .hero { margin: 0 8px; border-radius: 18px; padding: 39px 22px 49px; }
  .hero-description { font-size: 15px; }
  .section-heading { display: block; }
  .section-heading .text-button { margin-top: 8px; }
  #watchForm { grid-template-columns: 1fr; }
  .field-campground, .field-date, .field-compact, .form-action { grid-column: auto; }
  .watch-builder { margin-left: 8px; margin-right: 8px; }
  .watch-meta { grid-template-columns: 1fr; gap: 9px; }
  .watch-actions .reserve-link, .watch-actions .official-check-link { flex-basis: 100%; margin-right: 0; }
  .match-results-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .match-panel.expanded { grid-template-columns: 1fr; max-height: 520px; }
  .history-actions { justify-content: space-between; margin-top: 14px; }
  .history-summary { grid-template-columns: 1fr; }
  .history-summary > div { border-right: 0; border-bottom: 1px solid #e2dfd5; }
  .history-summary > div:last-child { border-bottom: 0; }
  .history-hero-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
