/* Tour Desk — visual system v0.3
   Midnight ink · stone · lantern gold · mihrab teal (Mohamed's deck palette),
   editorial serif headings, wide negative space, one focal point per section.
   The only ornament is a small diamond on a hairline (Zakhm's mark motif). */
:root {
  --ink: #0E1824; --ink-2: #16273A; --ink-line: #2A3D52; --on-ink: #F2EDE3; --on-ink-muted: #AEB9C4;
  --stone: #F2EDE3; --paper: #FBF9F4; --rule: #E0D7C6;
  --text: #101B26; --muted: #56616C;
  --gold: #D9B46A; --gold-deep: #7A5A1E; --teal: #1F5A5E; --teal-lite: #8FCFCB;
  --ok: #2E6A4E; --warn: #8A5A12; --bad: #9B3A30;
  --on-gold: #0E1824; --field: #FFFFFF; --hover: rgba(14, 24, 36, .05); --scrim: rgba(14, 24, 36, .55);
  --land: #17293C; --land-line: #2F4861; --accent-control: var(--ink);
  --display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --ui: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --r: 20px; --r-sm: 12px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --shadow: 0 1px 0 rgba(14, 24, 36, .04), 0 12px 32px -18px rgba(14, 24, 36, .22);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--text); font: 16px/1.55 var(--ui); min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible { outline-color: var(--gold); }

/* ── frame ──────────────────────────────────────────────────────────────── */
.demo-bar { background: var(--ink); color: var(--gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: 8px 16px; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 20px 96px; }
.shell.narrow { max-width: 720px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s5) 0; }
@media (max-width: 480px) { .wordmark .name { font-size: 14px; letter-spacing: .26em; } .masthead .aux > span { display: none; } }
.wordmark { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.wordmark .name { font-family: var(--display); font-size: 17px; letter-spacing: .32em; text-transform: uppercase; }
.wordmark .sub { font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.masthead .aux { display: flex; align-items: center; gap: var(--s4); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* hairline with the diamond */
.rule { position: relative; height: 1px; background: var(--rule); margin: var(--s8) 0 var(--s6); }
.rule::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; background: var(--gold-deep); transform: translateX(-50%) rotate(45deg); }
.ink .rule, .rule.on-ink { background: var(--ink-line); }
.ink .rule::after, .rule.on-ink::after { background: var(--gold); }
.mini-rule { width: 40px; height: 1px; background: var(--gold-deep); margin: var(--s4) 0; }
.ink .mini-rule { background: var(--gold); }

/* type */
.kicker { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.ink .kicker { color: var(--gold); }
.display { font-family: var(--display); font-size: clamp(34px, 8vw, 52px); line-height: 1.08; letter-spacing: .005em; }
.h2 { font-family: var(--display); font-size: clamp(26px, 5.4vw, 34px); line-height: 1.15; }
.h3 { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.lede { color: var(--muted); max-width: 52ch; font-size: 16px; }
.muted { color: var(--muted); }
.ink .muted { color: var(--on-ink-muted); }
.small { font-size: 13px; }
.num { font-family: var(--ui); font-weight: 600; font-variant-numeric: tabular-nums; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head .left { display: flex; flex-direction: column; gap: var(--s2); flex: 1; min-width: 0; }
.count { font-family: var(--ui); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--gold-deep); font-size: 18px; }

/* ── surfaces ───────────────────────────────────────────────────────────── */
.card { background: var(--paper); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow); }
.ink { background: var(--ink); color: var(--on-ink); }
.card.ink { box-shadow: none; }
.stack { display: grid; gap: var(--s4); }
.empty { color: var(--muted); padding: var(--s5) 0; border-top: 1px solid var(--rule); font-size: 15px; }

/* ── hero: where · decide · next ────────────────────────────────────────── */
.hero { border-radius: 28px; padding: var(--s6) var(--s5) var(--s5); }
.hero .display { margin-top: var(--s3); }
.answers { margin-top: var(--s6); display: grid; }
.answer { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--ink-line); text-decoration: none; color: inherit; }
.answer .ico { color: var(--gold); }
.answer .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-muted); display: block; }
.answer .v { font-size: 17px; font-weight: 500; display: block; margin-top: 2px; }
.answer .go { color: var(--gold); }
a.answer:hover .v { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.ledger { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: var(--s5); font-size: 13px; color: var(--muted); }
.ledger a { text-decoration: none; }
.ledger a:hover { color: var(--text); }
.ledger b { color: var(--text); font-weight: 600; }
.ledger .sep { width: 5px; height: 5px; background: var(--gold-deep); transform: rotate(45deg); align-self: center; }
.channels { margin-top: var(--s3); font-size: 13px; color: var(--muted); display: flex; gap: var(--s2); align-items: center; }

/* ── tags (no filled pills) ─────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: currentColor; flex: none; }
.tag.ok { color: var(--ok); } .tag.warn { color: var(--warn); } .tag.bad { color: var(--bad); } .tag.teal { color: var(--teal); } .tag.gold { color: var(--gold-deep); }
.ink .tag { color: var(--on-ink-muted); } .ink .tag.gold { color: var(--gold); } .ink .tag.teal { color: var(--teal-lite); }
.tag.hollow::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-top: var(--s5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--text); background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); }
.btn.gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn.quiet { border-color: transparent; padding: 0 8px; min-height: 44px; color: var(--muted); font-weight: 500; }
.btn.quiet:hover { color: var(--text); background: transparent; }
.btn.danger { border-color: transparent; color: var(--bad); padding: 0 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.ink .btn { border-color: var(--on-ink); color: var(--on-ink); }
.ink .btn.gold { color: var(--on-gold); border-color: var(--gold); }
.ink .btn.quiet { color: var(--on-ink-muted); border-color: transparent; }
.row select { width: auto; flex: 1 1 170px; max-width: 240px; }

/* ── forms ──────────────────────────────────────────────────────────────── */
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
label, .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { background: var(--field); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: none; box-shadow: 0 0 0 3px rgba(122, 90, 30, .18); }
textarea { min-height: 96px; resize: vertical; }
.ink input { background: var(--ink-2); border-color: #62809E; color: var(--on-ink); }
.ink input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 106, .28); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent-control); }
.error { color: var(--bad); font-size: 14px; min-height: 1.2em; margin-top: var(--s2); }
.error:empty { min-height: 0; margin: 0; }
.seg { display: flex; gap: var(--s2); flex-wrap: wrap; }
.seg label { border: 1px solid var(--rule); border-radius: 999px; padding: 0 16px; cursor: pointer; background: var(--field); color: var(--text);
  font-size: 14px; letter-spacing: 0; text-transform: none; display: flex; gap: 10px; align-items: center; min-height: 48px; }
