/* ==========================================================================
   Kaitu 開途 — Application styles (scheduler, login, client portal, staff panel)
   Builds on base.css tokens.
   ========================================================================== */
@import url('./base.css');

:root {
  --side-w: 264px;
  --app-bg: var(--paper);
  --panel: #EFE7D9;
  --hair: rgba(26, 23, 18, 0.08);
  --focus-ring: 0 0 0 4px rgba(200, 55, 45, .14);
}

html { scroll-behavior: smooth; }
body.app { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; }
.row { display: flex; align-items: center; gap: 12px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 15px; height: 15px; }
.ic--lg { width: 22px; height: 22px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.link { color: var(--seal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--seal); }

/* ---------- Buttons (extensions) ---------- */
.btn--quiet { --bg: transparent; --fg: var(--ink-2); --bd: transparent; }
.btn--quiet::before { background: var(--paper-2); }
.btn--quiet:hover { --fg: var(--ink); }
.btn--danger { --bg: transparent; --fg: var(--seal-deep); --bd: rgba(158, 42, 34, .3); }
.btn--danger::before { background: var(--seal-deep); }
.btn--danger:hover { --fg: #fff; }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--danger:hover { background: var(--seal-tint); color: var(--seal-deep); }

/* ---------- Avatars ---------- */
.avatar {
  --c: var(--seal); width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, var(--card)); color: color-mix(in srgb, var(--c) 80%, var(--ink));
  font-family: var(--f-display); font-size: 15px; letter-spacing: .02em; font-variation-settings: 'opsz' 36;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
}
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--xl { width: 84px; height: 84px; font-size: 28px; }
.avatar--sm { width: 30px; height: 30px; font-size: 12px; }

/* ---------- Form bits ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.input--sm, .select--sm { min-height: 38px; padding: 7px 11px; font-size: var(--fs-sm); border-radius: 8px; }
.select--sm { padding-right: 32px; background-position: right 11px center; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--seal); }
.req { color: var(--seal); }
.seg {
  display: inline-flex; padding: 4px; gap: 4px; background: var(--paper-2); border-radius: 999px; border: 1px solid var(--hair);
}
.seg button {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'], .seg button[aria-selected='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.toggle-chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
  font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 8px; transition: all var(--t-fast);
}
.toggle-chip:hover { border-color: var(--ink); }
.toggle-chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toggle-chip[aria-pressed='true']::before { content: '✓'; font-size: 12px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 38px; height: 22px; border-radius: 999px; background: var(--paper-3); position: relative; transition: background var(--t); flex: none; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--t) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--jade); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus-ring); }

/* ---------- Timezone combobox ---------- */
.tz { position: relative; }
.tz__btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: var(--fs-xs); max-width: 100%; }
.tz__btn:hover { border-color: var(--ink); }
.tz__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz__pop { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 32px)); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-3); border: 1px solid var(--hair); overflow: hidden; }
.tz__pop .input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none !important; }
.tz__list { max-height: 280px; overflow: auto; padding: 6px; overscroll-behavior: contain; }
.tz__opt { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-sm); cursor: pointer; }
.tz__opt small { color: var(--muted); font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.tz__opt[aria-selected='true'], .tz__opt:hover { background: var(--paper-2); }
.tz__opt.is-current { color: var(--seal-deep); }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 14, .42); backdrop-filter: blur(3px); animation: fade-in .3s var(--ease-out) both; }
.modal {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); padding: 28px; animation: modal-in .45s var(--ease-out) both;
}
.modal--wide { width: min(760px, 100%); }
.modal__title { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.modal-root.is-out .modal { animation: modal-out .25s var(--ease-in-out) forwards; }
.modal-root.is-out .modal-backdrop { animation: fade-out .25s forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.secret {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--paper-2); font-family: var(--f-mono); font-size: 1.05rem; letter-spacing: .04em; border: 1px dashed var(--line-strong);
}
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--ochre-tint); color: #6B4610; font-size: var(--fs-sm); line-height: 1.5; }
.notice--jade { background: var(--jade-tint); color: var(--jade); }
.notice--seal { background: var(--seal-tint); color: var(--seal-deep); }
.notice--ink { background: var(--paper-2); color: var(--ink-2); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty__glyph { font-family: var(--f-cjk); font-weight: 900; font-size: 44px; color: var(--paper-3); line-height: 1; margin-bottom: 12px; }
.empty h3 { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }

/* ==========================================================================
   App shell (portal + staff)
   ========================================================================== */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 8px;
  padding: 22px 16px 16px; background: var(--panel); border-right: 1px solid var(--hair);
}
.side .brand { padding: 4px 10px 20px; }
.side__label { padding: 14px 12px 6px; }
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 450; transition: background var(--t-fast), color var(--t-fast);
}
.nav a .ic { color: var(--muted); transition: color var(--t-fast); }
.nav a:hover { background: rgba(255, 255, 255, .45); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.nav a[aria-current='page'] .ic { color: var(--seal); }
.nav .badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--seal); color: #fff;
  font-size: 11px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.side__foot { margin-top: auto; display: grid; gap: 10px; }
