:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #12261d;
  background: #f8f9f5;
  --bg: #f8f9f5;
  --white: #fff;
  --ink: #12261d;
  --muted: #4a6053;
  --line: #dce4db;
  --green: #b9f46a;
  --dark: #183a2b;
  --mint: #e8f3e9;
  --warm: #f9e8b6;
  --pale: #eef2ea;
  --danger: #863f2a;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #38704b;
  outline-offset: 2px;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.72rem, 8.3vw, 2.12rem); letter-spacing: -.045em; line-height: 1.14; }
h1[tabindex="-1"]:focus { outline: none; }
h2 { font-size: 1rem; }
a { color: inherit; }
.app { max-width: 460px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-inline: clamp(14px, 5.64vw, 22px); padding-top: env(safe-area-inset-top); }
.top { display: flex; align-items: center; gap: 14px; min-height: 77px; padding-block: 10px; flex: none; border-bottom: 1px solid var(--line); }
.step-heading { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.step-heading h1 { font-weight: 750; }
.step-heading .kicker { flex: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 760; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { position: relative; display: inline-block; width: 32px; height: 32px; border-radius: 10px; background: var(--dark); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 3px; }
.brand-mark::before { left: 8px; top: 13px; background: var(--green); }
.brand-mark::after { left: 14px; top: 8px; background: #d5ffaa; }
.kicker { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .045em; }
.content { flex: 1; padding-block: 22px 22px; }
.content > * + * { margin-top: 18px; }
.content .title + .meta { margin-top: 12px; }
.title small, .muted { color: var(--muted); font-size: .9rem; }
.title p { margin-top: 10px; color: var(--muted); line-height: 1.45; }
.home { padding-top: 44px; }
.home h1 { font-size: clamp(2.25rem, 10.7vw, 2.85rem); line-height: 1.06; }
.home .cover { margin-top: 33px; }
.cover { background: #173327; color: #e6f4e9; border-radius: 23px; padding: 18px; }
.cover-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cover-grid span { color: #c4d8c9; text-align: center; font-size: .65rem; padding-bottom: 6px; }
.cover-grid i { display: grid; place-items: center; min-height: 26px; border-radius: 6px; background: #294637; }
.cover-grid i.soft { background: #426752; }
.cover-grid i.strong { color: var(--dark); background: var(--green); }
.cover p { display: flex; align-items: center; gap: 8px; border-top: 1px solid #436052; margin-top: 18px; padding-top: 14px; font-size: .88rem; font-weight: 650; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-btn, .chip, .tile, .soft-btn { min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.icon-btn { width: 44px; display: inline-grid; place-items: center; padding: 0; flex: none; }
.icon-btn:disabled { opacity: .38; }
.btn { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; border: 1px solid transparent; font-weight: 700; padding: 10px 15px; background: var(--dark); color: var(--green); text-decoration: none; }
.btn.secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn:disabled, .btn[data-incomplete] { background: #e4ece1; color: var(--muted); border-color: var(--line); }
button:not(:disabled):active:not(.hour) { box-shadow: inset 0 0 0 2px #34604928; }
.btn:not(:disabled):active { filter: brightness(.94); }
.footer { position: sticky; z-index: 3; bottom: 0; background: var(--bg); padding-block: 9px max(14px, env(safe-area-inset-bottom)); }
.footer > * + * { margin-top: 8px; }
.footer .small { text-align: center; color: var(--muted); font-size: .75rem; }
.section-label { display: block; font-size: .72rem; letter-spacing: .06em; font-weight: 750; color: var(--muted); margin-bottom: 10px; }
.tile small { display: block; color: var(--muted); font-size: .72rem; margin-top: 4px; }
.chip.on, .tile.on { border-color: var(--dark); background: var(--mint); }
.tile { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px; min-height: 59px; }
.tile span { flex: 1; }
.chips { display: flex; gap: 7px; }
.chip { font-size: .82rem; font-weight: 660; padding: 8px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.match-options { border-radius: 17px; padding: 13px; background: #e7eee3; }
.match-intro { display: flex; align-items: center; gap: 8px; min-height: 26px; margin-bottom: 9px; }
.match-hint { margin-left: auto; text-align: right; color: var(--muted); font-size: .72rem; }
.match-intro .icon, .modes .icon { width: 17px; height: 17px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modes .chip { padding-inline: 5px; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.label-row .section-label { margin: 0; }
.zone-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 54%; min-height: 44px; padding-inline: 6px; border: 0; border-radius: 9px; background: transparent; font-size: .76rem; color: var(--muted); }
.zone-tag .icon { width: 15px; height: 15px; }
.zone-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .dot.primary { background: #317148; }
.chip .dot.secondary { background: #d5a733; }
.durations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(3px, 1.4vw, 7px); }
.durations .chip { padding-inline: 2px; white-space: nowrap; }
.stepper { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); padding: 6px; }
.stepper .icon-btn { border-color: transparent; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.meta .icon { width: 16px; height: 16px; }
.tools { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.tools .chips { margin-right: auto; }
.grid { --columns: 7; display: grid; grid-template-columns: 35px repeat(var(--columns), minmax(0, 1fr)) 31px; gap: 3px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--white); padding: 7px 6px 8px; }
.grid-head { display: grid; place-items: center; min-height: 38px; font-size: .68rem; line-height: 1.1; }
.grid-head strong { font-size: .78rem; }
.grid-arrow { width: 31px; min-height: 35px; height: 35px; padding: 0; }
.clock-label { font-size: .66rem; color: var(--muted); text-align: center; white-space: nowrap; }
.hour { display: flex; flex-direction: column; border: 0; border-radius: 6px; overflow: hidden; padding: 0; min-height: 26px; touch-action: none; background: var(--pale); user-select: none; }
.hour span { width: 100%; display: block; flex: 1; min-height: 6.5px; pointer-events: none; }
.hour .primary { background: var(--green); }
.hour .secondary { background: var(--warm); }
.hour span.unavailable { background: #fff; }
.hour:disabled { opacity: .45; }
.repeated-hour { margin-top: 8px; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-fields .tile { display: block; min-width: 0; padding: 10px 12px; }
.date-fields small { margin: 0 0 5px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.month-nav h2 { text-align: center; }
.month-nav h2::first-letter, .result p::first-letter { text-transform: uppercase; }
.month { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px 2px; margin-top: 12px; }
.weekday { text-align: center; padding-block: 6px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.day { min-height: 44px; font-size: .9rem; color: var(--ink); font-weight: 650; background: transparent; border: 1px solid transparent; border-radius: 10px; position: relative; padding: 0; }
.day:disabled { color: #687e70; }
.day.allowed { border-color: var(--line); background: white; }
.day.range { background: var(--mint); border-radius: 4px; }
.day.edge { background: var(--dark); color: var(--green); }
.day.primary { background: var(--green); }
.day.secondary { background: var(--warm); }
.day.with-points { padding-bottom: 7px; }
.day .point { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--dark); }
.day .point.am { left: calc(50% - 7px); }
.day .point.pm { left: calc(50% + 3px); }
.day .point.secondary { background: #8a5c24; }
.part-select .chip { flex: 1; }
#calendar-context { margin-top: 10px; line-height: 1.4; }
.link-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 0; border: 0; background: transparent; min-height: 44px; text-align: left; font-size: .87rem; }
.link-row span { flex: 1; }
.link-row small { color: var(--muted); font-size: .75rem; }
.card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.status-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--mint); }
.result { background: var(--dark); color: #e6f4e9; border-radius: 22px; padding: 21px; }
.result strong { display: block; color: var(--green); font-size: 1.9rem; letter-spacing: -.04em; margin-block: 6px; }
.result p, .result small { font-size: .85rem; line-height: 1.4; }
.result-details { list-style: none; margin: 7px 0 0; padding: 0; font-size: .82rem; line-height: 1.4; }
.provisional > p { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.provisional :is(.result, .card) { margin-top: 12px; }
.provisional .result { padding: 16px; }
.provisional .result strong { font-size: 1.6rem; }
.progress { height: 7px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 13px; }
.progress span { display: block; height: 100%; background: var(--dark); }
.toast, .panel .toast { position: fixed; z-index: 5; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid #ead0c4; background: #fff3eb; color: var(--danger); box-shadow: 0 4px 15px #12261d14; font-size: .84rem; font-weight: 650; opacity: 0; transition: opacity .14s ease; pointer-events: none; }
.toast[data-type="success"] { color: var(--ink); border-color: #c5dac9; background: var(--mint); }
.toast.visible { opacity: 1; }
.toast.anchored { transform: translate(-50%, -100%); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.panel { width: min(430px, calc(100vw - 28px)); color: var(--ink); max-height: 85dvh; padding: 19px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); }
.panel::backdrop { background: #12261d75; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel h2 { font-size: 1.3rem; }
.panel label, .panel p { display: block; margin-block: 11px; font-size: .9rem; }
.panel input { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 1rem; background: var(--white); }
.panel .btn { margin-top: 12px; }
.zones { max-height: 43dvh; overflow-y: auto; }
.zones button { border-bottom: 1px solid var(--line); }
@media (min-width: 550px) {
  body { background: #e5e9e3; }
  .app { background: var(--bg); }
}
.share-url { display: block; width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 9px; font-size: 1rem; }
.content > .link-row + .link-row { margin-top: 0; }

.privacy-link { text-align: center; font-size: .75rem; color: var(--muted); }
.privacy article { line-height: 1.6; overflow-wrap: anywhere; }
.privacy article h2 { margin-top: 24px; }
.privacy article ul { padding-inline-start: 22px; }
