:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  --bg: #f3f5f9;
  --paper: #fff;
  --ink: #17233b;
  --subtle: #5d6e84;
  --line: #e1e6ef;
  --blue: #345bec;
  --deep: #243ba0;
  --pale: #eef2ff;
  --teal: #087c78;
  --red: #a22b3a;
  --shadow: 0 3px 11px rgb(20 36 66 / 3%);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); }
svg { display: inline-block; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; vertical-align: middle; }
svg:has(use) { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #506ef5; outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
button, a, input, textarea, select { transition: background-color .16s, color .16s, border-color .16s, box-shadow .16s; }
button { touch-action: manipulation; }
.skip { position: fixed; top: -90px; left: 15px; z-index: 30; padding: .75rem 1rem; border-radius: 8px; background: white; }
.skip:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand img { border-radius: 10px; }
.brand > span { display: flex; flex-direction: column; gap: .36rem; font-size: 1.42rem; font-weight: 760; letter-spacing: -.055em; }
.brand small { color: var(--subtle); font-size: .67rem; font-weight: 650; letter-spacing: .095em; text-transform: uppercase; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0,1fr); }
.side { position: sticky; top: 0; z-index: 12; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); padding: 32px 15px 16px; }
.side .brand { margin: 0 7px 42px; }
.side nav { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav-heading { margin: 26px 12px 8px; color: #6e7d91; font-size: .67rem; line-height: 1.6; letter-spacing: .085em; font-weight: 700; text-transform: uppercase; }
.nav-heading:first-child { margin-top: 0; }
.nav-item { display: flex; align-items: center; gap: .77rem; min-height: 43px; padding: 9px 12px; margin-bottom: 4px; border-radius: 9px; color: #53657a; font-size: .9rem; font-weight: 570; text-decoration: none; }
.nav-item > svg { width: 1.13rem; height: 1.13rem; }
.nav-item:hover { background: #f3f5fa; color: var(--ink); }
.nav-item[aria-current=page] { background: #eaf0ff; color: #254dc9; font-weight: 700; }
.account { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 17px 3px 0; }
.account-icon, .tile-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 10px; background: #eef1fb; color: #5269ba; }
.account-id { min-width: 0; flex: 1; font-size: .8rem; font-weight: 700; }
.account-id small { display: block; margin-top: 3px; color: var(--subtle); font-size: .71rem; font-weight: 500; }
.account .icon-button { width: 30px; }
.main-shell { min-width: 0; }
.topbar { min-height: 63px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 clamp(18px, 3.1vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-left, .top-right { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .81rem; }
.top-left { font-weight: 610; }
.top-right, .crumb-parent { color: var(--subtle); font-weight: 500; }
.top-right { font-variant-numeric: tabular-nums; }
.top-right .icon-button { background: #f4f6fa; width: 32px; height: 32px; border-radius: 8px; }
.crumb-arrow { width: .77rem; height: .77rem; color: #8694a6; }
.icon-button { border: 0; background: transparent; border-radius: 8px; width: 36px; height: 36px; display: inline-grid; place-items: center; color: var(--subtle); }
.icon-button:hover { color: var(--ink); background: #eaf0f7; }
.icon-button[aria-busy=true] svg { animation: spin 1.1s linear infinite; }
.menu-toggle, .scrim { display: none; }
.page { width: min(100%, 1620px); margin: 0 auto; padding: 27px clamp(18px, 3.1vw, 48px) 45px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; min-height: 65px; }
h1 { font-weight: 725; font-size: clamp(1.65rem, 1.2rem + 1.1vw, 2.55rem); line-height: 1.12; letter-spacing: -.045em; }
.page-heading p { margin-top: 7px; color: var(--subtle); line-height: 1.45; font-size: .88rem; }
#page-tools { flex: 0 0 auto; }
.periods { display: inline-flex; gap: 2px; border: 1px solid #dce3ee; padding: 3px; border-radius: 10px; background: #e9edf4; }
.periods button { min-height: 32px; padding: 4px 13px; border: 0; border-radius: 7px; background: transparent; color: #556578; font-weight: 620; font-size: .83rem; white-space: nowrap; }
.periods button[aria-pressed=true] { background: white; box-shadow: 0 1px 4px #26385922; color: #213e99; }
.periods button:hover:not([aria-pressed=true]) { background: #dfe6f1; }
#view, .stack { display: grid; gap: 18px; min-width: 0; }
.grid-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.kpi { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 8px; align-items: start; padding: clamp(15px, 1.45vw, 22px); }
.kpi-label { font-size: .83rem; font-weight: 610; color: var(--subtle); align-self: center; }
.kpi-icon { width: 32px; height: 32px; border-radius: 10px; }
.kpi-icon.indigo, .tone-ind { background: #eaf0ff; color: #3d5edc; }
.kpi-icon.mint, .tone-mint { background: #e1f6ee; color: #0d775b; }
.kpi-icon.sky, .tone-sky { background: #e5f3fb; color: #13739c; }
.kpi-icon.gold, .tone-gold { background: #fff1d9; color: #9b5a0a; }
.kpi-number { grid-column: 1/-1; font-size: clamp(1.88rem, 1.45rem + .9vw, 2.75rem); font-weight: 720; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.kpi-note { grid-column: 1/-1; min-height: 1.1em; color: var(--subtle); font-size: .77rem; line-height: 1.35; }
.dashboard-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(255px, 1fr); gap: 18px; }
.chart-card, .panel { padding: 21px clamp(16px, 1.7vw, 26px); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head h2, .panel h2 { font-size: 1.04rem; font-weight: 690; line-height: 1.38; letter-spacing: -.018em; }
.card-head p, .card-copy, .hint { color: var(--subtle); font-size: .78rem; line-height: 1.48; }
.card-head p { margin-top: 4px; }
.chart-area { position: relative; height: clamp(185px, 20vw, 248px); min-width: 0; }
.chart-area canvas { display: block; width: 100%; height: 100%; border-radius: 7px; }
.chart-area > .chart-loading { position: absolute; inset: 4px 0 22px; height: auto; width: 100%; border-radius: 8px; }
.chart-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 9px; color: var(--subtle); font-size: .86rem; text-align: center; }
.chart-empty svg { width: 23px; height: 23px; color: #8493bb; }
.legend { display: flex; gap: 7px 15px; align-items: center; flex-wrap: wrap; min-height: 35px; margin: 6px 0; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; font-size: .76rem; font-weight: 580; color: #55657c; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.legend-dot.teal { background: #1c9b91; }
.legend-dot.gold { background: #d28a16; }
.coverage { margin: 8px 0 0; font-size: .74rem; color: #647389; }
.resource-list { display: flex; flex-direction: column; justify-content: space-evenly; gap: 18px; flex: 1; padding: 20px 0 3px; }
.resource-panel { display: flex; flex-direction: column; }
.resource-row { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 11px; align-items: center; }
.resource-row .tile-icon { grid-row: span 2; width: 33px; height: 33px; border-radius: 9px; background: #f1f4f8; color: #62758a; }
.resource-label, .resource-value { font-size: .83rem; font-weight: 610; }
.resource-value { font-variant-numeric: tabular-nums; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border: 0; border-radius: 5px; background: #edf1f6; }
progress::-webkit-progress-bar { border-radius: 5px; background: #edf1f6; }
progress::-webkit-progress-value { border-radius: 5px; background: var(--bar-color, #637ef5); }
progress::-moz-progress-bar { border-radius: 5px; background: var(--bar-color, #637ef5); }
.resource-row progress { grid-column: 2/4; }
.bar-1 { --bar-color: #24a399; }
.bar-2 { --bar-color: #e3a43b; }
.link-button { padding: 0; border: 0; background: none; color: #355abd; font-weight: 610; font-size: .8rem; text-decoration: none; }
.link-button:hover { text-decoration: underline; }
.panel-footer { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.tag { display: inline-flex; align-items: center; gap: .38rem; padding: 4px 8px; border-radius: 6px; font-weight: 620; font-size: .73rem; line-height: 1.45; white-space: nowrap; background: #edf1f6; color: #596a80; }
.tag.blue { background: #eaf0ff; color: #3558c2; }
.tag.green { background: #e4f5ee; color: #17745d; }
.releases { overflow: hidden; }
@media (min-width:981px) {
  .dashboard-row > .releases { display: flex; flex-direction: column; }
  .dashboard-row > .releases .release-cover { flex: 1; }
}
.release-cover { min-height: 94px; padding: 18px 22px; color: white; display: flex; align-items: flex-end; background: linear-gradient(15deg, #172136ee, #263b6580), url('/assets/admin/world.webp') center 47% / cover; }
.release-cover h2 { font-size: 1.08rem; letter-spacing: -.018em; }
.release-list { padding: 3px 21px 8px; }
.release-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: .84rem; border-bottom: 1px solid var(--line); }
.release-row:last-child { border: 0; }
.release-row span { color: var(--subtle); }
.release-row strong { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.empty { display: grid; padding: 36px 17px; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--subtle); font-size: .88rem; line-height: 1.55; }
.empty svg { width: 24px; height: 24px; color: #8290a9; }
.skel { display: block; height: .85rem; width: min(70%, 180px); border-radius: 4px; background: linear-gradient(100deg,#eaf0f5 22%,#f6f8fb 50%,#eaf0f5 78%); background-size: 240% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.kpi-number .skel { width: 55%; height: 30px; }
.skeleton-chart { margin-top: 16px; width: 100%; height: 160px; }
.alert { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; border: 1px solid #f0c9cb; border-radius: 10px; background: #fff3f3; color: #8d3040; padding: 11px 14px; font-size: .84rem; overflow-wrap: anywhere; }
.alert .link-button { margin-left: auto; color: var(--red); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-radius: 9px; font-size: .85rem; font-weight: 630; line-height: 1.25; border: 1px solid #d8e0ec; background: #fff; color: #253650; text-decoration: none; }
.button:hover { border-color: #aebbd0; background: #f6f8fc; }
.button.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 3px 7px #2a4eb416; }
.button.primary:hover { background: #2549d1; border-color: #2549d1; }
.button[disabled] { opacity: .52; }
.small-button { min-height: 31px; font-size: .78rem; padding: 5px 10px; }
.form-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .83rem; font-weight: 610; }
.control, .field input, .field textarea, .field select, .composer textarea { width: 100%; min-width: 0; font-size: .9rem; color: var(--ink); background: white; border: 1px solid #cfd9e5; border-radius: 8px; min-height: 39px; padding: 8px 10px; line-height: 1.45; }
select.control, .field select { appearance: none; padding-right: 29px; background: #fff url('/assets/admin/chevron.svg') right 9px center / 12px 12px no-repeat; }
.form-row select, .card-head select { width: auto; max-width: 100%; }
.search-box { display: flex; align-items: center; gap: 7px; min-width: 0; width: min(100%, 290px); padding: 0 10px; border: 1px solid #d6dfea; border-radius: 9px; background: #fafbfd; }
.search-box > svg { width: 16px; color: #78879b; }
.search-box input { width: 100%; min-width: 0; border: 0; background: transparent; outline: 0; padding: 9px 0; font-size: .86rem; }
.search-box:focus-within { outline: 2px solid #6e85ef; outline-offset: 1px; }
.search-box input:focus-visible { outline: 0; }
.fields { display: grid; gap: 15px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input[type=file] { padding: 7px; font-weight: 450; }
.field input[type=file]::file-selector-button { margin-right: 8px; border: 0; border-radius: 5px; background: var(--pale); color: var(--deep); padding: 5px 8px; font-weight: 600; }
.field .hint { font-weight: 450; }
.list-toolbar { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.card-table { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .86rem; }
th { color: #64748a; font-size: .75rem; font-weight: 640; background: #f8f9fc; }
td, th { padding: 13px 17px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background-color: #fbfcff; }
.primary-cell { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.primary-cell > div { min-width: 0; overflow-wrap: anywhere; }
.primary-cell strong, .primary-cell small { display: block; }
.primary-cell small { margin-top: 4px; color: var(--subtle); font-size: .74rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { display: flex; justify-content: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.country-code { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 28px; border-radius: 7px; background: #eaf0fd; color: #345aaf; font-size: .71rem; font-weight: 700; text-transform: uppercase; }
.country-share { display: flex; align-items: center; gap: 10px; }
.country-share progress { width: min(140px, 9vw); }
.geo-summary { display: flex; align-items: center; gap: 15px; }
.geo-summary b { display: block; font-size: 1.6rem; line-height: 1.3; }
.geo-summary .hint { display: block; margin-top: 2px; }
.ticket-board { display: grid; grid-template-columns: minmax(235px, .75fr) minmax(0, 1.65fr); min-height: 530px; overflow: hidden; }
.ticket-list-column { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; background: #fafbfd; }
.ticket-filter { display: grid; gap: 9px; padding: 15px; border-bottom: 1px solid var(--line); }
.ticket-filter .search-box { width: 100%; background: #fff; }
.ticket-list { max-height: 570px; overflow: auto; flex: 1; }
.ticket { display: block; text-align: left; width: 100%; padding: 14px 16px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); background: transparent; }
.ticket:hover { background: #f0f3fa; }
.ticket[aria-current=true] { background: #edf2ff; border-left-color: var(--blue); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ticket b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.ticket-subject { display: block; margin: 5px 0; font-size: .82rem; line-height: 1.45; color: #46586e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { color: var(--subtle); font-size: .72rem; }
.ticket-preview { display: flex; flex-direction: column; min-width: 0; }
.ticket-preview > .empty { flex: 1; }
.thread-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 15px 18px; }
.thread-header h2 { font-size: 1.02rem; overflow-wrap: anywhere; }
.thread-header small { display: block; margin-top: 4px; color: var(--subtle); font-size: .76rem; }
.device { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: .81rem; color: var(--subtle); }
.device summary { cursor: pointer; color: #3f526c; font-weight: 630; }
.device dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 15px; margin-bottom: 0; }
.device dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.messages { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 16px; min-height: 210px; height: 300px; max-height: 50vh; overflow-y: auto; overflow-x: hidden; }
.messages .more-messages { align-self: center; }
.bubble { padding: 9px 12px; border-radius: 12px 12px 12px 3px; background: #f0f3f8; max-width: 86%; min-width: 0; }
.bubble.out { align-self: flex-end; background: #e9efff; border-radius: 12px 12px 3px 12px; }
.bubble p { font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bubble small { display: block; text-align: right; font-size: .68rem; color: #62738a; margin-top: 4px; }
.composer { display: grid; align-items: end; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); padding: 12px 16px; }
.composer textarea { resize: vertical; min-height: 41px; max-height: 145px; }
.composer .button { height: 41px; }
.composer .hint { grid-column: 1/-1; }
.modal { color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(100% - 24px, 475px); max-height: min(92vh, 790px); overflow: auto; box-shadow: 0 25px 95px #15274d44; }
.modal::backdrop { background: #17243860; backdrop-filter: blur(3px); }
.modal-body { padding: 22px 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.modal h2 { font-size: 1.15rem; letter-spacing: -.022em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.modal-error, .inline-error { color: var(--red); font-size: .84rem; line-height: 1.45; }
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 30px; background: radial-gradient(ellipse at 13% 12%,#dce5ff 0,transparent 52%), radial-gradient(ellipse at 91% 93%,#d2edee 0,transparent 49%), #f3f5fa; }
.gate-card { width: min(100%, 965px); min-height: 540px; display: grid; grid-template-columns: 1fr .97fr; overflow: hidden; padding: 9px; background: #fff; border: 1px solid #fff; border-radius: 24px; box-shadow: 0 25px 80px #20324f24; }
.gate-content { display: flex; flex-direction: column; padding: 26px clamp(25px, 4vw, 55px); }
.gate-center { margin: auto 0; padding: 40px 0; }
.gate-center h1 { margin: 15px 0 12px; }
.gate-center p { font-size: .95rem; line-height: 1.55; color: var(--subtle); margin-bottom: 24px; }
.gate-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: #edf1fe; color: var(--blue); border-radius: 12px; }
.vk-button { background: #0675f3; color: #fff; border: 0; min-height: 46px; width: 100%; }
.vk-button img { filter: brightness(0) invert(1); }
.vk-button:hover { background: #0063d8; }
.gate-domain { font-size: .8rem; color: #62748b; display: flex; align-items: center; gap: 6px; }
.gate-domain svg { width: 15px; }
.gate-scene { position: relative; border-radius: 17px; background: linear-gradient(180deg,#162a4720,#10233b06 58%,#0c233e46), url('/assets/admin/world.webp') 64% center / cover; }
.scene-corner { position: absolute; inset: 16px; border: 1px solid #ffffff38; border-radius: 9px; pointer-events: none; }
#gate-state:not(:empty) { margin-top: 13px; color: var(--subtle); line-height: 1.5; font-size: .84rem; }
#gate-state .login-actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; margin-right: 6px; animation: spin 1s linear infinite; }
.muted { color: var(--subtle); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes shimmer { to { background-position: -140% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1440px) { .workspace { grid-template-columns: 235px minmax(0, 1fr); } .side { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 1140px) { .workspace { grid-template-columns: 192px minmax(0,1fr); } .side { padding-left: 10px; padding-right: 10px; } .dashboard-row { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); } }
@media (max-width: 980px) { .grid-kpi { grid-template-columns: repeat(2,minmax(0,1fr)); } .dashboard-row { grid-template-columns: 1fr; } .chart-area { height: 220px; } .resource-list { gap: 16px; } }
@media (max-width: 760px) {
  .workspace { display: block; } .menu-toggle { display: inline-grid; }
  .side { position: fixed; left: 0; transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; width: min(270px, 83vw); }
  .workspace.nav-open .side { visibility: visible; transform: none; box-shadow: 10px 0 40px #1e293b22; }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; border: 0; background: #17243866; z-index: 11; }
  .page { padding: 20px 14px 32px; } .topbar { min-height: 52px; padding: 0 12px; }
  .gate { padding: 14px; } .gate-card { min-height: 470px; } .gate-content { padding: 22px; }
  .ticket-board { grid-template-columns: 1fr; } .ticket-list-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .ticket-list { max-height: 230px; } .thread-header { padding: 14px; } .messages { flex-basis: auto; max-height: 58vh; }
}
@media (max-width: 540px) {
  .gate-card { display: block; min-height: 0; padding: 0; border-radius: 18px; } .gate-content { min-height: 440px; padding: 26px; } .gate-scene { display: none; }
  .page-heading { display: grid; gap: 12px; margin-bottom: 16px; } .page-heading p { font-size: .82rem; margin-top: 5px; } h1 { font-size: 1.7rem; }
  .top-left { gap: 3px; } .top-left .crumb-parent, .top-left .crumb-arrow { display: none; }
  .top-right { font-size: .73rem; gap: 7px; } #view, .stack, .dashboard-row { gap: 12px; }
  .grid-kpi { gap: 8px; } .kpi { padding: 12px; gap: 8px 4px; } .kpi-icon { width: 25px; height: 25px; border-radius: 8px; } .kpi-icon svg { width: 15px; }
  .kpi-label { font-size: .77rem; } .kpi-note { font-size: .72rem; }
  .panel,.chart-card { padding: 16px 13px; } .card-head { flex-wrap: wrap; }
  .list-toolbar { padding: 12px; } .search-box { width: 100%; } td,th { padding: 10px 12px; }
  .field-pair { grid-template-columns: 1fr; } .composer { padding: 10px; }
  .modal-body { padding: 18px; } .country-share progress { width: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