.side-card { padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, .5); border: 1px solid var(--hair); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me__name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; }
.me__sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; padding: 36px clamp(20px, 3.4vw, 56px) 80px; }
.main__inner { max-width: 1180px; margin: 0 auto; }
.topbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.02; font-variation-settings: 'opsz' 144, 'SOFT' 30; margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { background: var(--card); border-radius: var(--r-lg); border: 1px solid rgba(26, 23, 18, .06); box-shadow: var(--shadow-paper); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.panel__title { font-family: var(--f-display); font-size: 1.28rem; letter-spacing: -0.015em; }
.panel__body { padding: 18px 24px 24px; }
.panel--pad { padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.grid-2e { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.view { animation: view-in .5s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* Mobile shell */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    height: 60px; padding: 0 16px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hair);
  }
  .topbar .brand__seal { width: 28px; height: 28px; }
  .topbar .brand__word { font-size: 1.2rem; }
  .main { padding: 22px 16px 110px; }
  .grid-2, .grid-2e, .grid-3 { grid-template-columns: 1fr; }
  .tabbar {
    position: fixed; z-index: 45; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 64px;
    display: flex; justify-content: space-around; align-items: center; padding: 0 6px; border-radius: 20px;
    background: rgba(26, 23, 18, .94); backdrop-filter: blur(12px); box-shadow: var(--shadow-3);
  }
  .tabbar a { position: relative; flex: 1; display: grid; place-items: center; gap: 2px; height: 52px; border-radius: 14px; color: rgba(244, 238, 227, .6); font-size: 10.5px; letter-spacing: .02em; }
  .tabbar a[aria-current='page'] { color: var(--paper); background: rgba(244, 238, 227, .1); }
  .tabbar a[aria-current='page'] .ic { color: #F07A6E; }
  .tabbar .dot-badge { position: absolute; top: 8px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 2px var(--ink); }
  .panel__head { padding: 18px 18px 0; }
  .panel__body { padding: 14px 18px 18px; }
  .panel--pad { padding: 18px; }
  .page-head { margin-bottom: 22px; }
}
@media (min-width: 961px) { .tabbar { display: none; } }

/* ---------- Lists, tables ---------- */
.list { display: grid; }
.list > * + * { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.li__title { font-weight: 500; line-height: 1.35; }
.li__sub { font-size: var(--fs-sm); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover { background: rgba(236, 227, 211, .45); }
.table td:first-child, .table th:first-child { padding-left: 0; }
.table td:last-child, .table th:last-child { padding-right: 0; }

/* Progress */
.bar { position: relative; height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--seal-deep), var(--seal)); transition: width 1s var(--ease-out); }
.bar--jade > i { background: linear-gradient(90deg, #244B3E, var(--jade)); }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .ring__bg { stroke: var(--paper-2); }
.ring .ring__fg { stroke: var(--seal); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring__num { font-family: var(--f-display); font-size: 2.3rem; letter-spacing: -0.04em; line-height: 1; font-variation-settings: 'opsz' 144; }
.ring__num sup { font-size: .45em; vertical-align: top; margin-left: 1px; color: var(--muted); }

/* KPI tiles */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; }
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 18px 18px 16px; display: grid; gap: 14px; position: relative; overflow: hidden; transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out); }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kpi__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.kpi__num { font-family: var(--f-display); font-size: 2.3rem; line-height: .9; letter-spacing: -0.04em; font-variation-settings: 'opsz' 144; }
.kpi__label { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.kpi--seal .kpi__icon { background: var(--seal-tint); color: var(--seal-deep); }
.kpi--jade .kpi__icon { background: var(--jade-tint); color: var(--jade); }
.kpi--indigo .kpi__icon { background: var(--indigo-tint); color: var(--indigo); }
.kpi--ochre .kpi__icon { background: var(--ochre-tint); color: #8A5A10; }

/* Activity feed */
.feed { display: grid; gap: 0; position: relative; }
.feed__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 0; position: relative; }
.feed__item::before { content: ''; position: absolute; left: 13.5px; top: 36px; bottom: -8px; width: 1px; background: var(--line); }
.feed__item:last-child::before { display: none; }
.feed__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.feed__dot .ic { width: 14px; height: 14px; }
.feed__dot--seal { background: var(--seal-tint); color: var(--seal-deep); }
.feed__dot--jade { background: var(--jade-tint); color: var(--jade); }
.feed__dot--indigo { background: var(--indigo-tint); color: var(--indigo); }
.feed__dot--ochre { background: var(--ochre-tint); color: #8A5A10; }
.feed__text { font-size: var(--fs-sm); line-height: 1.45; padding-top: 4px; }
.feed__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; height: 44px; padding: 0 14px; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color var(--t-fast); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); font-weight: 500; }
.tabs__ink { position: absolute; bottom: -1px; height: 2px; background: var(--seal); border-radius: 2px; transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.count { font-family: var(--f-mono); font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }

/* Chat */
.chat { display: flex; flex-direction: column; height: min(72vh, 760px); min-height: 460px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.chat__scroll { flex: 1; overflow-y: auto; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat__day { align-self: center; margin: 14px 0 8px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.bubble-row.is-me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--paper-2); font-size: var(--fs-sm); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.is-me .bubble { background: var(--ink); color: var(--paper); border-radius: 18px 18px 6px 18px; }
.bubble__meta { font-size: 11px; color: var(--muted); margin: 3px 4px 8px; }
.is-me + .bubble__meta, .bubble__meta.is-me { text-align: right; align-self: flex-end; }
.chat__compose { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat__compose .textarea { min-height: 48px; max-height: 180px; resize: none; border-radius: 24px; padding: 13px 18px; }
.chat__compose .btn { flex: none; width: 48px; padding: 0; }
@media (max-width: 960px) { .chat { height: calc(100dvh - 60px - 110px - 90px); min-height: 380px; } .bubble-row { max-width: 90%; } }

/* Documents */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 8px; padding: 34px 20px; border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-strong); background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(236, 227, 211, .35) 12px 13px);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease-out); cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--seal); background-color: rgba(244, 217, 210, .35); }
.dropzone.is-over { transform: scale(1.01); }
.dropzone__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-paper); color: var(--seal); }
.file-ic { width: 40px; height: 48px; flex: none; border-radius: 6px 12px 6px 6px; background: var(--paper-2); position: relative; display: grid; place-items: end center; padding-bottom: 7px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--hair); }
.file-ic::before { content: ''; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, var(--paper) 50%, var(--paper-3) 50%); border-radius: 0 12px 0 4px; }
.file-ic--pdf { background: var(--seal-tint); color: var(--seal-deep); }
.file-ic--img { background: var(--indigo-tint); color: var(--indigo); }
.file-ic--doc { background: var(--jade-tint); color: var(--jade); }
.upload-progress { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-top: 8px; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--seal); transition: width .2s linear; }
.req-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--ochre-tint); border: 1px solid rgba(216, 162, 74, .3); }
.req-card__icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; color: #8A5A10; flex: none; }

