/* Xpanair meetings — shared styles for the public booking page and the staff dashboard.
   Palette follows xpanair.com: ink #0a2540, sky #066ea2. */
:root {
  --ink: #0a2540; --ink-2: #33475b; --mut: #64748b; --faint: #94a3b8;
  --bg: #f6f8fb; --card: #fff; --line: #e2e8f0; --line-2: #cbd5e1;
  --sky: #066ea2; --sky-600: #055a85; --sky-soft: #e0f2fe; --sky-50: #f0f9ff;
  --ok: #15803d; --ok-soft: #dcfce7; --bad: #b91c1c; --bad-soft: #fee2e2; --warn-soft: #fef3c7;
  --c-founder: #dbeafe; --c-founder-ink: #1e3a8a;
  --c-public: #dcfce7; --c-public-ink: #14532d;
  --c-assistant: #ffedd5; --c-assistant-ink: #7c2d12;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 4px 16px rgba(10, 37, 64, .06);
  --shadow-lg: 0 10px 40px rgba(10, 37, 64, .18);
  --focus: 0 0 0 3px rgba(6, 110, 162, .25);
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 15px/1.5 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.25; letter-spacing: -.01em }
h1 { font-size: 1.5rem } h2 { font-size: 1.125rem } h3 { font-size: 1rem }
p { margin: 0 0 .75em }
a { color: var(--sky) }
.muted { color: var(--mut) } .small { font-size: .85rem } .tiny { font-size: .75rem }
.boot { padding: 40px; text-align: center; color: var(--mut) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* ---------- controls ---------- */
button, input, select, textarea { font: inherit; color: inherit }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 1px solid var(--line-2); background: var(--card); padding: .55em 1em; border-radius: var(--r-sm); font-weight: 500; line-height: 1.2; text-decoration: none; color: var(--ink); transition: background .15s, border-color .15s, box-shadow .15s }
.btn:hover, button:hover { border-color: var(--faint) }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--sky) }
.pri { background: var(--sky); border-color: var(--sky); color: #fff }
.pri:hover { background: var(--sky-600); border-color: var(--sky-600) }
.ghost { background: transparent; border-color: transparent }
.ghost:hover { background: rgba(10, 37, 64, .05); border-color: transparent }
.danger { color: var(--bad); border-color: #fecaca } .danger:hover { background: var(--bad-soft); border-color: #fca5a5 }
.linkbtn { border: 0; background: none; padding: 0; color: var(--bad); text-decoration: underline; font-weight: 500 }
.linkbtn:hover { background: none; color: #7f1d1d }
.btn.lg, button.lg { padding: .75em 1.25em; font-size: 1rem }
.full { width: 100% }
button:disabled { opacity: .55; cursor: default }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: .6em .75em; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s }
input[readonly] { background: var(--bg) }
textarea { min-height: 80px; resize: vertical }
.field { margin: 0 0 14px }
.field > span { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px }
.field > span em { font-style: normal; font-weight: 400; color: var(--mut) }
.field.invalid input, .field.invalid textarea { border-color: var(--bad) }
.field.callphone input, .field.need input { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(6, 110, 162, .12); background: var(--sky-50) }
.field .hint { display: block; font-size: .75rem; color: var(--mut); margin-top: 4px }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px } .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px }
@media (max-width: 640px) { .row, .row3 { grid-template-columns: 1fr } }
.err { color: var(--bad); font-size: .9rem; margin: 0 0 10px; min-height: 0 }
.err:empty { display: none }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow) }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2em .65em; border-radius: 99px; background: var(--sky-soft); color: var(--sky-600) }
.pill { display: inline-block; font-size: .72rem; font-weight: 500; padding: .15em .6em; border-radius: 99px; background: #f1f5f9; color: var(--ink-2); margin: 0 4px 0 0; white-space: nowrap }
.pill.ok { background: var(--ok-soft); color: var(--ok) } .pill.bad { background: var(--bad-soft); color: var(--bad) } .pill.sky { background: var(--sky-soft); color: var(--sky-600) }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 99px; z-index: 60; box-shadow: var(--shadow-lg); font-weight: 500; animation: up .2s ease-out }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px) } }
.seg { display: inline-flex; padding: 3px; background: #eef2f7; border-radius: 10px; gap: 2px }
.seg button { border: 0; background: transparent; padding: .45em .9em; border-radius: 8px; color: var(--ink-2) }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 37, 64, .12) }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 99px; padding: .35em .85em; cursor: pointer; user-select: none; font-size: .9rem; background: #fff }
.chip input { display: none } .chip.on { background: var(--sky-soft); border-color: var(--sky); color: var(--sky-600); font-weight: 600 }

