/* Conclave — follows the Axowl workspace look (Inter + Noto Sans KR, slate neutrals, navy action, indigo highlight).
   Pages are light; the meeting room uses the Axowl dark surface family (#272727). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    color-scheme: light;
    --cc-bg: #f7f9fc;
    --cc-surface: #ffffff;
    --cc-subtle: #f8fafc;
    --cc-border: #e2e8f0;
    --cc-border-soft: #f1f5f9;
    --cc-text: #0f172a;
    --cc-sub: #475569;
    --cc-muted: #64748b;
    --cc-action: #0f172a;
    --cc-brand: #635bff;
    --cc-link: #6366f1;
    --cc-danger: #dc2626;
    --cc-radius: 7px;
    --cc-radius-lg: 10px;
    --cc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --cc-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* meeting room (dark) */
    --cr-bg: #272727;
    --cr-subtle: #2f2f2f;
    --cr-surface: #383838;
    --cr-border: #3d3d3d;
    --cr-text: #ffffff;
    --cr-sub: #e0e0e0;
    --cr-muted: #c0c0c0;
    --cr-ring: #8b85ff;
    --cr-danger: #f98981;
    --cr-danger-bg: #2d1111;
    --cr-danger-border: #7f1d1d;
    --cr-hand: #e0a800;
}

* { box-sizing: border-box; }

html { font-size: 13.5px; }
html, body {
    margin: 0;
    min-height: 100%;
    background: var(--cc-bg);
    color: var(--cc-text);
    font-family: 'Inter', 'Noto Sans KR', -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--cc-link); }
a:hover { color: #4f46e5; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cc-brand); outline-offset: 2px; }
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .35rem; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .4rem; }

