/* ==========================================================================
   Sigla Telehealth: project styles (patient app, doctor app, admin console).
   Tokens only, so light/dark and live rebranding keep working. Paper documents
   (prescriptions, certificates, receipts) stay white on purpose.
   ========================================================================== */

/* ---------- Small utilities ---------- */
.center { text-align: center; }
.crit-text { color: var(--crit); }
.good-text { color: var(--good); }
.crit-text .ico { width: 14px; height: 14px; vertical-align: -2px; }
.sec-h { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-row .sec-h { margin: 0; }
.sec-title { display: flex; align-items: center; gap: 6px; }
.sec-title .ico { width: 14px; height: 14px; }
.link-btn.back { align-self: flex-start; }
.prose { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.bullets { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.intro-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Callouts with an icon */
.callout { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: var(--ink); }
.callout > .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); }
.callout a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.callout.warn { background: var(--warn-bg); }
.callout.warn > .ico { color: var(--warn); }
.callout.crit { background: var(--crit-bg); }
.callout.crit > .ico { color: var(--crit); }
.callout.sm { padding: 8px 10px; font-size: 12.5px; }
.callout.emergency { background: var(--surface); border: 1px solid var(--line); }
.callout.emergency > .ico { color: var(--crit); }

/* ---------- People avatars (soft tinted, per person) ---------- */
.avatar.pav { background: hsl(var(--h) 52% 89%); color: hsl(var(--h) 48% 26%); font-weight: 700; }
:root[data-theme='dark'] .avatar.pav { background: hsl(var(--h) 28% 22%); color: hsl(var(--h) 60% 82%); }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.avatar.dr-av { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.sb-user .avatar.pav, .tb-user .avatar.pav { background: hsl(var(--h) 52% 89%); color: hsl(var(--h) 48% 26%); }
.who { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Account switcher ---------- */
.role-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface); }
.role-pill .ico { width: 15px; height: 15px; }
.role-pill .ico:last-child { width: 14px; height: 14px; color: var(--ink-3); }
.role-pill:hover { border-color: var(--ink); }
.persona-group + .persona-group { margin-top: 6px; }
.persona-group .sec-title { margin: 12px 0 6px; }
.persona { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r); text-align: left; border: 1px solid transparent; }
.persona:hover { background: var(--hover); }
.persona.active { border-color: var(--line-2); background: var(--surface-2); }
.persona-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.persona-main .muted { font-size: 12px; }
.persona > .ico { color: var(--ink-3); }