/* ==========================================================================
   Consultation scheduler
   ========================================================================== */
.sched-page { padding: clamp(96px, 12vh, 140px) 0 80px; min-height: 100vh; }
.sched { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.sched__intro { position: sticky; top: 110px; }
.sched__intro h1 { font-family: var(--f-display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); letter-spacing: -0.04em; line-height: .96; font-variation-settings: 'opsz' 144, 'SOFT' 50; margin: 18px 0 20px; }
.sched__intro h1 em { font-style: italic; color: var(--seal); }
.assure { display: grid; gap: 12px; margin-top: 28px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.assure .ic { color: var(--jade); margin-top: 2px; }
.picks { margin-top: 30px; padding: 18px 20px; border-radius: var(--r); background: rgba(236, 227, 211, .55); border: 1px solid var(--hair); display: grid; gap: 10px; }
.picks__row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: var(--fs-sm); align-items: baseline; }
.picks__row .meta { font-size: 10px; }
.picks__row span:last-child { color: var(--ink); }

.wizard { padding: clamp(22px, 3vw, 40px); min-height: 560px; display: flex; flex-direction: column; }
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 34px; }
.steps__item { flex: 1; display: grid; gap: 8px; }
.steps__bar { height: 3px; border-radius: 3px; background: var(--paper-2); overflow: hidden; position: relative; }
.steps__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.steps__item.is-done .steps__bar i, .steps__item.is-current .steps__bar i { transform: scaleX(1); }
.steps__item.is-current .steps__bar i { background: var(--seal); }
.steps__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps__item.is-current .steps__label { color: var(--ink); }
@media (max-width: 720px) { .steps__label { display: none; } .steps__item.is-current .steps__label { display: none; } }
.step-kicker { display: none; }
@media (max-width: 720px) { .step-kicker { display: block; margin-bottom: 8px; } }

.step { flex: 1; }
.step h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.step > p.muted { margin-top: 10px; max-width: 52ch; }
.step__body { margin-top: 28px; }
.wizard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

.choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .choice-grid, .choice-grid--3 { grid-template-columns: 1fr; } }
.choice {
  position: relative; text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); transition: border-color var(--t-fast), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out), background var(--t-fast);
}
.choice:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.choice[aria-checked='true'], .choice[aria-pressed='true'] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-2); background: #FFFDF9; }
.choice__glyph { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--paper-2); font-family: var(--f-cjk); font-weight: 900; font-size: 26px; color: var(--ink); transition: background var(--t), color var(--t); }
.choice[aria-checked='true'] .choice__glyph { background: var(--seal); color: #fff; }
.choice__title { font-family: var(--f-display); font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.15; }
.choice__desc { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; line-height: 1.5; }
.choice__tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all var(--t-fast); }
.choice[aria-checked='true'] .choice__tick { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice__tick svg { width: 12px; height: 12px; opacity: 0; }
.choice[aria-checked='true'] .choice__tick svg { opacity: 1; }
.choice--wide { grid-column: 1 / -1; }
.choice--person { flex-direction: column; gap: 14px; }
.choice--person .langs { display: flex; flex-wrap: wrap; gap: 6px; }
.choice--person .chip { height: 22px; font-size: 11px; }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__month { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { text-align: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); padding: 6px 0; text-transform: uppercase; }
.cal__day {
  position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
  color: #B6AC9B; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.cal__day.is-avail { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.cal__day.is-avail::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--seal); }
.cal__day.is-avail:hover { background: var(--paper-2); transform: translateY(-1px); }
.cal__day.is-selected { background: var(--ink) !important; color: var(--paper) !important; box-shadow: none; }
.cal__day.is-selected::after { background: var(--paper); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--seal); }
.cal__day:disabled { cursor: default; }
.cal__day.is-out { visibility: hidden; }
.slots__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.slots__date { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -0.015em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.slot {
  height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; font-weight: 500;
  transition: all var(--t-fast);
}
.slot:hover { border-color: var(--ink); transform: translateY(-1px); }
.slot[aria-pressed='true'] { background: var(--seal); border-color: var(--seal); color: #fff; box-shadow: 0 6px 16px -6px rgba(200, 55, 45, .6); }
.slots-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: var(--fs-sm); border-radius: var(--r); background: rgba(236, 227, 211, .4); }

.confirm { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 10px 0; }
.stamp { position: relative; width: 150px; height: 150px; margin-bottom: 6px; }
.stamp__seal { position: absolute; inset: 0; border-radius: 22px; background: var(--seal); color: #fff; display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 0 18px 40px -12px rgba(200, 55, 45, .55); }
.stamp__seal::before { content: ''; position: absolute; inset: 8px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 15px; }
.stamp__cjk { font-family: var(--f-cjk); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: .04em; writing-mode: vertical-rl; }
.stamp__word { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%) rotate(-3deg); font-family: var(--f-hand); font-size: 26px; color: var(--seal-deep); white-space: nowrap; }
.stamp__ink { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 55, 45, .18), transparent 65%); opacity: 0; }
.confirm h2 { margin-top: 34px; }
.summary { width: 100%; max-width: 520px; text-align: left; padding: 6px 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--hair); }
.summary__row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; font-size: var(--fs-sm); }
.summary__row + .summary__row { border-top: 1px solid var(--line); }
.summary__row > span:first-child { color: var(--muted); }
.summary__row > span:last-child { text-align: right; font-weight: 500; }
.cal-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 960px) {
  .sched { grid-template-columns: 1fr; }
  .sched__intro { position: static; }
  .sched__intro h1 { font-size: 2.5rem; margin: 12px 0 12px; }
  .assure { grid-template-columns: 1fr 1fr; margin-top: 18px; gap: 8px; }
  .picks { display: none; }
  .sched-page { padding-top: 88px; }
}
@media (max-width: 560px) {
  .wizard { padding: 20px 16px; border-radius: var(--r); }
  .choice { padding: 16px; }
  .wizard__foot { position: sticky; bottom: 0; background: var(--card); margin: 24px -16px -20px; padding: 14px 16px; border-radius: 0 0 var(--r) var(--r); }
}