/* ── shell ── */
.cc-shell { display: flex; flex-direction: column; min-height: 100vh; }
.cc-header {
    height: 52px; display: flex; align-items: center; gap: 22px; padding: 0 24px;
    background: var(--cc-surface); border-bottom: 1px solid var(--cc-border);
}
.cc-brand { color: var(--cc-text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.cc-brand:hover { color: var(--cc-text); }
.cc-nav { display: flex; gap: 22px; align-items: center; }
.cc-nav a, .cc-link { color: var(--cc-sub); text-decoration: none; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; }
.cc-nav a:hover, .cc-link:hover, .cc-nav a.active { color: var(--cc-text); }
.cc-nav a.active { font-weight: 600; }
.cc-me { width: 28px; height: 28px; border-radius: 50%; background: var(--cc-brand); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 600; }
.cc-main { flex: 1; padding: 36px 24px; }
.cc-footer { padding: 14px 24px; color: var(--cc-muted); font-size: .88rem; border-top: 1px solid var(--cc-border); background: var(--cc-surface); }

/* ── common ── */
.cc-page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.cc-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cc-card { background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius-lg); padding: 18px; box-shadow: var(--cc-shadow-sm); }
.cc-center { text-align: center; }
.cc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cc-row.cc-center { justify-content: center; }
.cc-field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--cc-sub); }
.cc-input {
    flex: 1; min-width: 12rem; height: 38px; padding: 0 12px; border-radius: var(--cc-radius);
    border: 1px solid var(--cc-border); background: var(--cc-surface); color: var(--cc-text); font-size: 1rem;
}
.cc-input[type=file] { height: auto; padding: 8px 12px; }
.cc-input::placeholder { color: #94a3b8; }
.cc-input:hover { border-color: #cbd5e1; }
.cc-input:focus-visible { border-color: var(--cc-brand); outline-offset: 0; }
.cc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
    border-radius: var(--cc-radius); border: 1px solid var(--cc-border); background: var(--cc-surface); color: var(--cc-sub);
    text-decoration: none; cursor: pointer; font-size: .95rem; font-weight: 600; white-space: nowrap;
}
.cc-btn:hover { background: var(--cc-subtle); color: var(--cc-text); }
.cc-btn:disabled { opacity: .5; cursor: not-allowed; }
.cc-btn-primary { background: var(--cc-action); border-color: var(--cc-action); color: #fff; }
.cc-btn-primary:hover { background: #1e293b; color: #fff; }
.cc-btn-lg { height: 44px; font-size: 1.05rem; }
.cc-btn-rec { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.cc-spinner { width: .95em; height: .95em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: ccspin .7s linear infinite; }
@keyframes ccspin { to { transform: rotate(360deg); } }
.cc-error { color: #b91c1c; }
.cc-muted { color: var(--cc-muted); }
.cc-sub { color: var(--cc-sub); }
.cc-small { font-size: .9rem; }
.cc-mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: .92em; word-break: break-all; }
.cc-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--cc-border); background: var(--cc-subtle); font-size: .88rem; font-weight: 600; color: var(--cc-sub); }
.cc-badge-live { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.cc-badge-sealed { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.cc-badge-brand { background: var(--cc-brand); border-color: var(--cc-brand); color: #fff; }
.cc-seg { display: inline-flex; border: 1px solid var(--cc-border); border-radius: var(--cc-radius); overflow: hidden; }
.cc-seg button { height: 36px; padding: 0 14px; border: 0; background: var(--cc-surface); color: var(--cc-sub); font-size: .95rem; font-weight: 500; cursor: pointer; }
.cc-seg button + button { border-left: 1px solid var(--cc-border); }
.cc-seg button.on { background: var(--cc-action); color: #fff; font-weight: 600; }
.cc-note { display: flex; gap: 10px; padding: 12px; border-radius: var(--cc-radius); background: var(--cc-subtle); border: 1px solid var(--cc-border); color: var(--cc-sub); font-size: .92rem; }
.cc-note svg { flex: none; color: var(--cc-brand); margin-top: 1px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── home ── */
.cc-home { max-width: 760px; margin: 5vh auto 0; display: flex; flex-direction: column; gap: 18px; }
.cc-home h1 { font-size: 2.6rem; line-height: 1.15; }
.cc-home > p { color: var(--cc-sub); font-size: 1.15rem; margin: 0; }
.cc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.cc-steps .cc-card { display: flex; flex-direction: column; gap: 6px; color: var(--cc-sub); }
.cc-steps strong { color: var(--cc-text); font-size: 1.05rem; }
.cc-notfound { max-width: 40rem; margin: 3rem auto; text-align: center; color: var(--cc-sub); }

/* ── meetings list ── */
.cc-create { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cc-create .cc-field:first-child { flex: 1; min-width: 14rem; }
.cc-table { padding: 0; overflow: hidden; }
.cc-thead, .cc-tr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 130px 220px; gap: 12px; align-items: center; padding: 12px 16px; }
.cc-thead { padding: 10px 16px; background: var(--cc-subtle); border-bottom: 1px solid var(--cc-border); font-size: .88rem; font-weight: 600; color: var(--cc-sub); }
.cc-tr { border-bottom: 1px solid var(--cc-border-soft); }
.cc-tr:last-child { border-bottom: 0; }
.cc-title { color: var(--cc-text); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.cc-title:hover { color: var(--cc-brand); }
.cc-empty { padding: 28px 16px; text-align: center; color: var(--cc-muted); }

/* ── verify / pricing / sealed ── */
.cc-sealed dl, .cc-verify dl { display: grid; grid-template-columns: 9rem 1fr; gap: .4rem 1rem; margin: 0; }
.cc-sealed dt, .cc-verify dt { color: var(--cc-muted); }
.cc-sealed dd, .cc-verify dd { margin: 0; }
.cc-result { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--cc-radius); font-weight: 600; }
.cc-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.cc-bad { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.cc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cc-plan-pro { border-color: var(--cc-brand); }
.cc-price { font-size: 2rem; font-weight: 700; margin: .25rem 0 .75rem; }
.cc-plan ul { padding-left: 1.1rem; color: var(--cc-sub); margin: 0 0 1rem; }
.cc-plan ul li { margin: .3rem 0; }

/* ── lobby (before joining) ── */
.cc-lobby { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; min-height: calc(100vh - 80px - 72px - 90px); }
.cc-lobby-preview { width: min(640px, 100%); display: flex; flex-direction: column; gap: 12px; }
.cc-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--cr-bg); overflow: hidden; display: grid; place-items: center; }
.cc-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity .2s; }
.cc-preview video.ready { opacity: 1; }
.cc-preview-label { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 5px; background: rgba(15, 15, 15, .72); color: #fff; font-size: .92rem; font-weight: 500; }
.cc-avatar { border-radius: 50%; background: var(--cc-brand); color: #fff; display: grid; place-items: center; font-weight: 600; }
.cc-avatar-xl { width: 96px; height: 96px; font-size: 36px; }
.cc-toggle { height: 40px; }
.cc-toggle.off { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.cc-lobby-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.cc-lobby-card .cc-input { flex: none; height: 40px; }

/* ── meeting room (dark, full window) ── */
body.cc-inroom .cc-chrome { display: none; }
body.cc-inroom .cc-main { padding: 0; }
body.cc-inroom { background: var(--cr-bg); overflow: hidden; }
.cr { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--cr-bg); color: var(--cr-text); }
.cr-top { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--cr-border); }
.cr-brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.cr-sep { width: 1px; height: 18px; background: var(--cr-border); }
.cr-title { font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-muted { color: var(--cr-muted); }
.cr-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9rem; color: var(--cr-muted); }
.cr-grow { flex: 1; }
.cr-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.cr-tag-brand { background: var(--cc-brand); }
.cr-tag-rec { background: var(--cr-danger-bg); border: 1px solid var(--cr-danger-border); color: var(--cr-danger); }
.cr-tag-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cr-danger); }
.cr-seg { display: flex; border: 1px solid var(--cr-border); border-radius: var(--cc-radius); overflow: hidden; }
.cr-seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--cr-sub); font-size: .92rem; font-weight: 500; cursor: pointer; }
.cr-seg button + button { border-left: 1px solid var(--cr-border); }
.cr-seg button.on { background: var(--cc-brand); color: #fff; font-weight: 600; }
.cr-pager { display: flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--cr-sub); }
.cr-pager span { min-width: 40px; text-align: center; }
.cr-icon { width: 30px; height: 30px; border: 1px solid var(--cr-border); border-radius: var(--cc-radius); background: var(--cr-subtle); color: var(--cr-sub); display: grid; place-items: center; cursor: pointer; }
.cr-icon:hover { background: var(--cr-surface); color: #fff; }
.cr-icon:disabled { opacity: .4; cursor: default; }

.cr-body { flex: 1; min-height: 0; display: flex; }
.cr-stage-wrap { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.cr-banner { margin: 10px 12px 0; padding: 8px 12px; border-radius: var(--cc-radius); background: var(--cr-surface); border: 1px solid var(--cr-border); color: var(--cr-sub); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.cr-banner.err { background: var(--cr-danger-bg); border-color: var(--cr-danger-border); color: var(--cr-danger); }
.cr-banner button { margin-left: auto; }
.cr-stage { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cr-gallery { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; }
.cr-gallery .cr-tile { width: var(--tw, 320px); height: var(--th, 180px); }
.cr-focus { flex: 1; min-height: 0; display: flex; }
.cr-focus .cr-tile { flex: 1; }
.cr-focus .cr-tile video { object-fit: contain; }
.cr-strip { height: 124px; flex: none; display: flex; gap: 8px; justify-content: center; }
.cr-strip .cr-tile { width: 220px; }
.cr-empty { flex: 1; display: grid; place-items: center; color: var(--cr-muted); text-align: center; }

.cr-tile { position: relative; border-radius: var(--cc-radius-lg); background: var(--cr-surface); overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.cr-tile.speaking { box-shadow: 0 0 0 2px var(--cr-ring); }
.cr-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cr-tile video.whole { object-fit: contain; }
.cr-tile.mirror video { transform: scaleX(-1); }
.cr-tile .cr-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 600; color: #fff; }
.cr-focus .cr-tile .cr-av { width: 120px; height: 120px; font-size: 44px; }
.cr-tile.has-video .cr-av { display: none; }
.cr-tile-bar { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: rgba(15, 15, 15, .72); font-size: .88rem; font-weight: 500; }
.cr-tile-bar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-tile-bar svg { flex: none; color: var(--cr-danger); }
.cr-role { padding: 0 5px; border-radius: 4px; background: var(--cc-brand); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.cr-hand { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: var(--cc-radius); background: var(--cr-hand); color: #1c1400; display: grid; place-items: center; }

.cr-panel { width: 348px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--cr-border); background: var(--cr-subtle); min-height: 0; }
.cr-tabs { display: flex; border-bottom: 1px solid var(--cr-border); }
.cr-tabs button { flex: 1; height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--cr-muted); font-size: 1rem; font-weight: 500; cursor: pointer; }
.cr-tabs button.on { color: #fff; font-weight: 600; border-bottom-color: var(--cr-ring); }
.cr-tabs .cr-icon { margin: 7px 8px 0 0; }
.cr-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.cr-input { height: 34px; width: 100%; padding: 0 10px; border: 1px solid var(--cr-border); border-radius: var(--cc-radius); background: var(--cr-bg); color: #fff; font-size: 1rem; }
.cr-input::placeholder { color: #909090; }
.cr-group { display: flex; flex-direction: column; gap: 6px; }
.cr-group-h { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--cr-muted); }
.cr-group-h.hand { color: var(--cr-hand); }
.cr-person { display: flex; align-items: center; gap: 10px; padding: 5px 10px; }
.cr-person.card { padding: 8px 10px; border: 1px solid var(--cr-border); border-radius: var(--cc-radius); background: var(--cr-surface); }
.cr-person .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .88rem; font-weight: 600; flex: none; }
.cr-person .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cr-sub); }
.cr-person .nm small { color: var(--cr-muted); font-size: .92em; }
.cr-mini { height: 28px; padding: 0 9px; border: 1px solid var(--cr-border); border-radius: 6px; background: transparent; color: var(--cr-sub); font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.cr-mini:hover { background: var(--cr-surface); color: #fff; }
.cr-mini.solid { background: #fff; border-color: #fff; color: var(--cr-bg); font-weight: 600; }
.cr-mini:disabled { opacity: .5; cursor: default; }
.cr-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cr-msg .who { font-size: .85rem; color: var(--cr-muted); font-weight: 600; }
.cr-msg.me .who { color: var(--cr-ring); }
.cr-msg .txt { color: var(--cr-sub); white-space: pre-wrap; word-break: break-word; }
.cr-chat-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--cr-border); }

.cr-bar { height: 76px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-top: 1px solid var(--cr-border); background: var(--cr-subtle); }
.cr-bar-side { width: 240px; font-size: .92rem; color: var(--cr-muted); }
.cr-bar-side.right { display: flex; justify-content: flex-end; gap: 8px; }
.cr-bar-side b { color: #fff; font-weight: 600; }
.cr-bar-mid { flex: 1; display: flex; justify-content: center; gap: 8px; }
.cr-ctl { width: 76px; height: 54px; border: 1px solid var(--cr-border); border-radius: var(--cc-radius-lg); background: var(--cr-surface); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .85rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.cr-ctl:hover { background: #444; }
.cr-ctl.off { background: var(--cr-danger-bg); border-color: var(--cr-danger-border); color: var(--cr-danger); }
.cr-ctl.on { border-color: var(--cc-brand); font-weight: 600; }
.cr-ctl.hand-on { background: var(--cr-hand); border-color: var(--cr-hand); color: #1c1400; }
.cr-ctl:disabled { opacity: .5; cursor: default; }
.cr-bar .cr-sep { height: 34px; align-self: center; margin: 0 4px; }
.cr-act { height: 38px; padding: 0 14px; border: 1px solid var(--cr-border); border-radius: var(--cc-radius); background: var(--cr-surface); color: #fff; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.cr-act.rec { background: var(--cr-danger-bg); border-color: var(--cr-danger-border); color: var(--cr-danger); }
.cr-act.leave { background: var(--cc-danger); border-color: var(--cc-danger); }
.cr-act:disabled { opacity: .5; cursor: default; }
.cr-pop { position: absolute; right: 18px; bottom: 84px; width: 340px; padding: 14px; border-radius: var(--cc-radius-lg); background: var(--cr-surface); border: 1px solid var(--cr-border); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.cr-pop .cr-mini { height: 34px; justify-content: center; }
#cc-audio { display: none; }

/* ── narrow screens ── */
@media (max-width: 900px) {
    .cc-header { padding: 0 14px; gap: 14px; }
    .cc-nav { gap: 14px; }
    .cc-main { padding: 20px 14px; }
    .cc-steps { grid-template-columns: 1fr; }
    .cc-home h1 { font-size: 2rem; }
    .cc-thead { display: none; }
    .cc-tr { grid-template-columns: 1fr; gap: 6px; }
    .cc-actions { justify-content: flex-start; }
    .cc-sealed dl, .cc-verify dl { grid-template-columns: 1fr; }
    .cr-panel { position: absolute; inset: 52px 0 76px 0; width: auto; z-index: 4; border-left: 0; }
    .cr-bar { padding: 0 8px; gap: 4px; overflow-x: auto; }
    .cr-bar-side { display: none; }
    .cr-bar-side.right { display: flex; width: auto; }
    .cr-bar-mid { justify-content: flex-start; gap: 4px; }
    .cr-ctl { width: 58px; flex: none; font-size: .75rem; }
    .cr-top .cr-mono, .cr-top .cr-brand, .cr-top .cr-sep { display: none; }
    .cr-strip { height: 84px; }
    .cr-strip .cr-tile { width: 140px; }
}

/* ── header / footer additions ── */
.cc-header .cc-btn-primary { color: #fff; height: 36px; }
.cc-lang button { height: 30px; padding: 0 10px; font-size: .9rem; }
.cc-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 22px 24px; }
.cc-footer a { color: var(--cc-muted); text-decoration: none; }
.cc-footer a:hover { color: var(--cc-text); }
.cc-footer .cc-brand { margin-right: 0; }

@media (max-width: 900px) {
    .cc-header { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 14px; }
}

/* ── voice check-in ── */
.cc-check { display: inline-flex; align-items: center; gap: 7px; height: 38px; font-size: .95rem; font-weight: 600; color: var(--cc-sub); cursor: pointer; white-space: nowrap; }
.cc-check input { width: 16px; height: 16px; accent-color: var(--cc-action); }
.cc-checkin { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--cc-border); border-radius: var(--cc-radius); background: var(--cc-subtle); }
.cc-checkin .cc-btn { align-self: flex-start; }
.cc-phrase { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--cc-text); }
.cc-ok-line { color: #15803d; font-weight: 600; }
.cr-notices { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; z-index: 5; max-width: calc(100% - 48px); }
.cr-notice { padding: 9px 14px; border-radius: 8px; background: rgba(15, 15, 15, .86); color: #fff; font-size: .95rem; }
.cc-left { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.cc-left h1 { font-size: 1.6rem; margin: 0; }
.cr-ask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.cr-ask-card { width: 100%; max-width: 360px; padding: 22px; border-radius: 12px; background: var(--cr-surface); border: 1px solid var(--cr-border); color: #fff; display: flex; flex-direction: column; gap: 18px; font-size: 1.1rem; }
.cr-ask-row { display: flex; gap: 10px; justify-content: flex-end; }
.cr-ask-row .cr-mini { min-height: 40px; padding: 0 18px; }
.cr-ask-row .danger { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ── phone (door and room fill the screen) ── */
@media (max-width: 700px) {
    html { font-size: 15px; }
    .cc-footer { flex-wrap: wrap; gap: 10px 16px; }
    .cc-shell:has(.cc-lobby) .cc-chrome, .cc-shell:has(.cc-left) .cc-chrome { display: none; }
    .cc-main:has(.cc-lobby) { padding: 0; }
    .cc-lobby { flex-direction: column; flex-wrap: nowrap; gap: 0; height: 100dvh; min-height: 0; align-items: stretch; justify-content: flex-start; background: #111; }
    .cc-lobby-preview { width: 100%; flex: 1 1 auto; min-height: 220px; position: relative; gap: 0; }
    .cc-preview { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: #111; }
    .cc-preview-label { left: 16px; top: calc(14px + env(safe-area-inset-top)); bottom: auto; }
    .cc-lobby-preview > .cc-row { position: absolute; left: 0; right: 0; bottom: 34px; gap: 14px; justify-content: center; z-index: 1; }
    .cc-lobby-preview .cc-toggle { height: 48px; padding: 0 18px; border-radius: 24px; background: rgba(15, 15, 15, .72); border-color: rgba(255, 255, 255, .25); color: #fff; }
    .cc-lobby-preview .cc-toggle.off { background: #dc2626; border-color: #dc2626; color: #fff; }
    .cc-lobby-card { width: 100%; flex: none; max-height: 62dvh; overflow-y: auto; margin-top: -18px; z-index: 2; gap: 12px; padding: 20px 20px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 18px 18px 0 0; box-shadow: none; }
    .cc-lobby-card h1 { font-size: 1.45rem; color: var(--cc-text); margin: 0; }
    .cc-lobby-card .cc-input { height: 48px; font-size: 16px; }
    .cc-lobby-card .cc-btn-lg { height: 52px; font-size: 1.15rem; border-radius: 12px; }
    .cc-lobby-seal { display: none; }

    .cr-top { height: 44px; padding: 0 12px; gap: 10px; border-bottom: 0; }
    .cr-top .cr-seg button { height: 28px; padding: 0 10px; }
    .cr-stage { padding: 0 4px; gap: 4px; }
    .cr-gallery { gap: 4px; }
    .cr-tile { border-radius: 8px; }
    .cr-bar { height: auto; flex-wrap: wrap; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); overflow: visible; border-top: 0; background: var(--cr-bg); }
    .cr-bar-mid { flex: 1 1 0; min-width: 0; justify-content: space-between; gap: 6px; }
    .cr-bar .cr-sep, .cr-ctl-share { display: none; }
    .cr-ctl { flex: 1 1 0; width: auto; min-width: 0; max-width: 64px; height: 48px; font-size: 0; gap: 0; border-radius: 14px; }
    .cr-ctl svg { width: 22px; height: 22px; }
    .cr-bar-side.right { width: auto; }
    .cr-bar-side.right.host { width: 100%; }
    .cr-bar-side.right.host .cr-act { flex: 1; justify-content: center; }
    .cr-act { height: 48px; border-radius: 14px; justify-content: center; }
    .cr-panel { inset: 0; z-index: 8; padding-top: env(safe-area-inset-top); }
    .cr-input, .cr-chat-form input { font-size: 16px; height: 44px; }
    .cr-pop { left: 10px; right: 10px; width: auto; bottom: 130px; }
    .cr-notices { left: 12px; bottom: 12px; }
}

/* ── upgrade popup ── */
.up-back { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 18, 46, .6); }
.up-card { width: 100%; max-width: 420px; padding: 34px 32px 24px; border-radius: 20px; background: #fff; color: #0b1f4b; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 90px rgba(6, 18, 46, .4); font-size: 16px; }
.up-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #2457e6; }
.up-card h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; color: #06122e; }
.up-card ul { margin: 2px 0 6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; color: #52608a; }
.up-card li::before { content: "✓"; margin-right: 10px; color: #2457e6; font-weight: 700; }
.up-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: #eaf0ff; font-size: 14px; }
.up-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 12px; border: 1px solid #d7e0f5; background: #fff; color: #0b1f4b; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.up-btn-go, .up-btn-go:hover { background: #0b1f4b; border-color: #0b1f4b; color: #fff; }
.up-quiet { border: 0; background: none; height: 38px; color: #52608a; font: inherit; font-size: 15px; cursor: pointer; }

/* ── app pages wear the landing's colours (the room keeps its own) ── */
.cc-shell { background: #f5f8ff; }
.cc-chrome { background: none; }
.cc-top { position: sticky; top: 0; z-index: 30; }
.cc-page, .cc-left, .cc-lobby { --cc-text: #06122e; --cc-sub: #52608a; --cc-muted: #52608a; --cc-border: #d7e0f5; --cc-action: #0b1f4b; --cc-brand: #2457e6; --cc-link: #2457e6; --cc-radius: 10px; color: #0b1f4b; }
.cc-page h1, .cc-left h1 { font-size: 2.4rem; letter-spacing: -.035em; font-weight: 800; }
.cc-page .cc-card, .cc-lobby .cc-card { border-radius: 20px; box-shadow: 0 10px 30px rgba(11, 31, 75, .08); }
.cc-page .cc-btn, .cc-left .cc-btn, .cc-lobby .cc-btn { border-radius: 10px; }
.cc-page .cc-btn-primary:hover, .cc-left .cc-btn-primary:hover, .cc-lobby .cc-btn-primary:hover { background: #06122e; }

/* ── seal ── */
.mc.sl { background: none; margin: -36px -24px; }
.sl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 64px !important; padding-bottom: 84px !important; }
.sl-one { padding-top: 64px !important; padding-bottom: 84px !important; }
.mc.sl h1 { font-size: clamp(34px, 4.2vw, 60px); }
.sl-mono { font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace; word-break: break-all; }
.sl-card { padding: 38px 40px; border-radius: 24px; background: linear-gradient(150deg, #0b1f4b, #06122e); color: #c9d5f5; box-shadow: 0 40px 90px rgba(11, 31, 75, .28); }
.sl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sl-stamp { padding: 6px 14px; border: 2px solid #ff8a98; border-radius: 8px; color: #ff8a98; font-weight: 800; letter-spacing: .22em; font-size: 14px; transform: rotate(-3deg); }
.sl-when { color: #fff; font-size: 16px; font-weight: 600; }
.mc .sl-card h3 { margin: 26px 0 0; color: #fff; font-size: 26px; }
.sl-card dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 22px 0 0; }
.sl-card dt { margin-top: 14px; font-size: 13px; color: #9db8ff; }
.sl-card dd { margin: 0; color: #fff; font-size: 15.5px; }
.sl-card dd.big { font-size: 24px; letter-spacing: .04em; }
.sl-check { margin-top: 32px; padding: 26px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.sl-check input { font: inherit; font-size: 15px; max-width: 100%; }
.mc .sl-find { margin-top: 28px; max-width: 460px; }
.mc .sl-find input { flex: 1; width: auto; min-width: 0; }
.sl-pop { max-width: 460px; }
.sl-pop h2 { text-align: center; }
.sl-tick { align-self: center; width: 60px; height: 60px; border-radius: 50%; background: #2457e6; color: #fff; display: grid; place-items: center; }
.sl-pop dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 4px 0; font-size: 15px; }
.sl-pop dt { color: #52608a; }
.sl-pop dd { margin: 0; text-align: right; font-weight: 600; }

/* ── history ── */
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hs-find { margin-top: 28px; width: min(420px, 100%); height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--navy); }
.hs-table { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.hs-row { display: grid; grid-template-columns: 190px minmax(0, 1.6fr) 70px 80px 120px 140px 200px; gap: 16px; align-items: center; padding: 14px 26px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.hs-th { border-top: 0; background: var(--navy); color: #c9d5f5; font-size: 13.5px; font-weight: 600; }
.hs-date { color: var(--navy); font-weight: 600; }
.hs-title { color: var(--navy-deep); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-empty { padding: 48px 26px; text-align: center; color: var(--muted); }
.hs-empty.err { color: #b91c1c; }
.hs-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; font-size: 15px; }
@media (max-width: 1000px) {
    .sl-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px !important; }
    .sl-one { padding-top: 40px !important; }
    .mc.sl { margin: -20px -14px; }
    .hs-th { display: none; }
    .hs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; padding: 20px 20px; }
    .hs-date, .hs-title, .hs-acts { grid-column: 1 / -1; }
    .hs-row > span[data-k]:not(.hs-date):not(.hs-title)::before { content: attr(data-k); display: block; font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); }
    .hs-title { white-space: normal; font-size: 18px; }
}
@media (max-width: 700px) { .sl-card { padding: 26px 22px; border-radius: 20px; } .sl-card-top { flex-wrap: wrap; } .mc.sl .cta .btn { width: 100%; } .up-card { padding: 28px 22px 18px; } }

.sl-label { display: block; margin: 26px 0 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.mc .sl-label + .sl-find { margin-top: 0; }
.mc .sl-find input[type=date] { font: inherit; }
.sl-pick { align-self: flex-start; position: relative; overflow: hidden; }
.sl-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 100px; }
.sl-pick:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.sl-file { font-weight: 600; word-break: break-all; }
.sl-steps ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 22px; }
.sl-steps li { counter-increment: s; position: relative; padding-left: 52px; }
.sl-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: #2457e6; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.sl-steps b { display: block; color: #fff; font-size: 17px; }
.sl-steps span { color: #c9d5f5; font-size: 15px; }
.mc .sl-steps h3 { margin: 0; }
.hs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hs-tools .hs-find { margin: 0; }
.hs-day { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.hs-day input { height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--navy); }
@media (max-width: 700px) { .hs-day { flex: 1 1 100%; } .hs-day input { flex: 1; min-width: 0; font-size: 16px; } .sl-pick { align-self: stretch; } }

.hs-acts { display: flex; gap: 8px; }
.hs-acts .btn { flex: 1; padding: 0 12px !important; white-space: nowrap; }
.sl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.sl-tabs button { height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sl-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sl-tabs + .sl-check { margin-top: 14px; }
.mc .sl-check .sl-find { margin-top: 0; max-width: none; }
.sl-verdict { padding: 18px 20px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.sl-verdict b { font-size: 20px; letter-spacing: -.01em; }
.sl-verdict.ok { background: #ecfdf3; color: #14532d; border: 1px solid #bbf7d0; }
.sl-verdict.bad { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.mc .sl-card a { color: #fff; }
