/* ShpirtiChat Admin 2.18.0 — shared presentation, no account or policy behavior. */
:root {
    color-scheme: light;
    --canvas: #f3f6fa;
    --sidebar: #142138;
    --surface: #ffffff;
    --surface-raised: #f8fafc;
    --surface-hover: #edf3fc;
    --line: #dce4ee;
    --line-soft: #eaf0f6;
    --border: var(--line);
    --text: #1b2b45;
    --muted: #596b84;
    --subtle: #667892;
    --blue: #315fd9;
    --blue-strong: #315fd9;
    --blue-soft: #eef3ff;
    --green: #13764f;
    --amber: #8b6010;
    --red: #b82e47;
    --purple: #7249b1;
    --radius: 12px;
    --shadow: 0 2px 5px rgb(33 56 89 / 3%);
    --sidebar-width: 264px;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 160px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, fieldset, form { min-width: 0; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
button, input, select, textarea { max-width: 100%; }
input, select, textarea { color: var(--text); }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--text); }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset:disabled { opacity: .72; }
legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
[hidden], input[type="hidden"] { display: none !important; }
::selection { background: #c9d8ff; color: #172b4d; }
:focus-visible { outline: 3px solid #315fd9; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 12px 18px; border-radius: 8px; background: #ffffff; color: #173464; border: 1px solid var(--blue); font-weight: 600; }
.skip-link:focus { top: 16px; }
.text-muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.text-link, .table-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 13px; font-weight: 600; line-height: 1.5; }
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover, .table-link:hover { color: #214bb8; text-decoration: underline; text-underline-offset: 3px; }
.app-shell { min-height: 100vh; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; padding: 26px 16px 18px; background: var(--sidebar); color: #c9d4e5; border-right: 1px solid #25344e; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #3e506e transparent; scrollbar-width: thin; }
.sidebar :focus-visible { outline-color: #a5bfff; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 0 8px; width: fit-content; }
.brand-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #ffffff; background: #e53a60; font-size: 27px; line-height: 1; font-weight: 750; letter-spacing: -2px; padding-right: 2px; flex: 0 0 auto; }
.brand strong { display: block; color: #f5f8ff; font-size: 19px; font-weight: 700; letter-spacing: -.45px; line-height: 1.25; }
.brand small { display: block; margin-top: 4px; color: #a0b1cc; font-size: 11px; letter-spacing: .2px; }
.sidebar-nav { margin-top: 30px; }
.nav-dashboard { margin-bottom: 22px; }
.nav-group { margin: 0 0 8px; padding: 0; border: 0; }
.nav-group + .nav-group { margin-top: 4px; }
.nav-group-toggle { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 12px; color: #a9bbd5; font-size: 12px; font-weight: 650; border-radius: 8px; }
.nav-group-toggle::-webkit-details-marker { display: none; }
.nav-group-toggle::marker { content: ""; }
.nav-group-toggle:hover { color: #f5f8ff; background: #1c2c46; }
.nav-group-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-group-heading .icon { width: 17px; height: 17px; }
.nav-group-toggle > .icon, .nav-group-toggle > .nav-chevron { width: 15px; height: 15px; opacity: .8; transform: rotate(-90deg); transition: transform .16s; }
.nav-group[open] > .nav-group-toggle { color: #e2eaff; }
.nav-group[open] > .nav-group-toggle > .icon, .nav-group[open] > .nav-group-toggle > .nav-chevron { transform: rotate(0deg); }
.nav-label { padding: 0 12px 10px; color: #a9bbd5; font-size: 11px; font-weight: 650; letter-spacing: 1px; }
.nav-list { list-style: none; padding: 3px 0 8px; }
.nav-list li { margin: 2px 0; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; color: #bdcbe0; font-size: 13px; font-weight: 500; line-height: 1.5; transition: background-color .15s, color .15s; }
.nav-group .nav-link { margin-left: 13px; padding-left: 13px; }
.nav-link > span { min-width: 0; }
.nav-link .icon { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { color: #ffffff; background: #20314d; }
.nav-link.is-active { background: #2b466d; border-color: #375782; color: #ffffff; font-weight: 600; }
.nav-link.is-active .icon { color: #bfd1ff; opacity: 1; }
.nav-active-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #bfd1ff; flex: 0 0 auto; }
.sidebar-chat-link { border-top: 1px solid #2a3a54; margin: 20px 8px 0; padding-top: 15px; }
.sidebar-chat-link a { display: flex; align-items: center; gap: 11px; padding: 10px 4px; color: #bbcbe0; font-size: 13px; }
.sidebar-chat-link a:hover { color: #ffffff; }
.sidebar-chat-link .icon { width: 17px; height: 17px; }
.sidebar-footer { margin-top: auto; padding-top: 24px; }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 16px 8px; border-top: 1px solid #2a3a54; }
.sidebar-account > div { min-width: 0; }
.sidebar-account strong { display: block; color: #e8effa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 165px; font-size: 13px; font-weight: 600; }
.sidebar-account > div > span { display: block; color: #a0b2cd; font-size: 12px; }
.sidebar .avatar { background: #2b405e; border-color: #3a5174; color: #dce7fb; }
.logout-form .button { justify-content: flex-start; padding-left: 12px; color: #c5d1e5; }
.logout-form .button:hover { background: #243750; color: #ffffff; }
.logout-form .icon { width: 17px; height: 17px; }
.console-version { margin: 14px 0 0; color: #95a9c6; font-size: 11px; text-align: center; }
.main-shell { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 40; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 32px; background: #ffffff; border-bottom: 1px solid var(--line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left { flex: 1 1 auto; }
.topbar-right { flex: 0 0 auto; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-user-copy { display: grid; gap: 1px; min-width: 0; }
.breadcrumb { color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb-divider { color: #a4b1c3; font-size: 16px; }
.breadcrumb-current { font-size: 13px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.console-label .icon { width: 16px; height: 16px; color: #7185a4; }
.topbar-divider { align-self: stretch; border-left: 1px solid var(--line); margin: 4px; }
.topbar-right .avatar { width: 32px; height: 32px; font-size: 12px; }
.topbar-name { font-size: 13px; color: #34465f; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle, .sidebar-close { display: none !important; }
.nav-backdrop { display: none; }
.main-content { padding: 30px 32px 0; max-width: 1640px; margin: 0 auto; }
.main-content:focus { outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { color: #586c88; letter-spacing: 1.4px; font-size: 11px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.page-heading h1 { font-size: clamp(28px, 2.2vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.9px; overflow-wrap: anywhere; }
.page-description { color: var(--muted); margin-top: 10px; font-size: 14px; line-height: 1.65; max-width: 760px; }
.heading-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 1px; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #ffffff; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: normal; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--blue-strong); border-color: var(--blue-strong); box-shadow: 0 2px 3px rgb(49 95 217 / 9%); }
.button-primary:hover { background: #244cbb; border-color: #244cbb; }
.button-secondary { background: #ffffff; border-color: #ccd7e5; color: #34465f; }
.button-secondary:hover { background: #f5f8fc; border-color: #a5b6ce; }
.button-quiet { background: transparent; border-color: transparent; color: #526681; }
.button-quiet:hover { background: #edf3fb; color: #214bb8; }
.button-danger { background: #b82e47; color: #ffffff; border-color: #b82e47; }
.button-danger:hover { background: #9f2239; border-color: #9f2239; }
.button-small { min-height: 36px; padding: 6px 11px; font-size: 12px; }
.button-full { width: 100%; }
.is-disabled { opacity: .5; pointer-events: none; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { background: #edf3fb; color: #244cbb; }
.avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #edf2fd; border: 1px solid #d7e2f6; color: #3e63a4; font-size: 13px; font-weight: 650; flex: 0 0 auto; }
.avatar-large { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 25px; }
.stat-card { display: block; padding: 22px 24px 20px; background: var(--surface); border: 1px solid #d9e2ed; border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, background-color .15s; }
.stat-card:hover { border-color: #a5bce9; background: #ffffff; box-shadow: 0 5px 18px rgb(32 57 93 / 7%); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: #34465f; font-size: 14px; font-weight: 500; }
.stat-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; background: #f5f8fc; color: #34465f; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon-online { color: #16734f; background: #eef9f3; }
.stat-icon-rooms { color: #7148ad; background: #f5f0fb; }
.stat-icon-staff { color: #896016; background: #fff8e9; }
.stat-value { display: block; font-size: 36px; letter-spacing: -1.1px; font-weight: 650; line-height: 1.2; margin: 11px 0 12px; font-variant-numeric: tabular-nums; }
.stat-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #52637c; }
.stat-note .icon { width: 14px; height: 14px; color: #52637c; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 23px; margin-bottom: 23px; align-items: start; }
.equal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; align-items: start; }
:where(.dashboard-grid, .equal-grid, .detail-grid, .settings-layout, .settings-field-grid, .form-columns, .private-filter-grid, .dashboard-shortcuts, .dashboard-workspaces) > * { min-width: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 23px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-header h2 { font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: -.15px; }
.panel-header p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.panel-body, .panel-form { padding: 23px; }
.main-content > .panel + .panel { margin-top: 24px; }
.panel-stack { display: grid; gap: 23px; align-content: start; min-width: 0; }
.panel-bottom { padding: 15px 22px 22px; }
.section-space { margin-bottom: 24px; }
.section-space-top { margin-top: 24px; }
.table-scroll, .table-wrap { overflow-x: auto; width: 100%; max-width: 100%; min-width: 0; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b7c5d9 transparent; }
:is(.data-table, .table-wrap > table) { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
:is(.data-table, .table-wrap > table) th { padding: 13px 22px; color: #52637c; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; background: #f5f8fc; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
:is(.data-table, .table-wrap > table) td { padding: 15px 22px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
:is(.data-table, .table-wrap > table) tbody tr:last-child td { border-bottom: 0; }
:is(.data-table, .table-wrap > table) tbody tr:hover { background: #f5f8fc; }
:is(.data-table, .table-wrap > table) .table-action { padding-left: 10px; text-align: right; }
.person { display: flex; align-items: center; gap: 11px; min-width: 140px; }
.person-copy { min-width: 0; }
.person-name { display: block; color: #172b4d; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
a.person-name:hover { color: #34465f; }
.person-detail { display: block; color: #52637c; font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; line-height: 1.35; }
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge-neutral { color: #34465f; background: #f5f8fc; border-color: #d9e2ed; }
.badge-blue { color: #34465f; background: #f5f8fc; border-color: #d9e2ed; }
.badge-green { color: #16734f; background: #eef9f3; border-color: #b9dfce; }
.badge-amber { color: #896016; background: #fff8e9; border-color: #ead5a9; }
.badge-red { color: #b4233e; background: #fff2f4; border-color: #efb9c2; }
.badge-purple { color: #7148ad; background: #f5f0fb; border-color: #d8c7ee; }
.badge-group { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.moderation-summary { padding: 5px 22px 1px; }
.summary-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row > span { display: flex; align-items: center; gap: 10px; color: #34465f; }
.summary-row strong { margin-left: auto; font-size: 16px; font-weight: 600; }
.summary-row .icon { width: 14px; height: 14px; color: #52637c; }
.summary-row:hover > span { color: var(--text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dot-red { background: #c23b55; box-shadow: 0 0 0 4px rgb(239 142 158 / 7%); }
.dot-amber { background: #be8426; box-shadow: 0 0 0 4px rgb(232 189 116 / 7%); }
.dot-blue { background: #517bd7; box-shadow: 0 0 0 4px rgb(128 172 255 / 7%); }
.activity-feed { padding: 0 23px; list-style: none; }
.activity-feed li { display: flex; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.activity-feed li:last-child { border-bottom: 0; }
.activity-symbol { width: 31px; height: 31px; display: grid; place-items: center; background: #f5f8fc; border: 1px solid #d9e2ed; border-radius: 9px; color: #34465f; flex: 0 0 auto; }
.activity-symbol .icon { width: 15px; height: 15px; }
.activity-title { font-size: 14px; font-weight: 600; }
.activity-meta { color: #52637c; font-size: 12px; margin-top: 4px; }
.content-stat { display: flex; gap: 14px; align-items: center; padding: 18px 23px; border-bottom: 1px solid var(--line-soft); }
.content-stat:last-child { border-bottom: 0; }
.content-stat-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #f5f8fc; color: #34465f; }
.content-stat-icon .icon { width: 18px; height: 18px; }
.content-stat > div { display: flex; width: 100%; gap: 12px; align-items: center; justify-content: space-between; }
.content-stat > div > span { color: #34465f; font-size: 14px; }
.content-stat strong { color: #172b4d; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 42px 26px; }
.empty-icon { margin: 0 auto 13px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #f5f8fc; color: #52637c; }
.empty-icon .icon { width: 22px; height: 22px; }
.empty-state h3 { font-size: 14px; font-weight: 600; }
.empty-state p { max-width: 350px; margin: 7px auto 0; font-size: 14px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; flex: 1 1 260px; }
.search-field > .icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); width: 17px; height: 17px; color: #52637c; pointer-events: none; }
.search-field input { padding-left: 40px; }
.filter-select { flex: 0 1 180px; }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d9e2ed; border-radius: 8px; background: #f5f8fc; color: #172b4d; font-size: 14px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
.search-field input[type="search"] { padding-left: 40px; }
input:hover, textarea:hover, select:hover { border-color: #a9b7cc; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 3px rgb(49 95 217 / 10%); }
input::placeholder, textarea::placeholder { color: #52637c; opacity: 1; }
textarea { display: block; resize: vertical; min-height: 100px; }
select { padding-right: 28px; }
input[type="checkbox"] { width: 17px; height: 17px; min-width: 17px; accent-color: var(--blue-strong); margin: 1px 0 0; }
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; margin-bottom: 8px; color: #172b4d; font-size: 14px; font-weight: 600; }
.field-help { margin: 7px 0 0; font-size: 13px; color: #52637c; }
.label-optional { color: #52637c; margin-left: 5px; font-size: 12px; font-weight: 400; }
.confirm-field { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 14px; border: 1px solid #d9e2ed; border-radius: 8px; background: #f5f8fc; color: #34465f; font-size: 14px; }
.confirm-field input { margin-top: 2px; }
.confirm-field strong { color: #172b4d; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 23px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 21px; border-top: 1px solid var(--line); }
.pagination > p { color: #52637c; font-size: 13px; }
.pagination strong { color: #34465f; font-weight: 500; }
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.equal-grid .pagination { flex-wrap: wrap; gap: 10px; }
.equal-grid .pagination-controls { margin-left: auto; }
.room-pagination { margin-top: 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.room-pagination .pagination { border-top: 0; }
.page-position { color: #34465f; font-size: 13px; min-width: 34px; text-align: center; }
.detail-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.3fr); gap: 23px; align-items: start; }
.member-profile { display: flex; align-items: center; gap: 17px; padding: 25px; border-bottom: 1px solid var(--line); }
.member-profile h2 { font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.member-profile p { color: #52637c; font-size: 13px; margin-top: 4px; }
.detail-list { padding: 8px 24px; }
.detail-list > div { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: #52637c; font-size: 13px; }
.detail-list dd { color: #172b4d; margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.inline-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 23px 23px; padding: 14px; background: #f5f8fc; border: 1px solid #d9e2ed; border-radius: 8px; color: #34465f; font-size: 13px; }
.inline-note .icon { width: 16px; height: 16px; margin-top: 1px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.room-card { display: flex; flex-direction: column; padding: 23px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.room-symbol { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #f5f8fc; border: 1px solid #d9e2ed; color: #34465f; }
.room-id { color: #52637c; font-size: 13px; }
.room-card h2 { font-size: 18px; font-weight: 650; letter-spacing: -.4px; overflow-wrap: anywhere; }
.room-card h2 a:hover { color: #34465f; }
.room-topic { margin: 10px 0 22px; color: #52637c; font-size: 14px; min-height: 56px; overflow-wrap: anywhere; white-space: pre-line; }
.room-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #52637c; font-size: 12px; margin-top: auto; margin-bottom: 22px; }
.room-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.room-meta .icon { width: 14px; height: 14px; }
.info-panel { padding: 26px; }
.info-panel-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 20px; background: #f5f8fc; color: #34465f; border-radius: 12px; }
.info-panel h2 { font-size: 16px; font-weight: 650; }
.info-panel > p { color: #34465f; font-size: 14px; margin-top: 11px; }
.info-panel .inline-note { margin: 21px 0 0; }
.item-list { padding: 0 22px; list-style: none; }
.item-list > li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.item-list > li:last-child { border-bottom: 0; }
.list-item-name { display: flex; gap: 11px; align-items: center; min-width: 0; }
.list-item-name .icon { width: 16px; height: 16px; color: #52637c; }
.list-item-name code { color: #34465f; font-size: 14px; overflow-wrap: anywhere; }
.inline-form { margin: 0; }
.inline-confirm { text-align: right; font-size: 13px; }
.inline-confirm summary { color: #34465f; cursor: pointer; padding: 8px 5px; }
.inline-confirm[open] { flex: 1; max-width: 230px; }
.inline-confirm .inline-form { text-align: left; padding: 12px; background: #f5f8fc; border: 1px solid #d9e2ed; border-radius: 8px; }
.inline-confirm .button { margin-top: 11px; width: 100%; }
.compact-confirm { display: flex; align-items: flex-start; gap: 9px; color: #34465f; font-size: 13px; }
.restriction-filter-links { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 16px 22px; border-top: 1px solid var(--line); color: #52637c; font-size: 13px; }
.restriction-filter-links a { color: #34465f; }
.restriction-filter-links a:hover { color: #172b4d; }
.word-filter-form { padding: 20px 22px; display: flex; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.word-filter-form .field { flex: 1; margin: 0; min-width: 0; }
.filter-word { color: #172b4d; font-size: 14px; overflow-wrap: anywhere; }
.filter-list > li { padding: 9px 0; }
.setting-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.setting-toggle:first-child { padding-top: 0; }
.setting-toggle:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-toggle-copy strong { display: block; color: #172b4d; font-size: 14px; font-weight: 600; }
.setting-toggle-copy > span { display: block; margin-top: 5px; color: #52637c; font-size: 13px; }
.switch { display: inline-flex; position: relative; width: 41px; height: 24px; flex: 0 0 auto; }
.switch input[type="checkbox"] { position: absolute; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 1; cursor: pointer; }
.switch-track { display: block; width: 41px; height: 24px; border-radius: 20px; background: #b1bdce; border: 1px solid #96a5ba; transition: background-color .15s; }
.switch-track::after { content: ""; display: block; width: 16px; height: 16px; background: #ffffff; border-radius: 50%; position: absolute; top: 4px; left: 4px; transition: transform .15s; }
.switch input:checked + .switch-track { background: #315fd9; border-color: #315fd9; }
.switch input:checked + .switch-track::after { transform: translateX(17px); background: #ffffff; }
.switch input:focus-visible + .switch-track { outline: 3px solid #315fd9; outline-offset: 4px; }
.field-after-toggles { margin-top: 23px; }
.settings-tip { display: flex; align-items: flex-start; gap: 11px; padding: 20px 5px; font-size: 13px; color: #52637c; }
.settings-tip .icon { width: 16px; height: 16px; margin-top: 1px; }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; margin-top: 24px; border: 1px solid #d9e2ed; border-radius: 11px; background: #f5f8fc; }
.save-bar p { color: #34465f; font-size: 14px; }
.notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 23px; padding: 16px 18px; border-radius: 10px; border: 1px solid; font-size: 14px; overflow-wrap: anywhere; }
.notice > .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice strong { display: block; font-size: 14px; margin-bottom: 3px; }
.notice p { margin: 0; }
.notice ul { padding-left: 18px; margin-top: 4px; }
.notice-error { color: #b4233e; background: #fff2f4; border-color: #efb9c2; }
.notice-success { color: #16734f; background: #eef9f3; border-color: #b9dfce; }
.notice-info { color: #172b4d; background: #f5f8fc; border-color: #d9e2ed; }
.audit-action { display: inline-flex; align-items: center; gap: 9px; min-width: 160px; color: #172b4d; }
.audit-action .icon { width: 15px; height: 15px; color: #52637c; }
.audit-details { min-width: 95px; }
.audit-details summary { color: #34465f; cursor: pointer; font-size: 13px; }
.audit-details pre { margin: 12px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #f5f8fc; color: #34465f; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 360px; font-size: 12px; line-height: 1.6; }
.system-summary { display: flex; gap: 17px; align-items: center; padding: 22px; border: 1px solid #b9dfce; border-radius: 12px; background: linear-gradient(90deg, #f5f8fc, #f5f8fc); margin-bottom: 24px; }
.system-summary-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #b9dfce; background: #eef9f3; color: #16734f; border-radius: 12px; flex: 0 0 auto; }
.system-summary h2 { font-size: 16px; font-weight: 600; }
.system-summary p { margin-top: 4px; color: #16734f; font-size: 14px; }
.system-summary-warn { border-color: #ead5a9; background: linear-gradient(90deg, #fff8e9, #f5f8fc); }
.system-summary-warn .system-summary-icon { color: #896016; background: #fff8e9; border-color: #ead5a9; }
.system-summary-warn p { color: #896016; }
.system-checks { padding: 0 23px; }
.system-checks > div { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 21px 0; border-bottom: 1px solid var(--line-soft); }
.system-checks > div:last-child { border-bottom: 0; }
.system-checks dt { color: #34465f; font-size: 14px; }
.system-checks dd { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.check-value { color: #34465f; overflow-wrap: anywhere; }
.system-notes { padding: 7px 24px; list-style: none; }
.system-notes li { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: #34465f; font-size: 14px; }
.system-notes li:last-child { border-bottom: 0; }
.system-notes .icon { width: 17px; height: 17px; margin-top: 2px; color: #52637c; }
.main-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 0 25px; color: #52637c; font-size: 12px; }
.main-footer a { display: inline-flex; align-items: center; gap: 7px; }
.main-footer a:hover { color: #34465f; }
.main-footer .icon { width: 12px; height: 12px; }

/* Shared standalone shell for setup, login and errors. */
.auth-body, .standalone-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 34px 20px; background: #f2f5fa; }
.auth-shell, .standalone-shell { width: 100%; max-width: 470px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-card, .standalone-card { background: #ffffff; border: 1px solid #d9e2ed; border-radius: 18px; padding: 33px; box-shadow: 0 16px 48px rgb(30 53 82 / 8%); }
.auth-card h1, .standalone-card h1 { font-size: 26px; letter-spacing: -.6px; line-height: 1.2; margin-bottom: 10px; }
.auth-card > p, .standalone-card > p { color: #34465f; font-size: 14px; margin-bottom: 25px; }
.auth-card .notice, .standalone-card .notice { margin-top: 20px; }
.auth-card .field > label { font-size: 14px; }
.auth-card input, .auth-card .button { min-height: 46px; }
.auth-footer { margin-top: 23px; text-align: center; color: #52637c; font-size: 13px; }
.auth-footer a { color: #34465f; }
.auth-footer p + p { margin-top: 8px; }
.auth-card .form-actions { flex-direction: column; align-items: stretch; }
.standalone-card ul, .auth-card ul.instructions { padding-left: 20px; margin: 14px 0 22px; color: #34465f; font-size: 14px; }
.standalone-card li + li, .auth-card ul.instructions li + li { margin-top: 8px; }
.standalone-card code, .auth-card code { padding: 2px 5px; border-radius: 4px; background: #f5f8fc; color: #172b4d; overflow-wrap: anywhere; }
.ac-auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 36px 20px; background: #f2f5fa; }
.ac-auth-card { width: 100%; max-width: 460px; background: #ffffff; border: 1px solid #d9e2ed; border-radius: 18px; padding: 34px; box-shadow: 0 16px 48px rgb(30 53 82 / 8%); }
.ac-auth-brand { display: block; margin-bottom: 34px; color: #172b4d; font-size: 25px; font-weight: 750; letter-spacing: -.7px; }
.ac-auth-brand span { display: block; margin-top: 4px; color: #52637c; font-size: 13px; font-weight: 400; letter-spacing: .8px; }
.ac-auth-card h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 12px; }
.ac-auth-card > p { color: #34465f; font-size: 14px; }
.ac-auth-card .ac-auth-message { margin: 19px 0; padding: 13px 15px; border: 1px solid #d9e2ed; border-radius: 9px; color: #172b4d; background: #f5f8fc; font-size: 14px; overflow-wrap: anywhere; }
.ac-auth-card .ac-auth-message-error { color: #b4233e; background: #fff2f4; border-color: #efb9c2; }
.ac-auth-card .ac-auth-message-success { color: #16734f; background: #eef9f3; border-color: #b9dfce; }
.ac-auth-form { margin-top: 25px; }
.ac-auth-form > label { display: block; margin: 18px 0 8px; color: #172b4d; font-size: 14px; font-weight: 600; }
.ac-auth-form input { min-height: 46px; }
.ac-auth-submit { display: block; width: 100%; min-height: 46px; margin: 25px 0 0; border: 1px solid #315fd9; border-radius: 8px; background: #315fd9; color: #ffffff; font-size: 14px; font-weight: 650; }
.ac-auth-submit:hover { background: #244cbb; }
.ac-auth-card .ac-auth-hint { margin-top: 19px; color: #52637c; font-size: 13px; line-height: 1.7; }
.ac-auth-back { display: block; margin-top: 25px; padding-top: 20px; border-top: 1px solid #d9e2ed; text-align: center; color: #34465f; font-size: 14px; }
.ac-auth-back:hover { color: #172b4d; }

/* Console content and maintenance tools. */
.section-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -5px 0 25px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; color: #34465f; font-size: 14px; font-weight: 600; }
.section-tab:hover { color: #172b4d; background: #f5f8fc; }
.section-tab.is-active { color: #172b4d; background: #f5f8fc; border-color: #d9e2ed; }
.settings-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 28px; }
.settings-field-grid .field { margin: 0; }
.message-filter-bar .search-field { flex: 1 1 230px; }
.message-filter-bar .filter-select { flex: 1 1 160px; max-width: 220px; }
.message-filter-bar .filter-select-status { max-width: 190px; }
.message-card { padding: 23px; border-bottom: 1px solid var(--line); }
.message-card:last-child { border-bottom: 0; }
.message-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.message-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; font-size: 12px; color: #52637c; }
.message-content { margin: 19px 0 4px; padding: 17px 18px; background: #f5f8fc; border: 1px solid #d9e2ed; border-radius: 10px; color: #172b4d; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; max-height: 350px; overflow-y: auto; }
.message-content:empty::before { content: "No readable text in this post."; color: #52637c; font-style: italic; }
.message-history { display: flex; gap: 10px; align-items: flex-start; padding: 14px 3px 5px; color: #52637c; font-size: 13px; }
.message-history > .icon { width: 15px; height: 15px; margin-top: 2px; color: #896016; }
.message-history strong { color: #896016; font-size: 12px; font-weight: 600; }
.message-history span { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.message-footer { padding-top: 12px; }
.message-note { color: #52637c; font-size: 13px; margin-bottom: 9px; }
.message-moderation > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 0; color: #34465f; font-size: 14px; font-weight: 600; }
.message-moderation > summary .icon { width: 16px; height: 16px; }
.message-moderation > summary:hover { color: #172b4d; }
.message-moderation[open] > summary { margin-bottom: 8px; }
.moderation-action-form { background: #f5f8fc; border: 1px solid #d9e2ed; border-radius: 10px; padding: 19px; max-width: 620px; }
.moderation-action-form textarea { min-height: 80px; }
.moderation-action-form .field { margin-bottom: 15px; }
.moderation-action-form .confirm-field { margin-top: 12px; }
.moderation-action-form .form-actions { padding-top: 17px; }
.announcement-table { min-width: 710px; }
.announcement-copy { color: #172b4d; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; border: 1px solid #d9e2ed; border-radius: 10px; background: #f5f8fc; }
.announcement-details { padding: 8px 0 0; }
.publish-target { display: flex; align-items: center; gap: 9px; color: #34465f; font-size: 14px; margin-bottom: 14px; }
.publish-target .icon { color: #34465f; width: 17px; height: 17px; }
.saved-draft-preview { color: #34465f; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow-y: auto; background: #f5f8fc; border: 1px solid #d9e2ed; border-radius: 8px; padding: 14px; }
.publish-form .confirm-field { font-size: 13px; }
.publish-form .button { width: 100%; }
.confirm-field-first { margin-top: 0; }
.published-posts { list-style: none; padding: 5px 20px; }
.published-posts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.published-posts li:last-child { border-bottom: 0; }
.published-posts strong { display: block; font-size: 14px; font-weight: 600; color: #172b4d; }
.published-posts small { display: block; font-size: 12px; color: #52637c; margin-top: 5px; }
.published-posts .button { white-space: normal; text-align: right; font-size: 12px; padding-right: 0; }
.release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-bottom: 24px; }
.release-card { border: 1px solid #d9e2ed; border-radius: 13px; padding: 22px; background: #f5f8fc; }
.release-card > span { display: block; color: #34465f; font-size: 13px; }
.release-card strong { display: block; margin: 9px 0 8px; font-size: 24px; font-weight: 650; letter-spacing: -.5px; line-height: 1.3; overflow-wrap: anywhere; }
.release-card p { color: #52637c; font-size: 12px; }
.schema-checks { list-style: none; padding: 7px 23px; }
.schema-checks li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.schema-checks li:last-child { border-bottom: 0; }
.schema-checks code { color: #34465f; font-size: 13px; overflow-wrap: anywhere; }
.schema-details > summary { padding: 16px 23px; color: #3d5c8b; font-size: 13px; font-weight: 600; cursor: pointer; }
.schema-details[open] > summary { border-bottom: 1px solid var(--line-soft); }
.schema-setup-form { border-top: 1px solid var(--line-soft); }
.schema-setup-form > .field-help { margin-top: 0; }
.setup-ready { display: flex; align-items: center; gap: 10px; color: #16734f; font-size: 14px; }
.setup-ready .icon { width: 17px; height: 17px; }
.backup-facts { padding: 0 0 14px; border-bottom: 1px solid var(--line-soft); }
.backup-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 0; }
.backup-facts dt { font-size: 13px; color: #52637c; }
.backup-facts dd { color: #172b4d; font-size: 14px; }
.backup-description { margin: 18px 0; color: #34465f; font-size: 14px; line-height: 1.8; }
.backup-issues { margin: 18px 0; border: 1px solid #ead5a9; border-radius: 9px; background: #f5f8fc; padding: 14px 16px; color: #896016; font-size: 13px; }
.backup-issues strong { display: block; font-size: 14px; margin-bottom: 8px; }
.backup-issues ul { padding-left: 17px; }
.backup-issues li + li { margin-top: 6px; }
.backup-form { padding-top: 6px; }
.backup-form .confirm-field { font-size: 13px; }
.backup-form .button { white-space: normal; }
.backup-unavailable { padding: 13px 15px; margin-top: 19px; border: 1px solid #d9e2ed; border-radius: 8px; background: #f5f8fc; color: #34465f; font-size: 13px; }
.last-backup { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.last-backup summary { color: #34465f; cursor: pointer; font-size: 14px; }
.last-backup .detail-list { padding: 5px 0 0; }
.last-backup code { color: #34465f; font-size: 12px; overflow-wrap: anywhere; }
.integrity-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 18px 23px; border-bottom: 1px solid var(--line); color: #52637c; font-size: 13px; }
.integrity-summary strong { color: #172b4d; font-size: 14px; font-weight: 600; margin-right: 3px; }
.integrity-path { color: #34465f; font-size: 13px; overflow-wrap: anywhere; }
.integrity-table { min-width: 540px; }
.notice-no-margin { margin-bottom: 0; }

/* Owner review sessions and explicit account-cleanup previews. */
.review-session { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 21px 23px; margin-bottom: 23px; border: 1px solid #d9e2ed; background: #f5f8fc; border-radius: 12px; }
.review-session > div:first-child { min-width: 0; }
.review-session-title { display: flex; align-items: center; gap: 9px; color: #172b4d; }
.review-session-title .icon { width: 17px; height: 17px; color: #34465f; }
.review-session-title strong { font-size: 14px; font-weight: 600; }
.review-session-expiry { margin-top: 8px; color: #34465f; font-size: 13px; }
.review-session-reason { margin-top: 10px; color: #34465f; font-size: 14px; overflow-wrap: anywhere; }
.review-session-reason > span { color: #34465f; }
.review-session-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; flex: 0 0 auto; }
.private-filter-form { padding: 22px 23px 18px; border-bottom: 1px solid var(--line); }
.private-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 19px; }
.private-filter-grid .field { margin: 0; }
.private-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 26px; }
.private-filter-actions .button { font-size: 13px; padding-left: 12px; padding-right: 12px; }
.filter-timezone { margin-top: 15px; color: #52637c; font-size: 12px; }
.private-recipient { display: block; margin-top: 4px; color: #52637c; font-size: 13px; overflow-wrap: anywhere; }
.private-recipient strong { color: #34465f; font-weight: 500; }
.private-message-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: #52637c; font-size: 12px; }
.attachment-reference { display: inline-flex; align-items: center; gap: 7px; color: #34465f; }
.attachment-reference .icon { width: 14px; height: 14px; }
.notice-action { margin-top: 12px; }
.cleanup-mode-options { display: grid; gap: 11px; margin-bottom: 19px; }
.cleanup-mode-option { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid #d9e2ed; border-radius: 9px; background: #f5f8fc; cursor: pointer; }
.cleanup-mode-option:hover { border-color: #d9e2ed; background: #f5f8fc; }
.cleanup-mode-option input { width: 17px; height: 17px; min-width: 17px; margin: 2px 0 0; accent-color: var(--blue-strong); }
.cleanup-mode-option strong { display: block; color: #172b4d; font-size: 14px; font-weight: 600; }
.cleanup-mode-option small { display: block; color: #52637c; font-size: 13px; margin-top: 5px; }
.cleanup-effects { list-style: none; padding: 0; display: grid; gap: 18px; }
.cleanup-effects > li { display: flex; gap: 11px; align-items: flex-start; color: #34465f; font-size: 14px; }
.cleanup-effects .icon { width: 17px; height: 17px; margin-top: 2px; color: #52637c; }
.cleanup-protection-counts { padding-top: 17px; margin-top: 22px; border-top: 1px solid var(--line); }
.cleanup-protection-counts > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 7px 0; }
.cleanup-protection-counts dt { font-size: 13px; color: #34465f; }
.cleanup-protection-counts dd { font-size: 14px; color: #172b4d; font-weight: 600; }
.cleanup-preview-meta { display: flex; flex-wrap: wrap; gap: 9px 23px; padding: 18px 23px 8px; color: #52637c; font-size: 13px; }
.cleanup-preview-meta strong { color: #172b4d; font-size: 14px; margin-right: 3px; }
.cleanup-preview-rule { padding: 5px 23px 20px; border-bottom: 1px solid var(--line); color: #34465f; font-size: 13px; line-height: 1.8; }
.cleanup-preview-rule strong { color: #172b4d; font-weight: 500; }
.cleanup-preview-rule p + p { margin-top: 8px; }
.cleanup-candidate-table { min-width: 650px; }
.cleanup-last-active { max-width: 270px; }
.cleanup-reason-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cleanup-exclusions { min-width: 420px; }
.cleanup-exclusions td:last-child { color: #34465f; font-size: 13px; }
.cleanup-delete-panel { border-color: #efb9c2; }
.cleanup-delete-panel .panel-header { background: #f5f8fc; border-color: #efb9c2; }
.cleanup-delete-panel .panel-header h2 { color: #b4233e; }
.cleanup-delete-panel .panel-header p { color: #b4233e; }
.cleanup-delete-description { font-size: 14px; color: #34465f; line-height: 1.8; margin-bottom: 23px; }
.cleanup-delete-panel .field label > strong { color: #b4233e; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .4px; }
.cleanup-delete-panel .button-danger:hover { background: #fff2f4; border-color: #efb9c2; }
.cleanup-backup-link { margin: 11px 2px 1px; }
.cleanup-result-details { margin-top: 20px; }
.cleanup-result-details summary { cursor: pointer; color: #34465f; font-size: 14px; }
.cleanup-result-details > p { padding: 14px; margin-top: 12px; border: 1px solid #d9e2ed; border-radius: 8px; background: #f5f8fc; color: #34465f; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }

.settings-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.settings-index a { padding: 8px 12px; border: 1px solid #d9e2ed; border-radius: 7px; background: #f5f8fc; color: #34465f; font-size: 13px; line-height: 1.5; }
.settings-index a:hover { border-color: #d9e2ed; color: #34465f; background: #f5f8fc; }
.settings-form section[id] { scroll-margin-top: 160px; }
.owner-tool { margin: 18px 21px; border: 1px solid #d9e2ed; border-radius: 10px; background: #f5f8fc; }
.owner-tool > summary { display: flex; align-items: center; gap: 8px; padding: 13px 15px; color: #34465f; font-size: 14px; font-weight: 600; cursor: pointer; }
.owner-tool > summary .icon { width: 16px; height: 16px; }
.owner-tool[open] > summary { border-bottom: 1px solid var(--line); }
.owner-tool .panel-form { padding: 19px 16px; }
.integrity-files > summary { padding: 18px 23px; cursor: pointer; color: #34465f; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
.integrity-files[open] > summary { border-bottom: 1px solid var(--line); }
.manifest-version { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; padding-top: 17px; padding-bottom: 0; }
.manifest-version span { color: var(--muted); font-size: 14px; }
.manifest-version strong { color: #172b4d; font-size: 14px; font-weight: 600; }
.integrity-summary { flex-wrap: wrap; }
.section-tabs { flex-wrap: wrap; }



/* Page orientation and navigation search. Search contains only allowed admin routes. */
.console-search { position: relative; width: clamp(220px, 23vw, 330px); min-width: 0; }
.console-search-field { position: relative; display: flex; align-items: center; }
.console-search-field > .icon { position: absolute; left: 12px; width: 17px; height: 17px; color: #71839d; pointer-events: none; }
.console-search-field input[type="search"] { min-height: 42px; padding: 9px 70px 9px 38px; background: #f6f8fc; border-color: #e1e7f0; font-size: 13px; }
.console-search-field input[type="search"]:focus { background: #ffffff; }
.console-search-shortcut { position: absolute; right: 11px; padding: 1px 6px; border: 1px solid #d5deeb; border-radius: 4px; color: #60718c; background: #ffffff; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; pointer-events: none; }
.console-search-clear { position: absolute; right: 5px; width: 32px; height: 32px; min-height: 32px; border: 0; border-radius: 6px; background: #f6f8fc; color: #60728c; display: grid; place-items: center; }
.console-search-clear:hover { color: #244cbb; background: #edf2fd; }
.console-search-clear .icon { width: 16px; height: 16px; }
.console-search:focus-within .console-search-shortcut { display: none; }
.console-search-results { position: absolute; top: calc(100% + 9px); right: 0; width: min(420px, 75vw); max-height: min(60vh, 480px); overflow-y: auto; list-style: none; padding: 6px; border: 1px solid #d8e2f0; border-radius: 11px; background: #ffffff; box-shadow: 0 16px 42px rgb(25 44 76 / 16%); color: var(--text); z-index: 55; }
.console-search-results > li { margin: 0; }
.console-search-results a, .console-search-result, .console-search-option { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 48px; padding: 10px 11px; border-radius: 7px; color: var(--text); font-size: 13px; }
.console-search-results a:hover, .console-search-results a:focus, .console-search-results [aria-selected="true"], .console-search-result.is-active { outline: none; background: #edf3ff; }
.console-search-results a > .icon { width: 18px; height: 18px; color: #5677ad; margin-top: 3px; }
.console-search-results strong, .console-search-result-label { display: block; font-size: 13px; font-weight: 650; }
.console-search-results small, .console-search-results a > span, .console-search-result-description, .console-search-result-group { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.55; }
.console-search-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.topbar-update-link { min-height: 40px; font-size: 12px; white-space: nowrap; padding: 9px 11px; }
.page-tools { position: sticky; top: 71px; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 16px; margin: -6px 0 24px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 7px rgb(30 53 82 / 3%); }
.page-tools > label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.page-tools select { width: auto; max-width: 100%; min-width: 220px; min-height: 38px; padding: 7px 32px 7px 11px; background: #f8fafc; font-size: 13px; }
[data-section-title], .panel[id], section[id], [data-section-anchor] { scroll-margin-top: 158px; }

/* Dashboard shortcuts and task groups. */
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.shortcut-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.shortcut-card:hover { border-color: #a8bde4; box-shadow: 0 4px 13px rgb(33 56 89 / 5%); }
.shortcut-card > .icon, .shortcut-icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 9px; color: #4d70ae; background: #eff4fd; flex: 0 0 auto; }
.shortcut-copy { min-width: 0; }
.shortcut-card strong { display: block; font-size: 13px; font-weight: 650; }
.shortcut-card small, .shortcut-card p, .shortcut-copy > span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.shortcut-card > .icon:last-child:not(:first-child) { width: 16px; height: 16px; padding: 0; margin-left: auto; border-radius: 0; color: #8999b0; background: transparent; }
.dashboard-workspaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 26px; }
.workspace-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #ffffff; box-shadow: var(--shadow); }
.workspace-card-header, .workspace-heading, .workspace-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.workspace-card > .icon, .workspace-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #eff4fd; color: #4d70ae; }
.workspace-card h2, .workspace-card h3 { font-size: 16px; font-weight: 650; line-height: 1.45; }
.workspace-card > h2, .workspace-card > h3 { margin-top: 12px; }
.workspace-card > p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 7px; }
.workspace-card ul { list-style: none; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line-soft); }
.workspace-card li + li { margin-top: 3px; }
.workspace-card li a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 0; color: #3a5274; font-size: 13px; }
.workspace-card li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.workspace-card li .icon { width: 15px; height: 15px; color: #8b9db8; margin-left: auto; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 15px; }
.dashboard-section-heading h2 { font-size: 18px; line-height: 1.4; font-weight: 650; }
.dashboard-section-heading p { color: var(--muted); font-size: 13px; }

/* Coverage for all admin modules, including tables introduced after the original console. */
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; text-align: left; font-size: 14px; }
.table-wrap table th { padding: 13px 22px; color: var(--muted); font-size: 12px; letter-spacing: .35px; text-transform: uppercase; font-weight: 650; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap table td { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table-wrap table tbody tr:last-child td { border-bottom: 0; }
.table-wrap table tbody tr:hover { background: #f8faff; }
.table-wrap table td > small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.table-wrap table td > a:not(.button):not(.badge) { color: var(--blue); }
.table-wrap table td > a:not(.button):not(.badge):hover { text-decoration: underline; text-underline-offset: 3px; }
.table-wrap td form { min-width: 160px; }
.table-wrap td input[type="text"], .table-wrap td input[type="number"], .table-wrap td select { min-width: 120px; }
.panel-body > h2 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.panel-body > h3 { font-size: 16px; margin: 18px 0 8px; }
.panel-body > p + p { margin-top: 10px; }
.panel-body > p { line-height: 1.7; overflow-wrap: anywhere; }
.panel-body > p + .button, .panel-form > p + .button, .panel-form > .field-help + .button, .panel-form > .confirm-field + .button { margin-top: 18px; }
.panel-body > p > a:not(.button), .field-help a, .notice a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.field label input, .field label select, .field label textarea { display: block; margin-top: 8px; font-weight: 400; }
.field label input[type="checkbox"], .field label input[type="radio"] { display: inline-block; margin-right: 7px; }
.field > input, .field > select, .field > textarea, .field label > input, .field label > select, .field label > textarea { background-color: #ffffff; }
input[type="file"] { width: 100%; padding: 8px; border: 1px solid #ccd7e5; border-radius: 8px; background: #ffffff; color: var(--muted); font-size: 13px; }
input[type="file"]::file-selector-button { min-height: 34px; padding: 6px 12px; margin-right: 10px; border: 1px solid #d5e0f0; border-radius: 6px; background: #edf3ff; color: #315aa5; font: inherit; cursor: pointer; }
input[type="color"] { display: block; width: 72px; height: 44px; padding: 4px; border: 1px solid #ccd7e5; border-radius: 8px; background: #ffffff; }
input[type="datetime-local"], input[type="time"] { min-height: 44px; padding: 10px 12px; border: 1px solid #ccd7e5; border-radius: 8px; background: #ffffff; font-size: 14px; }
input[type="radio"] { accent-color: var(--blue-strong); }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-columns > .field { margin-bottom: 20px; }
.notice-warning { color: #805b14; background: #fff8e9; border-color: #ead5a9; }
.danger-panel { border-color: #e6b3bf; }
.danger-panel > .panel-header { background: #fff6f8; border-color: #f0d6dd; }
.danger-panel > .panel-header h2 { color: #a82e45; }
.danger-panel > .panel-header p { color: #7f5560; }
.policy-list { padding-left: 20px; color: var(--muted); }
.policy-list li + li { margin-top: 9px; }
.shd-admin-designs { padding: 13px 0; border-top: 1px solid var(--line-soft); }
.shd-admin-designs > summary { font-size: 14px; font-weight: 600; color: #34465f; padding: 4px 0; }
.shd-admin-designs[open] > summary { margin-bottom: 12px; }
.shp-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.shp-style-choice { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.shp-style-choice:has(input:checked) { border-color: #92aee8; background: #edf3ff; }
.cleanup-delete-panel .button-danger:hover { background: #9f2239; border-color: #9f2239; }
.switch input:checked + .switch-track::after { background: #ffffff; }
.ac-auth-brand { color: #1b2b45; }
.ac-auth-brand span { color: #637897; }
.ac-auth-card .ac-auth-message { background: #eef4ff; border-color: #d4e0f6; color: #344f7b; }
.ac-auth-card .ac-auth-message-error { background: #fff2f4; border-color: #efb9c2; color: #a82e45; }
.ac-auth-card .ac-auth-message-success { background: #eef9f3; border-color: #b9dfce; color: #176b4b; }

/* Unified voice/video administration — ShpirtiChat 2.1.0 */
.voice-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.voice-status-card { position: relative; overflow: hidden; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.voice-status-card::after { content: ""; position: absolute; inset: auto -35px -45px auto; width: 105px; height: 105px; border-radius: 50%; opacity: .12; background: currentColor; }
.voice-status-card > * { position: relative; z-index: 1; display: block; }
.voice-status-label { color: var(--subtle); font-size: 13px; letter-spacing: .35px; }
.voice-status-card strong { margin-top: 12px; font-size: 20px; line-height: 1.2; }
.voice-status-card small { margin-top: 10px; color: var(--muted); }
.voice-status-green { color: var(--green); }
.voice-status-green strong, .voice-status-blue strong, .voice-status-neutral strong, .voice-status-amber strong { color: var(--text); }
.voice-status-blue { color: var(--blue); }
.voice-status-neutral { color: var(--subtle); }
.voice-status-amber { color: var(--amber); }
.voice-index { margin-bottom: 22px; }
.voice-index a { min-width: 110px; text-align: center; }
.voice-live-grid { display: grid; gap: 16px; }
.voice-live-room { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.voice-live-room > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.voice-live-room > header > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.voice-live-room > header strong { font-size: 16px; }
.voice-live-room > header small { grid-column: 2; color: var(--muted); margin-top: 2px; }
.voice-participant-list { display: grid; gap: 10px; margin-top: 14px; }
.voice-participant { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.voice-participant-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.voice-participant-person > div { min-width: 0; }
.voice-participant-person strong, .voice-participant-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-participant-person small { color: var(--subtle); }
.voice-participant-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.voice-stop-room { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.voice-stop-room .confirm-field { margin: 0; }
.voice-launcher-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; min-height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.voice-launcher-card form { grid-column: 1 / -1; }
.voice-launcher-card p { margin-top: 6px; color: var(--muted); }
.voice-launcher-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; color: #ffffff; background: #315fd9; }
.voice-launcher-icon .icon { width: 27px; height: 27px; }
.voice-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.voice-room-card { display: flex; flex-direction: column; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.voice-room-head { display: flex; align-items: center; gap: 11px; }
.voice-room-head strong, .voice-room-head small { display: block; }
.voice-room-head small { color: var(--subtle); margin-top: 2px; }
.voice-room-options { display: grid; gap: 8px; }
.voice-room-options label { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }
.voice-room-options input[type="checkbox"] { margin-top: 3px; }
.voice-room-options strong, .voice-room-options small { display: block; }
.voice-room-options small { color: var(--muted); margin-top: 2px; }
.voice-member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.voice-member-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.voice-member-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.voice-member-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.voice-member-head > div > div { min-width: 0; }
.voice-member-head strong, .voice-member-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-member-head small { color: var(--subtle); margin-top: 2px; }
.voice-permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.voice-permission-option { display: flex; align-items: flex-start; gap: 8px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }
.voice-permission-option input[type="checkbox"] { margin-top: 3px; }
.voice-permission-option strong, .voice-permission-option small { display: block; }
.voice-permission-option small { color: var(--subtle); margin-top: 2px; font-size: 12px; }
.voice-config-summary { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 16px; }
.voice-config-summary > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.voice-config-summary span, .voice-config-summary strong { display: block; }
.voice-config-summary span { color: var(--subtle); font-size: 13px; }
.voice-config-summary strong { margin-top: 6px; overflow-wrap: anywhere; }
.voice-config-details { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface-raised); }
.voice-config-details summary { font-weight: 700; color: var(--blue); cursor: pointer; }
.voice-config-form { margin-top: 16px; }
.voice-field-wide { grid-column: 1 / -1; }
.voice-import-form, .voice-repair-form { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.voice-import-form .confirm-field, .voice-repair-form .confirm-field { margin: 0; }
.voice-audit-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.voice-audit-entry:last-child { border-bottom: 0; }
.voice-audit-entry p { color: var(--muted); font-size: 14px; }

@media (max-width: 1180px) {
    .voice-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .voice-room-grid, .voice-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .voice-status-grid, .voice-room-grid, .voice-member-grid, .voice-config-summary { grid-template-columns: 1fr; }
    .voice-participant, .voice-stop-room, .voice-import-form, .voice-repair-form { align-items: stretch; flex-direction: column; }
    .voice-participant-actions { justify-content: flex-start; }
    .voice-permission-grid { grid-template-columns: 1fr; }
    .voice-audit-entry { grid-template-columns: auto 1fr; }
    .voice-audit-entry > .text-muted { grid-column: 2; }
}

/* Owner acceptance checks and invited-trial feedback. */
.release-check-list { padding: 0 23px; }
.release-check { border-bottom: 1px solid var(--line-soft); }
.release-check:last-child { border-bottom: 0; }
.release-check > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.release-check > summary > span:first-child::before { content: "+"; display: inline-block; width: 20px; color: #34465f; }
.release-check[open] > summary > span:first-child::before { content: "−"; }
.release-check > summary .badge { flex: 0 0 auto; }
.release-check-body { padding: 0 0 24px; }
.release-instructions { max-width: 820px; color: #34465f; font-size: 14px; line-height: 1.8; }
.release-section-link { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 6px; color: #34465f; font-size: 14px; }
.release-section-link .icon { width: 16px; height: 16px; }
.release-result-form { max-width: 760px; margin-top: 16px; }
.release-result-form .field { margin-bottom: 18px; }
.release-result-form textarea { min-height: 96px; resize: vertical; }
.release-trial { margin-top: 24px; }
.release-new-issue > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #172b4d; font-size: 14px; font-weight: 600; }
.release-new-issue > summary .icon { width: 17px; height: 17px; }
.release-check summary:focus-visible, .release-new-issue summary:focus-visible { outline: 2px solid #315fd9; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 600px) {
    .release-check-list { padding: 0 16px; }
    .release-check > summary { align-items: flex-start; gap: 10px; }
    .release-check > summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
    .release-trial .panel-header { flex-wrap: wrap; }
    .release-result-form input, .release-result-form select, .release-result-form textarea { font-size: 16px; }
    .release-result-form .button { width: 100%; }
}

/* Site-owned header banner controls. */
.ac-banner-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:24px}.ac-banner-card{overflow:hidden;border:1px solid var(--border,#d9e2ed);border-radius:12px;min-width:0}.ac-banner-image,.ac-banner-editor-preview{display:flex;align-items:center;justify-content:center;min-height:100px;max-height:220px;background:#ffffff;overflow:hidden}.ac-banner-image img,.ac-banner-editor-preview img{display:block;max-width:100%;max-height:220px;object-fit:contain}.ac-banner-summary{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;overflow-wrap:anywhere}.ac-banner-summary h3,.ac-banner-summary p{margin:0}.ac-banner-summary p{color:var(--muted,#58677d)}.ac-banner-editor-preview{margin-bottom:20px;border-radius:10px}.ac-banner-summary .button{margin-top:6px}#banner-editor{scroll-margin-top:160px}@media(max-width:700px){.ac-banner-list{grid-template-columns:1fr;padding:16px}.ac-banner-image,.ac-banner-editor-preview{min-height:72px;max-height:160px}.ac-banner-image img,.ac-banner-editor-preview img{max-height:160px}}


/* Responsive layout retains full navigation without JavaScript. */
@media (min-width: 1680px) {
    .main-content { padding-top: 38px; }
    .stat-card { padding: 24px 27px; }
}
@media (max-width: 1320px) {
    .topbar { padding-inline: 26px; gap: 14px; }
    .main-content { padding-inline: 26px; }
    .topbar-right .topbar-name, .topbar-right .console-label, .topbar-divider { display: none; }
    .console-search { width: 230px; }
    .dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-workspaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-header { flex-wrap: wrap; }
}
@media (max-width: 1160px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .dashboard-grid, .detail-grid, .settings-layout, .equal-grid { grid-template-columns: minmax(0, 1fr); }
    .console-search { width: 210px; }
    .topbar .breadcrumb, .topbar .breadcrumb-divider { display: none; }
    .page-heading { align-items: flex-start; }
    .heading-actions { max-width: 42%; }
    .topbar-update-link { padding-inline: 10px; }
}
@media (max-width: 900px) {
    :root { --sidebar-width: 264px; }
    .sidebar { position: relative; inset: auto; width: 100%; max-height: none; padding: 22px; }
    .sidebar-nav { margin-top: 22px; }
    .sidebar-footer { padding-top: 16px; }
    .sidebar-account { padding-top: 16px; }
    .sidebar-nav nav { max-width: 680px; }
    .main-shell { margin-left: 0; }
    .topbar { padding: 12px 22px; min-height: 68px; }
    .main-content { padding: 26px 22px 0; }
    .has-js .sidebar { position: fixed; inset: 0 auto 0 0; width: min(310px, calc(100vw - 48px)); max-height: 100vh; max-height: 100dvh; padding: 22px 18px; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
    .has-js .nav-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }
    .has-js .nav-open .sidebar { transform: translateX(0); visibility: visible; }
    .has-js .nav-toggle, .has-js .sidebar-close { display: inline-flex !important; }
    .sidebar-close { color: #d6e2f6; margin-right: -6px; }
    .sidebar-close:hover { background: #263b59; color: #ffffff; }
    .has-js .nav-backdrop:not([hidden]) { display: block; position: fixed; z-index: 50; inset: 0; width: 100%; height: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: rgb(13 27 49 / 44%); }
    body.nav-open { overflow: hidden; }
    .has-js .nav-open .sidebar { overscroll-behavior: contain; }
    .nav-toggle { margin-left: -8px; }
    .console-search { width: clamp(210px, 35vw, 320px); }
    .page-tools { top: 67px; }
    .nav-group .nav-link { min-height: 44px; }
}
@media (max-width: 680px) {
    .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 18px; }
    .topbar-left { flex: 1 1 auto; }
    .topbar-right { gap: 8px; }
    .topbar-right .avatar { display: none; }
    .console-search { order: 3; width: 100%; flex: 1 1 100%; }
    .console-search-field input[type="search"] { font-size: 16px; min-height: 44px; }
    .console-search-shortcut { display: none; }
    .console-search-results { width: 100%; max-height: min(55vh, 420px); }
    .main-content { padding: 24px 18px 0; }
    .page-heading { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 22px; }
    .heading-actions { width: 100%; max-width: none; }
    .heading-actions .button { flex: 1 1 auto; }
    .page-tools { position: relative; top: auto; justify-content: flex-start; margin-top: 0; padding: 12px; gap: 8px; }
    .page-tools select { min-width: 0; width: 100%; font-size: 16px; }
    .page-tools > label { flex: 0 0 auto; }
    .dashboard-workspaces { grid-template-columns: minmax(0, 1fr); }
    .dashboard-workspaces .workspace-card { padding: 20px; }
    .settings-field-grid, .private-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .private-filter-actions { padding-top: 0; }
    .filter-bar { padding: 18px; gap: 10px; }
    .search-field { flex-basis: 100%; }
    .filter-select { flex: 1 1 140px; }
    .message-filter-bar .filter-select { max-width: none; }
    .pagination { flex-wrap: wrap; gap: 12px; padding: 16px 18px; }
    .pagination-controls { margin-left: auto; }
    .system-checks > div { align-items: flex-start; }
    .system-checks dd { flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; max-width: 60%; }
    .audit-table, .member-table { min-width: 650px; }
    .release-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .release-card { padding: 18px 20px; }
    .message-head, .review-session { flex-direction: column; gap: 15px; }
    .message-meta { justify-content: flex-start; }
    .review-session-actions { width: 100%; }
    .form-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .save-bar { flex-direction: column; align-items: stretch; gap: 14px; }
    .save-bar .button { width: 100%; }
    .word-filter-form { flex-wrap: wrap; }
    .word-filter-form .field { flex-basis: 100%; }
    input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="time"], select, textarea { font-size: 16px; }
    .button-small { min-height: 40px; }
    .section-tabs { gap: 5px; }
    .section-tab { min-height: 44px; padding: 10px 12px; font-size: 13px; }
    .main-footer { align-items: flex-start; flex-wrap: wrap; font-size: 11px; }
}
@media (max-width: 420px) {
    .main-content { padding-inline: 14px; }
    .topbar { padding-inline: 14px; }
    .page-heading h1 { font-size: 28px; }
    .topbar-update-link { font-size: 11px; min-height: 38px; padding: 8px; }
    .topbar-update-link .icon { width: 15px; height: 15px; }
    .stat-grid { gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-label { font-size: 12px; }
    .stat-icon { width: 27px; height: 27px; }
    .stat-icon .icon { width: 16px; height: 16px; }
    .stat-value { font-size: 31px; }
    .stat-note { font-size: 11px; align-items: flex-start; }
    .stat-note .icon { display: none; }
    .dashboard-shortcuts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .shortcut-card { min-height: 76px; }
    .room-grid { grid-template-columns: minmax(0, 1fr); }
    .panel-header, .panel-body, .panel-form { padding: 18px 16px; }
    .panel-header { gap: 10px; }
    .panel-header h2 { font-size: 16px; }
    .panel-header p { font-size: 13px; }
    .panel-header .text-link { font-size: 12px; }
    .data-table th, .data-table td, .table-wrap table th, .table-wrap table td { padding-left: 16px; padding-right: 16px; }
    .data-table th, .table-wrap table th { font-size: 11px; }
    .data-table td, .table-wrap table td { font-size: 13px; }
    .person { min-width: 125px; }
    .person-name { font-size: 13px; }
    .person-detail { font-size: 12px; }
    .badge { font-size: 11px; }
    .pagination > p { width: 100%; }
    .pagination-controls { width: 100%; justify-content: space-between; margin: 0; gap: 6px; }
    .pagination-controls .button { padding-inline: 9px; }
    .panel-stack, .equal-grid, .dashboard-grid, .detail-grid { gap: 18px; }
    .room-topic { min-height: 0; }
    .page-tools { flex-direction: column; align-items: stretch; }
    .system-summary { padding: 18px; gap: 12px; }
    .system-summary h2 { font-size: 16px; }
    .system-checks, .schema-checks, .activity-feed, .release-check-list { padding-inline: 16px; }
    .system-checks > div { gap: 12px; }
    .system-checks dt, .system-checks dd { font-size: 13px; }
    .detail-list { padding-inline: 18px; }
    .inline-note { margin-inline: 16px; }
    .message-card { padding: 18px 16px; }
    .message-content { padding: 14px; }
    .review-session { padding: 18px 16px; }
    .private-filter-form { padding: 18px 16px; }
    .review-session-actions .button, .review-session-actions .inline-form, .private-filter-actions .button { flex: 1 1 auto; }
    .review-session-actions .inline-form .button { width: 100%; }
    .backup-form .button, .schema-setup-form .button, .cleanup-delete-panel .form-actions .button { width: 100%; }
    .auth-body, .standalone-body, .ac-auth-body { padding: 24px 14px; }
    .auth-card, .standalone-card, .ac-auth-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    body { background: #ffffff; color: #111111; }
    .sidebar, .topbar, .nav-backdrop, .main-footer, .heading-actions, .form-actions, .save-bar, .filter-bar, .pagination-controls, .table-action, .page-tools { display: none !important; }
    .main-shell { margin: 0; }
    .main-content { max-width: none; padding: 0; }
    .panel, .stat-card, .workspace-card { background: #ffffff; border: 1px solid #cccccc; box-shadow: none; break-inside: avoid; }
    h1, h2, h3, .stat-value, .person-name, .data-table td, .detail-list dd, .content-stat strong { color: #111111; }
    .table-scroll, .table-wrap { overflow: visible; }
    .data-table th, .table-wrap table th { background: #eeeeee; }
}

/* Owner private-message review: clickable first-party image previews. */
.private-image-content { white-space: normal; max-height: none; }
.private-image-link { display: inline-block; max-width: 100%; border: 1px solid #d9e2ed; border-radius: 9px; overflow: hidden; background: #e9eff6; line-height: 0; }
.private-image-link:focus-visible, .private-image-open:focus-visible { outline: 3px solid #315fd9; outline-offset: 3px; }
.private-image-thumbnail { display: block; max-width: 100px; width: auto; height: auto; max-height: 100px; object-fit: contain; }
.private-image-open { display: block; width: fit-content; margin-top: 9px; font-size: 13px; font-weight: 650; color: #2559c2; text-decoration: underline; }
