:root {
  --blue: #006BFF;
  --blue-hover: #0055CC;
  --blue-deep: #0055CC;
  --blue-text: #0060E6;
  --blue-soft: #E0ECFF;
  --blue-tint: #F0F6FF;
  --ink: #0B3558;
  --ink-2: #072746;
  --body: #476788;
  --muted: #6A7F9A;
  --faint: #A6BBD1;
  --line: #E7EDF6;
  --line-2: #D4E0ED;
  --wash: #F0F3F8;
  --page: #F8F9FB;
  --card: #fff;
  --ok: #0A7F4F;
  --ok-soft: #E3F7EE;
  --bad: #C8102E;
  --bad-soft: #FDECEF;
  --radius: 8px;
  --shadow: 0 1px 8px rgba(0, 0, 0, .08);
  --shadow-lg: 0 18px 48px rgba(11, 53, 88, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
}
.bk-page { --ink: #1A1A1A; --body: #5C5C5C; --muted: #737373; --line: #E6E6E6; --line-2: #DADADA; --wash: #F5F5F5; background: var(--page); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }

.enter { animation: enter .22s var(--ease); }
@keyframes enter { from { opacity: .55; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent; height: 44px; padding: 0 1.25rem;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--wash); }
.btn-sm { height: 36px; padding: 0 .9rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .15s;
}
.iconbtn:hover { background: var(--wash); }
.iconbtn[disabled] { color: var(--line-2); cursor: default; background: transparent; }
.link { color: var(--blue-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .9rem;
  transition: opacity .2s, transform .2s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* demo strip */
.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: rgba(255,255,255,.78); font-size: .8rem; padding: 6px 16px; min-height: 40px;
}
.strip-t { font-weight: 600; white-space: nowrap; }
.views { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; gap: 2px; }
.views a { color: #fff; text-decoration: none; font-weight: 600; padding: 4px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.views a:hover { background: rgba(255,255,255,.12); }
.views a.on { background: #fff; color: var(--ink); }
.strip-tour { color: #8FB8FF; font-weight: 600; text-decoration: none; white-space: nowrap; }
.strip-tour:hover { text-decoration: underline; }

/* ---------- booking pages ---------- */
.bk-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 64px 24px 32px; }
.bk-foot { margin-top: 20px; display: flex; gap: 16px; font-size: .8rem; color: var(--muted); }
.bk-foot a { text-decoration: none; }
.bk-foot a:hover { color: var(--ink); }

.bk-card {
  --tcol: 0px;
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 1012px; min-height: 640px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr) var(--tcol);
  transition: max-width .32s var(--ease), grid-template-columns .32s var(--ease);
}
.bk-card.has-date { --tcol: 288px; max-width: 1100px; }
.bk-card.narrow { max-width: 1012px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.bk-card.single { max-width: 680px; min-height: 0; grid-template-columns: 1fr; }

.ribbon {
  position: absolute; top: 0; right: 0; width: 120px; height: 120px; overflow: hidden; pointer-events: none; z-index: 2;
}
.ribbon a {
  pointer-events: auto; position: absolute; top: 24px; right: -38px; width: 170px; transform: rotate(45deg);
  background: #505960; color: #fff; text-align: center; text-decoration: none; padding: 6px 0 5px; line-height: 1.05;
}
.ribbon small { display: block; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.ribbon b { font-size: .8rem; letter-spacing: -.01em; color: #fff; }

.bk-info { border-right: 1px solid var(--line); padding: 28px 28px 32px; position: relative; min-width: 0; }
.bk-org { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; margin: 0 -28px 24px; padding-left: 28px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--body); }
.bk-org img { width: auto; height: 24px; }
.bk-back {
  position: absolute; top: 24px; left: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--blue-text); background: #fff; text-decoration: none; cursor: pointer; z-index: 1;
}
.bk-back:hover { background: var(--blue-tint); }
.bk-info.with-back .bk-org { padding-left: 84px; min-height: 44px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: -.01em; font-size: 1.25rem; flex: none;
}
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar.md { width: 44px; height: 44px; font-size: .95rem; }
.bk-host { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.bk-title { margin: 0 0 18px; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.bk-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--body); font-weight: 600; }
.bk-meta li { display: flex; gap: 10px; align-items: flex-start; }
.bk-meta .i { color: var(--muted); margin-top: 1px; }
.bk-meta small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.bk-meta li.hl { color: var(--ink); }
.bk-desc { margin: 22px 0 0; color: var(--body); white-space: pre-line; }
.bk-was { margin-top: 20px; padding: 12px 14px; background: var(--wash); border-radius: var(--radius); font-size: .875rem; color: var(--body); }
.bk-was s { color: var(--muted); }

.bk-cal { padding: 28px 32px 28px; min-width: 0; }
.bk-h { margin: 0 0 22px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.mh { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 0 0 14px; }
.mh span { min-width: 150px; text-align: center; font-weight: 500; }
.mh .iconbtn:not([disabled]) { background: var(--blue-tint); color: var(--blue-text); }
.mh .iconbtn:not([disabled]):hover { background: var(--blue-soft); }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.dow { font-size: .7rem; letter-spacing: .04em; color: var(--body); font-weight: 600; margin-bottom: 6px; }
.days { row-gap: 6px; position: relative; }
.day {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: transparent;
  font-size: .95rem; color: var(--ink); cursor: default; transition: background .15s, color .15s, transform .15s;
}
.day.open { background: var(--blue-tint); color: var(--blue-text); font-weight: 700; cursor: pointer; }
.day.open:hover { background: var(--blue-soft); }
.day.on { background: var(--blue); color: #fff; font-weight: 700; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.day.off { color: #b8b4ae; }
.empty-month {
  position: absolute; inset: 20% 8% auto; z-index: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 20px; text-align: center;
}
.empty-month p { margin: 0 0 10px; font-weight: 600; }
.tz { margin-top: 26px; }
.tz h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 700; }
.tz label { display: inline-flex; align-items: center; gap: 8px; color: var(--body); position: relative; max-width: 100%; }
.tz select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 6px 22px 6px 0; cursor: pointer; font-weight: 500;
  max-width: 100%; text-overflow: ellipsis;
}
.tz label::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--body); border-bottom: 2px solid var(--body); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.bk-times { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.bk-times-in {
  width: 288px; padding: 76px 24px 24px 0; opacity: 0; transform: translateX(24px); transition: opacity .25s .08s, transform .32s var(--ease);
  display: flex; flex-direction: column; min-height: 0; flex: 1;
}
.bk-card.has-date .bk-times-in { opacity: 1; transform: none; }
.tt-head { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; }
.tt-head h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.tt-head .iconbtn { display: none; }
.tt-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 470px; padding-right: 6px; scrollbar-width: thin; }
.slot {
  height: 52px; flex: none; width: 100%; border: 1px solid var(--blue); background: #fff; color: var(--blue-text); border-radius: 4px;
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: border-width .1s, background .15s; position: relative;
}
.slot:hover { border-width: 2px; }
.slot .seats { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); margin-top: -2px; }
.slot.has-seats { height: 58px; }
.slot-pick { display: flex; gap: 8px; height: 52px; flex: none; }
.slot-pick > * { border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; min-width: 0; }
.slot-pick .sp-time { flex: 1; background: #666; color: #fff; animation: sp-shrink .22s var(--ease); }
.slot-pick .sp-next { flex: 1; background: var(--blue); color: #fff; text-decoration: none; animation: sp-grow .22s var(--ease); }
.slot-pick .sp-next:hover { background: var(--blue-hover); }
@keyframes sp-shrink { from { flex-grow: 2; } }
@keyframes sp-grow { from { flex-grow: 0; opacity: 0; } }
.tt-none { color: var(--muted); font-size: .9rem; }

/* details form */
.bk-form { padding: 28px 32px 36px; max-width: 520px; }
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select, .inp {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 12px; background: #fff; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover, .inp:hover { border-color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus, .inp:focus { outline: 0; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(0,107,255,.18); }
.field textarea { min-height: 96px; resize: vertical; }
.field.err input, .field.err textarea { border-color: var(--bad); }
.field .msg { display: none; color: var(--bad); font-size: .82rem; margin-top: 6px; font-weight: 500; }
.field.err .msg { display: block; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.fine { color: var(--muted); font-size: .8rem; margin: 6px 0 20px; }
.alert { border-radius: var(--radius); padding: 12px 14px; font-size: .9rem; margin: 0 0 18px; background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.alert.info { background: var(--blue-tint); color: var(--blue-text); }

/* confirmation */
.done { padding: 36px 40px 40px; text-align: center; }
.done-mark { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.done-mark.cancel { background: var(--ink); }
.done-mark .i { width: 26px; height: 26px; stroke-width: 2.5; }
.done h1 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.01em; }
.done > p { margin: 0 auto 22px; color: var(--body); max-width: 40ch; }
.sumbox { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 auto 22px; max-width: 460px; }
.sumbox h2 { margin: 0 0 12px; font-size: 1.15rem; }
.sumbox .bk-meta { gap: 10px; }
.sumbox code { font-family: inherit; font-weight: 600; color: var(--blue-text); word-break: break-all; }
.addcal { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.done .small { color: var(--muted); font-size: .85rem; margin: 0 auto; }
.done .small a { color: var(--blue-text); font-weight: 600; }
.done .demo-note { margin: 22px auto 0; max-width: 460px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* profile and team */
.prof { padding: 40px 48px 44px; text-align: center; }
.prof .avatar { width: 88px; height: 88px; font-size: 1.6rem; margin-bottom: 14px; }
.prof .org-mark { width: auto; height: 58px; margin: 0 auto 14px; }
.prof h1 { margin: 0 0 6px; font-size: 1.5rem; letter-spacing: -.01em; }
.prof > p { margin: 0 auto 28px; max-width: 46ch; color: var(--body); }
.etypes { text-align: left; border-top: 1px solid var(--line); }
.etype {
  display: flex; align-items: center; gap: 14px; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .15s;
}
.etype:hover { background: var(--blue-tint); }
.etype .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.etype b { display: block; font-size: 1.05rem; }
.etype span { display: block; color: var(--muted); font-size: .88rem; }
.etype .i { margin-left: auto; color: var(--muted); }
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; text-align: left; }
.agent { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; display: flex; gap: 12px; align-items: center; transition: border-color .15s; }
.agent:hover { border-color: var(--blue); }
.agent b { display: block; font-size: .95rem; }
.agent span { font-size: .8rem; color: var(--muted); }
.sect-h { margin: 32px 0 0; text-align: left; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* routing form for invitees */
.rf { padding: 40px 48px; }
.rf h1 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.01em; }
.rf > p { color: var(--body); margin: 0 0 24px; }
.choice { display: grid; gap: 10px; margin-bottom: 22px; }
.choice label {
  display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.choice label:hover { border-color: var(--blue); }
.choice input { accent-color: var(--blue-deep); width: 18px; height: 18px; margin: 0; }
.choice label:has(input:checked) { border-color: var(--blue-deep); background: var(--blue-tint); }

/* ---------- preview hub ---------- */
.hub { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }
.hub-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 1.25rem; }
.brand img { width: auto; height: 26px; }
.hub-hero { text-align: center; padding: 40px 0 36px; }
.hub-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; line-height: 1; margin: 0 auto 14px; max-width: 18ch; font-weight: 700; }
.hub-hero p { color: var(--body); font-size: 1.1rem; max-width: 40rem; margin: 0 auto; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hub-acts { display: flex; gap: 8px; }
.hub-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.hub-ic .i { width: 22px; height: 22px; }
.hub .sect-h { margin-top: 36px; margin-bottom: 12px; }
.hub-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hub-card .kick { font-weight: 700; color: var(--blue); font-size: .85rem; margin-top: 6px; }
.hub-card h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.01em; }
.hub-card p { margin: 0; color: var(--body); }
.hub-card .go { margin-top: auto; padding-top: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.hub-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hub-more a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; transition: border-color .15s; }
.hub-more a:hover { border-color: var(--blue); }
.hub-more b { display: block; }
.hub-more span { color: var(--muted); font-size: .88rem; }
.hub-note { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }

.hub-tour {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 22px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .2s var(--ease);
}
.hub-tour:hover { transform: translateY(-2px); }
.hub-tour b { display: block; color: #fff; font-size: 1.05rem; }
.hub-tour span { color: rgba(255,255,255,.75); font-size: .9rem; }
.hub-tour .i { margin-left: auto; color: #8FB8FF; }

/* ---------- guided tour ---------- */
.tour { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; }
.tour-bar { display: flex; align-items: center; gap: 24px; height: 72px; position: sticky; top: 0; z-index: 10; background: var(--page); }
.tour-bar nav { display: flex; gap: 22px; margin-left: auto; }
.tour-bar nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--body); }
.tour-bar nav a:hover { color: var(--ink); }
.tour-hero { padding: 40px 0 16px; max-width: 760px; }
.tour-hero .kick { margin: 0 0 8px; font-weight: 700; color: var(--blue-deep); }
.tour-hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.01em; font-weight: 700; }
.tour-hero p { margin: 0; color: var(--body); font-size: 1.1rem; }
.tour-sect { margin: 56px 0 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); scroll-margin-top: 84px; }
.tour-step { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 36px; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.tour-copy { position: sticky; top: 96px; align-self: start; }
.tour-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; }
.tour-copy h2 { margin: 14px 0 8px; font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.15; }
.tour-copy p { margin: 0 0 18px; color: var(--body); }
.tour-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-shots { display: grid; gap: 18px; min-width: 0; }
.tour-pair { display: flex; gap: 18px; align-items: flex-start; }
.tour-img { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); flex: none; transition: transform .2s var(--ease), box-shadow .2s; }
.tour-img:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tour-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tour-img.desktop { flex: 1 1 0; min-width: 0; aspect-ratio: 16 / 10; border-radius: 12px; }
.tour-img.mobile { width: 24%; max-width: 200px; aspect-ratio: 390 / 844; border-radius: 22px; border: 6px solid var(--ink); }
.tour-pair:not(:has(.desktop)) .tour-img.mobile { width: 200px; }
.tour-next { margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; scroll-margin-top: 84px; }
.tour-next h2 { margin: 0 0 10px; font-size: 1.6rem; letter-spacing: -.01em; }
.tour-next p { color: var(--body); margin: 0 0 12px; max-width: 64ch; }
.tour-next ol { margin: 0 0 22px; padding-left: 22px; color: var(--body); display: grid; gap: 6px; }
.tour-foot { margin-top: 32px; color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--page); }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 36px 32px; text-align: center; }
.login-card img { width: auto; height: 42px; margin: 0 auto 14px; }
.login-card h1 { margin: 0 0 6px; font-size: 1.5rem; letter-spacing: -.01em; }
.login-card > p { margin: 0 0 24px; color: var(--body); }
.sso { display: grid; gap: 10px; }
.sso .btn { border-radius: var(--radius); height: 48px; justify-content: flex-start; padding: 0 16px; }
.sso .btn .tile { width: 24px; height: 24px; font-size: .62rem; border-radius: 6px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-card .field { text-align: left; }
.login-foot { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* ---------- agent app ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 30;
}
.side .brand { padding: 4px 8px 14px; font-size: 1.15rem; }
.side .brand img { width: auto; height: 22px; }
.create-wrap { position: relative; margin: 2px 0 12px; }
.create-btn { width: 100%; height: 44px; border-radius: 999px; }
.menu-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; z-index: 40;
}
.menu-pop.open { display: block; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--wash); }
.menu-pop b { display: block; font-size: .92rem; }
.menu-pop span { display: block; font-size: .8rem; color: var(--muted); }
.nav-a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--body);
  transition: background .15s, color .15s;
}
.nav-a:hover { background: var(--wash); color: var(--ink); }
.nav-a.on { background: var(--blue-tint); color: var(--blue-text); font-weight: 700; }
.nav-a .i { width: 20px; height: 20px; }
.side-gap { flex: 1; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.side-user b { display: block; font-size: .88rem; }
.side-user span { display: block; font-size: .75rem; color: var(--muted); }
.side-x { display: none; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 28px; background: var(--page); position: sticky; top: 0; z-index: 20; }
.topbar .menu-btn { display: none; }
.topbar .t-title { font-weight: 700; letter-spacing: -.01em; display: none; }
.topbar .t-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pane { padding: 4px 28px 56px; max-width: 1180px; width: 100%; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ph h1 { margin: 0; font-size: 1.75rem; letter-spacing: -.01em; font-weight: 700; }
.ph p { margin: 4px 0 0; color: var(--body); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px 11px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: color .15s, border-color .15s; margin-bottom: -1px; font-size: .93rem;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--blue); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.panel-pad { padding: 20px 22px; }
.banner { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; background: var(--bad-soft); color: var(--bad); font-weight: 500; font-size: .92rem; }
.banner .btn { margin-left: auto; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.muted { color: var(--muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.search { position: relative; max-width: 320px; flex: 1; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px 9px 38px; background: #fff; }
.search input:focus { outline: 0; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(0,107,255,.18); }
.pill-s { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; background: var(--wash); color: var(--body); white-space: nowrap; }
.pill-s.ok { background: var(--ok-soft); color: var(--ok); }
.pill-s.blue { background: var(--blue-soft); color: var(--blue-text); }
.pill-s.bad { background: var(--bad-soft); color: var(--bad); }
.pill-s .i { width: 14px; height: 14px; }

/* home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.share { background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.share small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.share strong { display: block; color: #8FB8FF; font-size: 1.15rem; margin-top: 4px; word-break: break-all; }
.share .acts { display: flex; gap: 8px; }
.share .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.share .btn-line:hover { border-color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi b { display: block; font-size: 1.7rem; letter-spacing: -.01em; margin-top: 2px; }
.list-h { margin: 0; padding: 16px 20px; font-size: 1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.list-h a { font-size: .85rem; }
.up { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.up:last-child { border-bottom: 0; }
.up .when { width: 92px; flex: none; font-size: .85rem; color: var(--body); }
.up .when b { display: block; color: var(--ink); }
.up .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.up .who b { display: block; font-size: .95rem; }
.up .who span { font-size: .82rem; color: var(--muted); }
.up .loc { margin-left: auto; }
.conn { display: grid; gap: 10px; padding: 16px 20px; }
.conn div { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.conn .pill-s { margin-left: auto; }
.tile {
  width: 40px; height: 40px; border-radius: 10px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex: none; letter-spacing: -.01em;
}
.tile.sm { width: 28px; height: 28px; font-size: .62rem; border-radius: 7px; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.logo svg { width: 26px; height: 26px; }
.logo.sm { width: 28px; height: 28px; border-radius: 7px; }
.logo.sm svg { width: 18px; height: 18px; }
.logo.xs { width: 20px; height: 20px; border: 0; background: none; border-radius: 0; }
.logo.xs svg { width: 20px; height: 20px; }
.sso .logo, .chip .logo, .pill-s .logo { border: 0; background: none; }
.addcal .logo.xs, .addcal .logo.xs svg { width: 18px; height: 18px; }
.chip .logo.xs, .chip .logo.xs svg, .pill-s .logo.xs, .pill-s .logo.xs svg { width: 16px; height: 16px; }
.ecard .locl .logo.xs, .ecard .locl .logo.xs svg { width: 16px; height: 16px; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* scheduling */
.owner { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.owner b { display: block; }
.owner a { font-size: .85rem; }
.ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ecard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border-top: 6px solid var(--c, var(--blue)); transition: box-shadow .2s; }
.ecard:hover { box-shadow: var(--shadow-lg); }
.ecard.off { opacity: .6; }
.ecard-b { padding: 16px 18px 14px; flex: 1; }
.ecard-b .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ecard h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ecard h3 a { text-decoration: none; }
.ecard h3 a:hover { text-decoration: underline; }
.ecard .sub { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.ecard .locl { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--body); }
.ecard .locl .i { width: 16px; height: 16px; }
.ecard .view { display: inline-block; margin-top: 10px; font-size: .85rem; }
.ecard-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 10px 12px 10px 18px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue-deep); outline-offset: 2px; }

/* new event chooser */
.kinds { display: grid; gap: 12px; max-width: 760px; }
.kind { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.kind:hover { border-color: var(--blue); background: var(--blue-tint); }
.kind .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-text); display: flex; align-items: center; justify-content: center; flex: none; }
.kind b { display: block; font-size: 1.02rem; }
.kind span { display: block; color: var(--body); font-size: .9rem; }
.kind small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.kind > .i { margin-left: auto; color: var(--muted); }

/* editor */
.editor { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.ed-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: sticky; top: 72px; max-height: calc(100vh - 88px); display: flex; flex-direction: column; }
.ed-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.ed-head b { display: block; }
.ed-head span { font-size: .82rem; color: var(--muted); }
.ed-body { overflow-y: auto; flex: 1; }
.acc-s { border-bottom: 1px solid var(--line); }
.acc-s > button {
  width: 100%; background: none; border: 0; text-align: left; padding: 16px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.acc-s > button b { display: block; font-size: .95rem; }
.acc-s > button span { display: block; font-size: .82rem; color: var(--muted); }
.acc-s > button .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--muted); }
.acc-s.open > button .chev { transform: rotate(90deg); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.acc-s.open .acc-b { grid-template-rows: 1fr; }
.acc-b > div { overflow: hidden; }
.acc-b > div > div { padding: 2px 20px 20px; }
.ed-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; background: #fff; cursor: pointer; font-weight: 600; font-size: .86rem;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--blue); }
.chip.on { border-color: var(--blue-deep); background: var(--blue-tint); color: var(--blue-text); }
.chip .i { width: 16px; height: 16px; }
.chip .warn { color: var(--bad); font-weight: 700; }
.swatches { display: flex; gap: 8px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slug { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.slug span { padding: 11px 0 11px 12px; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.slug input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; min-width: 0; }
.slug:focus-within { border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(0,107,255,.18); }
.q-list { display: grid; gap: 8px; }
.q-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: .9rem; }
.q-item .pill-s { margin-left: auto; }
.tog-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tog-row:last-child { border-bottom: 0; }
.tog-row b { display: block; font-size: .92rem; }
.tog-row span { display: block; font-size: .82rem; color: var(--muted); }
.ed-prev { min-width: 0; }
.ed-prev-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ed-prev-h b { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ed-prev .bk-card { min-height: 560px; pointer-events: none; max-width: none; }
.ed-prev .bk-card .ribbon a { pointer-events: none; }

/* availability */
.av-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.av-col { padding: 20px 22px; }
.av-col + .av-col { border-left: 1px solid var(--line); }
.av-col h3 { margin: 0 0 4px; font-size: 1rem; }
.av-col > p { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.wk { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.wk + .wk { border-top: 1px solid var(--wash); }
.wk-d { width: 36px; height: 36px; border-radius: 50%; border: 0; font-weight: 700; font-size: .8rem; cursor: pointer; background: var(--blue); color: #fff; flex: none; }
.wk-d.off { background: var(--wash); color: var(--muted); }
.wk-ranges { display: grid; gap: 8px; flex: 1; min-width: 0; }
.wk-r { display: flex; align-items: center; gap: 8px; }
.wk-r input[type="time"] { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 7px 8px; background: #fff; width: 136px; min-width: 0; }
.wk-r input[type="time"]:focus { outline: 0; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(0,107,255,.18); }
.wk-un { color: var(--muted); padding-top: 7px; font-size: .92rem; }
.wk-acts { display: flex; gap: 2px; padding-top: 0; }
.wk-acts .iconbtn { width: 36px; height: 36px; color: var(--muted); }
.wk-acts .iconbtn .i { width: 18px; height: 18px; }
.ov { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ov b { display: block; font-size: .92rem; }
.ov span { font-size: .85rem; color: var(--muted); }
.ov .iconbtn { margin-left: auto; color: var(--muted); }
.ov-form { display: grid; gap: 10px; background: var(--wash); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.ov-form .two input { width: 100%; }
.cal-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cal-row:last-child { border-bottom: 0; }
.cal-row b { display: block; }
.cal-row span { font-size: .85rem; color: var(--muted); }
.cal-row .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.checks { display: grid; gap: 8px; margin-top: 10px; padding-left: 54px; }
.checks label { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.checks input { accent-color: var(--blue-deep); width: 16px; height: 16px; }

/* meetings */
.day-h { padding: 12px 20px; background: var(--wash); font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--line); }
.mt { border-bottom: 1px solid var(--line); }
.mt:last-child { border-bottom: 0; }
.mt-row { width: 100%; background: none; border: 0; text-align: left; display: grid; grid-template-columns: 150px 14px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.mt-row:hover { background: var(--blue-tint); }
.mt-row .dot { width: 14px; height: 14px; border-radius: 50%; }
.mt-row .time { font-size: .92rem; color: var(--body); }
.mt-row b { display: block; }
.mt-row .who span { font-size: .85rem; color: var(--muted); }
.mt-row .det { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.mt-row .det .i { transition: transform .2s var(--ease); width: 16px; height: 16px; }
.mt.open .mt-row .det .i { transform: rotate(90deg); }
.mt-x { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.mt.open .mt-x { grid-template-rows: 1fr; }
.mt-x > div { overflow: hidden; }
.mt-x-in { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 24px; padding: 4px 20px 22px 198px; }
.mt-acts { display: grid; gap: 8px; align-content: start; }
.kv { display: grid; gap: 12px; font-size: .9rem; }
.kv dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kv dd { margin: 2px 0 0; }
.kv code { font-family: inherit; color: var(--blue-text); font-weight: 600; word-break: break-all; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .person { display: flex; align-items: center; gap: 10px; }
.tbl .person b { display: block; }
.tbl .person span { font-size: .82rem; color: var(--muted); }
.tbl select { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 8px; background: #fff; }
.tbl-wrap { overflow-x: auto; }

/* workflows */
.wf { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.wf:last-child { border-bottom: 0; }
.wf .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-text); display: flex; align-items: center; justify-content: center; flex: none; }
.wf b { display: block; }
.wf p { margin: 2px 0 6px; color: var(--body); font-size: .9rem; }
.wf .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.wf .switch { margin-left: auto; margin-top: 4px; }

/* analytics */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bars { display: grid; gap: 12px; padding: 18px 20px; }
.bar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 36px; align-items: center; gap: 12px; font-size: .88rem; }
.bar-t { height: 12px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.bar-t i { display: block; height: 100%; border-radius: 999px; background: var(--blue); transform-origin: left; animation: grow .6s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.bar b { text-align: right; }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 20px 20px 0; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.col i { width: 100%; max-width: 36px; border-radius: 6px 6px 0 0; background: var(--blue); transform-origin: bottom; animation: growy .6s var(--ease); min-height: 2px; }
@keyframes growy { from { transform: scaleY(0); } }
.col span { font-size: .75rem; color: var(--muted); padding-bottom: 12px; }

/* routing */
.rule { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.rule:last-child { border-bottom: 0; }
.rule .i { color: var(--muted); }
.rule .to { font-weight: 600; }
.qbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.qbox b { display: block; margin-bottom: 8px; }
.qbox .chips .chip { cursor: default; }

/* apps */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.acard .top { display: flex; align-items: center; gap: 12px; }
.acard .top div b { display: block; }
.acard .top div span { display: block; font-size: .8rem; color: var(--muted); }
.acard p { margin: 0; color: var(--body); font-size: .88rem; flex: 1; }
.acard .f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(12,13,16,.45); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); padding: 26px; animation: rise .22s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.modal h2 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -.01em; }
.modal p { margin: 0 0 16px; color: var(--body); }
.modal ul { margin: 0 0 18px; padding-left: 20px; color: var(--body); font-size: .92rem; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.oauth-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.oauth-h .dots { color: var(--muted); letter-spacing: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .ed-panel { position: static; max-height: none; }
  .ed-prev .bk-card { min-height: 0; }
  .mt-x-in { padding-left: 20px; grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease), box-shadow .25s; box-shadow: none; }
  .app.nav-open .side { box-shadow: var(--shadow-lg); }
  .app.nav-open .side { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(12,13,16,.35); z-index: 25; }
  .side-x { display: inline-flex; position: absolute; right: 10px; top: 12px; }
  .topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0 12px; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar .t-title { display: block; }
  .pane { padding: 18px 16px 48px; }
  .home-grid, .chart-grid, .av-grid { grid-template-columns: minmax(0, 1fr); }
  .av-col + .av-col { border-left: 0; border-top: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid, .hub-more, .agents { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .strip { padding: 6px 10px; }
  .strip-x { display: none; }
  .views a { padding: 4px 10px; }
  .bk-page { padding: 0; background: #fff; }
  .bk-foot { padding: 16px 0 24px; }
  .bk-card, .bk-card.has-date, .bk-card.narrow, .bk-card.single {
    grid-template-columns: minmax(0, 1fr); max-width: none; min-height: 0; border: 0; border-radius: 0; box-shadow: none;
  }
  .bk-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 20px 22px; }
  .bk-org { margin: 0 -20px 18px; padding-left: 20px; padding-bottom: 16px; }
  .bk-info.with-back .bk-org { padding-left: 76px; }
  .bk-back { top: 14px; left: 16px; }
  .bk-title { font-size: 1.45rem; margin-bottom: 14px; }
  .bk-desc { margin-top: 14px; }
  .bk-cal { padding: 20px 16px 24px; }
  .day { width: 40px; height: 40px; }
  .bk-times { display: none; }
  .bk-card.has-date .bk-cal { display: none; }
  .bk-card.has-date .bk-times { display: flex; }
  .bk-card.has-date .bk-info { display: none; }
  .bk-times-in { width: auto; padding: 16px 20px 28px; opacity: 1; transform: none; animation: slide-in .26s var(--ease); }
  .tt-head { position: sticky; top: 0; background: #fff; padding: 6px 0; z-index: 1; }
  .tt-head .iconbtn { display: inline-flex; color: var(--blue-text); background: var(--blue-tint); }
  .tt-head h3 { font-weight: 700; }
  .tt-list { max-height: none; overflow: visible; padding-right: 0; }
  .ribbon { width: 96px; height: 96px; }
  .ribbon a { top: 18px; right: -44px; }
  .bk-form { padding: 20px 20px 28px; max-width: none; }
  .done { padding: 28px 20px 32px; }
  .prof, .rf { padding: 28px 20px 32px; }
  .etype { padding: 16px 4px; }
  .hub-hero { padding: 20px 0 24px; }
  .mt-row { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .mt-row .time { grid-column: 2 / -1; order: -1; font-size: .82rem; }
  .bar { grid-template-columns: 100px minmax(0, 1fr) 28px; }
  .two { grid-template-columns: 1fr; }
  .wk-r input[type="time"] { width: 116px; }
  .tbl th:nth-child(n+4), .tbl td:nth-child(n+4) { display: none; }
}
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
@media (max-width: 860px) {
  .tour { padding: 0 16px 40px; }
  .tour-bar { gap: 12px; height: 60px; }
  .tour-bar nav { display: none; }
  .tour-bar .btn { margin-left: auto; }
  .tour-hero { padding: 20px 0 4px; }
  .tour-step { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
  .tour-copy { position: static; }
  .tour-pair { gap: 12px; }
  .tour-img.mobile { width: 30%; border-width: 4px; border-radius: 16px; }
  .tour-pair:not(:has(.desktop)) .tour-img.mobile { width: 46%; }
  .tour-next { padding: 22px; }
}

/* ---------- MEETVIA agent portal additions ---------- */
.hub-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.small { font-size: .82rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--body); margin: 2px 0 18px; line-height: 1.45; cursor: pointer; }
.consent input { accent-color: var(--blue-deep); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.side-h { margin: 16px 12px 4px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 999px; background: #FFF1DB; color: #9A5B00; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
a.create-btn { margin: 2px 0 12px; }
.t-book span { display: inline; }
.pill-s.warn { background: #FFF1DB; color: #9A5B00; }
.tab-n { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; background: #FFF1DB; color: #9A5B00; font-size: .72rem; padding: 0 6px; margin-left: 4px; }
.kick-s { display: flex; align-items: center; gap: 6px; margin: 0 0 4px !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-text) !important; }
.kick-s .i { width: 16px; height: 16px; }
.kpi small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.warn-t { color: #9A5B00; }
.banner.info { background: var(--blue-tint); color: var(--blue-text); }
.up .up-r { margin-left: auto; }
.list-h > span { display: inline-flex; align-items: center; gap: 8px; }
.list-h .i { width: 18px; height: 18px; color: #9A5B00; }

/* outcome buttons */
.oc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.oc { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: .84rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.oc .i { width: 16px; height: 16px; }
.oc:hover { border-color: var(--ink); }
.oc-sale:hover { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.oc-noshow:hover { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.oc-resched:hover { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-text); }
.due { margin-bottom: 20px; border-color: #F5D9A8; }
.due-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.due-row:last-child { border-bottom: 0; }
.due-row .who b { display: block; }
.due-row .who span { font-size: .84rem; color: var(--muted); }
.mt-ask { font-size: .85rem; }
.mt-row .det .pill-s .i { width: 14px; height: 14px; transform: none !important; }

/* book a client */
.bookx { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bx-form { overflow: hidden; }
.bx-s { padding: 20px 22px 6px; border-bottom: 1px solid var(--line); }
.bx-s h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.05rem; }
.bx-n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bx-types { display: grid; gap: 8px; }
.bx-type { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.bx-type:hover { border-color: var(--blue); }
.bx-type.on, .bx-type:has(input:checked) { border-color: var(--blue-deep); background: var(--blue-tint); }
.bx-type { position: relative; }
.bx-type input { position: absolute; left: 8px; top: 8px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bx-type .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.bx-type b { display: block; font-size: .95rem; }
.bx-type span:not(.dot):not(.pill-s) { display: block; font-size: .82rem; color: var(--muted); }
.bx-type .pill-s { margin-left: auto; }
.bx-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.bx-day { flex: none; width: 84px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; padding: 8px 6px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.bx-day b { display: block; font-size: .8rem; color: var(--muted); }
.bx-day span { display: block; font-weight: 700; }
.bx-day small { display: block; font-size: .72rem; color: var(--blue-text); font-weight: 600; }
.bx-day:hover { border-color: var(--blue); }
.bx-day.on { border-color: var(--blue); background: var(--blue); }
.bx-day.on b, .bx-day.on span, .bx-day.on small { color: #fff; }
.bx-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 16px; }
.bx-time { height: 44px; border: 1px solid var(--blue); background: #fff; color: var(--blue-text); border-radius: 6px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.bx-time small { font-size: .68rem; font-weight: 500; color: var(--muted); }
.bx-time:hover { background: var(--blue-tint); }
.bx-time.on { background: var(--blue); color: #fff; }
.bx-time.on small { color: rgba(255,255,255,.8); }
.bx-s .choice label { align-items: flex-start; }
.bx-s .choice label b { display: block; font-size: .93rem; }
.bx-s .choice label span { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.bx-s .choice input { margin-top: 2px; }
.bx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
.bx-foot .muted { font-size: .88rem; font-weight: 600; }
.bx-prev { position: sticky; top: 76px; }
.bx-note { font-size: .82rem; margin: 10px 4px 0; }

/* phone preview */
.phone { background: #fff; border: 8px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); }
.phone-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--wash); }
.phone-h b { font-size: .9rem; }
.bubbles { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; max-height: 520px; overflow-y: auto; }
.phone.big .bubbles { max-height: 640px; }
.bubble { align-self: flex-start; max-width: 92%; background: #E9EDF3; color: #1A1A1A; border-radius: 18px 18px 18px 6px; padding: 10px 13px; font-size: .86rem; line-height: 1.4; white-space: pre-line; word-wrap: break-word; }
.bubble mark { background: none; color: var(--blue-text); font-weight: 600; }
.bubble.none { color: var(--muted); font-style: italic; }
.bubble-when { align-self: center; font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-top: 6px; }

/* booked */
.booked-hero { display: flex; gap: 18px; padding: 22px 24px; margin-bottom: 18px; align-items: flex-start; }
.booked-hero .done-mark { margin: 0; flex: none; }
.booked-hero h1 { margin: 0 0 4px; font-size: 1.5rem; letter-spacing: -.01em; }
.booked-hero p { margin: 0 0 14px; color: var(--body); }
.booked-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 8px 20px 12px; }
.tl { position: relative; display: flex; gap: 14px; padding: 12px 0; }
.tl::before { content: ""; position: absolute; left: 6px; top: 26px; bottom: -12px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; flex: none; margin-top: 4px; position: relative; z-index: 1; }
.tl-dot.end { border-color: var(--ink); background: var(--ink); }
.tl b { display: block; }
.tl span { display: block; font-size: .84rem; color: var(--muted); }
.tl-msg { margin: 8px 0 0; background: var(--wash); border-radius: 12px; padding: 10px 12px; font-size: .86rem; color: var(--ink); max-width: 560px; }
.tl-msg mark { background: none; color: var(--blue-text); font-weight: 600; }

/* modal wide + drip */
.modal.wide { max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.drip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; counter-reset: d; }
.drip li { background: var(--wash); border-radius: 12px; padding: 10px 12px 10px 40px; position: relative; counter-increment: d; }
.drip li::before { content: counter(d); position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.drip b { display: block; font-size: .8rem; color: var(--blue-text); }
.drip p { margin: 2px 0 0; font-size: .86rem; color: var(--ink); }
.drip mark { background: none; color: var(--ink); font-weight: 600; }

/* meeting types */
.ecard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.merge { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.merge button { border: 1px dashed var(--line-2); background: #fff; color: var(--blue-text); border-radius: 6px; font-size: .72rem; font-weight: 600; padding: 3px 6px; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.merge button:hover { border-color: var(--blue); background: var(--blue-tint); }

/* workflows */
.wf-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.wf .switch { margin: 0; }
.wf-h { margin: 28px 0 10px; }
.wf-sub { margin: -4px 0 12px; font-size: .88rem; }
.bio textarea { margin-top: 12px; width: 100%; resize: vertical; }
.wf-editor { grid-template-columns: minmax(0, 1fr) 360px; }
.wf-editor .ed-panel { position: static; max-height: none; }
.wstep { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--page); }
.wstep-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; min-height: 28px; }
.wstep-h .iconbtn { width: 32px; height: 32px; color: var(--muted); }
.wtime { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.wtime input[type="number"] { width: 76px; }
.wtime select { width: auto; flex: 0 1 auto; }
.wat { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--body); }
.wat input { width: 120px; }
.wstep textarea { width: 100%; resize: vertical; }

/* campaigns */
.camp { display: grid; grid-template-columns: 44px minmax(0, 1fr) repeat(3, 88px); gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.camp:last-child { border-bottom: 0; }
.camp .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-text); display: flex; align-items: center; justify-content: center; }
.camp b { display: block; }
.camp div > span { font-size: .84rem; color: var(--muted); }
.camp-n { text-align: center; }
.camp-n b { font-size: 1.25rem; }
.camp-n span { display: block; font-size: .72rem !important; }
.tbl .person .avatar .i { width: 16px; height: 16px; }

/* analytics */
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-held { background: #8FB8FF; } .lg-sale { background: var(--blue); } .lg-ns { background: #F28B9B; }
.cols.stack { height: 220px; }
.stk { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; min-height: 2px; transform-origin: bottom; animation: growy .6s var(--ease); }
.stk i { display: block; min-height: 0; }
.stk .sale { background: var(--blue); } .stk .held { background: #8FB8FF; } .stk .ns { background: #F28B9B; }
.bar-t i.ok { background: var(--ok); } .bar-t i.bad { background: #E5546A; } .bar-t i.gray { background: var(--faint); }
.bar b small { font-weight: 500; color: var(--muted); }
.bar { grid-template-columns: 150px minmax(0, 1fr) auto; }

/* agency owner */
.agents-tbl a.person { text-decoration: none; }
.agents-tbl a.person:hover b { color: var(--blue-text); }
.alerts { list-style: none; margin: 0; padding: 6px 20px 10px; }
.alerts li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--body); }
.alerts li:last-child { border-bottom: 0; }
.alerts .i { color: #9A5B00; margin-top: 1px; }
.mc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-nav { display: flex; align-items: center; gap: 6px; }
.mc-nav b { min-width: 190px; text-align: center; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
a.chip { text-decoration: none; color: var(--ink); }
a.chip.on { color: var(--blue-text); }
.mc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mc-day { border-right: 1px solid var(--line); min-height: 420px; padding: 0 6px 10px; display: flex; flex-direction: column; gap: 6px; }
.mc-day:last-child { border-right: 0; }
.mc-day.today { background: var(--blue-tint); }
.mc-h { display: flex; align-items: baseline; gap: 6px; padding: 10px 4px 8px; border-bottom: 1px solid var(--line); margin: 0 -6px 4px; padding-left: 10px; }
.mc-h b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mc-h span { font-weight: 700; font-size: 1.1rem; }
.mc-h small { margin-left: auto; margin-right: 8px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.mc-ev { text-align: left; border: 0; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border-radius: 6px; padding: 6px 8px; cursor: pointer; display: block; width: 100%; transition: background .15s; }
.mc-ev:hover { background: color-mix(in srgb, var(--c) 18%, #fff); }
.mc-ev b { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-ev span { display: block; font-size: .72rem; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-ev em { display: block; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); }
.mc-none { color: var(--faint); font-size: .78rem; margin: 6px 4px; }
.ic-b { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.plan.on { border: 2px solid var(--blue); }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-h b { font-size: 1.2rem; }
.plan p { margin: 0; color: var(--body); }
.plan-price { font-weight: 700; color: var(--blue-text); margin: 8px 0; }
.plan ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; font-size: .92rem; }
.plan li .i { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }
.plan .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 1100px) {
  .bookx, .wf-editor { grid-template-columns: minmax(0, 1fr); }
  .bx-prev { position: static; max-width: 420px; }
}
@media (max-width: 960px) {
  .hub-grid.two, .plans { grid-template-columns: minmax(0, 1fr); }
  .mc { grid-template-columns: minmax(0, 1fr); }
  .mc-day { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .mc-h { position: static; }
  .camp { grid-template-columns: 44px minmax(0, 1fr) repeat(3, 64px); gap: 8px; }
}
@media (max-width: 760px) {
  .t-tour { display: none; }
  .t-book span { display: none; }
  .t-book { width: 36px; padding: 0; }
  .bx-s { padding: 16px 16px 4px; }
  .bx-foot { padding: 12px 16px; }
  .bx-foot .muted { font-size: .8rem; }
  .booked-hero { flex-direction: column; padding: 18px; }
  .camp { grid-template-columns: 40px minmax(0, 1fr); }
  .camp-n { display: none; }
  .wf { flex-wrap: wrap; }
  .wf-r { width: 100%; justify-content: flex-end; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .tbl .person span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .agents-tbl th:nth-child(n+4), .agents-tbl td:nth-child(n+4) { display: none; }
  .agents-tbl th:nth-child(3), .agents-tbl td:nth-child(3) { display: table-cell; }
}

/* text conversation */
.modal.chat { max-width: 520px; padding: 20px 20px 16px; }
.thr-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.thr-h h2 { margin: 0; }
.bubbles.thr { background: #F7F8FA; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; min-height: 280px; max-height: 52vh; }
.bubble.in { align-self: flex-start; }
.bubble.out { align-self: flex-end; background: var(--blue-deep, #0B5CFF); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble.out.bad { background: #FDECEC; color: #8A1C1C; }
.thr-meta { align-self: flex-end; font-size: .7rem; color: var(--muted); margin-top: -4px; }
.thr-meta.in { align-self: flex-start; }
.thr-f { display: flex; gap: 8px; align-items: flex-end; }
.thr-f textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .9rem; }
.thr-no, .thr-note { font-size: .78rem; margin: 8px 0 0; }

/* website embed */
.embed body, .embed .bk-page { background: transparent; }
.embed .bk-page { min-height: 0; padding: 8px; }
.embed .bk-foot { display: none; }

/* booking questions editor */
.ask-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.ask-opts { display: flex; gap: 10px; align-items: center; }
.ask-opts select { flex: 1; }
.ask-req { display: flex; gap: 6px; align-items: center; font-size: .85rem; white-space: nowrap; }
textarea.code { font: .78rem/1.45 ui-monospace, Menlo, monospace; width: 100%; min-height: 0; resize: vertical; }
.answers { display: grid; gap: 6px; margin: 0; }
.answers dt { font-size: .78rem; color: var(--muted); }
.answers dd { margin: 0 0 6px; }
.link-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.ecard-f { flex-wrap: wrap; }
.ecard-mv { margin-left: auto; display: inline-flex; gap: 2px; }
.route { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 18px 0 8px; }
.route h2 { font-size: 1.1rem; margin: 0 0 12px; }
.route-opts { display: grid; gap: 8px; }
.route-opt { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; color: inherit; text-decoration: none; }
.route-opt:hover { border-color: var(--blue); }
.offered { display: grid; gap: 8px; margin-top: 12px; }
.sch-tabs { margin-bottom: 12px; }
.rt-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 640px) { .rt-row { grid-template-columns: 1fr auto; } .rt-row select { grid-column: 1; } }

/* alignment fixes */
.side-user > div { min-width: 0; flex: 1; }
.side-user b, .side-user > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .avatar { flex: none; }
.side-user #signout { flex: none; }
.wk-acts { flex: none; }
.wk-r { min-width: 0; }
.wk-r input[type="time"] { flex: 1 1 108px; width: auto; max-width: 150px; }
.wk-r .iconbtn { flex: none; }
.wk-r > span { flex: none; }
.modal .acts { flex-wrap: wrap; }
.panel-pad > .list-h { padding: 0 0 12px; margin-bottom: 12px; }
