/* BCS Christmas Light Drive — holiday theme, mobile first. */
:root {
  --night: #0b1a2e;
  --night-2: #0e2440;
  --pine: #14532d;
  --pine-2: #1f7a4d;
  --berry: #c8102e;
  --berry-2: #a10d25;
  --gold: #f2c14e;
  --gold-2: #e0a92a;
  --snow: #f8fafc;
  --cream: #fffaf0;
  --ink: #1e293b;
  --ink-2: #475569;
  --line: #e7dcc4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  --font-display: 'Mountains of Christmas', 'Georgia', serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--snow);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(242, 193, 78, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(31, 122, 77, 0.25), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0a1f35 45%, #0b2a24 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
body > *:not(.snow):not(dialog) { position: relative; z-index: 1; }

/* ---------- string of lights ---------- */
.light-string {
  display: flex; justify-content: space-around; align-items: flex-start;
  height: 34px; padding: 0 8px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
}
.light-string::before {
  content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px;
  background: #1f2a1f; box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.bulb {
  position: relative; width: 12px; height: 18px; margin-top: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: twinkle 2.4s ease-in-out infinite;
}
.bulb::before { content: ''; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; background: #2d3a2d; border-radius: 2px; }
.bulb:nth-child(odd) { margin-top: 12px; }
.bulb.red { background: #ff4d5e; --glow: #ff4d5e; }
.bulb.gold { background: #ffd166; --glow: #ffd166; }
.bulb.green { background: #3ee07a; --glow: #3ee07a; }
.bulb.blue { background: #5ab8ff; --glow: #5ab8ff; }
.bulb.white { background: #fff6d8; --glow: #fff6d8; }
@keyframes twinkle {
  0%, 100% { box-shadow: 0 0 10px 3px var(--glow); opacity: 1; }
  50% { box-shadow: 0 0 2px 0 var(--glow); opacity: 0.55; }
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 16px 10px; max-width: 1400px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--snow); min-width: 0; }
.brand img { flex: none; filter: drop-shadow(0 0 8px rgba(242,193,78,0.6)); }
.brand-title {
  font-family: var(--font-display); font-size: clamp(1.35rem, 4.6vw, 2.1rem); line-height: 1.05;
  color: #fff; text-shadow: 0 0 14px rgba(242,193,78,0.55);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 1.1rem; cursor: pointer;
}
.icon-btn[aria-pressed="false"] { opacity: 0.5; }

.user-menu { position: relative; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold);
  background: var(--berry); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.menu {
  position: absolute; right: 0; top: 48px; min-width: 220px; z-index: 20;
  background: var(--cream); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
}
.menu button, .menu a {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none;
  font: inherit; color: var(--ink); border-radius: 8px; text-decoration: none; cursor: pointer;
}
.menu button:hover, .menu a:hover { background: #f3e9d2; }
.menu-who { padding: 8px 12px; font-size: 0.85rem; color: var(--ink-2); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }

.announcement, .setup-banner {
  max-width: 1400px; margin: 0 auto 8px; padding: 10px 16px; text-align: center; font-weight: 700;
  background: linear-gradient(90deg, var(--berry), var(--berry-2)); color: #fff;
}
.setup-banner { background: #334155; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0;
  font: 800 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.92rem; }
.btn-red { background: var(--berry); color: #fff; box-shadow: 0 4px 0 var(--berry-2); }
.btn-red:hover { filter: brightness(1.08); }
.btn-gold { background: var(--gold); color: #3b2a05; box-shadow: 0 3px 0 var(--gold-2); }
.btn-green { background: var(--pine-2); color: #fff; box-shadow: 0 4px 0 var(--pine); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-plain { background: #f1e8d4; color: var(--ink); }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #1f2937; border: 1px solid #d1d5db; }
.btn-google .g { font-weight: 900; color: #4285f4; font-size: 1.15rem; }
.linkish { background: none; border: 0; color: var(--berry); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* ---------- hero ---------- */
.hero { max-width: 1400px; margin: 0 auto; padding: 8px 16px 18px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; margin: 6px auto 6px; max-width: 900px;
  font-size: clamp(1.9rem, 6vw, 3.3rem); line-height: 1.05; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,0.3), 0 0 22px rgba(242,193,78,0.35);
}
.lede { margin: 0 auto 12px; max-width: 640px; font-size: clamp(1rem, 2.8vw, 1.15rem); color: #dbe4ee; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 14px; color: #dbe4ee; }
.stats strong { color: var(--gold); font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- layout ---------- */
.layout {
  max-width: 1400px; margin: 0 auto; padding: 0 16px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }
  .panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
}

/* the inset map: candy-cane frame */
.map-frame {
  padding: 6px; border-radius: calc(var(--radius) + 6px);
  background: repeating-linear-gradient(135deg, var(--berry) 0 14px, #fff 14px 28px);
  box-shadow: var(--shadow);
}
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f172a; }
.map { height: 62vh; min-height: 380px; width: 100%; }
@media (min-width: 1000px) { .map { height: calc(100vh - 150px); min-height: 560px; max-height: 900px; } }

.map-card.expanded { position: fixed; inset: 0; z-index: 50; border-radius: 0; }
.map-card.expanded .map { height: 100vh; height: 100dvh; max-height: none; }
body.map-open { overflow: hidden; }
body.map-open .layout { z-index: 60; }

.map-toolbar {
  position: absolute; z-index: 5; top: 10px; left: 10px; right: 56px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; pointer-events: none;
}
.map-toolbar > * { pointer-events: auto; }
.map-buttons { display: flex; gap: 6px; }
.chip {
  min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(15,23,42,0.15);
  background: rgba(255,250,240,0.95); color: var(--ink); font: 700 0.9rem var(--font-body); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); white-space: nowrap;
}
.chip.on, .chip[aria-pressed="true"] { background: var(--berry); color: #fff; border-color: var(--berry); }

.search { position: relative; flex: 1 1 220px; max-width: 420px; }
.search input {
  width: 100%; min-height: 40px; padding: 8px 14px 8px 36px; border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.15); background: #fffaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  font: 600 1rem var(--font-body); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.search-list {
  position: absolute; left: 0; right: 0; top: 44px; z-index: 30; margin: 0; padding: 4px; list-style: none;
  background: var(--cream); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); max-height: 320px; overflow: auto;
}
.search-list li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.search-list li span { color: var(--ink-2); font-size: 0.85rem; white-space: nowrap; }
.search-list li.active, .search-list li:hover { background: #f3e9d2; }

.legend {
  position: absolute; z-index: 4; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding: 6px 10px; border-radius: 10px; background: rgba(11,26,46,0.78); color: #e2e8f0; font-size: 0.78rem; font-weight: 700;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-gold { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.dot-show { background: linear-gradient(90deg, #ef4444 50%, #22c55e 50%); box-shadow: 0 0 8px #ef4444; }
.ln { width: 16px; height: 0; border-top: 3px dashed; display: inline-block; }
.ln-bryan { border-color: #f87171; }
.ln-cs { border-color: #4ade80; }

.pick-banner {
  position: absolute; z-index: 6; left: 50%; top: 60px; transform: translateX(-50%);
  background: var(--berry); color: #fff; padding: 8px 8px 8px 14px; border-radius: 999px; font-weight: 700;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); white-space: nowrap;
}
.pick-banner button { border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }

.toast {
  position: absolute; z-index: 9; left: 50%; top: 64px; transform: translateX(-50%);
  max-width: calc(100% - 32px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px;
  font-weight: 700; box-shadow: var(--shadow); text-align: center;
}
.toast.error { background: var(--berry); }

/* map markers */
.home-pin { font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }
.stop-pin {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: var(--berry); color: #fff; font: 800 0.85rem var(--font-body); box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(59,130,246,0.3); }

/* ---------- house card (inside the map) ---------- */
.house-card {
  position: absolute; z-index: 8; left: 10px; right: 10px; bottom: 10px; max-height: 70%; overflow: auto;
  background: var(--cream); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px 16px;
  border-top: 5px solid var(--gold);
}
@media (min-width: 700px) { .house-card { left: auto; width: 380px; } }
.house-card.lit { border-top-color: var(--gold); }
.house-card.show { border-top: 5px solid; border-image: linear-gradient(90deg, #ef4444, #22c55e) 1; }
.hc-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #efe5cf; cursor: pointer; font-size: 1rem; }
.hc-addr { margin: 0 36px 2px 0; font-size: 1.15rem; font-weight: 800; }
.hc-city { margin: 0 0 8px; color: var(--ink-2); font-size: 0.9rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; }
.badge-on { background: #fef3c7; color: #92400e; }
.badge-off { background: #e2e8f0; color: #334155; }
.badge-size { background: #dcfce7; color: #14532d; }
.badge-show { background: #fee2e2; color: #991b1b; }
.badge-feat { background: var(--gold); color: #3b2a05; }
.badge-mine { background: #dbeafe; color: #1e3a8a; }
.hc-note { margin: 6px 0; font-size: 0.95rem; }
.hc-meta { margin: 4px 0 10px; color: var(--ink-2); font-size: 0.85rem; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; }
.hc-actions.go { display: grid; grid-template-columns: auto 1fr 1fr; }
.hc-actions.go .btn { padding: 8px 10px; white-space: nowrap; }
@media (max-width: 420px) { .hc-actions.go .btn { font-size: 0.85rem; padding: 8px 8px; } }
.heart { background: #fff; color: var(--berry); border: 2px solid var(--berry); box-shadow: none; }
.heart[aria-pressed="true"] { background: var(--berry); color: #fff; }
.tune { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #111827; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.tune .freq { font-size: 1.4rem; color: var(--gold); letter-spacing: 0.02em; }

/* ---------- side panel ---------- */
.panel { background: var(--cream); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--pine); }
.tabs [role="tab"] {
  min-height: 48px; border: 0; background: none; color: #d1fae5; font: 800 0.95rem var(--font-body); cursor: pointer;
  border-bottom: 4px solid transparent; padding: 8px 4px;
}
.tabs [role="tab"][aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,0.08); }
.pane { padding: 14px 16px 18px; }
.hint { color: var(--ink-2); font-size: 0.88rem; margin: 6px 0 10px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-row .chip { box-shadow: none; background: #f3e9d2; }
.filter-row .chip.on { background: var(--berry); color: #fff; }

.house-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.house-list li button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer;
}
.house-list li button:hover { border-color: var(--gold-2); background: #fffdf6; }
.hl-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fef3c7; font-size: 1.05rem; }
.hl-icon.show { background: #fee2e2; }
.hl-main strong { display: block; font-size: 0.98rem; }
.hl-main small { color: var(--ink-2); }
.hl-side { text-align: right; font-size: 0.85rem; color: var(--berry); font-weight: 800; white-space: nowrap; }
.empty { padding: 16px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; color: var(--ink-2); }

.signed-out { text-align: center; padding: 10px 4px; }
.signed-out p { margin: 0 0 12px; }
fieldset { border: 0; margin: 0 0 14px; padding: 0; }
legend { font-weight: 800; margin-bottom: 8px; font-size: 1rem; }
.start-choice { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.start-choice label, .seg label { position: relative; }
.start-choice label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: #f3e9d2; font-weight: 700; cursor: pointer; min-height: 40px;
}
.start-choice label:has(input:checked) { background: var(--pine-2); color: #fff; }
.home-line { font-size: 0.92rem; margin: 6px 0; }
.home-line .linkish { margin-left: 6px; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input { flex: 1; accent-color: var(--berry); height: 32px; }
.slider-row output { min-width: 70px; font-weight: 800; font-size: 1.1rem; color: var(--berry); text-align: right; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #f3e9d2; padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 4px; border-radius: 9px; font-weight: 800; font-size: 0.88rem; cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--berry); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--berry); flex: none; }
.check.big { font-weight: 800; }

.plan-result { margin-top: 16px; border-top: 2px dashed var(--line); padding-top: 14px; }
.plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.plan-summary div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.plan-summary strong { display: block; font-size: 1.35rem; color: var(--berry); }
.plan-summary span { font-size: 0.78rem; color: var(--ink-2); font-weight: 700; }
.legs { display: grid; gap: 6px; margin: 10px 0; }
.legs h4 { margin: 8px 0 2px; font-size: 0.9rem; }
.legs a { justify-content: space-between; }
.stop-list { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; counter-reset: stop; }
.stop-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; font-size: 0.93rem; }
.stop-list li::before {
  counter-increment: stop; content: counter(stop); width: 26px; height: 26px; border-radius: 50%;
  background: var(--berry); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.8rem;
}
.stop-list button { all: unset; cursor: pointer; }
.stop-list small { color: var(--ink-2); display: block; }
.warn { background: #fef3c7; color: #78350f; padding: 8px 10px; border-radius: 10px; font-size: 0.88rem; }

.who { margin: 0 0 4px; font-weight: 800; word-break: break-all; }
.mine-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.mine-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mine-list .row-actions { display: flex; gap: 6px; align-items: center; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; background: #cbd5e1; cursor: pointer; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.switch[aria-checked="true"] { background: var(--gold-2); }
.switch[aria-checked="true"]::after { left: 25px; }
.home-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 10px 12px; margin: 10px 0 14px; font-size: 0.93rem; }
.howto { background: #f3e9d2; border-radius: 12px; padding: 10px 12px; font-size: 0.92rem; }
.panel h3 { margin: 14px 0 8px; font-size: 1rem; }

/* ---------- lower sections ---------- */
.how, .faq { max-width: 1100px; margin: 0 auto; padding: 18px 16px; }
.how h2, .faq h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.5rem); text-align: center; margin: 4px 0 14px; color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 16px; }
.steps h3 { margin: 8px 0 6px; color: var(--gold); }
.steps p { margin: 0; color: #dbe4ee; }
.step-icon { font-size: 2rem; }
.faq details { background: var(--cream); color: var(--ink); border-radius: 12px; margin: 8px 0; padding: 0 14px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 800; }
.faq details p { margin: 0 0 14px; }
.site-footer { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; text-align: center; color: #94a3b8; font-size: 0.82rem; }

/* ---------- dialogs (bottom sheets on phones) ---------- */
dialog.sheet {
  width: min(520px, 100%); max-height: 92vh; overflow: auto; border: 0; padding: 20px 18px 22px;
  background: var(--cream); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  border-top: 6px solid var(--berry);
}
dialog.sheet::backdrop { background: rgba(2,6,23,0.6); }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; }
}
dialog h2 { font-family: var(--font-display); font-size: 2rem; margin: 0 40px 6px 0; color: var(--berry); }
.sheet-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.sheet-close button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #efe5cf; font-size: 1rem; cursor: pointer; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin: 14px 0; font-size: 0.85rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.email-form label { display: block; font-weight: 800; margin-bottom: 6px; }
.email-form .row { display: flex; gap: 8px; }
.email-form input, .field input, .field textarea {
  flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid #d6c9ab;
  font: 600 1rem var(--font-body); color: var(--ink); background: #fff;
}
.field { margin: 10px 0; }
.field label { display: block; font-weight: 800; margin-bottom: 4px; font-size: 0.95rem; }
.opt { font-weight: 600; color: var(--ink-2); }
.fine { font-size: 0.82rem; color: var(--ink-2); }
.email-sent { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 10px 12px; border-radius: 10px; }
.light-addr { margin: 0 0 12px; font-weight: 800; }
.size-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.size-grid label { position: relative; display: block; cursor: pointer; }
.size-grid input { position: absolute; opacity: 0; }
.size-grid span { display: block; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; min-height: 72px; }
.size-grid b { display: block; font-size: 1rem; }
.size-grid small { color: var(--ink-2); font-size: 0.8rem; }
.size-grid input:checked + span { border-color: var(--berry); background: #fff1f2; }
.size-grid input:focus-visible + span { outline: 3px solid var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .bulb { animation: none; box-shadow: 0 0 8px 2px var(--glow); }
  html { scroll-behavior: auto; }
}