/* ---------- Scheduler v2: focus tiles, country combobox, time options ---------- */
.wizard { min-height: 0; }
.focus-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.focus-opt:last-child { grid-column: 1 / -1; }
.focus-opt {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 14px; border-radius: var(--r); text-align: left;
  background: var(--card); border: 1px solid var(--line); min-height: 72px;
  transition: border-color var(--t-fast), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out), background var(--t-fast);
}
.focus-opt:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.focus-opt[aria-checked='true'] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-2); background: #FFFDF9; }
.focus-opt__glyph { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--paper-2); font-family: var(--f-cjk); font-weight: 900; font-size: 21px; color: var(--ink); transition: background var(--t), color var(--t); }
.focus-opt[aria-checked='true'] .focus-opt__glyph { background: var(--seal); color: #fff; }
.focus-opt__text { display: grid; gap: 2px; min-width: 0; }
.focus-opt__title { font-family: var(--f-display); font-size: 1.14rem; letter-spacing: -0.015em; line-height: 1.15; }
.focus-opt__desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.focus-opt__tick { position: absolute; top: 50%; right: 14px; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all var(--t-fast); }
.focus-opt__tick svg { width: 11px; height: 11px; opacity: 0; }
.focus-opt[aria-checked='true'] .focus-opt__tick { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.focus-opt[aria-checked='true'] .focus-opt__tick svg { opacity: 1; }
.dest-field { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.dest-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.dest-popular > .xs { margin-right: 2px; }
.mini-chip {
  height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: var(--fs-xs); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: all var(--t-fast);
}
.mini-chip:hover { border-color: var(--ink); color: var(--ink); }
.mini-chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Country combobox */
.cbx { position: relative; }
.cbx__control {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 40px 6px 12px; position: relative; cursor: text;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line-strong); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cbx__control:hover { border-color: rgba(26, 23, 18, .4); }
.cbx__control:focus-within, .cbx.is-open .cbx__control { border-color: var(--ink); box-shadow: var(--focus-ring); }
.cbx__control.is-invalid { border-color: var(--seal); }
.cbx__flag { width: 22px; flex: none; display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--muted); }
.cbx__input { flex: 1 1 120px; min-width: 0; height: 34px; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0 2px; }
.cbx__input:focus, .cbx__input:focus-visible { outline: none; }
.cbx__input::placeholder { color: #A59B8B; }
.cbx__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: transform var(--t) var(--ease-out), color var(--t-fast); }
.cbx__toggle:hover { color: var(--ink); }
.cbx.is-open .cbx__toggle { transform: translateY(-50%) rotate(180deg); }
.cbx__chips { display: contents; }
.cbx__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--fs-xs); font-weight: 500; max-width: 100%; }
.cbx__chip > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx__chipflag { font-size: 14px; line-height: 1; }
.cbx__x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; color: rgba(244, 238, 227, .75); transition: background var(--t-fast), color var(--t-fast); }
.cbx__x:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cbx__x .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.cbx__list {
  position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 6px); max-height: min(300px, 42vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; margin: 0; list-style: none; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-3);
  animation: cbx-in .22s var(--ease-out) both;
}
@keyframes cbx-in { from { opacity: 0; transform: translateY(-4px); } }
.cbx__opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-sm); cursor: pointer; }
.cbx__opt.is-active { background: var(--paper-2); }
.cbx__oflag { width: 22px; font-size: 18px; line-height: 1; flex: none; text-align: center; }
.cbx__oname { flex: 1; min-width: 0; }
.cbx__oname mark { background: none; color: var(--seal-deep); font-weight: 600; }
.cbx__tick { width: 18px; height: 18px; flex: none; color: var(--seal); opacity: 0; }
.cbx__tick svg { width: 16px; height: 16px; }
.cbx__opt[aria-selected='true'] { font-weight: 500; }
.cbx__opt[aria-selected='true'] .cbx__tick { opacity: 1; }
.cbx__empty { padding: 14px 10px; color: var(--muted); font-size: var(--fs-sm); }