/* ---------- brand header ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em }
.brand img { height: 30px; width: auto; max-width: 180px; object-fit: contain; display: block }
.pub .brand img { height: 40px }
.brand-sub { padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600 }

/* ================= PUBLIC BOOKING PAGE ================= */
body.pub { background: linear-gradient(180deg, #eaf3fa 0, var(--bg) 320px) no-repeat, var(--bg) }
.pub .shell { max-width: 1040px; margin: 0 auto; padding: 28px 16px 48px }
.pub header.site { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px }
.pub .book { display: grid; grid-template-columns: 300px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; min-height: 520px }
.pub .side { padding: 28px 24px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--sky-50)) }
.pub .side h1 { font-size: 1.6rem }
.pub .side .meta { display: grid; gap: 10px; margin: 18px 0; color: var(--ink-2); font-size: .92rem }
.pub .side .meta div { display: flex; gap: 10px; align-items: flex-start }
.pub .side .meta svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--sky) }
.pub .main { padding: 28px 28px 32px; min-width: 0 }
.pub .pickers { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px }
.pub .step-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px }
.cal-head strong { flex: 1; font-size: 1rem }
.cal-head button { width: 36px; height: 36px; padding: 0; border-radius: 50% }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 2px; text-align: center; justify-items: center; align-items: center; width: 100% }
.cal .h { width: 100%; font-size: .7rem; font-weight: 600; color: var(--mut); text-transform: uppercase; padding: 4px 0 6px }
.cal button { width: 42px; height: 42px; max-width: 100%; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--faint); font-weight: 500; font-size: .95rem; line-height: 1; position: relative; overflow: visible }
.cal button.av { background: var(--sky-soft); color: var(--sky-600); font-weight: 700 }
.cal button.av:hover { background: #bae6fd }
.cal button.cal-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor }
.cal button.on { background: var(--sky); color: #fff }
.cal button:disabled { cursor: default; background: transparent }
.times { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px 4px 2px 2px }
.times button { width: 100%; padding: .7em; border: 1px solid var(--sky); color: var(--sky-600); background: #fff; font-weight: 600 }
.times button:hover { background: var(--sky-soft) }
.slot-off { display: flex; align-items: center; justify-content: center; gap: 6px; padding: .7em; border-radius: var(--r-sm); background: #eef1f5; color: #94a3b8; font-weight: 600; border: 1px solid #e2e8f0; cursor: not-allowed; text-align: center }
.slot-off small { font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em }
.slot-off.booked { background: repeating-linear-gradient(135deg, #eef1f5, #eef1f5 6px, #e6eaf0 6px, #e6eaf0 12px) }
.slot-off span { text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, .6) }
.cal button.full { background: #eef1f5; color: #94a3b8; text-decoration: line-through }
.cal button.closed { background: #f1f3f6; color: #c0c8d4 }
.cal button.on.full { background: #64748b; color: #fff; text-decoration: none }
.cal-key { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 14px; font-size: .75rem; color: var(--mut) }
.cal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px }
.k-av { background: var(--sky-soft); border: 1px solid #7dd3fc } .k-full { background: #e2e8f0 } .k-closed { background: #f1f3f6; border: 1px solid #e2e8f0 }
.times button small { font-weight: 400; color: var(--mut); margin-left: 4px }
.empty { color: var(--mut); padding: 18px 0; font-size: .92rem }
.tzrow { display: flex; gap: 10px; align-items: flex-start } .tzrow > span:first-child { margin-top: 22px }
.tzwrap { display: grid; gap: 4px; margin: 0; flex: 1; min-width: 0 } .tzsel { padding: .4em .5em; font-size: .9rem; max-width: 100% }
.tzline { margin-top: 14px; font-size: .8rem; color: var(--mut); display: flex; align-items: center; gap: 6px }
.back { margin: -6px 0 12px -10px }
.summary { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--sky-50); margin-bottom: 18px }
.summary strong { display: block; font-size: 1.05rem }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px }
.mode { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 500; background: #fff }
.mode input { accent-color: var(--sky); margin: 0 }
.mode.on { border-color: var(--sky); background: var(--sky-50); box-shadow: inset 0 0 0 1px var(--sky) }
.done-wrap { max-width: 560px; margin: 0 auto; text-align: center }
.done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: var(--ok-soft); color: var(--ok) }
.done-icon.bad { background: var(--bad-soft); color: var(--bad) }
.done-icon.wait { background: var(--warn-soft); color: #b45309 }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }
.done-card { text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 18px 0; display: grid; gap: 12px }
.done-card .ln { display: flex; gap: 12px; align-items: flex-start }
.done-card .ln svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--sky) }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.pub footer { text-align: center; color: var(--faint); font-size: .8rem; margin-top: 22px }
@media (max-width: 860px) {
  .pub .book { grid-template-columns: 1fr }
  .pub .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px }
  .pub .side .meta { margin-bottom: 0 }
  .pub .main { padding: 22px 18px 26px }
}
@media (max-width: 620px) {
  .pub .pickers { grid-template-columns: minmax(0, 1fr); gap: 20px }
  .cal { gap: 4px 0 }
  .cal button { width: 38px; height: 38px; font-size: .9rem }
  .cal-head button { width: 34px; height: 34px }
  .times { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) }
  .times button, .slot-off { flex-direction: column; gap: 0; padding: .55em }
  .times button small { margin: 0 }
  .pub .step-h { flex-wrap: wrap }
  .pub .shell { padding-top: 18px }
}

/* ================= STAFF DASHBOARD ================= */
body.staff { background: var(--bg) }
.topbar { position: sticky; top: 0; z-index: 15; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line) }
.topbar .in { padding: 10px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
.topbar .brand { margin-right: 28px; padding-right: 28px; border-right: 1px solid var(--line) }
.nav { display: flex; gap: 6px }
.nav button { border: 0; background: transparent; color: var(--ink-2); padding: .5em .85em }
.nav button:hover { background: rgba(10, 37, 64, .05) }
.nav button.on { background: var(--sky-soft); color: var(--sky-600); font-weight: 600 }
.sp { flex: 1 }
.who { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: .88rem }
.wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 60px }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px }
.toolbar h2 { margin: 0 8px; font-size: 1.1rem }
.today { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px }
.today .k { font-size: .75rem; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em }
.today .v { font-weight: 600 }
.today .div { width: 1px; align-self: stretch; background: var(--line) }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--mut); margin: 0 0 10px }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .06) }
.gridwrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); max-height: calc(100vh - 250px); min-height: 360px }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px; table-layout: fixed }
.grid th, .grid td { border-bottom: 1px solid #eef2f7; border-left: 1px solid #eef2f7; padding: 0; text-align: center; font-size: .8rem; height: 36px }
.grid th { background: #fbfcfe; padding: 8px 4px; position: sticky; top: 0; z-index: 3; font-weight: 600; color: var(--ink-2); height: auto }
.grid th .d { display: block; font-size: 1.15rem; color: var(--ink); line-height: 1.1 }
.grid th .closed { display: block; font-weight: 400; font-size: .7rem; color: var(--faint) }
.grid th.is-today { color: var(--sky-600) } .grid th.is-today .d { display: grid; place-items: center; width: 30px; height: 30px; margin: 2px auto 0; border-radius: 50%; background: var(--sky); color: #fff; font-size: 1rem }
.grid th:first-child { left: 0; z-index: 4; width: 64px }
.grid td.t { color: var(--mut); background: #fbfcfe; font-size: .72rem; position: sticky; left: 0; z-index: 2; vertical-align: top; padding-top: 3px; font-variant-numeric: tabular-nums }
.grid tr.hour td { border-bottom-color: #eef2f7 } .grid tr.half td { border-bottom-color: #e2e8f0 }
.grid td.free { cursor: pointer; transition: background .1s }
.grid td.free:hover { background: var(--sky-50) }
.grid td.free:hover::after { content: "+"; color: var(--sky); font-size: 1rem; font-weight: 600 }
.grid td.sel { background: var(--sky-soft) !important; box-shadow: inset 0 0 0 1px var(--sky) }
.grid td.sel::after { content: "✓" !important; color: var(--sky-600); font-weight: 700 }
.grid td.closedday { background: #f1f3f6 }
.grid td.held { background: repeating-linear-gradient(135deg, #fff7ed, #fff7ed 6px, #ffedd5 6px, #ffedd5 12px); color: #9a3412; font-size: .68rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px #fdba74 }
.grid td.closedday.sunday, .grid td.past.sunday { background: #e9ecf1 }
.grid td.closedday.free:hover { background: #e2e8f0 }
.grid td.special { background: #f0fdf4; color: #15803d; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em }
.chip.off { background: #f1f3f6; color: var(--faint); border-style: dashed; cursor: default }
.grid td.past { background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 5px, #f1f5f9 5px, #f1f5f9 10px); cursor: default }
.grid td.blocked { background: repeating-linear-gradient(135deg, #f1f5f9, #f1f5f9 6px, #e2e8f0 6px, #e2e8f0 12px); color: var(--mut); font-size: .7rem }
.grid td.blocked.click { cursor: pointer }
.grid td.mtg { padding: 2px 3px; vertical-align: top }
.ev { height: 100%; min-height: 30px; border-radius: 6px; padding: 4px 7px; text-align: left; cursor: pointer; overflow: hidden; font-size: .76rem; line-height: 1.3; border-left: 3px solid; background: var(--c-founder); color: var(--c-founder-ink); border-color: #3b82f6 }
.ev.public { background: var(--c-public); color: var(--c-public-ink); border-color: #22c55e }
.ev.assistant { background: var(--c-assistant); color: var(--c-assistant-ink); border-color: #f97316 }
.ev.private { background: #f1f5f9; color: var(--ink-2); border-color: var(--faint); cursor: default }
.ev.done { opacity: .6 }
.ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600 }
.ev span { opacity: .8; white-space: nowrap }
.ev:hover { filter: brightness(.97) }
.bar { position: sticky; bottom: 14px; margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); z-index: 10; animation: up2 .15s ease-out }
@keyframes up2 { from { opacity: 0; transform: translateY(8px) } }
.bar button { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff }
.bar button:hover { background: rgba(255, 255, 255, .16) }
.bar button.pri { background: #fff; color: var(--ink); border-color: #fff }
.bar .note { opacity: .75; font-size: .85rem }
/* modal */
.modal { position: fixed; inset: 0; background: rgba(10, 37, 64, .45); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow: auto; z-index: 40; animation: fade .15s }
@keyframes fade { from { opacity: 0 } }
.modal .card { width: 100%; max-width: 680px; margin: auto; padding: 0; box-shadow: var(--shadow-lg) }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line) }
.modal .mh h2 { margin: 0; flex: 1 }
.modal .mb { padding: 18px 20px 4px }
.modal .mf { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--r) var(--r) }
.sec { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 6px 0 10px; display: flex; align-items: center; gap: 10px }
.sec::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px }
.x { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; background: transparent; font-size: 1.3rem; color: var(--mut) }
.x:hover { background: #f1f5f9 }
/* list */
.listhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px }
.listhead input { max-width: 300px }
.dayhead { font-size: .78rem; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .05em; padding: 16px 4px 6px }
.list .item { display: flex; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; align-items: center; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s }
.list .item:hover { border-color: var(--sky); box-shadow: var(--shadow) }
.list .when { min-width: 120px; font-variant-numeric: tabular-nums; font-weight: 600 }
.list .when small { display: block; font-weight: 400; color: var(--mut) }
.list .what { flex: 1; min-width: 0 }
.list .what b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #3b82f6 } .dot.public { background: #22c55e } .dot.assistant { background: #f97316 }
@media (max-width: 640px) { .list .item { flex-wrap: wrap; gap: 6px 12px } .list .when { min-width: 0 } }
/* settings: hours per day, 2-step */
.dayhours { display: grid; gap: 6px }
.dh { display: grid; grid-template-columns: 110px 1fr auto 1fr; gap: 10px; align-items: center }
.dh select { padding: .45em .6em } .dh.off { opacity: .55 }
.dh-day { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; color: var(--ink) }
.dh-day input { width: 16px; height: 16px; accent-color: var(--sky) }
@media (max-width: 520px) { .dh { grid-template-columns: 70px 1fr auto 1fr; gap: 6px } }
.qr svg { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 8px }
.steps { padding-left: 18px; margin: 0 0 12px } .steps li { margin: 4px 0 } .steps code { font-size: .95rem; background: #f1f5f9; padding: 2px 6px; border-radius: 4px }
button.small { font-size: .82rem; padding: .35em .7em }
.ev.pending { border-left-style: dashed; background: #fff7ed !important; color: #9a3412 !important; border-color: #fb923c !important }
/* meetings list */
.seg .count, .chip .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: #e2e8f0; color: var(--ink-2); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center }
.seg button.on .count { background: var(--sky-soft); color: var(--sky-600) } .count.warn { background: #fde68a !important; color: #92400e !important }
.listhead + .chips { margin: -4px 0 12px }
.dayhead { display: flex; align-items: center; gap: 8px } .dayhead .n { font-size: .7rem; background: #e2e8f0; color: var(--ink-2); border-radius: 99px; padding: 0 7px; line-height: 17px }
.list .item .meta { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end }
.list .item .acts { display: flex; gap: 6px; flex-wrap: wrap }
.list .item.off { background: #fafbfc } .list .item.off b { text-decoration: line-through; color: var(--mut) } .list .item.off .when { color: var(--faint) }
.list .item.wait { border-color: #fdba74; background: #fffbf5 }
.pill.warn { background: var(--warn-soft); color: #92400e }
.empty-card { text-align: center; padding: 40px 20px; color: var(--mut) } .empty-card .big { font-size: 2rem; margin-bottom: 6px }
@media (max-width: 640px) { .list .item .meta, .list .item .acts { width: 100%; justify-content: flex-start; padding-left: 22px } }
/* email account */
.mailacct { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line) }
.mailacct details { margin: 4px 0 12px } .mailacct summary { cursor: pointer; margin-bottom: 4px }
/* who tells the guest */
.tell { display: grid; gap: 8px }
.tellopt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; margin: 0; color: var(--ink) }
.tellopt input { margin-top: 3px; accent-color: var(--sky); flex: none }
.tellopt b { display: block; font-weight: 600; font-size: .92rem } .tellopt small { color: var(--mut); font-size: .8rem }
.tellopt.on { border-color: var(--sky); background: var(--sky-50); box-shadow: inset 0 0 0 1px var(--sky) } .tellopt.off { opacity: .5; cursor: not-allowed }
.btn.warnbtn { border-color: #fbbf24; background: #fffbeb; color: #92400e }
.dayhead.follow { color: #92400e }
/* join check */
.jcard { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fbfcfe }
.jcard.now { border-color: var(--sky); background: var(--sky-50); box-shadow: inset 3px 0 0 var(--sky) }
/* history */
.hicon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .8rem; font-weight: 700; background: var(--sky-soft); color: var(--sky-600) }
.hicon.ok { background: var(--ok-soft); color: var(--ok) } .hicon.bad { background: var(--bad-soft); color: var(--bad) } .hicon.mute { background: #f1f5f9; color: var(--mut) }
.hitem time { text-align: right; line-height: 1.35 }
.who-founder { color: #1d4ed8; font-weight: 600 } .who-assistant { color: #c2410c; font-weight: 600 } .who-guest { color: #15803d; font-weight: 600 }
.hist { padding: 6px 0 } .card.hist { padding: 6px 18px }
.hitem { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef2f7 }
.hitem:last-child { border-bottom: 0 }
.hdot { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); margin-top: 7px; flex: none }
.hdot.ok { background: #22c55e } .hdot.bad { background: #ef4444 }
.hbody { flex: 1; min-width: 0; font-size: .9rem } .hitem time { white-space: nowrap; margin-top: 2px }
/* settings */
.settings { display: grid; gap: 16px; max-width: 760px }
.settings .card h2 { margin-bottom: 4px }
.settings .card > p.muted { margin-bottom: 16px }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sky); flex: none }
.check b { display: block; font-weight: 600; font-size: .92rem } .check small { color: var(--mut); font-size: .8rem }
.check-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap } .check-row .check { flex: 1; min-width: 240px }
.note { padding: 10px 14px; border-radius: var(--r-sm); font-size: .88rem; margin-bottom: 14px }
.note.ok { background: var(--ok-soft); color: #14532d } .note.warn { background: var(--warn-soft); color: #78350f }
/* login */
.login { max-width: 400px; margin: 10vh auto 0; padding: 0 16px }
.login .card { padding: 28px }
.login .brand { justify-content: center; margin-bottom: 18px; font-size: 1.1rem }
@media (max-width: 640px) {
  .topbar .in { gap: 8px; padding: 10px 14px } .topbar .brand { margin-right: 0; padding-right: 0; border-right: 0; flex-basis: 100% } .who .nm { display: none }
  .wrap { padding-top: 12px }
  .gridwrap { max-height: none }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

/* very narrow phones or large text settings: keep all 7 days on screen */
@media (max-width: 360px) { .cal button { width: 34px; height: 34px; font-size: .85rem } .pub .main { padding-left: 12px; padding-right: 12px } }

/* Logos: the white one only in the dark theme (html[data-theme="dark"]) */
.logo-w { display: none !important }
[data-theme="dark"] .logo-w { display: block !important } [data-theme="dark"] .logo-c { display: none !important }
