:root {
  color-scheme: dark;
  --bg: #10141a;
  --card: #1b232e;
  --card-2: #243140;
  --line: #405066;
  --text: #f4f7fb;
  --muted: #c9d4e0;
  --accent: #f0b45a;
  --accent-ink: #1c1408;
  --good: #b6f0d0;
  --bad: #ffc9c9;
  --info: #d5e6ff;
  --focus: #ffe3b0;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 17px; line-height: 1.45; min-height: 100vh; }
a { color: var(--accent); }
a:hover { color: #ffd79a; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; z-index: 50;
}
.skip:focus { top: 12px; }

.site, .top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: rgba(16, 20, 26, .94); position: sticky; top: 0; z-index: 5;
}
.brand { color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -.02em; font-size: 1.05rem; }
.brand span { color: var(--accent); }
.call, .tools button, .btn, .choice, .tab, .chip, .big {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2);
  color: var(--text); padding: 12px 14px; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.call { font-weight: 700; }
.primary, .tab.on, .chip.on, .choice input:checked + span, .big.primary {
  background: var(--accent); color: var(--accent-ink); border-color: #e2b56a; font-weight: 750;
}
.primary:disabled { opacity: .55; }
.ghost { background: transparent; }
.wide { width: 100%; }
.stack { display: grid; gap: 12px; }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 28px)); margin: 0 auto; }
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; }
.notice {
  background: #3b2c14; color: #fff6e8; border: 1px solid #d7a45a; border-radius: 14px;
  padding: 14px 16px; margin: 8px 0 18px;
}
.card, .sheet {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow);
}
label { display: grid; gap: 6px; font-weight: 650; }
.fine, .muted { color: var(--muted); font-weight: 450; font-size: .95rem; }
input, select, textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: #0e141c; padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.city { grid-template-columns: 1.4fr .6fr; }
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; padding: 0; overflow: hidden; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; min-height: 48px; align-items: center; justify-content: center; width: 100%; padding: 10px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start; font-weight: 500; background: var(--card-2);
  border-radius: 14px; padding: 12px; border: 1px solid var(--line);
}
.consent input { width: 28px; height: 28px; margin-top: 2px; accent-color: #e2a44a; flex: none; }
.error { color: var(--bad); font-weight: 650; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.steps { display: grid; gap: 10px; margin: 22px 0; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; flex: none;
}
footer.sitefoot { padding: 28px 0 48px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px 18px; }
.thanks h2 { font-size: 2rem; margin-top: 0; }
.mark { width: 56px; height: 56px; border-radius: 50%; background: #1d4a34; color: var(--good); display: grid; place-items: center; font-size: 1.6rem; }

.desk { padding-bottom: 24px; }
.top { display: block; }
.brandrow, .tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tools { flex-wrap: wrap; justify-content: flex-end; }
.tools button { min-height: 44px; padding: 8px 12px; background: transparent; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 2px; }
.tab { flex: 1 1 30%; min-width: 0; padding: 10px 8px; }
main.deskmain { width: min(1120px, calc(100% - 24px)); margin: 16px auto 32px; display: grid; gap: 14px; }
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 8px; overflow-x: auto; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 84px; }
.kpi b { display: block; font-size: 1.8rem; letter-spacing: -.04em; }
.kpi span { color: var(--muted); font-size: .82rem; }
.bars { display: grid; gap: 8px; }
.barline { display: grid; grid-template-columns: 92px 1fr 28px; gap: 8px; align-items: center; }
.track { height: 10px; background: #0e141c; border-radius: 99px; }
.fill { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #c9842f, var(--accent)); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week div { background: var(--card); border-radius: 10px; padding: 8px 4px; text-align: center; }
.week strong { display: block; font-size: 1.1rem; }
.week span { color: var(--muted); font-size: .72rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; }
.lead, .appt, .task, .house {
  display: grid; gap: 4px; text-align: left; width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.lead.on { border-color: var(--accent); }
.lead b, .appt b { font-size: 1.08rem; }
.search { margin: 0; }
.panel {
  position: fixed; inset: 0; background: var(--bg); z-index: 20; overflow: auto;
  padding: 12px 14px calc(92px + env(safe-area-inset-bottom));
}
.panel header { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(16, 20, 26, .96); border-top: 1px solid var(--line); z-index: 21;
}
.sticky .primary { flex: 1.4; }
.sticky .btn { flex: 1; }
@media (min-width: 900px) {
  .panel { left: auto; width: min(520px, 100%); border-left: 1px solid var(--line); box-shadow: var(--shadow); }
}
.slots, .people { display: grid; gap: 8px; }
.slots { grid-template-columns: 1fr; }
@media (min-width: 700px) { .slots { grid-template-columns: 1fr 1fr; } }
.cal { display: grid; gap: 10px; }
@media (min-width: 900px) { .cal { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.day h3 { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
body.panel-open .toast { bottom: 108px; }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: #e9fff3; color: #123322; padding: 14px 18px; border-radius: 14px;
  font-weight: 750; z-index: 40; max-width: min(92vw, 440px); text-align: center;
  box-shadow: var(--shadow);
}
.empty { padding: 22px 8px; }
.grid2 { display: grid; gap: 10px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outcomes .big { min-height: 84px; font-size: 1.15rem; font-weight: 750; }
.progress { color: var(--muted); }
.status { display: inline-block; border-radius: 999px; padding: 4px 8px; background: var(--card-2); color: var(--info); font-size: .85rem; }
.good { color: var(--good); }
.bad { color: var(--bad); }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 1.45rem; margin: 0 0 8px; }
.section-head { display: flex; justify-content: space-between; gap: 8px; align-items: end; flex-wrap: wrap; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.history { display: grid; gap: 6px; }
.history p { margin: 0; color: var(--muted); }