/* Time step options */
.time-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.with-select { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.with-select .select { width: auto; max-width: 280px; min-width: 0; }
.sched > * { min-width: 0; }
.meet-hint { display: flex; gap: 8px; align-items: flex-start; margin: -10px 0 18px; }
.meet-hint .ic { margin-top: 1px; flex: none; }
.slots-col { min-width: 0; }
.tz-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.tz-link { display: inline-block; }
.tz-link .tz__btn { height: auto; padding: 2px 0; border: 0; border-radius: 4px; background: none; font-size: var(--fs-xs); color: var(--ink); gap: 6px; }
.tz-link .tz__btn .ic { display: none; }
.tz-link .tz__btn::after { content: 'Change'; color: var(--seal-deep); text-decoration: underline; text-underline-offset: 3px; }
.tz-link .tz__btn:hover::after { color: var(--seal); }
.tz-link .tz__pop { left: 0; right: auto; }
.when-strip {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: var(--r); background: var(--paper-2);
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45;
}
.when-strip > .ic { flex: none; color: var(--seal); }
.when-strip > span { flex: 1; min-width: 0; }
.when-strip .link { flex: none; }
.step__body.form-grid { margin-top: 22px; }
@media (max-width: 720px) {
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .focus-opt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 0; }
  .focus-opt__tick { top: 14px; margin-top: 0; }
  .focus-opt:last-child { flex-direction: row; align-items: center; }
  .time-opts { flex-direction: column; align-items: stretch; }
  .seg--meet { display: flex; }
  .seg--meet button { flex: 1; justify-content: center; padding: 0 8px; }
  .with-select { justify-content: space-between; }
  .with-select .select { flex: 1; width: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .cbx__list { max-height: min(260px, 38vh); }
  .cbx__input { font-size: 16px; } /* prevent iOS zoom */
}

/* ==========================================================================
   Login
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth__art {
  position: relative; overflow: hidden; background: var(--night); color: var(--paper); padding: 40px clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
}
.auth__art::before {
  content: ''; position: absolute; inset: -40%; z-index: -1; opacity: .16; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-drift 22s steps(10) infinite;
}
.auth__art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 20% 110%, rgba(200, 55, 45, .35), transparent 60%), radial-gradient(60% 50% at 100% 0%, rgba(46, 94, 78, .35), transparent 60%); }
@keyframes grain-drift { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -2%); } 75% { transform: translate(-2%, -4%); } 100% { transform: translate(0, 0); } }
.auth__art .brand__word { color: var(--paper); }
.auth__big { font-family: var(--f-cjk); font-weight: 900; font-size: clamp(8rem, 5rem + 12vw, 17rem); line-height: .9; letter-spacing: -.02em; color: var(--paper); writing-mode: vertical-rl; margin: auto 0; align-self: flex-start; text-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.auth__big span { display: inline-block; }
.auth__quote { max-width: 36ch; font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); line-height: 1.35; letter-spacing: -0.01em; color: rgba(244, 238, 227, .88); }
.auth__quote em { color: #F2A094; }
.auth__seal { position: absolute; right: clamp(24px, 5vw, 80px); top: 50%; width: clamp(90px, 9vw, 140px); transform: translateY(-50%) rotate(8deg); opacity: .95; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.auth__form { display: grid; place-items: center; padding: 40px 24px; }
.auth__card { width: min(420px, 100%); }
.auth__card h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 1.8rem + 1.2vw, 3rem); letter-spacing: -0.035em; line-height: 1; margin: 14px 0 10px; }
.pw-wrap { position: relative; }
.pw-wrap .icon-btn { position: absolute; right: 7px; top: 7px; }
.demo-box { margin-top: 28px; padding: 16px; border-radius: var(--r); border: 1px dashed var(--line-strong); background: rgba(236, 227, 211, .4); }
.demo-box summary { cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
.demo-box summary::-webkit-details-marker { display: none; }
.demo-list { display: grid; gap: 6px; margin-top: 12px; }
.demo-list button { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-sm); transition: background var(--t-fast); }
.demo-list button:hover { background: var(--card); }
.demo-list small { color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { min-height: 260px; padding: 24px 20px; }
  .auth__big { writing-mode: horizontal-tb; font-size: 5.4rem; margin: 26px 0 8px; }
  .auth__seal { width: 72px; top: 28px; transform: rotate(8deg); }
  .auth__quote { font-size: 1.05rem; }
}

/* ==========================================================================
   Client portal specifics
   ========================================================================== */
.hero-case { position: relative; overflow: hidden; padding: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; }
.hero-case::after { content: attr(data-glyph); position: absolute; right: -10px; bottom: -48px; font-family: var(--f-cjk); font-weight: 900; font-size: 210px; line-height: 1; color: rgba(26, 23, 18, .035); pointer-events: none; }
.hero-case h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.08; margin: 10px 0 8px; }
.hero-case__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 640px) { .hero-case { grid-template-columns: 1fr; gap: 18px; padding: 22px; } .ring { width: 110px; height: 110px; } }

