@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ground: #fffaf0;
  --dots: #e9e1cf;
  --surface: #ffffff;
  --surface-2: #fff4dc;
  --ink: #121117;
  --ink-2: #4a4752;
  --ink-3: #7d7887;
  --line: #121117;
  --shadow: #121117;
  --on-pop: #121117;
  --blue: #3a5bff;
  --yellow: #ffd23f;
  --pink: #ff5ca8;
  --green: #19c27a;
  --orange: #ff7a2f;
  --lilac: #a98bff;
  --red: #ff3b3b;
  --cal-1: var(--blue);
  --cal-2: var(--green);
  --cal-3: var(--yellow);
  --cal-4: var(--pink);
  --cal-5: var(--orange);
  --cal-6: var(--lilac);
  --hatch: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 7px);
  --measure: min(74rem, 100% - 2rem);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121117;
    --dots: #26242e;
    --surface: #1c1b23;
    --surface-2: #25232d;
    --ink: #f7f3ea;
    --ink-2: #c9c4d6;
    --ink-3: #8f899d;
    --line: #f7f3ea;
    --shadow: #f7f3ea;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121117;
  --dots: #26242e;
  --surface: #1c1b23;
  --surface-2: #25232d;
  --ink: #f7f3ea;
  --ink-2: #c9c4d6;
  --ink-3: #8f899d;
  --line: #f7f3ea;
  --shadow: #f7f3ea;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Like an app: no pinch or double-tap zoom, no grey flash on a tap. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ground);
  background-image: radial-gradient(var(--dots) 1.3px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  transition: background-color .3s, color .3s;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: #121117; }
[hidden] { display: none !important; }
.wrap { width: var(--measure); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* chips used as section labels */
.label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .3rem .8rem .3rem .35rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label b { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .35rem; border-radius: 999px; background: var(--pink); color: var(--on-pop); font-family: var(--display); font-size: 11px; }
#how .label b { background: var(--blue); color: #fff; }

/* bar */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: 1.1rem 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.bar a { text-decoration: none; }
.bar a:hover { color: var(--ink); }
.crumb { display: flex; align-items: center; gap: .55rem; }
.crumb svg { width: 15px; height: 17px; display: block; color: var(--ink-3); }
.crumb span { color: var(--ink-3); }
.crumb strong { padding: .15rem .55rem; border: 2px solid var(--line); border-radius: 8px; background: var(--yellow); color: var(--on-pop); font-family: var(--display); font-weight: 800; font-size: 13px; transform: rotate(-2deg); }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.theme {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--shadow);
  cursor: pointer;
  transition: transform .15s var(--pop), box-shadow .15s;
}
.theme:hover { transform: translate(-1px, -1px) rotate(-12deg); box-shadow: 3px 3px 0 var(--shadow); }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--pop), box-shadow .15s var(--pop), background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--shadow); }
.btn.primary { background: var(--yellow); color: var(--on-pop); }
.btn.small { min-height: 40px; padding: 0 .85rem; border-radius: 10px; font-size: 13.5px; box-shadow: 3px 3px 0 var(--shadow); }
.btn.small:hover { box-shadow: 4px 4px 0 var(--shadow); }
.btn.quiet { box-shadow: none; border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover { transform: none; box-shadow: none; border-color: var(--line); color: var(--ink); }
.btn.quiet:disabled { border-color: transparent; box-shadow: none; }
.btn.danger:hover, .btn[data-armed] { background: var(--red); border-color: var(--line); color: #fff; }
.btn[data-state="copied"] { background: var(--green); color: var(--on-pop); }
.btn[data-state="failed"] { background: var(--red); color: #fff; }
.google-g { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; border: 2px solid #121117; flex: none; }

/* readouts */
.readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.readout {
  min-width: 0;
  padding: 1rem 1.25rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
}
.readouts .readout:nth-child(1) { background: var(--yellow); transform: rotate(-1deg); }
.readouts .readout:nth-child(2) { background: var(--pink); transform: rotate(.8deg); }
.readouts .readout:nth-child(3) { background: var(--green); transform: rotate(-.6deg); }
.readouts .readout, .readouts .plate, .readouts .digits { color: var(--on-pop); }
.plate { margin: 0 0 .35rem; color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.digits { display: inline-block; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* the three ways a calendar is shown */
.show-full { background: var(--c, var(--cal-1)); outline: 2px solid var(--line); outline-offset: -2px; }
.show-busy { background: var(--hatch), var(--surface); outline: 2px solid var(--line); outline-offset: -2px; }
.show-off { background: transparent; outline: 2px dashed var(--ink-3); outline-offset: -2px; }
.cal-1 { --c: var(--cal-1); }

/* landing */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-copy > * { animation: rise .7s var(--pop) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-copy > :nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.prompt { margin: 0 0 .9rem; color: var(--ink-3); font-size: 15px; font-weight: 700; }
.prompt::before { content: "$ "; color: var(--blue); }
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 9.5vw, 6.8rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.055em;
}
.wordmark span {
  display: inline-block;
  margin-left: .06em;
  padding: 0 .12em .06em;
  border: 3px solid var(--line);
  border-radius: .18em;
  background: var(--blue);
  color: #fff;
  box-shadow: 6px 6px 0 var(--shadow);
  transform: rotate(-4deg);
}
.tagline { margin: 1.4rem 0 0; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.tagline mark { display: inline-block; padding: .05em .3em .1em; border: 2px solid var(--line); border-radius: 8px; background: var(--yellow); color: var(--on-pop); box-shadow: 3px 3px 0 var(--shadow); transform: rotate(1.5deg); }
.lede { max-width: 33rem; margin: 1.1rem 0 0; color: var(--ink-2); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.fineprint { margin: 1.1rem 0 0; color: var(--ink-3); font-size: 14px; }
.fineprint b { color: var(--ink); font-weight: 800; }

.merge { width: 100%; max-width: 34rem; justify-self: end; margin: 0; }
.merge svg { display: block; width: 100%; height: auto; overflow: visible; }
.merge text { font-family: var(--text); font-weight: 700; }
.merge .t-display { font-family: var(--display); font-weight: 800; }
.m-card { fill: var(--surface); stroke: var(--line); stroke-width: 2.5; }
.m-shadow { fill: var(--shadow); }
.m-ink { fill: var(--ink); }
.m-meta { fill: var(--ink-3); }
.m-soft { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.m-hatch-line { stroke: var(--ink); }
.m-hatch-ground { fill: var(--surface); }
.m-block { stroke: var(--line); stroke-width: 2; }
.m-blue { fill: var(--blue); }
.m-green { fill: var(--green); }
.m-pink { fill: var(--pink); }
.m-yellow { fill: var(--yellow); }
.m-chip { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.m-link { fill: var(--blue); }
.m-on-pop { fill: #121117; }
.m-cards > g { animation: drop .8s var(--pop) both; }
.m-cards > g:nth-child(2) { animation-delay: .12s; }
.m-cards > g:nth-child(3) { animation-delay: .24s; }
.m-out { animation: drop .8s var(--pop) .45s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.conduit { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.conduit.off { stroke: var(--ink-3); stroke-dasharray: 4 8; }
.pulse { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 24 400; stroke-dashoffset: 424; animation: run 3.2s var(--ease) infinite; }
.pulse.a { stroke: var(--blue); }
.pulse.b { stroke: var(--green); animation-delay: .5s; }
.pulse.out { stroke: var(--yellow); stroke-width: 6; stroke-dasharray: 26 300; stroke-dashoffset: 326; animation: run-out 3.2s var(--ease) infinite 1.4s; }
@keyframes run { 0% { stroke-dashoffset: 424; opacity: 0; } 8% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 62%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes run-out { 0% { stroke-dashoffset: 326; opacity: 0; } 10% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 70%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.junction { fill: var(--yellow); stroke: var(--line); stroke-width: 3; animation: breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.18); } }

.section { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.section h2 { max-width: 44rem; margin: 1.25rem 0 2rem; font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cell {
  position: relative;
  min-width: 0;
  padding: 1.4rem 1.4rem 1.6rem;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .2s var(--pop), box-shadow .2s var(--pop);
}
.cell:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--shadow); }
.cell::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; border-bottom: 2px solid var(--line); background: var(--blue); }
.cell:nth-child(2)::before { background: var(--pink); }
.cell:nth-child(3)::before { background: var(--yellow); }
.cell .num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-top: .6rem; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); color: var(--on-pop); font-family: var(--display); font-size: 13px; font-weight: 800; }
.cell:nth-child(2) .num { background: var(--green); }
.cell:nth-child(3) .num { background: var(--pink); }
.cell h3 { margin: .8rem 0 .4rem; font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.cell p { margin: 0; color: var(--ink-2); }
.cell .demo { margin-top: 1.25rem; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.facts li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow);
}
.facts b { justify-self: start; padding: .2rem .7rem; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on-pop); font-size: 13px; font-weight: 800; }
.facts li:nth-child(2) b { background: var(--pink); }
.facts li:nth-child(3) b { background: var(--green); }
.facts li:nth-child(4) b { background: var(--lilac); }
.facts li:nth-child(5) b { background: var(--orange); }
.facts li:nth-child(6) b { background: var(--blue); color: #fff; }
.facts span { color: var(--ink-2); }
.facts a { color: var(--ink); font-weight: 800; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }

.demo-switch { display: flex; gap: .75rem; flex-wrap: wrap; }
.demo-switch span { display: inline-flex; align-items: center; gap: .45rem; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.demo-switch i { display: inline-block; width: 30px; height: 18px; border-radius: 5px; }

footer { margin-top: clamp(4rem, 9vw, 6.5rem); border-top: 2px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.foot nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.foot a { text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }

.notice { margin: 1.25rem 0 0; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 12px; background: var(--pink); color: var(--on-pop); box-shadow: 3px 3px 0 var(--shadow); font-size: 14px; font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .merge { justify-self: center; max-width: 30rem; }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}
@media (max-width: 560px) {
  /* On a phone the bar is one row: the name on the left, the day/night switch on the right. */
  .bar { flex-wrap: nowrap; }
  .bar nav { flex-wrap: nowrap; gap: .6rem; }
  .bar-signin, .bar-source { display: none; }
  .readouts { gap: .6rem; }
  .readout { padding: .75rem .7rem .85rem; }
  .plate { font-size: 10px; letter-spacing: .04em; }
  .wordmark span { box-shadow: 4px 4px 0 var(--shadow); }
}

/* app */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .5rem; }
.strip .readout { display: flex; flex-direction: column; justify-content: center; }
.strip .readout:nth-child(1) { background: var(--blue); }
.strip .readout:nth-child(1) .plate, .strip .readout:nth-child(1) .digits, .strip .readout:nth-child(1) .meta { color: #fff; }
.strip .readout:nth-child(2) { background: var(--pink); }
.strip .readout:nth-child(3) { background: var(--green); }
.strip .readout:nth-child(n+2) .plate, .strip .readout:nth-child(n+2) .digits, .strip .readout:nth-child(n+2) .meta { color: var(--on-pop); }
.strip .digits { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.strip .meta { margin-top: .35rem; font-size: 13px; font-weight: 700; }
.who { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); min-width: 0; }
.who img, .who .initial { width: 34px; height: 34px; border-radius: 50%; flex: none; border: 2px solid var(--line); }
.who .initial { display: inline-grid; place-items: center; background: var(--lilac); color: var(--on-pop); font-family: var(--display); font-size: 13px; font-weight: 800; }
.who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; font-size: 14px; }
.panel { min-width: 0; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 6px 6px 0 var(--shadow); font-size: 15px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; padding: .75rem 1.2rem; border-bottom: 2px solid var(--line); }
.panel-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -.02em; text-transform: lowercase; }
.panel-head h2 b { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on-pop); font-size: 11px; }
#links-title b { background: var(--green); }
.panel-body { padding: 1rem 1.2rem 1.3rem; }
.empty { margin: 0; color: var(--ink-3); font-size: 14px; font-weight: 600; }

.cal { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: .15rem .9rem; align-items: start; padding: .95rem 0; border-bottom: 2px dashed var(--surface-2); }
.cal:first-child { padding-top: .2rem; }
.cal > div { min-width: 0; }
.swatch { width: 18px; height: 18px; margin-top: .2rem; border: 2px solid var(--line); border-radius: 6px; background: var(--c, var(--cal-1)); }
.cal.reading .swatch { animation: reading .9s ease-in-out infinite; }
@keyframes reading { 50% { transform: scale(1.25) rotate(8deg); } }
.cal.paused .swatch { background: transparent; border-style: dashed; border-color: var(--ink-3); }
.cal-name { margin: 0; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cal-from { margin: .1rem 0 0; color: var(--ink-3); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-state { margin: .35rem 0 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.cal-state.ok::before { content: "ok"; margin-right: .45rem; padding: .05rem .45rem; border: 2px solid var(--line); border-radius: 999px; background: var(--green); color: var(--on-pop); font-size: 11px; font-weight: 800; }
.cal-state.error { color: var(--red); font-weight: 700; }
.cal-tools { display: flex; gap: .3rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; transition: transform .15s var(--pop), background .15s; }
.icon-btn:hover { border-color: var(--line); background: var(--yellow); color: var(--on-pop); transform: rotate(-6deg); }
.icon-btn.danger:hover, .icon-btn[data-armed] { border-color: var(--line); background: var(--red); color: #fff; }
.icon-btn:disabled { opacity: .4; cursor: default; transform: none; background: none; border-color: transparent; }
.icon-btn svg { width: 17px; height: 17px; }

.add { margin-top: 1.2rem; display: grid; gap: 1.2rem; }
.add h3 { margin: 0 0 .55rem; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.account { border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; padding: .6rem .6rem .6rem .9rem; }
.account-head > span { flex: 1 1 10rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 14px; font-weight: 700; }
.account-head .row { flex-wrap: nowrap; gap: .35rem; }
.account-head .revoked { color: var(--red); }
.picker { border-top: 2px solid var(--line); background: var(--surface); }
.pick { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .55rem .6rem .55rem .9rem; border-bottom: 2px dashed var(--surface-2); }
.pick:last-child { border-bottom: 0; }
.pick .swatch { margin: 0; }
.pick span { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.field { display: grid; gap: .6rem; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 .95rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.row .input { flex: 1 1 12rem; }

.link { padding: 1.1rem 0 1.3rem; border-bottom: 2px dashed var(--surface-2); }
.link:first-child { padding-top: .2rem; }
.link:last-child { border-bottom: 0; }
.link-head { display: flex; align-items: center; gap: .5rem; }
.link-name { flex: 1; min-width: 0; padding: .25rem .4rem; margin-left: -.4rem; border: 2px solid transparent; border-radius: 10px; background: none; color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.link-name:hover { border-color: var(--surface-2); }
.link-name:focus { outline: none; border-color: var(--line); box-shadow: 0 0 0 4px var(--yellow); }
.url { display: flex; align-items: stretch; margin-top: .75rem; min-width: 0; border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.url code { flex: 1; min-width: 0; padding: .8rem .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue); font-family: var(--text); font-size: 14px; font-weight: 700; }
:root[data-theme="dark"] .url code { color: #8ea2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .url code { color: #8ea2ff; } }
.url .btn { min-height: 0; border-width: 0 0 0 2px; border-radius: 0; box-shadow: none; }
.url .btn:hover { transform: none; box-shadow: none; background: var(--yellow); color: var(--on-pop); }
.url .btn:active { transform: none; }
.shows { margin-top: 1rem; display: grid; gap: .2rem; }
.show-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .35rem 0; }
.show-row .swatch { margin: 0; }
.show-row span { overflow-wrap: anywhere; font-size: 14.5px; font-weight: 700; }
.show-row.others span { color: var(--ink-3); }
.swatch.later { background: transparent; border-style: dashed; border-color: var(--ink-3); }
.switch { display: inline-grid; grid-template-columns: repeat(3, auto); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 2px 2px 0 var(--shadow); }
.switch button {
  position: relative;
  min-width: 58px;
  min-height: 38px;
  padding: 0 .75rem 0 1.95rem;
  border: 0;
  border-left: 2px solid var(--line);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.switch button:first-child { border-left: 0; }
.switch button::before { content: ""; position: absolute; left: .6rem; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); border: 2px solid var(--line); border-radius: 4px; }
.switch button[data-show="full"]::before { background: var(--c, var(--ink-3)); }
.switch button[data-show="busy"]::before { background: var(--hatch), var(--surface); }
.switch button[data-show="hidden"]::before { border-style: dashed; border-color: var(--ink-3); }
.switch button:hover { background: var(--surface-2); color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.switch button[aria-pressed="true"]::before { border-color: var(--ground); }
.switch button[aria-pressed="true"][data-show="busy"]::before { background: repeating-linear-gradient(135deg, var(--ground) 0 2px, transparent 2px 5px); }
.link-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.link-meta { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.link-meta b { color: var(--ink); font-weight: 800; }
.select { min-height: 40px; padding: 0 .6rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; box-shadow: 2px 2px 0 var(--shadow); }
.link-error { margin: .75rem 0 0; color: var(--red); font-size: 14px; font-weight: 700; }
.window { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1rem; }
.window .edge { display: flex; align-items: center; gap: .5rem; }
.window .edge > label { min-width: 2.6rem; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.window em { font-style: normal; padding: .1rem .5rem; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on-pop); font-size: 11.5px; font-weight: 800; }
.window .clear { min-height: 32px; }
.link-language { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1rem; }
.link-language .page-label { margin: 0; min-width: 2.6rem; }
.link-language .flags button { width: 36px; height: 28px; }
.page .link-language { margin-top: 0; }
.hint { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.select.date { min-width: 9.5rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 60;
  max-width: min(36rem, 100% - 2rem);
  padding: .85rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: 14.5px;
  font-weight: 700;
  transform: translate(-50%, 0);
  animation: pop-in .35s var(--pop);
}
.toast.bad { background: var(--red); color: #fff; }
.toast.good { background: var(--green); color: var(--on-pop); }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
.danger-zone { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.25rem; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.15rem 0 .5rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: transform .15s var(--pop), box-shadow .15s var(--pop), background .2s, color .2s;
}
.tab b { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on-pop); font-size: 11px; }
.tab[data-tab="calendar"] b { background: var(--pink); }
.tab[data-tab="share"] b { background: var(--green); }
.tab:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.tab-panel { animation: rise .35s var(--pop) both; }
.accounts-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.accounts-body .add { margin-top: 0; }
.links-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 0 2.5rem; }
.links-body .link:first-child { padding-top: 1.1rem; }
.links-body .link { border-bottom: 2px dashed var(--surface-2); }

/* calendar */
.cal-head { flex-wrap: wrap; }
.cal-nav, .cal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cal-nav h2 { margin-left: .4rem; font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.cal-nav .icon-btn { border-color: var(--line); background: var(--surface); }
.views { display: inline-grid; grid-template-columns: repeat(3, auto); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 2px 2px 0 var(--shadow); }
.views button { min-height: 38px; padding: 0 .9rem; border: 0; border-left: 2px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.views button:first-child { border-left: 0; }
.views button[aria-pressed="true"] { background: var(--yellow); color: var(--on-pop); }
.cal-body { padding: 0; }
.cal-body > .empty, .cal-body > .link-error { padding: 1.2rem; }
.cal-empty { display: grid; justify-items: start; gap: 1rem; padding: 2rem 1.2rem; color: var(--ink-2); font-weight: 600; }
.cal-empty p { margin: 0; }

.chip {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  width: 100%;
  min-width: 0;
  margin: 0 0 3px;
  padding: .15rem .4rem;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--c, var(--blue));
  color: #121117;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.chip-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-time { flex: none; font-weight: 800; opacity: .75; }
.chip.busy { background: var(--hatch), var(--surface); color: var(--ink); }
.chip.busy .chip-title, .chip.busy .chip-time { width: fit-content; max-width: 100%; padding: 0 .25rem; border-radius: 4px; background: var(--surface); opacity: 1; }
.chip.free { opacity: .6; border-style: dashed; }
.chip:hover { filter: brightness(1.06); }

.week { display: grid; }
.week-head, .week-allday { display: grid; grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr)); border-bottom: 2px solid var(--line); }
.week-head .gutter, .week-allday .gutter { border-right: 2px solid var(--line); }
.week-allday .gutter { display: grid; place-items: center; color: var(--ink-3); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.day-head { display: flex; align-items: baseline; justify-content: center; gap: .35rem; padding: .55rem .2rem; border-left: 1px solid var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.day-head b { font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--ink); }
.day-head.today b { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on-pop); font-size: 14px; }
.allday-cell { min-height: 2.2rem; padding: 4px; border-left: 1px solid var(--surface-2); }
.week-scroll { max-height: min(36rem, 70vh); overflow-y: auto; overscroll-behavior: contain; }
.week-grid { position: relative; display: grid; grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr)); height: calc(24 * var(--hour)); background-image: repeating-linear-gradient(to bottom, var(--surface-2) 0 1px, transparent 1px var(--hour)); }
.hours { display: grid; grid-template-rows: repeat(24, var(--hour)); border-right: 2px solid var(--line); }
.hours span { transform: translateY(-.55em); padding-right: .4rem; color: var(--ink-3); font-size: 10.5px; font-weight: 700; text-align: right; }
.day-col { position: relative; border-left: 1px solid var(--surface-2); }
.day-col.today { background: color-mix(in srgb, var(--yellow) 9%, transparent); }
.chip.block { position: absolute; display: block; margin: 0; padding: .2rem .35rem; box-shadow: 2px 2px 0 var(--shadow); }
.chip.block .chip-time { display: block; font-size: 10.5px; }
.chip.block .chip-title { display: block; white-space: normal; }
.chip.block.short { display: flex; align-items: center; gap: .3rem; padding-top: 0; padding-bottom: 0; }
.chip.block.short .chip-time, .chip.block.short .chip-title { display: inline; white-space: nowrap; }
.now-line { position: absolute; left: -2px; right: 0; height: 0; border-top: 3px solid var(--red); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -7px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid var(--line); }

.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-name { padding: .55rem .5rem; border-bottom: 2px solid var(--line); color: var(--ink-3); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.month-cell { min-width: 0; min-height: 7rem; padding: .35rem .35rem .45rem; border-right: 1px solid var(--surface-2); border-bottom: 1px solid var(--surface-2); }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell.other { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.month-cell.other .month-day { color: var(--ink-3); }
.month-day { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; margin-bottom: .2rem; font-family: var(--display); font-size: 13px; font-weight: 800; }
.month-cell.today .month-day { border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on-pop); }
.month .chip { font-size: 11px; }
.more { display: block; padding: 0 .2rem; color: var(--ink-3); font-size: 11px; font-weight: 800; }

.agenda { display: grid; }
.agenda-day { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 1.2rem; border-bottom: 2px dashed var(--surface-2); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-date { display: grid; align-content: start; }
.agenda-date b { font-family: var(--display); font-size: 24px; font-weight: 900; line-height: 1; }
.agenda-date span { color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.agenda-day.today .agenda-date b { color: var(--blue); }
.agenda-items { display: grid; gap: .45rem; min-width: 0; }
.agenda-item { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .75rem; align-items: center; }
.agenda-time { color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda .chip { margin: 0; padding: .35rem .6rem; font-size: 13.5px; box-shadow: 2px 2px 0 var(--shadow); }

/* booking pages, in the app */
.tab[data-tab="book"] b { background: var(--orange); }
#pages-title b { background: var(--orange); }
.pages-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 32rem), 1fr)); gap: 0 2.5rem; }
.pages-body .link:first-child { padding-top: 1.1rem; }
.page.paused { opacity: .7; }
.page-label { margin: 1.2rem 0 .5rem; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.page-status { display: grid; gap: .5rem; margin-top: .9rem; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.page-status p { margin: 0; color: var(--ink-2); }
.page-status.ok { background: color-mix(in srgb, var(--green) 18%, var(--surface)); }
.page-status.warn { background: color-mix(in srgb, var(--yellow) 30%, var(--surface)); }
.page-status .btn { justify-self: start; }
.field-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field-inline .select { flex: 1 1 14rem; min-width: 0; }
.more-link { justify-self: start; color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-toggle { min-height: 38px; padding: 0 .85rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); transition: transform .15s var(--pop); }
.chip-toggle:hover { transform: translate(-1px, -1px); }
.chip-toggle[aria-pressed="true"] { background: var(--orange); color: var(--on-pop); }
.hours-editor { display: grid; gap: .35rem; }
.day-row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .25rem 0; }
.day-name { display: flex; align-items: center; gap: .5rem; min-height: 40px; font-weight: 800; }
.day-name input, .open-toggle input { width: 20px; height: 20px; accent-color: var(--blue); }
.day-row.closed .day-name span { color: var(--ink-3); }
.ranges { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; min-height: 40px; }
.range { display: flex; align-items: center; gap: .35rem; }
.range .icon-btn { width: 32px; height: 32px; }
.time { min-height: 38px; padding: 0 .45rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.closed-note { color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.slug { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.slug-field { display: flex; align-items: stretch; flex: 1 1 18rem; min-width: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.slug-field:focus-within { box-shadow: 0 0 0 4px var(--yellow); }
.slug-host { display: grid; place-items: center; padding: 0 .4rem 0 .8rem; background: var(--surface-2); color: var(--ink-3); font-size: 14px; font-weight: 700; white-space: nowrap; }
.slug-input { flex: 1; min-width: 6rem; min-height: 44px; padding: 0 .7rem 0 .2rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; }
.slug-input:focus { outline: none; }
.slug-status { flex-basis: 100%; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.slug-status.ok { color: var(--green); }
.slug-status.bad { color: var(--red); }
.page-limits { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.select.zone { max-width: 13rem; }
.open-toggle { display: inline-flex; align-items: center; gap: .45rem; font-size: 13.5px; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.upcoming { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.upcoming li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; padding: .55rem .75rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.upcoming b { font-weight: 800; }
.upcoming span { color: var(--ink-2); }
.answer { font-style: normal; padding: .05rem .5rem; border: 2px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--on-pop); }
.answer.accepted { background: var(--green); }
.answer.needsAction { background: var(--yellow); }
.answer.tentative { background: var(--lilac); }
.answer.declined { background: var(--red); color: #fff; }

/* the booking page people open */
.book { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2rem; align-items: start; padding: clamp(1.5rem, 5vw, 3rem) 0 0; }
.book > .empty { grid-column: 1 / -1; }
.book-about, .book-pick, .book-done { padding: 1.4rem; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 6px 6px 0 var(--shadow); }
.book-owner { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-weight: 700; }
.book-owner img, .book-owner .initial { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); }
.book-owner .initial { display: inline-grid; place-items: center; background: var(--lilac); color: var(--on-pop); font-family: var(--display); font-weight: 800; }
.book-about h1 { margin: 1rem 0 .6rem; font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.book-description { margin: 0 0 1rem; color: var(--ink-2); }
.book-facts { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.book-facts li::before { content: "● "; color: var(--orange); }
.pick-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.picker-head h2 { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 800; text-transform: capitalize; }
.picker-head .icon-btn { border-color: var(--line); background: var(--surface); }
.picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.picker-name { padding-bottom: .2rem; color: var(--ink-3); font-size: 11.5px; font-weight: 800; text-align: center; text-transform: uppercase; }
.picker-day { aspect-ratio: 1; min-height: 36px; border: 2px solid transparent; border-radius: 10px; background: none; color: var(--ink-3); font: inherit; font-family: var(--display); font-size: 14px; font-weight: 700; }
.picker-day.other { visibility: hidden; }
.picker-day.open { border-color: var(--line); background: color-mix(in srgb, var(--yellow) 55%, var(--surface)); color: var(--on-pop); cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); }
.picker-day.open:hover { transform: translate(-1px, -1px); }
.picker-day.today { text-decoration: underline 2px; text-underline-offset: 4px; }
.picker-day.chosen { background: var(--ink); color: var(--ground); }
.picker-times h3 { margin: .35rem 0 .75rem; font-family: var(--display); font-size: 15px; font-weight: 800; }
.time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .45rem; max-height: 22rem; overflow-y: auto; padding: 2px 6px 6px 2px; }
.time-slot { min-height: 42px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); }
.time-slot:hover { background: var(--surface-2); }
.time-slot.chosen { background: var(--blue); color: #fff; }
.book-form { display: grid; gap: .65rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px dashed var(--surface-2); }
.book-when { margin: 0 0 .25rem; font-size: 15px; }
.input.notes { min-height: 5.5rem; padding: .7rem .95rem; resize: vertical; }
.book-form .btn { justify-self: start; }
.book-done { display: grid; justify-items: start; gap: .6rem; }
.book-done h2 { margin: .3rem 0 0; font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; }
.book-done p { margin: 0; color: var(--ink-2); }
.flags { display: flex; gap: .35rem; }
.flags button { display: grid; place-items: center; width: 40px; height: 32px; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; overflow: hidden; opacity: .55; box-shadow: 2px 2px 0 var(--shadow); transition: transform .15s var(--pop), opacity .15s; }
.flags button svg { width: 100%; height: 100%; display: block; }
.flags button:hover { opacity: .9; transform: translate(-1px, -1px); }
.flags button[aria-pressed="true"] { opacity: 1; transform: translate(-1px, -2px) rotate(-3deg); }
@media (max-width: 480px) {
  .flags { gap: .25rem; }
  .flags button { width: 30px; height: 24px; border-radius: 6px; }
  .booking .bar nav { gap: .45rem; }
  .booking .crumb { font-size: 0; gap: 0; }
  .booking .crumb svg { display: none; }
  .booking .crumb strong { font-size: 13px; }
}
.accept-note { padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--yellow); color: var(--on-pop) !important; font-weight: 700; }
.done-badge { padding: .25rem .8rem; border: 2px solid var(--line); border-radius: 999px; background: var(--green); color: var(--on-pop); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 860px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .accounts-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .week-head, .week-allday, .week-grid { grid-template-columns: 2.6rem repeat(7, minmax(0, 1fr)); }
  .day-head { flex-direction: column; align-items: center; gap: 0; font-size: 10.5px; }
  .chip.block .chip-time { display: none; }
  .month-cell { min-height: 4.6rem; padding: .2rem; }
  .month .chip .chip-time { display: none; }
  .month .chip { padding: .05rem .2rem; font-size: 10px; }
  .agenda-day { grid-template-columns: 3.6rem minmax(0, 1fr); padding: .8rem .9rem; gap: .7rem; }
  .agenda-item { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .tabs { flex-wrap: nowrap; gap: .4rem; }
  .tab { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 .5rem; font-size: 13px; }
  .tab b { display: none; }
}
@media (max-width: 520px) {
  .strip { gap: .5rem; }
  .show-row { grid-template-columns: 18px minmax(0, 1fr); }
  .show-row .switch { grid-column: 1 / -1; justify-self: start; }
  .switch button { min-width: 0; }
  .strip .meta { display: none; }
  .who .email { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse { opacity: 0; }
}

/* On a touch screen every field is at least 16px: iOS zooms into anything smaller when it takes the keyboard. */
@media (pointer: coarse) {
  .input, .select, .time, .slug-input { font-size: 16px; }
}
/* On a phone a day's name sits above its hours, so two 16px times and the bin fit the width. */
@media (max-width: 480px) {
  .day-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .ranges { min-height: 0; }
  .time { min-width: 0; }
}