/* ---------- Patient home ---------- */
.hello-patient { align-items: flex-end; }
.hello-patient > div { width: 100%; }
.hero-search { display: flex; align-items: center; gap: 8px; margin-top: 18px; max-width: 640px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.5); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; background: none; color: #0b0b0b; height: 40px; }
.hero-search input::placeholder { color: #85847e; }
.hs-ico { color: #85847e; display: grid; place-items: center; }
.hero-search .btn { flex: none; }
.pf-card .card-head { margin-bottom: 12px; }
.pf-switch { padding-bottom: 2px; }
.pf-chip { gap: 8px; padding-left: 5px; }
.pf-chip .avatar { width: 26px; height: 26px; font-size: 10px; }
.pf-chip em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.pf-chip.active em { color: inherit; opacity: 0.7; }
.ghost-chip { border-style: dashed; }
.attn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.attn { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.attn.warn { border-color: color-mix(in srgb, var(--warn-mark) 60%, transparent); box-shadow: inset 4px 0 0 var(--warn-mark); }
.attn-head { display: flex; align-items: center; gap: 12px; }
.attn-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.attn-head .muted { font-size: 12.5px; }
.attn-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.attn-body > div { display: flex; flex-direction: column; }
.attn-last { flex: 1; min-width: 160px; font-size: 13px; color: var(--ink-2); }
.big-money { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.unread-dot { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.spec-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.spec-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.spec-tile .tile-ico { background: var(--accent-soft); color: var(--accent-text); }
.spec-tile b { font-size: 14px; line-height: 1.25; }
.spec-tile em { font-style: normal; font-size: 12px; color: var(--ink-3); }

/* Document type icons */
.doc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink); }
.doc-ic .ico { width: 18px; height: 18px; }
.doc-ic.rx { background: var(--accent-soft); color: var(--accent-text); }
.doc-ic.cert { background: var(--info-bg); color: var(--info); }
.doc-ic.lab { background: var(--warn-bg); color: var(--warn); }

/* ---------- Doctor search + cards ---------- */
.dr-filters .search.grow { flex: 1; max-width: none; min-width: 220px; }
.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dr-card { display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 18px; transition: border-color .15s, box-shadow .15s, transform .15s; width: 100%; }
.dr-card:hover { border-color: var(--ink); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.dr-card-top { display: flex; gap: 14px; align-items: center; }
.dr-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dr-card-main b { font-size: 16px; }
.dr-card-main span { font-size: 13px; color: var(--ink-2); }
.dr-card-main em { font-style: normal; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.dr-card-main em .ico { width: 13px; height: 13px; }
.dr-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.dr-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dr-card-meta .ico { width: 14px; height: 14px; color: var(--ink-3); }
.dr-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.dr-card-foot > div { display: flex; flex-direction: column; }
.dr-card-foot b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.dr-card-why { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent-text); font-weight: 600; }
.dr-card-why .ico { width: 14px; height: 14px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.avail.on { color: var(--good); }
.avail.on i { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.dr-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: 24px; }
.dr-hero-main { display: flex; gap: 20px; align-items: center; min-width: 0; }
.dr-hero-main h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.dr-hero-main p { color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dr-hero-main p .ico { width: 15px; height: 15px; }
.dr-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dr-hero-side { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface-2); border-radius: var(--r); }
.dr-hero-side .btn { margin-top: 4px; }
.share-side { align-items: center; text-align: center; }
.share-side code { font-size: 12px; color: var(--ink-2); }
.dr-stats { margin: 0; }
.dr-stats b { font-size: 16px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.steps b { font-size: 14px; }
.steps span { font-size: 13px; color: var(--ink-2); }
.qr { display: block; width: 120px; height: 120px; border-radius: 8px; }
.qr.big { width: 200px; height: 200px; }
.qr.mid { width: 132px; height: 132px; }
.share-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.share-qr code { font-size: 13px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; }
.preview-card .dr-card { pointer-events: none; }

/* Request form */
.attach-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.att-chip .ico { width: 14px; height: 14px; }
.att-chip em { font-style: normal; color: var(--ink-3); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; cursor: pointer; margin-top: 12px; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.input.invalid { border-color: var(--crit); }
textarea.input { resize: vertical; line-height: 1.45; padding-top: 10px; padding-bottom: 10px; height: auto; }

/* ---------- Records, family, history ---------- */
.doc-card { gap: 12px; }
.doc-card-head { display: flex; align-items: center; gap: 10px; flex-direction: row !important; }
.doc-card-head > div { display: flex; flex-direction: column; }
.doc-card .entity-lines li { gap: 12px; }
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; border-style: dashed; border-width: 1.5px; color: var(--ink-2); }
.add-card:hover { border-color: var(--ink); color: var(--ink); }
.add-card > .ico { width: 28px; height: 28px; }
.hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hist-card .card-head { margin-bottom: 10px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 8px; border-radius: var(--r-sm); }
.hist-item:hover { background: var(--hover); }
.hist-item > div { display: flex; flex-direction: column; min-width: 0; }
.hist-item .muted { font-size: 12.5px; }
.hist-list li + li .hist-item { border-top: 1px solid var(--line); border-radius: 0; }
.hist-empty { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); color: var(--ink-3); font-size: 13px; }
.hist-empty:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Consultation lists ---------- */
.c-list { padding: 6px; display: flex; flex-direction: column; }
.c-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; border-radius: var(--r-sm); text-align: left; width: 100%; }
.c-row:hover { background: var(--hover); }
.c-row + .c-row { border-top: 1px solid var(--line); border-radius: 0; }
.c-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-row-top { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.c-row-top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-row-time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; flex: none; }
.c-row-sub { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.row-hint .ico { width: 13px; height: 13px; flex: none; }
.row-hint.warn { color: var(--warn); font-weight: 600; }
.c-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.c-row.unread .c-row-top b { font-weight: 800; }
.c-row.unread .c-row-sub { color: var(--ink); font-weight: 500; }
.c-row.compact { padding: 10px 6px; }

/* ---------- Consultation room ---------- */
.view:has(> .view-inner > .room) { padding: 0; overflow: hidden; }
.view-inner:has(> .room) { max-width: none; height: 100%; display: block; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; min-height: 0; }
.room.no-side { grid-template-columns: minmax(0, 1fr); }
.room.no-side .room-side { display: none; }
.room-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.room-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.rh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rh-main b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-main span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.room-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 10px; overscroll-behavior: contain; }
.room-scroll.pad { padding: 24px; }
.room-side { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 4px 18px 24px; min-height: 0; }
.room-side.in-modal { border: 0; padding: 0; overflow: visible; background: none; }
.side-sec { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.side-sec:last-child { border-bottom: 0; }
.side-sec .sec-title { margin: 0; justify-content: space-between; }
.side-sec .totals { margin: 0; }
.side-sec .totals .grand dd { font-size: 18px; }
.side-person { display: flex; align-items: center; gap: 12px; }
.side-person > div { display: flex; flex-direction: column; min-width: 0; }
.side-person .muted { font-size: 12px; }

/* Request / payment state card */
.state-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-1); }
.state-card .dr-card { box-shadow: none; }
.sc-hero { display: flex; align-items: center; gap: 14px; }
.sc-hero h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.sc-hero p { font-size: 13px; margin-top: 2px; }
.sc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steps-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps-bar li { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); position: relative; padding-top: 4px; border-top: 3px solid var(--line); }
.steps-bar li span { display: none; }
.steps-bar li.done { color: var(--ink-2); border-color: var(--ink); }
.steps-bar li.now { color: var(--accent-text); border-color: var(--accent); }
.dr-note { margin: 0; display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.dr-note .ico { color: var(--ink-3); width: 16px; height: 16px; margin-top: 2px; }
.due-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.due-row.urgent { background: var(--warn-bg); color: var(--warn); }
.cc-box { padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.cc-box p { font-size: 16px; font-weight: 600; line-height: 1.4; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.cc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cc-meta .ico { width: 14px; height: 14px; }
.att-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hs { display: flex; flex-direction: column; }
.hs-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hs-row:last-child { border-bottom: 0; }
.hs-cat { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; }
.hs-cat .ico { width: 14px; height: 14px; }
.hs-val em { color: var(--ink-3); font-style: normal; }
.room-side .hs-row { grid-template-columns: 1fr; gap: 2px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; width: 100%; }
.chat-day { text-align: center; margin: 8px 0 2px; }
.chat-day span { font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--surface-3); padding: 3px 10px; border-radius: 999px; }
.chat-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; text-align: center; max-width: 92%; }
.chat-sys .ico { width: 13px; height: 13px; color: var(--accent-text); }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-time { font-size: 10.5px; color: var(--ink-3); padding: 0 4px; }
.bubble-msg { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble-msg { background: var(--accent); color: var(--accent-ink); border-color: transparent; border-radius: 16px; border-bottom-right-radius: 5px; }
.bubble-msg.voice { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.vplay { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; flex: none; }
.vplay .ico { width: 14px; height: 14px; }
.msg.mine .vplay { background: var(--accent-ink); color: var(--accent); }
.vplay.playing { animation: pulse-s 0.8s ease-in-out infinite alternate; }
@keyframes pulse-s { to { transform: scale(1.12); } }
.wave { display: flex; align-items: center; gap: 2px; flex: 1; }
.wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
.bubble-msg.voice em { font-style: normal; font-size: 12px; opacity: .8; }
.bubble-img { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); width: 220px; text-align: left; }
.bubble-img.sm { width: 64px; border-radius: 10px; }
.ph { display: grid; place-items: center; height: 150px; color: rgba(255,255,255,.85); background: linear-gradient(135deg, hsl(var(--h, 160) 30% 62%), hsl(calc(var(--h, 160) + 40) 35% 42%)); }
.bubble-img.sm .ph { height: 64px; }
.ph .ico { width: 28px; height: 28px; }
.ph.big { height: 260px; border-radius: var(--r); }
.bubble-img .cap { font-size: 12px; padding: 7px 10px; color: var(--ink-2); }
.photo-full { display: flex; flex-direction: column; gap: 12px; }
.doc-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 250px; text-align: left; box-shadow: var(--shadow-1); }
.doc-chip:hover { border-color: var(--ink); }
.doc-chip.voided { opacity: .65; }
.doc-chip-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc-chip-main b { font-size: 13.5px; }
.doc-chip-main span { font-size: 11.5px; color: var(--ink-3); }
.doc-open { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.doc-open .ico { width: 14px; height: 14px; }
.call-log { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.call-log > .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.call-log div { display: flex; flex-direction: column; font-size: 13px; }
.call-log span { font-size: 12px; color: var(--ink-3); }
.appt-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 270px; }
.appt-card > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.appt-card > div b { font-size: 13.5px; }
.appt-card > div span { font-size: 12px; color: var(--ink-3); }
.appt-date { width: 44px; height: 46px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.appt-date b { font-family: var(--font-display); font-size: 18px; }
.appt-date em { font-style: normal; font-size: 10px; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.done-card { max-width: 760px; margin: 14px auto 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--good-bg); }
.done-card > .ico { width: 22px; height: 22px; color: var(--good); }
.done-card > div { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.dr-tools { padding: 8px 18px 0; flex: none; background: var(--surface); border-top: 1px solid var(--line); }
.dr-tools .chip { flex: none; }
.done-chip { border-color: var(--ink); }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 10px 14px 12px; background: var(--surface); flex: none; }
.dr-tools + .composer { border-top: 0; }
.room-main > .room-scroll + .composer { border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line-2); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: 14px; line-height: 1.4; background: var(--surface-2); color: var(--ink); outline: 0; max-height: 120px; height: 42px; }
.composer textarea:focus { border-color: var(--ink); background: var(--surface); }
.composer .icon-btn { width: 42px; height: 42px; flex: none; color: var(--ink-2); }
.composer .icon-btn.rec { color: var(--crit); animation: pulse-s .6s infinite alternate; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.send-btn .ico { width: 18px; height: 18px; }
.composer.in-modal { padding: 0; width: 100%; background: none; }
.composer .quick { position: absolute; }
.sup-scroll { max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.sup-chat { max-width: none; }

/* Fee table */
.fee-table .grand dd { font-size: 22px; }
.fee-table .disc dd { color: var(--good); }
.tip-i { display: inline-grid; place-items: center; vertical-align: -2px; color: var(--ink-3); cursor: help; }
.tip-i .ico { width: 13px; height: 13px; }

/* Checkout + accept */
.pay-methods { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pay-methods .choice { padding: 12px 4px; font-size: 12px; text-align: center; }
.card-fields .field-row { margin-top: 0; }
.foot-note { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; }
.foot-note .ico { width: 14px; height: 14px; }
.success-check.warn { background: var(--warn); }
.btn-group.center { justify-content: center; }
.acc-sum { margin: 14px 0; }
.acc-sum .sp-total b { font-size: 34px; }
.add-row { display: flex; gap: 8px; }
.add-row .select { flex: 1; min-width: 0; }
.rx-list { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-edit { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.rx-edit > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rx-edit em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.rx-edit.hit { border-color: var(--crit); background: var(--crit-bg); }
.lab-pick .chip { font-size: 12.5px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-grid .opt { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.slot-grid .opt span { font-size: 15px; }

/* ---------- Clinical document paper ---------- */
.doc-modal { display: flex; flex-direction: column; gap: 12px; }
.paper.doc-paper { position: relative; background: #fff; color: #161616; border: 1px solid #e3e3e3; border-radius: 6px; padding: 26px 28px 18px; max-width: 640px; width: 100%; margin: 0 auto; font-size: 13px; line-height: 1.5; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); overflow: hidden; }
.dp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #161616; }
.dp-brand { display: flex; align-items: center; gap: 10px; }
.dp-mark { width: 38px; color: #0A1F1A; }
.dp-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.dp-brand b { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.dp-brand span { font-size: 11px; color: #666; }
.dp-type { text-align: right; display: flex; flex-direction: column; }
.dp-type b { font-size: 13px; letter-spacing: .12em; }
.dp-type span { font-family: var(--font-mono); font-size: 12px; color: #444; }
.dp-parties { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e6e6e6; }
.dp-parties > div { display: flex; flex-direction: column; }
.dp-parties > div:last-child { text-align: right; }
.dp-parties span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #777; }
.dp-parties b { font-size: 15px; }
.dp-parties em { font-style: normal; font-size: 12px; color: #555; }
.dp-dx { padding: 10px 0; font-size: 13px; border-bottom: 1px solid #e6e6e6; }
.dp-dx span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #777; margin-right: 10px; }
.dp-body { padding: 14px 0 6px; min-height: 120px; }
.rx-sym { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.rx-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.rx-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.rx-line b { font-size: 14px; }
.rx-line span { color: #555; }
.rx-qty { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: #333 !important; }
.rx-items em { font-style: normal; color: #333; font-size: 12.5px; }
.dp-note { margin-top: 12px; font-size: 12px; color: #555; font-style: italic; }
.dp-cert { font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.lab-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.lab-items li { display: flex; align-items: center; gap: 8px; }
.lab-box { width: 18px; height: 18px; border: 1.5px solid #161616; border-radius: 4px; display: grid; place-items: center; flex: none; }
.lab-box .ico { width: 13px; height: 13px; stroke-width: 3; }
.dp-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 14px; border-top: 1px solid #e6e6e6; margin-top: 8px; }
.dp-doc { display: flex; flex-direction: column; font-size: 11.5px; color: #444; }
.dp-doc b { font-size: 13.5px; color: #161616; border-top: 1px solid #161616; padding-top: 3px; margin-top: -4px; min-width: 200px; }
.sig { width: 170px; height: 44px; }
.dp-qr { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: #555; text-align: left; }
.dp-qr .qr { width: 84px; height: 84px; }
.dp-qr b { font-family: var(--font-mono); color: #161616; }
.dp-demo { margin-top: 12px; text-align: center; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #999; }
.doc-paper.voided .dp-body, .doc-paper.voided .dp-parties { opacity: .45; }
.doc-paper .r-stamp { top: 46%; }
.verify-box { display: flex; align-items: flex-end; gap: 8px; }
.verify-box .field { flex: 1; margin: 0; }
.verify-res { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); margin: 14px 0 8px; }
.verify-res > .ico { width: 26px; height: 26px; flex: none; }
.verify-res div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.verify-res b { font-size: 15px; }
.verify-res.ok { background: var(--good-bg); }
.verify-res.ok > .ico { color: var(--good); }
.verify-res.bad { background: var(--crit-bg); }
.verify-res.bad > .ico { color: var(--crit); }
.verify-res.sm { padding: 10px 12px; margin: 10px 0 0; }

/* ---------- Video call ---------- */
.vcall { position: fixed; inset: 0; z-index: 400; background: #0b0f0e; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; padding-top: var(--sim-top); }
.vcall.open { opacity: 1; }
.vc-remote { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 20px; }
.vc-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -88px; left: 50%; margin-left: -130px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); animation: glow 2.4s ease-in-out infinite; }
.vcall.live .vc-glow { animation: none; opacity: .5; }
@keyframes glow { 50% { transform: scale(1.15); opacity: .6; } }
.vc-remote .avatar { position: relative; width: 112px; height: 112px; font-size: 36px; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.vc-remote b { font-size: 20px; position: relative; }
.vc-state { font-size: 13px; color: rgba(255,255,255,.65); position: relative; }
.vc-top { position: absolute; top: calc(var(--sim-top) + var(--safe-top) + 16px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.vc-badge .ico { width: 13px; height: 13px; }
.vc-timer { font-size: 14px; background: rgba(255,255,255,.1); padding: 5px 10px; border-radius: 999px; }
.vc-self { position: absolute; right: 18px; bottom: calc(var(--safe-bottom) + 130px); width: 120px; height: 160px; border-radius: 16px; background: linear-gradient(160deg, #24302d, #121816); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7); }
.vc-self.off { background: #111; }
.vc-self.off .avatar { opacity: .3; }
.vc-controls { position: absolute; bottom: calc(var(--safe-bottom) + 44px); display: flex; gap: 18px; }
.vc-btn { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.vc-btn .ico { width: 24px; height: 24px; }
.vc-btn.off { background: #fff; color: #0b0b0b; }
.vc-btn.end { background: #e5484d; }
.vc-note { position: absolute; bottom: calc(var(--safe-bottom) + 14px); font-size: 11px; color: rgba(255,255,255,.45); }

/* ---------- Doctor app ---------- */
.accept-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); color: #fff; text-align: left; }
.accept-toggle > span:nth-child(2) { display: flex; flex-direction: column; }
.accept-toggle b { font-size: 14px; }
.accept-toggle em { font-style: normal; font-size: 11.5px; color: var(--chrome-ink-2); }
.at-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.accept-toggle.on .at-dot { background: #3fcf6c; box-shadow: 0 0 0 4px rgba(63,207,108,.2); }
.at-switch { width: 40px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.25); position: relative; margin-left: 6px; flex: none; }
.at-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.accept-toggle.on .at-switch { background: var(--accent); }
.accept-toggle.on .at-switch i { transform: translateX(16px); }
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agenda li { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border-bottom: 0; }
.agenda li.live { background: var(--accent-soft); border-radius: var(--r-sm); border-color: transparent; }
.agenda li.completed .ag-main, .agenda li.cancelled .ag-main { opacity: .6; }
.ag-time { width: 70px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; flex: none; display: flex; flex-direction: column; }
.ag-time em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.ag-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-main b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-main .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-act { display: flex; gap: 6px; flex: none; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ws-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ws-day em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.ws-day b { font-family: var(--font-display); font-size: 22px; }
.ws-day span { font-size: 11px; color: var(--ink-3); }
.ws-day.today b { color: var(--accent-text); }
.ws-day.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ws-day.active em, .ws-day.active span, .ws-day.active b { color: inherit; }
.bank-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--chrome), color-mix(in srgb, var(--accent) 55%, var(--chrome))); margin-bottom: 12px; min-height: 150px; justify-content: space-between; }
.bank-name { font-weight: 800; font-size: 16px; }
.bank-num { font-size: 18px; letter-spacing: .08em; }
.bank-holder { font-size: 11.5px; letter-spacing: .14em; opacity: .8; }
.sig-box { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.sig-box .muted { color: #666; }

/* ---------- Settings + inbox ---------- */
.set-switch { display: flex; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-switch:last-of-type { border-bottom: 0; }
.set-switch span { display: flex; flex-direction: column; white-space: normal; }
.set-switch b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.set-switch em { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.set-switch i { order: 2; margin-left: auto; }
.switch input:checked + i { background: var(--accent); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; max-height: 360px; overflow-y: auto; }
.spec-sw { padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec-sw span { display: flex; flex-direction: column; white-space: normal; }
.spec-sw b { color: var(--ink); font-weight: 600; font-size: 13px; }
.spec-sw em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.perm-table td, .perm-table th { padding: 8px 10px; }
.notif-list { padding: 6px; }
.notif-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 12px 10px 6px; }
.notif { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 10px; border-radius: var(--r-sm); text-align: left; position: relative; }
.notif:hover { background: var(--hover); }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-main b { font-weight: 600; font-size: 14px; }
.notif-main span { font-size: 13px; color: var(--ink-2); }
.notif-time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.notif.unread { background: var(--accent-soft); }
.notif.unread .notif-main b { font-weight: 800; }
.notif.unread::after { content: ''; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Admin ---------- */
.ver-card header { align-items: center; }
.ver-who { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; min-width: 0; }
.ver-who > div { display: flex; flex-direction: column; min-width: 0; }
.checklist { display: flex; flex-direction: column; margin-bottom: 10px; }
.checklist .check-row { margin-top: 0; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding-bottom: 8px; }
.file-tile .ph { height: 92px; }
.file-tile b, .file-tile span { padding: 0 10px; }
.file-tile b { font-size: 12.5px; }
.locked-box { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1.5px dashed var(--line-2); margin-top: 16px; flex-wrap: wrap; }
.locked-box > .ico { width: 24px; height: 24px; color: var(--ink-3); }
.locked-box > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.support-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.sp-list { padding: 6px; display: flex; flex-direction: column; max-height: calc(100vh - 220px); overflow-y: auto; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); text-align: left; width: 100%; }
.sp-row:hover { background: var(--hover); }
.sp-row.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.sp-row.unread .lr-main b { font-weight: 800; }
.sp-thread { display: flex; flex-direction: column; min-height: 420px; }
.sp-scroll { flex: 1; overflow-y: auto; max-height: 52vh; padding: 4px 2px 12px; }
.sp-thread .composer { flex-wrap: wrap; padding: 12px 0 0; border-top: 1px solid var(--line); }
.sp-thread .composer .quick { position: static; width: 100%; margin-bottom: 4px; }
.admin-chat { max-width: none; }
.admin-chat .msg { max-width: 92%; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1180px) {
  .room { grid-template-columns: minmax(0, 1fr); }
  .room .room-side { display: none; }
  .support-split { grid-template-columns: minmax(0, 1fr); }
  .sp-list { max-height: 300px; }
}
@media (max-width: 1024px) {
  .role-pill { background: var(--chrome-2); border-color: var(--chrome-line); color: #fff; height: 30px; font-size: 11.5px; }
  .role-pill .ico:last-child { color: var(--chrome-ink-2); }
  .room { height: calc(100% - var(--tabbar-h) - var(--safe-bottom)); }
  .dr-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .room-head { padding: 10px 12px; gap: 8px; }
  .room-head > .avatar { width: 34px; height: 34px; font-size: 12px; }
  .rh-actions .badge { display: none; }
  .rh-call span { display: none; }
  .rh-call { padding: 0 10px; }
  .room-scroll { padding: 14px 12px 8px; }
  .room-scroll.pad { padding: 14px 12px; }
  .state-card { padding: 16px; }
  .msg { max-width: 90%; }
  .dr-tools { padding: 8px 12px 0; }
  .composer { padding: 8px 10px 10px; }
  .hs-row { grid-template-columns: 1fr; gap: 2px; }
  .pay-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .paper.doc-paper { padding: 18px 16px 14px; font-size: 12px; }
  .dp-parties { grid-template-columns: 1fr; gap: 8px; }
  .dp-parties > div:last-child { text-align: left; }
  .dp-foot { flex-direction: column; align-items: flex-start; }
  .lab-items { grid-template-columns: 1fr; }
  .rx-qty { margin-left: 0; }
  .dp-head { flex-direction: column; gap: 8px; }
  .dp-type { text-align: left; }
  .spec-list { grid-template-columns: 1fr; }
  .week-strip { gap: 4px; }
  .ws-day { padding: 8px 2px; }
  .ws-day b { font-size: 17px; }
  .ws-day span { display: none; }
}
@media (max-width: 640px) {
  .role-pill { display: none; }
  .hero-search { flex-wrap: wrap; padding: 6px; }
  .hero-search input { padding-left: 4px; }
  .hs-ico { display: none; }
  .hero-search .btn { width: 100%; }
  .attn-grid, .dr-grid, .hist-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spec-tile { padding: 12px; }
  .dr-hero { padding: 16px; }
  .dr-hero-main { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dr-hero-main h2 { font-size: 22px; }
  .dr-stats { grid-template-columns: 1fr 1fr 1fr; }
  .dr-stats b { font-size: 13px; }
  .c-row-side .badge { font-size: 10.5px; padding: 2px 6px; }
  .c-row-side .badge .ico { display: none; }
  .bubble-img { width: 180px; }
  .doc-chip, .appt-card { min-width: 0; }
  .appt-card { flex-wrap: wrap; }
  .vc-self { width: 92px; height: 124px; bottom: calc(var(--safe-bottom) + 124px); }
  .file-grid { grid-template-columns: 1fr 1fr; }
  .slot-grid { grid-template-columns: 1fr 1fr; }
  .verify-box { flex-direction: column; align-items: stretch; }
  .accept-toggle { width: 100%; }
  .bubble-msg.voice { min-width: 170px; }
}

/* Print: only the document */
@media print {
  #print-root .paper.doc-paper { box-shadow: none; border: 0; max-width: none; }
}

/* Fixes after first visual pass */
.entity-card footer > .btn-group { flex-direction: row; flex-wrap: nowrap; }
.spec-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
/* Room on tablet/phone: pin between the dark header and the tab bar */
@media (max-width: 1024px) {
  .room { position: fixed; z-index: 5; left: 0; right: 0; top: calc(var(--sim-top) + 56px + var(--safe-top)); bottom: calc(var(--tabbar-h) + var(--safe-bottom)); height: auto; }
  .room-head .icon-btn { color: var(--ink-2); }
  .room-head .icon-btn:hover { background: var(--hover); color: var(--ink); }
}
/* Admin dashboard bar charts need room for labels */
.view-admin .hbar { grid-template-columns: minmax(120px, 46%) minmax(0, 1fr) auto; }
.rx-edit .rx-l1 { display: block; }
@media (max-width: 1024px) {
  /* leave space under the composer for the raised centre logo button */
  .room .composer { padding-bottom: 30px; }
}