.road { position: relative; padding: 8px 0 4px; }
.road__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road__svg path { fill: none; vector-effect: non-scaling-stroke; }
.road__base { stroke: var(--paper-3); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.road__done { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.road__nodes { position: relative; height: 230px; }
.road__node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; width: 150px; text-align: center; }
.road__pin { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--paper-3); position: relative; z-index: 1; transition: transform var(--t) var(--ease-spring); }
.road__node.is-done .road__pin { background: var(--ink); border-color: var(--ink); }
.road__node.is-done .road__pin::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--paper); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.road__node.is-active .road__pin { width: 26px; height: 26px; background: var(--seal); border-color: var(--card); box-shadow: 0 0 0 1px var(--seal), 0 10px 24px -6px rgba(200, 55, 45, .6); }
.road__node.is-active .road__pin::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--seal); opacity: .5; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.road__label { position: absolute; width: 150px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.road__label b { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; font-weight: 400; color: var(--muted); margin-bottom: 3px; }
.road__node.is-up .road__label { bottom: calc(100% + 12px); }
.road__node.is-down .road__label { top: calc(100% + 12px); }
.road__node.is-active .road__label { color: var(--ink); font-weight: 500; }
.road__node.is-active .road__label b { color: var(--seal); }
.road__node.is-done .road__label { color: var(--ink-2); }
.road-v { display: none; }
@media (max-width: 760px) {
  .road { display: none; }
  .road-v { display: grid; gap: 0; }
  .road-v__item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
  .road-v__item::before { content: ''; position: absolute; left: 12px; top: 22px; bottom: 0; border-left: 2px dotted var(--paper-3); }
  .road-v__item.is-done::before { border-left: 2px solid var(--ink); }
  .road-v__item:last-child::before { display: none; }
  .road-v__item .road__pin { margin: 2px auto 0; }
  .road-v__item.is-done .road__pin { background: var(--ink); border-color: var(--ink); }
  .road-v__item.is-active .road__pin { background: var(--seal); border-color: var(--seal); box-shadow: 0 0 0 4px var(--seal-tint); }
  .road-v__title { font-size: var(--fs-sm); font-weight: 500; }
}

.task { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.task + .task { border-top: 1px solid var(--line); }
.task__check {
  position: relative; width: 24px; height: 24px; border-radius: 8px; flex: none; margin-top: 1px; border: 1.5px solid var(--line-strong); background: var(--card);
  display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t) var(--ease-spring);
}
button.task__check:hover { border-color: var(--ink); transform: scale(1.06); }
.task__check svg { width: 14px; height: 14px; stroke: var(--paper); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease-out) .05s; }
.task.is-done .task__check { background: var(--jade); border-color: var(--jade); }
.task.is-done .task__check svg { stroke-dashoffset: 0; }
.task__check--kaitu { border-style: dashed; cursor: default; }
.task.is-done .task__title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(122, 113, 98, .5); }
.task__title { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; transition: color var(--t); }
.task__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 5px; font-size: 12px; color: var(--muted); align-items: center; }
.task__desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.due--late { color: var(--seal-deep); }

.phase { border-radius: var(--r-lg); background: var(--card); border: 1px solid rgba(26, 23, 18, .06); box-shadow: var(--shadow-paper); overflow: hidden; }
.phase + .phase { margin-top: 14px; }
.phase__head { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 24px; gap: 16px; align-items: center; padding: 20px 22px; text-align: left; }
.phase__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.1rem; background: var(--paper-2); color: var(--ink-2); }
.phase.is-active .phase__num { background: var(--seal); color: #fff; }
.phase.is-done .phase__num { background: var(--ink); color: var(--paper); }
.phase__title { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
.phase__desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.phase__chev { transition: transform var(--t) var(--ease-out); color: var(--muted); }
.phase[aria-expanded='true'] .phase__chev, .phase.is-open .phase__chev { transform: rotate(180deg); }
.phase__body { padding: 0 22px 10px 82px; }
.phase__stat { display: grid; gap: 6px; justify-items: end; min-width: 110px; }
.phase__stat .bar { width: 100px; }
@media (max-width: 640px) {
  .phase__head { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; padding: 16px; }
  .phase__num { width: 36px; height: 36px; font-size: .95rem; }
  .phase__stat { display: none; }
  .phase__body { padding: 0 16px 8px 16px; }
}

.consultant { display: grid; gap: 14px; }
.consultant__top { display: flex; gap: 14px; align-items: center; }
.consultant__name { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.15; }
.meeting { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.meeting + .meeting { border-top: 1px solid var(--line); }
.date-tile { width: 58px; height: 62px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 2px; }
.date-tile b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; font-weight: 400; letter-spacing: -0.02em; }
.date-tile small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--seal); }

.bill { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; }
.bill + .bill { border-top: 1px solid var(--line); }
.bill__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.bill.is-paid .bill__icon { background: var(--jade-tint); color: var(--jade); }
.bill.is-open .bill__icon { background: var(--seal-tint); color: var(--seal-deep); }
@media (max-width: 640px) { .bill { grid-template-columns: 40px minmax(0, 1fr); } .bill > :last-child { grid-column: 1 / -1; } .bill__icon { width: 40px; height: 40px; } }

.greet { font-family: var(--f-display); letter-spacing: -0.03em; }
.greet em { font-style: italic; color: var(--seal); }