.seg label:has(input:checked) { border-color: var(--text); }
.seg input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--accent-control); }

/* ── disclosure ─────────────────────────────────────────────────────────── */
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--muted); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; font-family: var(--display); font-size: 20px; width: 16px; color: var(--gold-deep); }
details[open] > summary::before { content: "–"; }
.ink details > summary { color: var(--on-ink-muted); }
.ink details > summary::before { color: var(--gold); }
details .inner { margin-top: var(--s3); }
details.fold { border-top: 1px solid var(--rule); padding: var(--s2) 0; }
details.fold > summary { color: var(--text); font-size: 15px; font-weight: 500; }

/* lists */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.notes { margin: var(--s2) 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
ul.notes li::marker { color: var(--gold-deep); }

/* facts (definition rows) */
.facts { display: grid; grid-template-columns: max-content 1fr; margin: var(--s5) 0 0; font-size: 15px; }
.facts dt, .facts dd { padding: 10px 0; border-top: 1px solid var(--rule); margin: 0; }
.facts dt { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-right: var(--s5); padding-top: 13px; }

/* ── decision ───────────────────────────────────────────────────────────── */
.decision .top { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; flex-wrap: wrap; }
.decision .h3 { margin-top: var(--s2); }
.decision .when { color: var(--muted); margin-top: 4px; }
.callout { margin-top: var(--s4); font-size: 14px; color: var(--text); padding-left: 14px; border-left: 2px solid var(--gold-deep); }

/* ── opportunity ────────────────────────────────────────────────────────── */
.days { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.day { border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px; min-width: 128px; }
.day b { display: block; font-weight: 600; font-size: 14px; }
.day span { display: block; font-size: 13px; color: var(--teal); }
.opp .why { margin-top: var(--s3); font-size: 15px; }

/* ── map ────────────────────────────────────────────────────────────────── */
.mapcard { border-radius: 28px; padding: var(--s5); }
.mapbody { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .mapbody { grid-template-columns: minmax(0, 560px) 1fr; gap: var(--s7); align-items: center; } }
.tourmap { width: 100%; height: auto; display: block; }
.m-land { fill: var(--land); stroke: var(--land-line); stroke-width: 1.6; stroke-linejoin: round; }
.m-lake { fill: var(--ink); stroke: var(--land-line); stroke-width: 1; }
.m-arc { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-dasharray: 1 10; stroke-linecap: round; }
.m-window { fill: rgba(143, 207, 203, .08); stroke: var(--teal-lite); stroke-width: 2; stroke-dasharray: 6 7; }
.m-window.open { fill: rgba(143, 207, 203, .16); stroke-dasharray: none; }
.m-window.full { stroke: var(--on-ink-muted); fill: none; }
.m-pt.event { fill: var(--gold); }
.m-pt.booking { fill: var(--teal-lite); }
.m-pt.request { fill: var(--ink); stroke: var(--on-ink); stroke-width: 3; }
.m-home { fill: var(--ink); stroke: var(--gold); stroke-width: 4; }
.m-label { fill: var(--on-ink); font-family: var(--display); font-size: 38px; paint-order: stroke; stroke: var(--land); stroke-width: 8px; stroke-linejoin: round; }
.m-label.home { fill: var(--gold); }
.m-sub { fill: var(--teal-lite); font-family: var(--ui); font-size: 28px; letter-spacing: .06em; paint-order: stroke; stroke: var(--land); stroke-width: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-ink-muted); font-size: 12px; margin-top: var(--s4); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.lg.home { border: 2px solid var(--gold); } .lg.event { background: var(--gold); } .lg.booking { background: var(--teal-lite); }
.lg.request { border: 2px solid var(--on-ink); } .lg.window { border: 1.5px dashed var(--teal-lite); width: 12px; height: 12px; }
.lg.window-open { border: 2px solid var(--teal-lite); background: rgba(143, 207, 203, .16); width: 12px; height: 12px; }
.trips { display: grid; }
.trip { display: grid; gap: 8px; padding: var(--s4) 0; border-top: 1px solid var(--ink-line); }
.trip:first-child { border-top: 0; }
.trip .t { font-family: var(--display); font-size: 21px; }
.trip .d { font-size: 13px; color: var(--on-ink-muted); letter-spacing: .06em; }

/* ── calendar rows ──────────────────────────────────────────────────────── */
.cal { display: grid; }
.cal-row { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.cal-row:first-child { border-top: 0; padding-top: 0; }
.cal-date { text-align: center; line-height: 1; }
.cal-date .dd { font-family: var(--ui); font-weight: 300; font-variant-numeric: tabular-nums; font-size: 26px; display: block; }
.cal-date .mm { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }
.cal-row .t { font-weight: 500; }
@media (max-width: 520px) { .cal-row { grid-template-columns: 48px 1fr; row-gap: 8px; } .cal-row > :nth-child(3) { grid-column: 2; justify-self: start; } }
.cal-row .s { font-size: 13px; color: var(--muted); }

/* ── tasks ──────────────────────────────────────────────────────────────── */
.pips { display: inline-flex; gap: 6px; }
.pip { width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--gold-deep); }
.pip.on { background: var(--gold-deep); }
.task-event > summary { justify-content: space-between; color: var(--text); font-size: 15px; font-weight: 500; }
.task-event > summary .lbl { flex: 1; }
ul.tasks { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; }
ul.tasks li { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
ul.tasks .hint { font-size: 13px; color: var(--muted); }

/* ── clash ──────────────────────────────────────────────────────────────── */
.clash { margin-top: var(--s4); border-top: 2px solid var(--bad); padding-top: var(--s4); display: grid; gap: var(--s3); }
.clash .ttl { color: var(--bad); font-weight: 600; }

/* ── timeline ───────────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.timeline li { padding: 0 0 var(--s4) 22px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-deep); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 2px; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: 12px; letter-spacing: .04em; }

/* ── sheet ──────────────────────────────────────────────────────────────── */
.sheet-bg { position: fixed; inset: 0; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } }
.sheet { background: var(--paper); border-radius: 24px 24px 0 0; width: 100%; max-width: 440px; padding: var(--s6) var(--s5) var(--s5); }
@media (min-width: 640px) { .sheet { border-radius: 24px; } }
.sheet .h3 { margin: var(--s3) 0 var(--s2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; background: var(--ink); color: var(--on-ink); border-radius: 999px;
  padding: 12px 20px; z-index: 60; max-width: calc(100% - 32px); font-size: 14px; }

/* tables (support) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 6px; border-top: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ── layout ─────────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s7); align-items: start; }
  .shell { padding: 0 40px 120px; }
  .hero { padding: var(--s7) var(--s7) var(--s5); }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; }
  .hero-grid .answers { margin-top: 0; }
  .mapcard { padding: var(--s6) var(--s7); }
}

/* ── organizer page ─────────────────────────────────────────────────────── */
.hero-plain { padding: var(--s6) 0 var(--s4); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); margin-top: var(--s6); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { font-size: 14px; color: var(--muted); }
.step .n { font-family: var(--ui); font-weight: 300; font-size: 24px; color: var(--gold-deep); display: block; }
.step b { color: var(--text); font-weight: 600; display: block; margin: 2px 0; }
.window { display: grid; gap: var(--s2); }
.window .area { font-family: var(--display); font-size: 26px; }
.terms { font-size: 14px; color: var(--muted); margin: var(--s3) 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* launcher */
.tiles { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--s6); }
.tile { text-decoration: none; }
.tile .card { height: 100%; display: grid; gap: var(--s3); }
.tile:hover .card { box-shadow: 0 0 0 1px var(--text), var(--shadow); }
.ico { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.answer .go .ico { width: 20px; height: 20px; }
.btn .ico { width: 20px; height: 20px; }
.ico svg { width: 100%; height: 100%; display: block; }

/* sign in (full ink) */
body.ink { background: var(--ink); }
body.ink .demo-bar { border-bottom: 1px solid var(--ink-line); }
.signin-wrap { max-width: 420px; margin: 10vh auto 0; }
.wordmark.big .name { font-size: 26px; letter-spacing: .3em; color: var(--on-ink); }
.wordmark.big .sub { color: var(--on-ink-muted); }
.signin-wrap .rule { margin: var(--s6) 0; }
.signin .btn { width: 100%; margin-top: var(--s2); }
body.ink label { color: var(--on-ink-muted); }
body.ink .error { color: #F0A89C; }
.signin-wrap > p { margin-top: var(--s5); }
.confirm-list { margin-top: var(--s6); }
.sheet .ico { color: var(--gold-deep); width: 28px; height: 28px; }
.opp .top .ico { color: var(--gold-deep); }
.card + p.small { margin-top: var(--s4); }

@media (max-width: 480px) { .wide-only { display: none; } }
@media (max-width: 959px) { .cols > * + * { margin-top: var(--s8); } }
.hero-plain.compact { padding: var(--s5) 0 var(--s5); }
.hero-plain.compact .lede { margin-top: var(--s3); }
.fold.how { margin-top: var(--s6); }
.fold.how .steps { margin-top: var(--s4); }

/* ── space line: small MA mark + "Mohamed Abbas" (on ink only) ───────────── */
.space { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 var(--s5); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--on-ink-muted); }
.space img { display: block; height: 14px; width: auto; aspect-ratio: 1315 / 428; }
.wordmark.big .space { margin: 14px 0 0; }
.ma-note { margin-top: var(--s7); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.credit { margin-top: var(--s7); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── month calendar ───────────────────────────────────────────────────────── */
.month { display: grid; gap: var(--s4); }
.month-head { display: flex; align-items: center; justify-content: space-between; }
.month-head .btn { font-size: 26px; font-family: var(--display); min-width: 44px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 4px; }
.day-cell { position: relative; aspect-ratio: 1 / 1.05; border: 0; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 4px; font: inherit; color: var(--text); min-height: 44px; }
.day-cell.pad { background: transparent; box-shadow: none; cursor: default; }
.day-cell.past { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.day-cell.today { box-shadow: inset 0 0 0 1.5px var(--gold-deep), var(--shadow); }
.day-cell.has { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.day-cell:hover:not(.pad) { box-shadow: inset 0 0 0 1.5px var(--text); }
.day-cell.has:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.day-cell .n { font-family: var(--ui); font-weight: 500; font-size: 15px; line-height: 1; }
.day-cell .marks { display: flex; gap: 3px; min-height: 8px; align-items: center; }
.mk { display: inline-block; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.mk.booking { background: var(--teal-lite); }
.mk.pending { background: transparent; border: 1.5px solid var(--warn); }
.day-cell.has .mk.pending { border-color: var(--gold); }
.mk.window { background: transparent; border: 1.5px solid var(--teal); transform: none; border-radius: 50%; }
.day-cell.has .mk.window { border-color: var(--teal-lite); }   /* ring on ink: 10.2:1, as the tour map draws it */
.mk.block { background: var(--muted); transform: none; width: 10px; height: 3px; border-radius: 2px; align-self: center; }
.mk.request { background: transparent; border: 1.5px solid var(--warn); transform: none; border-radius: 50%; }
.day-cell.has .mk.request { border-color: var(--gold); }
.month-legend .chip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; background: var(--ink); }
.month-legend .chip .mk.pending { border-color: var(--gold); }
.num-ui { font-family: var(--ui); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .92em; }
.month-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.month-legend span { display: inline-flex; align-items: center; gap: 7px; }
.month-legend .mk.window { border-color: var(--teal); }
.month-detail:empty { display: none; }
.month-detail { border-top: 1px solid var(--rule); padding-top: var(--s4); display: grid; gap: var(--s3); }
.day-item { display: grid; gap: 4px; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.day-item:first-of-type { border-top: 0; padding-top: 0; }
.day-item .top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.day-item .s { font-size: 13px; color: var(--muted); }
.blurb { font-family: var(--display); font-size: 17px; color: var(--text); margin-top: 4px; }
@media (min-width: 960px) { .day-cell .n { font-size: 16px; } .month-grid { gap: 6px; } }

/* ── v0.6 · alerts on this phone ─────────────────────────────────────────── */
.alerts .row { margin-top: var(--s4); }
.alerts .kicker { display: block; margin-top: var(--s5); }
.alert-rules { display: grid; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.alert-rules label:not(.check) { font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }
.alert-rules select { max-width: 200px; }
.alert-rules .row.tight { margin-top: 0; flex-wrap: nowrap; }
.alert-rules input[type="time"] { max-width: 150px; font-variant-numeric: tabular-nums; }
.alert-rules > .btn { justify-self: start; }
ul.devices { list-style: none; padding: 0; margin: var(--s2) 0 0; }
ul.devices li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); border-bottom: 1px solid var(--rule); min-height: 48px; font-size: 15px; }
.channels a { color: var(--gold-deep); text-underline-offset: 3px; white-space: nowrap; font-weight: 500; }
.flash { box-shadow: 0 0 0 2px var(--gold-deep), var(--shadow); transition: box-shadow .6s ease; }
.alerts .facts { grid-template-columns: minmax(0, 1fr) auto; }
.alerts .facts dd { text-align: right; }
.alerts .verdict { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; justify-content: space-between; margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.alert-rules .check { min-height: 44px; align-items: center; }
.alert-rules .check input { margin-top: 0; }
.alerts > p + p, .alerts .facts + p, .alerts .verdict + p { margin-top: 8px; }
#alerts-fold .tag.warn { color: #7A4F0F; }   /* warn tag sits on stone here, not on a card: 6.1:1 */

/* ── v0.7 · Midnight theme (dark), beside the default Stone ────────────────
   Same tokens, re-voiced: deep navy page, ivory text, gold as the accent.
   Dark panels are lifted one step and edged with a gold hairline so the
   hero, map and booked days still read as the "ink" moments of the page. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --stone: #0A121B; --paper: #111C28; --rule: #26384A;
  --ink: #1A2A3C; --ink-2: #22354A; --ink-line: #34495F;
  --text: #ECE5D6; --muted: #A5B0BB;
  --gold-deep: #D9B46A; --teal: #8FCFCB;
  --ok: #86CFA6; --warn: #E58B5A; --bad: #F0A89C;
  --field: #0D1722; --hover: rgba(236, 229, 214, .06); --scrim: rgba(3, 7, 12, .72);
  --land: #22364C; --land-line: #3A5570; --accent-control: var(--gold);
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -20px rgba(0, 0, 0, .75);
}
:root[data-theme="dark"] .ink:not(body) { box-shadow: inset 0 0 0 1px rgba(217, 180, 106, .22); }
:root[data-theme="dark"] .card { box-shadow: inset 0 0 0 1px rgba(236, 229, 214, .05), var(--shadow); }
:root[data-theme="dark"] body.ink { background: var(--stone); }
:root[data-theme="dark"] .demo-bar { background: #070C12; border-bottom: 1px solid var(--rule); }
:root[data-theme="dark"] .btn.primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
:root[data-theme="dark"] .btn.primary:hover { background: #E4C27E; }
:root[data-theme="dark"] .day-cell.has { background: #2C4460; box-shadow: inset 0 0 0 1px rgba(217, 180, 106, .35); }
:root[data-theme="dark"] .toast { background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(217, 180, 106, .3); }
:root[data-theme="dark"] #alerts-fold .tag.warn { color: var(--warn); }
:root[data-theme="dark"] .month-legend .chip { background: #2C4460; }
.theme-toggle { gap: 6px; }
.theme-toggle .ico { width: 16px; height: 16px; }
.btn.quiet.theme-toggle[aria-pressed="true"] { color: var(--gold-deep); }
.ink .btn.quiet.theme-toggle[aria-pressed="true"] { color: var(--gold); }
/* keyboard focus on checkboxes and radios, both themes (the field rule removes the outline) */
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
:root[data-theme="dark"] input[type="checkbox"]:focus-visible, :root[data-theme="dark"] input[type="radio"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* placeholders read as hints, above the 5.4:1 floor in both themes */
::placeholder { color: var(--muted); opacity: 1; }
/* Midnight: checkboxes and radios in the palette, not the browser's grey */
:root[data-theme="dark"] input[type="checkbox"], :root[data-theme="dark"] input[type="radio"] {
  -webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; padding: 0; margin: 0;
  background: var(--field); border: 1.5px solid var(--muted); cursor: pointer; }
:root[data-theme="dark"] input[type="checkbox"] { border-radius: 6px; }
:root[data-theme="dark"] input[type="radio"] { border-radius: 50%; }
:root[data-theme="dark"] input[type="checkbox"]:checked, :root[data-theme="dark"] input[type="radio"]:checked { background: var(--gold); border-color: var(--gold); }
:root[data-theme="dark"] input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid var(--on-gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
:root[data-theme="dark"] input[type="radio"]:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-gold); }
:root[data-theme="dark"] input[type="checkbox"]:disabled, :root[data-theme="dark"] input[type="radio"]:disabled { opacity: .5; cursor: default; }
.host-foot { margin-top: calc(-1 * var(--s7)); padding-bottom: var(--s6); }
.signin-theme { margin-top: var(--s4); }

/* ── v0.8 · Mohamed's public page ──────────────────────────────────────────
   His own logo (black on stone, gold on midnight), confirmed appearances,
   trips open for inquiries, and one place to ask. */
.public-head { flex-direction: column; align-items: flex-start; gap: var(--s2); }
.public-head .sub { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.brand-lockup { display: inline-block; line-height: 0; }
.brand-lockup img { height: 80px; width: auto; }
.brand-lockup .on-dark { display: none; }
:root[data-theme="dark"] .brand-lockup .on-light { display: none; }
:root[data-theme="dark"] .brand-lockup .on-dark { display: inline; }
.public-block { margin-top: var(--s7); }
.public-block > .kicker { display: block; margin-bottom: var(--s3); }
ul.appearances { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
ul.appearances li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4); align-items: center; }
ul.appearances .t { font-weight: 600; }
ul.appearances .s { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.kind { display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 72px; padding: var(--s3) var(--s4);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); cursor: pointer; box-shadow: var(--shadow); }
.kind:hover, .kind:focus-visible { border-color: var(--gold-deep); }
.kind b { font-weight: 600; }
.kind span { font-size: 13px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
/* owner: what the public page shows */
ul.vis-list { list-style: none; padding: 0; margin: var(--s4) 0 0; }
ul.vis-list li.vis-row { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
ul.vis-list .t { font-weight: 600; } ul.vis-list .s { font-size: 13px; color: var(--muted); }
.vis-edit input { margin-top: var(--s2); min-height: 44px; }
.public-stats { margin-top: var(--s4); color: var(--muted); }
details.advanced > summary { font-weight: 600; }
@media (max-width: 480px) { ul.vis-list li.vis-row { grid-template-columns: 48px 1fr; } ul.vis-list li.vis-row > .btn { grid-column: 2; justify-self: start; } }
.field-hint { margin: calc(-1 * var(--s2)) 0 var(--s4); }
/* v0.8.1 · visual review fixes */
@media (max-width: 480px) { .two { row-gap: 0; } }
form .rule { margin: var(--s5) 0; }
.terms + .check { margin-top: var(--s4); }
.terms li.paid-only { opacity: .75; }
.kind { min-height: 88px; justify-content: space-between; }
.kind:last-child:nth-child(odd) { grid-column: 1 / -1; }
.public-block > p.small { margin-bottom: var(--s4); }
.decision.top { gap: var(--s3); }
.nowrap { white-space: nowrap; }
.space span { font-family: 'Comfortaa', var(--ui); letter-spacing: .2em; }
