@import url("./brand-tokens.css");

@font-face { font-family: "Harness Sans"; src: url("./fonts/Manrope-Variable.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Harness Serif"; src: url("./fonts/Newsreader-Variable.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: light;
  --ink: #14201a;
  --muted: #66736c;
  --faint: #8c978f;
  --line: #dce4de;
  --paper: #f5f4ec;
  --white: #fffefa;
  --forest: #153f31;
  --forest-deep: #0b2b20;
  --mint: #dceadf;
  --lime: #c8e54a;
  --danger: #a53c35;
  --danger-soft: #f9e5e1;
  --sans: "Harness Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Harness Serif", Georgia, serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.marketing { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 85% 10%, rgba(200,229,74,.14), transparent 26%), var(--paper); }
.marketing-nav, .marketing-footer { width: min(1180px, calc(100% - 48px)); margin: auto; }
.marketing-nav { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(21,63,49,.13); }
.marketing-actions { display: flex; align-items: center; gap: 9px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 17px; letter-spacing: -.03em; }
.wordmark img { width: 37px; height: 37px; border-radius: 11px; }
.wordmark strong { color: var(--forest); }
.button { min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 760; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-primary { background: var(--forest); color: white; box-shadow: 0 8px 24px rgba(12,51,37,.14); }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary { border-color: #bdc9c1; background: rgba(255,255,255,.48); color: var(--forest); }
.button-ghost { min-height: 38px; background: transparent; border-color: #c7d1ca; color: var(--forest); }
.button-report { min-height: 38px; border-color: rgba(21,63,49,.16); background: var(--lime); color: var(--forest-deep); box-shadow: none; }
.button-report:hover { background: #d4eb70; }
.button-danger { width: 100%; margin-top: 18px; border-color: #e6c4be; color: var(--danger); background: #fff8f6; }

.hero { width: min(1180px, calc(100% - 48px)); min-height: 680px; margin: auto; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(44px, 7vw, 100px); padding: 70px 0 86px; }
.hero-copy { position: relative; z-index: 2; }
.kicker, .section-label, .eyebrow, .nav-label { margin: 0; color: #6d7971; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--forest); }
.kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,229,74,.25); }
.hero h1 { max-width: 650px; margin: 24px 0 22px; font: 500 clamp(52px, 6.5vw, 84px)/.94 var(--serif); letter-spacing: -.055em; }
.hero-lede { max-width: 570px; margin: 0; color: #536159; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin: 18px 0 0; color: var(--faint); font-size: 12px; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; width: 420px; height: 420px; right: -60px; top: -85px; border-radius: 50%; border: 1px solid rgba(21,63,49,.12); box-shadow: inset 0 0 0 80px rgba(255,255,255,.13); pointer-events: none; }
.preview-window { position: relative; z-index: 1; min-height: 470px; border: 1px solid #bdc9c1; border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: 0 34px 80px rgba(31,54,42,.17); transform: rotate(1.2deg); }
.preview-top { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); background: #f6f7f1; color: var(--muted); font-size: 11px; }
.preview-top i { width: 8px; height: 8px; border-radius: 50%; background: #cbd4cd; }
.preview-top i:first-child { background: #e4a89d; }
.preview-top span { margin-left: auto; }
.preview-grid { min-height: 422px; display: grid; grid-template-columns: 135px 1fr; }
.preview-rooms { padding: 25px 16px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 18px; background: #eff2ed; color: #748077; font-size: 11px; }
.preview-rooms b { color: var(--forest); }
.preview-chat { padding: 35px 26px 24px; display: grid; align-content: start; gap: 23px; }
.preview-message { display: flex; gap: 12px; align-items: start; }
.preview-message > i { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: var(--mint); color: var(--forest); font: 750 10px var(--sans); }
.preview-message p { margin: 0; display: grid; gap: 5px; color: #56635b; font-size: 11px; line-height: 1.45; }
.preview-message b { color: var(--ink); }
.preview-alert { margin-left: 47px; padding: 14px; border: 1px solid #e8c7c1; border-radius: 11px; display: grid; gap: 4px; background: #fff8f6; color: var(--danger); font-size: 11px; }
.preview-alert span { color: #906c65; }
.preview-composer { margin-top: 36px; padding: 14px; border: 1px solid #ccd6cf; border-radius: 11px; display: flex; justify-content: space-between; color: #909a93; font-size: 11px; }
.preview-composer b { padding: 5px 8px; margin: -5px; border-radius: 6px; background: var(--forest); color: white; }

.capabilities { width: min(1180px, calc(100% - 48px)); margin: 0 auto 120px; padding-top: 90px; border-top: 1px solid rgba(21,63,49,.15); }
.capabilities > div:first-child { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.capabilities h2 { max-width: 520px; margin: 10px 0 0; font: 500 clamp(36px, 5vw, 56px)/1 var(--serif); letter-spacing: -.045em; }
.capability-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cbd5ce; border-bottom: 1px solid #cbd5ce; }
.capability-grid article { min-height: 260px; padding: 28px 26px 34px 0; }
.capability-grid article + article { padding-left: 26px; border-left: 1px solid #cbd5ce; }
.capability-grid article > span { color: #9aa59d; font-size: 11px; }
.capability-grid h3 { margin: 52px 0 10px; font: 550 25px/1.1 var(--serif); }
.capability-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.marketing-footer { min-height: 88px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(21,63,49,.14); color: #7d8981; font-size: 11px; }
.footer-report { padding: 8px 0; border: 0; display: inline-flex; align-items: center; gap: 9px; background: transparent; color: var(--forest); font-size: 11px; font-weight: 780; }
.footer-report:hover { color: var(--forest-deep); }
.footer-report span { transition: transform .15s ease; }
.footer-report:hover span { transform: translateX(3px); }

.application { min-height: 100vh; display: grid; grid-template-columns: 278px minmax(0, 1fr); background: var(--white); }
.sidebar { min-width: 0; height: 100vh; padding: 25px 18px 18px; border-right: 1px solid #d9e1db; display: flex; flex-direction: column; background: #edf1ec; }
.sidebar-brand { padding: 0 8px; }
.environment-pill { margin: 24px 5px 27px; padding: 11px 12px; border: 1px solid #d0dbd3; border-radius: 9px; background: rgba(255,255,255,.6); color: #66746b; font-size: 10px; font-weight: 700; }
.environment-pill span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #39a371; box-shadow: 0 0 0 3px rgba(57,163,113,.12); }
.room-nav { min-height: 0; overflow: auto; }
.nav-label { margin: 0 9px 10px; }
.rooms { display: grid; gap: 4px; }
.room-button { width: 100%; padding: 10px; border: 0; border-radius: 9px; display: grid; grid-template-columns: 24px 1fr; gap: 4px; align-items: center; background: transparent; color: #5d6a62; text-align: left; }
.room-button:hover { background: rgba(255,255,255,.7); }
.room-button.active { background: var(--white); color: var(--forest-deep); box-shadow: 0 1px 4px rgba(22,55,39,.07); }
.room-icon { color: #94a098; font-size: 11px; font-weight: 800; }
.room-button > span:last-child { min-width: 0; display: grid; }
.room-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.room-button small { margin-top: 2px; color: #98a29b; font-size: 9px; text-transform: capitalize; }
.sidebar-actions { margin-top: auto; padding-top: 18px; border-top: 1px solid #d3ddd5; }
.sidebar-action { width: 100%; margin-bottom: 8px; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--forest); text-align: left; font-size: 11px; font-weight: 750; }
.sidebar-action:hover { background: rgba(255,255,255,.7); }
.profile-button { width: 100%; padding: 9px; border: 0; border-radius: 11px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; align-items: center; background: rgba(255,255,255,.55); text-align: left; }
.profile-button > span:nth-child(2) { min-width: 0; display: grid; }
.profile-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.profile-button small { color: var(--faint); font-size: 9px; text-transform: capitalize; }
.profile-button b { color: #9ba69e; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--forest); color: white; font-size: 10px; font-weight: 800; }

.chat-shell { min-width: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.chat-header { min-height: 106px; padding: 23px clamp(25px, 5vw, 68px) 19px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat-header h1 { margin: 4px 0 2px; font: 560 clamp(24px, 3vw, 31px)/1 var(--serif); letter-spacing: -.025em; }
.chat-header p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.room-state { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 7px; color: var(--forest); }
.room-state > span { width: 7px; height: 7px; border-radius: 50%; background: #38a671; box-shadow: 0 0 0 4px rgba(56,166,113,.12); }
.room-state > span.closed { background: #a6afa8; box-shadow: none; }
.room-state b { font-size: 11px; }
.room-state small { grid-column: 2; color: var(--faint); font-size: 9px; }
.room-state button { grid-column: 1 / -1; margin-top: 8px; padding: 5px 8px; border: 1px solid #d2dbd4; border-radius: 7px; background: white; color: var(--muted); font-size: 9px; }
.messages { min-height: 0; overflow-y: auto; padding: 28px clamp(25px, 5vw, 68px); scroll-behavior: smooth; }
.empty-state { min-height: 100%; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-state > span { color: var(--forest); font-size: 25px; }
.empty-state h2 { margin: 12px 0 5px; font: 560 22px/1.1 var(--serif); color: var(--ink); }
.empty-state p { margin: 0; font-size: 11px; }
.message { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.message + .message { border-top: 1px solid #f0f2ed; }
.message-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--forest); font-size: 10px; font-weight: 800; }
.message-content { min-width: 0; }
.message-meta { display: flex; align-items: baseline; gap: 9px; }
.message-meta strong { font-size: 12px; }
.message-meta time { color: #9da69f; font-size: 9px; }
.message-body { margin: 5px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; color: #36453d; font-size: 13px; line-height: 1.58; }
.reply-preview { max-width: 600px; margin: 5px 0 8px; padding: 7px 10px; border-left: 2px solid #90b19c; border-radius: 0 7px 7px 0; background: #f5f8f4; color: #728078; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-media { width: min(460px, 100%); margin: 8px 0 10px; }
.message-media img { display: block; width: 100%; max-height: 320px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: #eef1ed; }
.message-media figcaption { margin-top: 6px; color: var(--faint); font-size: 9px; }
.quarantine-card { width: min(460px, 100%); margin: 8px 0; padding: 13px; border: 1px dashed #dfbdb7; border-radius: 10px; background: #fff8f5; color: var(--danger); font-size: 10px; }
.message-actions { min-height: 20px; opacity: 0; display: flex; gap: 7px; transition: opacity .15s ease; }
.message:hover .message-actions, .message:focus-within .message-actions { opacity: 1; }
.message-actions button, .row-actions button { padding: 4px 7px; border: 0; border-radius: 6px; background: transparent; color: #78847c; font-size: 9px; font-weight: 700; }
.message-actions button:hover, .row-actions button:hover { background: #f2f4f0; color: var(--ink); }
.danger-link { color: var(--danger) !important; }
.report-link { color: #9a5d1d !important; }
.report-link:hover { background: #fff5e7 !important; color: #76430f !important; }

.composer-wrap { padding: 12px clamp(25px, 5vw, 68px) 22px; border-top: 1px solid var(--line); background: rgba(255,254,250,.96); }
.composer { border: 1px solid #cbd5ce; border-radius: 14px; overflow: hidden; background: #fbfcf8; box-shadow: 0 7px 24px rgba(19,53,37,.05); }
.composer:focus-within { border-color: #86a491; box-shadow: 0 0 0 3px rgba(21,63,49,.07), 0 7px 24px rgba(19,53,37,.05); }
.composer textarea { width: 100%; max-height: 180px; padding: 13px 15px 5px; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font-size: 12px; line-height: 1.5; }
.composer-footer { padding: 7px 9px 9px 12px; display: flex; align-items: center; justify-content: space-between; }
.composer-tools { display: flex; align-items: center; gap: 8px; color: #99a39c; }
.composer-tools > span { font-size: 9px; }
.composer-tools select { max-width: 180px; padding: 5px 7px; border: 1px solid #d7ded8; border-radius: 7px; background: white; color: #77837b; font-size: 9px; }
.upload-button { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #edf2ed; color: var(--forest); font-weight: 800; cursor: pointer; }
.upload-button input { display: none; }
.send-button { padding: 8px 12px; border: 0; border-radius: 8px; background: var(--forest); color: white; font-size: 10px; font-weight: 800; }
.send-button:disabled { opacity: .45; }
.reply-bar, .media-preview { margin: 0 4px; padding: 8px 11px; border: 1px solid #d7e0d9; border-bottom: 0; border-radius: 10px 10px 0 0; display: flex; align-items: center; justify-content: space-between; background: #eef4ed; color: var(--muted); font-size: 10px; }
.reply-bar button, .media-preview button { border: 0; background: transparent; color: var(--muted); }
.media-preview { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
.media-preview strong { color: var(--forest); }
.notice { min-height: 15px; margin: 6px 2px 0; color: var(--danger); font-size: 10px; }
.notice[data-kind="success"] { color: #26724f; }
.notice[data-kind="info"] { color: var(--muted); }

dialog { padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--white); box-shadow: 0 30px 100px rgba(10,34,24,.3); }
dialog::backdrop { background: rgba(10,29,21,.52); backdrop-filter: blur(4px); }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f2ee; color: #69766d; font-size: 19px; }
.auth-dialog { width: min(460px, calc(100% - 28px)); padding: 34px; }
.auth-dialog > .dialog-close { position: absolute; top: 18px; right: 18px; }
.report-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; }
.report-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.report-dialog-header { position: sticky; z-index: 2; top: 0; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 24px; background: rgba(255,254,250,.96); backdrop-filter: blur(14px); }
.report-dialog-header h2 { margin: 6px 0 5px; font: 560 30px/1.05 var(--serif); letter-spacing: -.03em; }
.report-dialog-header p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.report-widget-host { min-height: 420px; padding: 18px; background: #eef2ed; }
.report-widget-host safest-report { display: block; width: 100%; min-height: 420px; }
.auth-intro h2, .dialog-header h2 { margin: 8px 0 7px; font: 560 30px/1.05 var(--serif); letter-spacing: -.03em; }
.auth-intro > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-tabs, .admin-tabs { margin: 25px 0 19px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 9px; background: #eff2ee; }
.auth-tabs button, .admin-tabs button { padding: 8px; border: 0; border-radius: 7px; background: transparent; color: #758078; font-size: 10px; font-weight: 750; }
.auth-tabs button.active, .admin-tabs button.active { background: white; color: var(--forest); box-shadow: 0 1px 4px rgba(20,49,35,.08); }
.stacked-form { display: grid; gap: 14px; }
.stacked-form label { display: grid; gap: 6px; color: #56635b; font-size: 10px; font-weight: 750; }
.stacked-form input { width: 100%; padding: 11px 12px; border: 1px solid #cfd8d1; border-radius: 9px; outline: 0; background: white; color: var(--ink); font-size: 12px; }
.stacked-form input:focus { border-color: #7b9c88; box-shadow: 0 0 0 3px rgba(21,63,49,.07); }
.stacked-form label small { color: var(--faint); font-weight: 400; }
.panel-dialog { width: min(500px, calc(100% - 28px)); padding: 30px; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 25px; margin-bottom: 24px; }
.admin-dialog { width: min(1060px, calc(100% - 28px)); height: min(800px, calc(100dvh - 28px)); padding: 28px; overflow: hidden; }
.admin-dialog[open] { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.admin-stats article { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf7; display: grid; gap: 3px; }
.admin-stats strong { font: 560 25px/1 var(--serif); }
.admin-stats span { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.admin-tabs { width: 330px; grid-template-columns: repeat(3, 1fr); margin: 18px 0 13px; }
.admin-content { min-height: 0; overflow: auto; border-top: 1px solid var(--line); }
.loading { padding: 25px 0; color: var(--faint); font-size: 11px; }
.admin-list { display: grid; }
.admin-row { padding: 14px 3px; border-bottom: 1px solid #e9ede9; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.admin-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.admin-row strong { font-size: 11px; }
.admin-row span, .admin-row small { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 9px; }
.row-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 3px; }
.audit-list { display: grid; }
.audit-list article { padding: 13px 3px; border-bottom: 1px solid #e9ede9; display: grid; grid-template-columns: 150px 190px 1fr; gap: 8px 16px; align-items: baseline; }
.audit-list time, .audit-list span { color: var(--faint); font-size: 9px; }
.audit-list strong { font-size: 10px; }
.audit-list p { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: 9px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(54px, 11vw, 82px); }
  .hero-visual { max-width: 680px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article:nth-child(3) { border-top: 1px solid #cbd5ce; border-left: 0; padding-left: 0; }
  .capability-grid article:nth-child(4) { border-top: 1px solid #cbd5ce; }
  .application { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .marketing-nav, .marketing-footer, .hero, .capabilities { width: min(100% - 28px, 1180px); }
  .marketing-nav { height: 70px; }
  .marketing-actions { gap: 5px; }
  .marketing-actions .button { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .hero { min-height: auto; padding: 62px 0 70px; gap: 60px; }
  .hero h1 { font-size: clamp(48px, 16vw, 68px); }
  .hero-lede { font-size: 16px; }
  .preview-grid { grid-template-columns: 92px 1fr; }
  .preview-rooms { padding-inline: 10px; }
  .preview-chat { padding-inline: 14px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article + article, .capability-grid article:nth-child(3) { min-height: 210px; padding: 26px 0; border-left: 0; border-top: 1px solid #cbd5ce; }
  .capability-grid article:first-child { border-top: 0; }
  .capability-grid h3 { margin-top: 35px; }
  .marketing-footer { padding: 20px 0; gap: 15px; align-items: start; flex-direction: column; }
  .report-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .report-dialog-header { padding: 20px 16px 16px; }
  .report-dialog-header h2 { font-size: 26px; }
  .report-widget-host { padding: 8px; }
  .application { display: block; }
  .sidebar { height: auto; min-height: 0; padding: 11px 12px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
  .sidebar-brand span, .environment-pill, .nav-label, .sidebar-action { display: none; }
  .sidebar-brand img { width: 32px; height: 32px; }
  .room-nav { overflow-x: auto; }
  .rooms { display: flex; }
  .room-button { width: auto; min-width: 100px; padding: 7px 9px; grid-template-columns: auto 1fr; }
  .room-button small { display: none; }
  .sidebar-actions { margin: 0; padding: 0; border: 0; }
  .profile-button { width: 40px; padding: 2px; grid-template-columns: 1fr; background: transparent; }
  .profile-button > span:nth-child(2), .profile-button b { display: none; }
  .chat-shell { height: calc(100dvh - 57px); }
  .chat-header { min-height: 84px; padding: 15px 16px; }
  .chat-header p:last-child { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .messages { padding: 17px 16px; }
  .composer-wrap { padding: 9px 10px 12px; }
  .composer-tools select { width: 105px; }
  .message-actions { opacity: 1; }
  .admin-dialog { padding: 18px 14px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-tabs { width: 100%; }
  .admin-row { grid-template-columns: 1fr; }
  .row-actions { justify-content: start; }
  .audit-list article { grid-template-columns: 1fr; }
  .audit-list p { grid-column: auto; }
}