/* ==========================================================================
   Staff specifics
   ========================================================================== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters .input, .filters .select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: var(--fs-sm); width: auto; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; width: 100%; min-height: 42px; border-radius: 999px; }
.status-select { height: 30px; border-radius: 999px; padding: 0 28px 0 12px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); background-color: var(--card); background-position: right 10px center; background-size: 9px; min-height: 0; width: auto; }

.builder-phase { border-radius: var(--r-lg); background: var(--card); border: 1px solid rgba(26, 23, 18, .07); box-shadow: var(--shadow-paper); }
.builder-phase + .builder-phase { margin-top: 14px; }
.builder-phase__head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.builder-phase__head .input { font-family: var(--f-display); font-size: 1.12rem; border-color: transparent; background: transparent; min-height: 40px; padding: 6px 10px; flex: 1 1 220px; }
.builder-phase__head .input:hover { border-color: var(--line); }
.builder-phase__head .input:focus { background: var(--card); }
.drag { cursor: grab; color: var(--muted); display: grid; place-items: center; width: 24px; height: 32px; border-radius: 6px; touch-action: none; }
.drag:hover { background: var(--paper-2); color: var(--ink); }
.drag:active { cursor: grabbing; }
.btask { display: grid; grid-template-columns: 24px 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.btask:last-of-type { border-bottom: 0; }
.btask .input { min-height: 36px; padding: 6px 10px; border-color: transparent; background: transparent; font-size: var(--fs-sm); }
.btask .input:hover { border-color: var(--line); }
.btask__ctrls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.btask__ctrls .select--sm, .btask__ctrls .input--sm { min-height: 32px; font-size: 12px; width: auto; }
.btask.is-done .input[name='title'] { color: var(--muted); text-decoration: line-through; }
.btask.is-dragging, .builder-phase.is-dragging { opacity: .5; }
.drop-line { height: 2px; background: var(--seal); margin: -1px 16px; border-radius: 2px; }
.add-task { display: flex; gap: 8px; padding: 12px 16px; align-items: center; }
.add-task .input { min-height: 38px; font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .btask { grid-template-columns: 22px 22px minmax(0, 1fr); }
  .btask__ctrls { grid-column: 2 / -1; justify-content: flex-start; }
}
.mini-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: var(--card); }
.mini-check.is-on { background: var(--jade); border-color: var(--jade); color: #fff; }
.mini-check svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.6; fill: none; }

.hours { display: grid; gap: 4px; }
.hours__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours__row:last-child { border-bottom: 0; }
.hours__wins { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.win { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--paper-2); }
.win input { width: 92px; min-height: 30px; padding: 3px 6px; border-radius: 6px; font-size: 13px; }
@media (max-width: 640px) { .hours__row { grid-template-columns: 1fr; gap: 8px; } }

.team-card { padding: 22px; display: grid; gap: 14px; align-content: start; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: var(--fs-sm); }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.back:hover { color: var(--ink); }
.case-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin: 12px 0 22px; }

@media print { .side, .tabbar, .topbar { display: none !important; } .shell { display: block; } }

/* Programmatic focus targets (headings) don't need a ring */
[tabindex='-1']:focus { outline: none; }
.wizard__foot .xs { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) { .sched__intro .lede { font-size: 1.05rem; } }
.task__meta > span, .li__sub > .ic { display: inline-flex; align-items: center; gap: 4px; }
.side__foot > *, .side-card, .me { min-width: 0; }
.side { overflow: hidden; }
svg.ic { display: inline-block; vertical-align: -0.2em; }
.shell > div { min-width: 0; }
.case-hero h1, .page-head h1 { overflow-wrap: anywhere; }
.builder-phase__head .input { min-width: 0; }
.win input { width: 124px; }
@media (max-width: 860px) { .slots { max-height: none; overflow: visible; } }

/* scheduler on very small screens (≤ 340 px) */
@media (max-width: 340px) {
  .sched .wizard { padding-inline: 14px; }
  .sched .focus-opt, .sched .cbx__control, .sched .dest-popular { max-width: 100%; min-width: 0; }
  .sched *, .sched *::before { min-width: 0; }
}

/* journal editor preview */
.prose-preview { max-width: 68ch; line-height: 1.7; color: var(--ink-2); }
.prose-preview > * + * { margin-top: 1em; }
.prose-preview h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; letter-spacing: -.02em; color: var(--ink); margin-top: 1.6em; }
.prose-preview h3 { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); margin-top: 1.4em; }
.prose-preview ul, .prose-preview ol { padding-left: 1.3em; }
.prose-preview ul { list-style: disc; } .prose-preview ol { list-style: decimal; }
.prose-preview a { color: var(--seal); text-decoration: underline; }
.prose-preview img { max-width: 100%; border-radius: 12px; }
.prose-preview blockquote { border-left: 3px solid var(--seal); padding-left: 1em; }
/* more workspace sections than fit on a phone: the tab bar scrolls sideways */
@media (max-width: 960px) {
  .tabbar { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar a { min-width: 62px; flex: 1 0 62px; scroll-snap-align: start; }
}

/* billing amounts */
.bill__side { display: grid; justify-items: end; gap: 8px; }
.bill__amt { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.bill.is-paid .bill__amt { color: var(--muted); }
.bill__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bill__totals > div { background: var(--card); padding: 14px 16px; display: grid; gap: 6px; }
.bill__totals b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
@media (max-width: 560px) { .bill { grid-template-columns: 40px minmax(0, 1fr); } .bill__side { grid-column: 2; justify-items: start; } }

/* ==========================================================================
   Scheduler v3: how to meet (kinds, app tiles, contact detail), organisation focus
   ========================================================================== */
.focus-grid--even .focus-opt:last-child { grid-column: auto; }
.meet-kinds { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meet-kind {
  position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; padding: 16px 14px 14px; min-height: 124px; text-align: left;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transition: border-color var(--t-fast), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out), background var(--t-fast);
}
.meet-kind:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.meet-kind[aria-checked='true'] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-2); background: #FFFDF9; }
.meet-kind__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; background: var(--paper-2); color: var(--ink); transition: background var(--t), color var(--t); }
.meet-kind[aria-checked='true'] .meet-kind__ic { background: var(--seal); color: #fff; }
.meet-kind__title { font-family: var(--f-display); font-size: 1.08rem; letter-spacing: -0.015em; line-height: 1.15; }
.meet-kind__desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.meet-more { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); display: grid; gap: 16px; }
.meet-more:empty { display: none; }
.meet-apps__label { margin: 0 0 -6px; }
.meet-apps { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.meet-app {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 8px; border-radius: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t) var(--ease-out);
}
.meet-app:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.meet-app[aria-checked='true'] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #FFFDF9; }
/* neutral monogram "cut-paper" tile standing in for each app (no third-party logos) */
.meet-app__mono {
  width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2);
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  box-shadow: inset 0 -2px 0 rgba(26, 23, 18, .06); transform: rotate(-3deg); transition: background var(--t), color var(--t), transform var(--t) var(--ease-out);
}
.meet-app:hover .meet-app__mono { transform: rotate(0deg); }
.meet-app[aria-checked='true'] .meet-app__mono { background: var(--seal); color: #fff; transform: rotate(0deg); box-shadow: 0 6px 14px -8px rgba(200, 55, 45, .7); }
.meet-app__text { display: grid; min-width: 0; }
.meet-app__name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; }
.meet-app__note { font-size: 11px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.meet-note .ic { flex: none; margin-top: 2px; color: var(--seal); }
.meet-detail { max-width: 460px; }
.meet-detail .input { font-variant-numeric: tabular-nums; }
.summary__sub { font-weight: 400; font-size: var(--fs-xs); }
.signed-note { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
@media (max-width: 720px) {
  .meet-kinds { grid-template-columns: 1fr 1fr; }
  .meet-kind { min-height: 0; padding: 14px; }
  .focus-grid--even .focus-opt:last-child { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .meet-apps { grid-template-columns: 1fr 1fr; }
  .meet-app { padding-right: 8px; }
  .meet-app__note { display: none; }
  .meet-detail .input { font-size: 16px; } /* prevent iOS zoom */
}
@media (prefers-reduced-motion: reduce) {
  .meet-kind, .meet-app, .meet-app__mono { transition: none; transform: none !important; }
}

/* ---------- Login: forgot password + set-your-password ---------- */
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row > label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; color: var(--ink-2); }
.act-who { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); font-size: var(--fs-xs); color: var(--ink-2); }
.act-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-checks { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.pw-checks li { display: flex; align-items: center; gap: 8px; transition: color var(--t-fast); }
.pw-checks__tick { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t) var(--ease-out); }
.pw-checks li.is-ok { color: var(--jade); }
.pw-checks li.is-ok .pw-checks__tick { background: var(--jade); border-color: var(--jade); transform: scale(1.08); }
.pw-checks li.is-ok .pw-checks__tick::after { content: ''; width: 7px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.sent-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.sent-card p { margin: 4px 0 0; line-height: 1.5; }
.sent-card__env { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--seal); color: #fff; transform: rotate(-4deg); box-shadow: 0 10px 20px -12px rgba(200, 55, 45, .8); }
@media (prefers-reduced-motion: reduce) { .pw-checks li, .pw-checks__tick { transition: none; } }

/* ---------- Portal: "Your next meetings" panel (portal-meetings.js) ---------- */
.pm .panel__head .meta { display: inline-flex; align-items: center; gap: 6px; }
.pm-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; }
.pm-row + .pm-row { border-top: 1px solid var(--line); }
.pm-row .li__title { margin: 0; font-size: inherit; }
.pm-row p { margin: 2px 0 0; }
.pm-row.is-soon .date-tile { background: var(--seal); border-color: var(--seal); }
.pm-row.is-soon .date-tile small, .pm-row.is-soon .date-tile b { color: #fff; }
.pm-zone { color: var(--muted); white-space: nowrap; }
.pm-how { display: flex; align-items: flex-start; gap: 6px; }
.pm-how .ic { flex: none; margin-top: 2px; color: var(--seal); }
.pm-row__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pm-empty { display: flex; align-items: center; gap: 14px; padding: 6px 0 14px; }
.pm-empty p { margin: 0; }
.pm-empty__glyph { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); font-family: var(--f-cjk); font-weight: 900; font-size: 22px; transform: rotate(-4deg); }
.pm-book { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px dashed var(--line-strong); }
.pm-book__ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: var(--seal); }
@media (max-width: 640px) {
  .pm-row { grid-template-columns: 58px minmax(0, 1fr); }
  .pm-row__acts { grid-column: 1 / -1; justify-content: flex-start; }
  .pm-book { flex-wrap: wrap; }
  .pm-book .btn { width: 100%; justify-content: center; }
}
