:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #17191c;
  --surface-2: #1d2024;
  --surface-3: #25292e;
  --line: #30343a;
  --line-soft: #25282d;
  --text: #f2f0ed;
  --muted: #9da2aa;
  --red: #ee4f57;
  --red-dark: #c93c45;
  --green: #62c99a;
  --amber: #e6b85c;
  --blue: #70a7df;
  --danger: #f17878;
  --sidebar: 248px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); }
.auth-visual { position: relative; overflow: hidden; min-height: 100vh; background: #210e10; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; filter: saturate(.82) contrast(1.08) brightness(.68); }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 10, .28); border-bottom: 210px solid rgba(8, 8, 10, .7); }
.auth-brand { position: absolute; z-index: 1; left: clamp(34px, 6vw, 86px); bottom: 64px; }
.brand-kicker { color: #ff9ca0; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }
.auth-brand h1 { margin: 7px 0 2px; font-size: clamp(52px, 8vw, 96px); line-height: .95; letter-spacing: 0; }
.auth-brand p { max-width: 420px; color: #d0cdca; font-size: 17px; }
.auth-panel { display: grid; place-items: center; padding: 48px; background: #121315; }
.auth-box { width: min(100%, 390px); }
.auth-box h2 { margin: 0; font-size: 30px; }
.auth-box > .muted { margin: 10px 0 28px; }
.auth-box form { display: grid; gap: 16px; }
.auth-box label, .form-grid label, .field { display: grid; gap: 7px; color: #c9c7c4; font-weight: 650; font-size: 12px; }
.mobile-brand { display: none; margin-bottom: 42px; font-size: 18px; font-weight: 800; align-items: center; gap: 10px; }

input, select, textarea { width: 100%; border: 1px solid var(--line); background: #111214; color: var(--text); border-radius: 5px; padding: 11px 12px; outline: none; transition: border-color .15s, background .15s; }
input:focus, select:focus, textarea:focus { border-color: #8a474c; background: #151618; }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--red); }
input[type="color"] { padding: 3px; height: 41px; }
.check-field { display: flex !important; align-items: center; gap: 9px !important; padding-top: 25px; }

.button { border: 1px solid var(--line); background: var(--surface-3); color: var(--text); padding: 9px 14px; border-radius: 5px; font-weight: 750; min-height: 38px; text-decoration: none; }
.button:hover { background: #30343a; }
.button.primary { background: var(--red); border-color: var(--red); color: #160708; }
.button.primary:hover { background: #ff656d; }
.button:disabled { cursor: not-allowed; opacity: .45; filter: saturate(.45); }
.button:disabled:hover { background: var(--surface-3); }
.button.primary:disabled:hover { background: var(--red); }
.button.danger { color: #ffb2b2; border-color: #71383b; background: #281719; }
.button.small { min-height: 31px; padding: 5px 9px; font-size: 12px; }
.button.wide { width: 100%; margin-top: 5px; }
.text-button { border: 0; background: transparent; color: #ef8c91; padding: 16px 0; font-weight: 700; }
.form-error { border-left: 3px solid var(--danger); background: #2a1719; color: #ffb7b7; padding: 10px 12px; border-radius: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: #131416; border-right: 1px solid var(--line-soft); z-index: 20; }
.brand { height: 76px; display: flex; align-items: center; gap: 11px; padding: 0 22px; font-size: 18px; font-weight: 850; border-bottom: 1px solid var(--line-soft); }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; background: var(--red); color: #170708; border-radius: 4px; font-weight: 950; }
#main-nav { padding: 10px 12px 16px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav-label { display: block; padding: 14px 12px 5px; color: #666c74; text-transform: uppercase; font-size: 9px; font-weight: 850; letter-spacing: 1.15px; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; border: 0; border-radius: 5px; padding: 8px 12px; background: transparent; color: #aeb2b8; text-align: left; font-weight: 650; }
.nav-item:hover { color: var(--text); background: #1c1e21; }
.nav-item.active { color: #fff; background: #282125; box-shadow: inset 3px 0 var(--red); }
.portal-switch { display: block; margin: 18px 10px 8px; padding-top: 15px; border-top: 1px solid var(--line-soft); color: #ef8c91; font-size: 12px; font-weight: 750; text-decoration: none; }
.portal-switch:hover { color: #ffb0b4; }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--line-soft); }
.user-mini { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 11px; }
.user-mini div { min-width: 0; }
.user-mini strong, .user-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini small { color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #33282b; color: #ff8a90; font-weight: 850; }
.icon-command { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 4px; width: 100%; padding: 7px; }
.icon-command:hover { color: var(--text); }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 76px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 0 30px; border-bottom: 1px solid var(--line-soft); background: rgba(16,17,19,.94); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 19px; line-height: 1; }
.topbar .eyebrow { margin-bottom: 5px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.live-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(98,201,154,.08); }
.menu-button { display: none; }
.content { padding: 32px 30px 54px; max-width: 1600px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-head > div:first-child { min-width: 0; }
.page-head h2 { margin: 0 0 6px; font-size: 24px; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.stat { padding: 18px; background: var(--surface); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat small { display: block; color: var(--muted); margin-bottom: 12px; }
.stat strong { font-size: 27px; line-height: 1; }
.stat em { margin-left: 6px; color: var(--green); font-style: normal; font-size: 11px; }

.system-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; margin-bottom: 14px; padding: 10px 16px; border: 1px solid #2d4038; border-radius: 6px; background: #151b18; }
.system-bar > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.system-bar strong { font-size: 13px; }
.system-bar small { color: #8f9c96; padding-left: 9px; border-left: 1px solid #34423c; }
.system-bar > span { color: #7f8884; font-size: 11px; white-space: nowrap; }
.system-pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(98,201,154,.08); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.metric { position: relative; min-height: 112px; padding: 16px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.metric:last-child { border-right: 0; }
.metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: transparent; }
.metric.good::before, .metric.live::before { background: var(--green); }
.metric.warn::before { background: var(--amber); }
.metric > span { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin: 10px 0 7px; font-size: 27px; line-height: 1; }
.metric small { color: #737982; font-size: 11px; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); gap: 16px; align-items: start; }
.dashboard-stack { display: grid; gap: 16px; }
.dashboard-block { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.block-head { min-height: 65px; display: flex; align-items: center; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.block-head.standalone { min-height: auto; padding: 0 0 11px; border: 0; }
.block-head > div { min-width: 0; }
.block-head h3 { margin: 0 0 4px; font-size: 14px; }
.block-head p { margin: 0; color: var(--muted); font-size: 11px; }
.block-head > :last-child { margin-left: auto; }
.text-button.compact { padding: 5px; font-size: 11px; white-space: nowrap; }
.activity-list { display: grid; }
.activity-row { min-height: 61px; display: grid; grid-template-columns: 9px minmax(150px, 1fr) 125px auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.activity-row:last-child { border-bottom: 0; }
.activity-row > div strong, .activity-row > div small { display: block; }
.activity-row > div small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.activity-state { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.activity-state.success { background: var(--green); }
.activity-state.failed { background: var(--danger); }
.compact-list > div { min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.compact-list > div:last-child { border-bottom: 0; }
.compact-list p { min-width: 0; flex: 1; margin: 0; }
.compact-list strong, .compact-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.section { margin-top: 28px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-title h3 { margin: 0; font-size: 15px; }
.section-title span { color: var(--muted); font-size: 12px; }
.section-title .text-action { margin-left: auto; border: 0; background: transparent; color: #d88d91; font-size: 11px; font-weight: 750; }
.section-title .text-action:hover { color: #fff; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; overflow: hidden; }
.panel-body { padding: 18px; }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }

.announcement-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.announcement { display: grid; grid-template-columns: 8px 1fr auto; gap: 15px; padding: 17px 18px; background: var(--surface); }
.announcement .signal { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--blue); }
.announcement.success .signal { background: var(--green); }
.announcement.warning .signal, .announcement.maintenance .signal { background: var(--amber); }
.announcement h3 { margin: 0 0 6px; font-size: 14px; }
.announcement p { margin: 0; color: #b8bbc0; line-height: 1.55; white-space: pre-wrap; }
.announcement time { color: #747982; font-size: 11px; white-space: nowrap; }

.client-home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .65fr); gap: 16px; align-items: start; }
.client-side-stack { display: grid; gap: 22px; }
.access-list, .support-snapshot { display: grid; }
.access-row, .snapshot-row { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--text); text-align: left; }
.access-row:last-child, .snapshot-row:last-child { border-bottom: 0; }
.access-row:hover, .snapshot-row:hover { background: var(--surface-2); }
.access-row { min-height: 62px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 12px; }
.access-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 4px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.access-row strong, .access-row small, .snapshot-row strong, .snapshot-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-row small, .snapshot-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.access-state { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.snapshot-row { min-height: 59px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.snapshot-row > span:first-child { min-width: 0; flex: 1; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.game-card { --accent: var(--red); position: relative; min-height: 220px; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--surface); padding: 20px; overflow: hidden; }
.game-card > header { min-height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-code { color: var(--accent); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.game-card h3 { margin: 8px 0 7px; font-size: 20px; }
.game-card > p { color: var(--muted); line-height: 1.5; margin: 0 0 22px; }
.game-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; color: #b9bdc2; font-size: 12px; }
.file-list { border-top: 1px solid var(--line-soft); margin: 16px -20px -20px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line-soft); }
.file-row:first-child { border-top: 0; }
.file-row > div { min-width: 0; flex: 1; }
.file-row strong, .file-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--muted); margin-top: 2px; }
.file-label { display: block; margin-bottom: 3px; color: #777d85; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.license-select { width: min(360px, 46vw); }
.client-license-layout { display: grid; grid-template-columns: minmax(280px, 370px) minmax(0, 1fr); gap: 14px; align-items: start; }
.client-license-list { display: grid; gap: 10px; }
.client-license-card { min-width: 0; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 13px; cursor: pointer; }
.client-license-card:hover, .client-license-card.active { border-color: #5b4144; background: #1b1d20; }
.client-license-card.active { box-shadow: inset 3px 0 0 var(--red); }
.client-license-card header, .client-license-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.client-license-card header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-license-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.client-license-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.client-license-meta span { min-width: 0; padding: 8px; border-right: 1px solid var(--line-soft); color: #cdd0d5; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-license-meta span:last-child { border-right: 0; }
.client-license-meta small { display: block; margin-bottom: 4px; color: #777d85; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.license-detail { min-width: 0; }
.license-detail-head { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--surface); padding: 16px 18px; }
.license-detail-head > div:first-child { min-width: 0; }
.license-detail-head h2 { margin: 3px 0 7px; font-size: 19px; overflow-wrap: anywhere; }
.license-detail-head p { margin: 0; color: var(--muted); font-size: 11px; }
.license-summary { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.license-summary > header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.license-summary > header > div:first-child { min-width: 0; }
.license-summary h2 { margin: 3px 0 7px; font-size: 21px; overflow-wrap: anywhere; }
.license-summary p { margin: 0; color: var(--muted); font-size: 11px; }
.license-summary > header > div:last-child { display: flex; align-items: center; gap: 8px; }
.license-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #141619; }
.license-facts > span { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line-soft); }
.license-facts > span:last-child { border-right: 0; }
.license-facts small, .license-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-facts small { margin-bottom: 5px; color: #777d85; font-size: 9px; text-transform: uppercase; }
.license-facts strong { font-size: 11px; }
.license-notice { display: flex; gap: 9px; margin-top: 12px; padding: 10px 12px; border: 1px solid #703d40; border-radius: 5px; background: #271719; color: #e7b1b3; font-size: 11px; }
.license-notice span { color: #bc8c8f; }
.license-tabs { display: flex; gap: 24px; margin: 20px 0 12px; border-bottom: 1px solid var(--line); }
.license-tabs button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.license-tabs button:hover { color: var(--text); }
.license-tabs button.active { border-bottom-color: var(--red); color: var(--text); }
.license-tabs span { min-width: 22px; padding: 2px 6px; border-radius: 9px; background: var(--surface-3); color: #b9bdc3; font-size: 9px; text-align: center; }
.license-tab-pane { min-width: 0; }
.license-section { margin-top: 18px; }
.device-list { display: grid; }
.device-record { min-width: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); border-bottom: 1px solid var(--line-soft); }
.device-record:last-child { border-bottom: 0; }
.device-record > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-right: 1px solid var(--line-soft); }
.device-record > header > div { min-width: 0; }
.device-record > header strong, .device-record > header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-record > header small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.device-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.device-facts > span { min-width: 0; padding: 10px 14px; border-right: 1px solid var(--line-soft); color: #ced1d5; font-size: 10px; }
.device-facts > span:last-child { border-right: 0; }
.device-facts small, .device-facts b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-facts small { margin-bottom: 4px; color: #747a82; font-size: 8px; text-transform: uppercase; }
.device-facts b { font-weight: 700; }
.device-record > p { grid-column: 1 / -1; margin: 0; padding: 9px 14px; border-top: 1px solid #563336; background: #211719; color: #d49598; font-size: 10px; }
.license-log { max-height: 540px; }
.license-log table { min-width: 900px; }
.license-log td { font-size: 11px; }
.license-log td strong, .license-log td small { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-log td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.price { font-size: 24px; font-weight: 800; margin: 14px 0; }
.owned { color: var(--green); font-weight: 700; }
.store-card { min-height: 290px; }
.store-state { display: grid; gap: 5px; margin-top: auto; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.store-state small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.store-state strong { font-size: 18px; }
.store-state span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.store-card > .button { width: 100%; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.store-catalog { min-width: 0; }
.store-section { margin-bottom: 22px; }
.store-section:first-child .section-title { margin-top: 0; }
.featured-grid { grid-template-columns: 1fr; }
.featured-grid .store-product { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.featured-grid .product-media { height: 100%; min-height: 226px; aspect-ratio: auto; border-right: 1px solid var(--line-soft); border-bottom: 0; }
.featured-grid .product-body > p { min-height: 0; }
.store-product { --accent: var(--red); min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.product-media { position: relative; aspect-ratio: 16 / 6.8; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: #111315; }
.product-media img, .admin-product-media img, .release-detail > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-image-fallback { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: #1b1d20; overflow: hidden; }
.product-image-fallback::before, .product-image-fallback::after { content: ""; position: absolute; background: color-mix(in srgb, var(--accent) 45%, #2c3035); opacity: .38; }
.product-image-fallback::before { width: 1px; height: 160%; transform: rotate(35deg); }
.product-image-fallback::after { width: 160%; height: 1px; transform: rotate(-12deg); }
.product-image-fallback span { position: relative; z-index: 1; color: color-mix(in srgb, var(--accent) 72%, #fff); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.product-media-top { position: absolute; inset: 10px 10px auto; display: flex; justify-content: space-between; gap: 8px; }
.platform-badge, .featured-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 3px; background: rgba(13,14,16,.86); color: #e5e3e0; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.featured-badge { border-color: color-mix(in srgb, var(--accent) 60%, #34383e); color: color-mix(in srgb, var(--accent) 72%, #fff); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.product-title-row { min-height: 43px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-title-row h3 { margin: 4px 0 0; font-size: 16px; }
.product-body > p { min-height: 34px; margin: 7px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.product-facts > span { min-width: 0; padding: 7px 9px; color: #d4d6d9; font-size: 10px; font-weight: 700; }
.product-facts > span + span { border-left: 1px solid var(--line-soft); }
.product-facts small { display: block; margin-bottom: 4px; color: #777d85; font-size: 8px; text-transform: uppercase; }
.changelog-link { width: max-content; border: 0; background: transparent; color: #d88d91; padding: 8px 0 2px; font-size: 10px; font-weight: 750; }
.changelog-link:hover { color: #fff; }
.product-body > footer { display: grid; grid-template-columns: minmax(76px, auto) minmax(92px, 1fr); align-items: center; gap: 9px; margin: auto -14px -14px; padding: 9px 14px; border-top: 1px solid var(--line-soft); background: #141619; }
.product-body > footer > strong { font-size: 16px; }
.product-body > footer .button { width: 100%; }
.cart-added-state { min-height: 38px; display: grid; place-items: center; border: 1px solid #315c49; border-radius: 5px; background: #19271f; color: var(--green); font-size: 11px; font-weight: 800; }
.cart-panel { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.open-checkouts { border-bottom: 1px solid #604a2c; background: #1c1914; }
.open-checkouts > header { padding: 11px 12px 9px; }
.open-checkouts > header strong, .open-checkouts > header small { display: block; }
.open-checkouts > header strong { color: #e7c68f; font-size: 11px; }
.open-checkouts > header small { margin-top: 3px; color: #9e927f; font-size: 9px; line-height: 1.4; }
.open-checkout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 12px 11px; border-top: 1px solid rgba(231,198,143,.12); }
.open-checkout > div:first-child { min-width: 0; }
.open-checkout > div:first-child strong, .open-checkout > div:first-child small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-checkout > div:first-child strong { font-size: 11px; }
.open-checkout > div:first-child small { margin-top: 3px; color: #8f877b; font-size: 8px; }
.open-checkout > span { font-size: 10px; font-weight: 800; }
.open-checkout > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.open-checkout .text-action { min-height: 32px; }
.text-action.danger { color: #d58b8f; }
.cart-panel > header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.cart-panel h3 { margin: 1px 0 0; font-size: 16px; }
.cart-count { min-width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: #fff; font-size: 11px; font-weight: 850; }
.cart-lines { max-height: 390px; overflow-y: auto; }
.cart-line { min-height: 61px; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.cart-line > div { min-width: 0; }
.cart-line strong, .cart-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line strong { font-size: 12px; }
.cart-line small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.cart-line > span { font-size: 11px; font-weight: 750; }
.cart-line > button { width: 24px; height: 24px; border: 0; background: transparent; color: #7d828a; font-size: 18px; }
.cart-line > button:hover { color: var(--danger); }
.cart-empty { min-height: 112px; display: grid; place-content: center; gap: 5px; padding: 20px; color: var(--muted); text-align: center; }
.cart-empty strong { color: var(--text); }
.cart-panel > footer { padding: 12px; border-top: 1px solid var(--line); background: #141619; }
.cart-panel > footer > div { display: flex; align-items: baseline; justify-content: space-between; }
.cart-panel > footer > div span { color: var(--muted); font-size: 11px; }
.cart-panel > footer > div strong { font-size: 22px; }
.cart-panel > footer > small { display: block; margin: 8px 0 12px; color: #777d85; font-size: 9px; line-height: 1.4; }
.release-detail > img { aspect-ratio: 16 / 8; border-radius: 5px; margin-bottom: 15px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.release-meta span { border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; color: var(--muted); font-size: 10px; }
.release-detail h3 { margin: 22px 0 9px; font-size: 14px; }
.changelog-copy { min-height: 110px; border: 1px solid var(--line); border-radius: 5px; background: #121315; padding: 14px; color: #c8cbd0; line-height: 1.65; white-space: pre-wrap; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 14px; }
.admin-product-card { --accent: var(--red); display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 250px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--surface); overflow: hidden; }
.admin-product-media { position: relative; min-height: 100%; border-right: 1px solid var(--line-soft); background: #111315; overflow: hidden; }
.admin-product-media .platform-badge { position: absolute; left: 9px; bottom: 9px; }
.admin-product-body { min-width: 0; display: flex; flex-direction: column; padding: 16px; }
.admin-product-body > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-product-body h3 { margin: 5px 0 0; font-size: 17px; }
.admin-product-body > p { margin: 12px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-product-meta { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.admin-product-meta > span { min-width: 0; padding: 8px; border-right: 1px solid var(--line-soft); }
.admin-product-meta > span:last-child { border-right: 0; }
.admin-product-meta small, .admin-product-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-meta small { margin-bottom: 4px; color: #777d85; font-size: 8px; text-transform: uppercase; }
.admin-product-meta strong { font-size: 11px; }
.admin-product-body > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 10px; }
.product-game-checks { grid-template-columns: 1fr; max-height: 190px; overflow-y: auto; }
.changelog-editor { min-height: 150px; }
.payment-banner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 5px; background: var(--surface); }
.payment-banner.success { border-left-color: var(--green); }
.payment-banner strong, .payment-banner p { display: block; margin: 0; }
.payment-banner p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.payment-banner > span { color: #e7cdcf; }

.toolbar { display: flex; gap: 9px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.toolbar.refined { min-height: 52px; margin-bottom: 0; padding: 8px 10px; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: #141619; }
.toolbar.refined + .panel { border-radius: 0 0 6px 6px; }
.toolbar-note { margin-left: auto; padding-right: 5px; color: #737982; font-size: 11px; }
.toolbar .search { max-width: 350px; }
.toolbar select { width: auto; min-width: 160px; }
.toolbar .button:last-child { margin-left: auto; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { color: #858a92; font-size: 10px; text-transform: uppercase; font-weight: 800; text-align: left; padding: 11px 14px; background: #141619; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: #d2d0cd; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #1b1e21; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.inline-summary { display: flex; align-items: center; gap: 0; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.inline-summary span { padding: 9px 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.inline-summary span:last-child { border-right: 0; }
.inline-summary strong { margin-right: 4px; color: var(--text); font-size: 13px; }
.identity-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.identity-cell > div { min-width: 0; }
.identity-cell strong, .identity-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-cell small, .cell-subtitle { margin-top: 3px; color: var(--muted); font-size: 11px; }
.cell-subtitle { display: block; }
.small-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
.role-label { display: inline-flex; padding: 3px 7px; border-radius: 3px; background: #23262a; color: #b6bbc1; font-size: 11px; text-transform: capitalize; }
.role-label.admin { background: #2a2023; color: #ff959a; }
.key-copy { border: 0; padding: 0; background: transparent; color: #f0cecf; font-weight: 750; }
.key-copy:hover { color: #fff; text-decoration: underline; }
.game-badges { display: flex; gap: 4px; flex-wrap: wrap; max-width: 280px; }
.game-badges span { position: relative; border: 1px solid var(--line); border-radius: 3px; padding: 3px 6px 3px 9px; background: #202327; color: #c5c8cc; font-size: 10px; font-weight: 800; }
.game-badges span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--badge); }
.lifetime { color: var(--green); font-weight: 700; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; color: #aaaeb5; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #777c84; }
.status.active::before, .status.open::before, .status.allowed::before, .status.online::before { background: var(--green); }
.status.banned::before, .status.disabled::before, .status.denied::before, .status.urgent::before { background: var(--danger); }
.status.expired::before, .status.waiting_client::before, .status.waiting_staff::before, .status.high::before { background: var(--amber); }
.status.payment_pending::before, .status.checkout_created::before, .status.review_required::before { background: var(--amber); }
.status.failed::before, .status.cancelled::before { background: var(--danger); }

.split { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(420px, 1.3fr); gap: 16px; }
.support-summary { min-height: 46px; display: flex; align-items: center; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); overflow-x: auto; }
.support-summary span { padding: 8px 15px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; white-space: nowrap; }
.support-summary span:last-child { border-right: 0; }
.support-summary strong { margin-right: 5px; color: var(--text); font-size: 14px; }
.support-shell { height: max(620px, calc(100vh - 255px)); min-height: 620px; display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.support-rail { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #151719; }
.support-rail > header { min-height: 67px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.support-rail > header > div { min-width: 0; flex: 1; }
.support-rail > header strong, .support-rail > header small { display: block; }
.support-rail > header small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.support-rail > header select { width: 122px; padding: 8px; font-size: 11px; }
.ticket-list { min-height: 0; overflow-y: auto; background: var(--surface); }
.ticket-row { position: relative; width: 100%; min-height: 105px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--text); text-align: left; padding: 13px 14px; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover, .ticket-row.active { background: var(--surface-2); }
.ticket-row.active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red); }
.ticket-row strong { display: block; margin: 8px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row > small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row-top, .ticket-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-row-meta { margin-top: 9px; color: #777d85; font-size: 10px; }
.ticket-category { display: inline-flex; color: #c88b90; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.support-conversation { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.conversation-head { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #181a1d; }
.conversation-head > div { min-width: 0; }
.conversation-head h3 { margin: 5px 0 4px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-head p { margin: 0; color: var(--muted); font-size: 10px; }
.ticket-owner { display: flex; align-items: center; gap: 11px; }
.ticket-owner > div { min-width: 0; }
.ticket-controls { display: flex; align-items: center; gap: 7px; }
.ticket-controls select { width: 130px; padding: 8px; font-size: 11px; }
.ticket-context { min-height: 35px; display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line-soft); background: #151719; overflow-x: auto; }
.ticket-context span { padding: 0 12px; border-right: 1px solid var(--line-soft); color: #777d85; font-size: 10px; white-space: nowrap; }
.messages { min-height: 0; flex: 1; overflow-y: auto; padding: 22px; display: grid; align-content: start; gap: 14px; background: #141618; }
.message { max-width: min(72%, 680px); border: 1px solid var(--line); background: var(--surface-2); padding: 11px 13px; border-radius: 5px; }
.message.own { margin-left: auto; border-color: #623b3f; background: #24191b; }
.message.internal { border-color: #6d5a32; background: #262116; }
.message p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.message-author { display: block; margin-bottom: 7px; color: #c9cdd2; font-size: 10px; font-weight: 800; }
.message time { display: block; margin-top: 8px; color: #777d85; font-size: 9px; }
.reply-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; border-top: 1px solid var(--line); padding: 12px; background: #181a1d; }
.reply-box textarea { min-height: 74px; max-height: 180px; }
.admin-reply-box { grid-template-columns: minmax(0, 1fr) 150px; }
.admin-reply-box > div { display: grid; align-content: space-between; gap: 8px; }
.internal-toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.conversation-closed { padding: 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; }
.mode-badge { display: inline-flex; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mode-badge.live { border-color: #35624f; color: var(--green); }
.failure-text { max-width: 190px; white-space: normal; color: var(--danger); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid > .form-actions { grid-column: 1 / -1; }
.input-button-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.field-note { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin: 22px -22px -22px; padding: 14px 22px; background: #141619; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.segmented button { border: 0; border-right: 1px solid var(--line); color: var(--muted); background: var(--surface); padding: 8px 12px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { color: var(--text); background: var(--surface-3); }
.game-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
.game-checks label { display: flex; align-items: center; gap: 7px; }

.resource-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 14px; }
.resource-game-card { --accent: var(--red); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--surface); overflow: hidden; }
.resource-game-card > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.resource-game-card h3 { margin: 8px 18px 22px; font-size: 18px; }
.resource-count { display: flex; align-items: baseline; gap: 10px; padding: 0 18px 18px; }
.resource-count strong { font-size: 30px; }
.resource-count span { color: var(--muted); font-size: 12px; }
.resource-game-card footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-soft); background: #141619; }
.json-editor { min-height: 440px; max-height: 58vh; line-height: 1.55; tab-size: 2; white-space: pre; }
.json-options { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; }
.json-options .check-field { padding-top: 0; }
.file-picker { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-weight: 700; cursor: pointer; }
.file-picker:hover { background: var(--surface-3); }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,5,.78); }
.modal-window { position: relative; width: min(680px, 100%); max-height: min(88vh, 900px); overflow-y: auto; border: 1px solid #3c4148; border-radius: 7px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.modal-window > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; padding: 17px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-window h2 { margin: 0; font-size: 19px; }
.close-button { margin-left: auto; border: 0; background: transparent; color: var(--muted); }
#modal-body { padding: 22px; }
.toast-region { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 5px; background: #1c1f22; box-shadow: 0 12px 35px rgba(0,0,0,.35); }
.toast.error { border-left-color: var(--danger); }
.loading { min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.loading span { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-bottom: 0; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .client-home-grid { grid-template-columns: 1fr; }
  .client-license-layout { grid-template-columns: 1fr; }
  .client-license-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-facts > span:nth-child(2) { border-right: 0; }
  .license-facts > span:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .device-record { grid-template-columns: 220px minmax(0, 1fr); }
  .device-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-facts > span:nth-child(2) { border-right: 0; }
  .device-facts > span:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .support-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .ticket-controls { flex-wrap: wrap; justify-content: flex-end; }
  .store-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; }
  .admin-product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: flex; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 12px 0 40px rgba(0,0,0,.45); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .menu-button { display: block; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 4px; padding: 7px 9px; }
  .top-actions span:last-child { display: none; }
  .content { padding: 20px 16px 40px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { margin-left: 0; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .input-button-row { grid-template-columns: 1fr; }
  .toolbar .search { max-width: none; width: 100%; }
  .toolbar .button:last-child { margin-left: 0; }
  .announcement { grid-template-columns: 8px 1fr; }
  .announcement time { grid-column: 2; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .system-bar { align-items: flex-start; flex-direction: column; }
  .system-bar small { display: none; }
  .activity-row { grid-template-columns: 9px minmax(130px, 1fr) auto; }
  .activity-row > .mono { display: none; }
  .inline-summary { overflow-x: auto; }
  .inline-summary span { white-space: nowrap; }
  .client-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-metrics .metric:last-child { grid-column: 1 / -1; }
  .access-state { white-space: nowrap; }
  .license-select { width: 100%; }
  .client-license-list { grid-template-columns: 1fr; }
  .client-license-card header, .client-license-card footer, .license-detail-head { align-items: flex-start; flex-direction: column; }
  .client-license-card footer { width: 100%; }
  .client-license-card footer .button { width: 100%; }
  .client-license-meta { grid-template-columns: 1fr; }
  .client-license-meta span { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .client-license-meta span:last-child { border-bottom: 0; }
  .license-summary > header { align-items: flex-start; flex-direction: column; }
  .license-summary > header > div:last-child { width: 100%; justify-content: space-between; }
  .license-tabs { gap: 16px; }
  .device-record { display: block; }
  .device-record > header { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .payment-banner { align-items: flex-start; flex-direction: column; }
  .store-layout { display: flex; flex-direction: column; }
  .store-catalog, .cart-panel { width: 100%; }
  .cart-panel { position: static; order: -1; }
  .featured-grid, .store-grid { grid-template-columns: 1fr; }
  .featured-grid .store-product { display: flex; }
  .featured-grid .product-media { min-height: 0; aspect-ratio: 16 / 6.8; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .admin-product-card { grid-template-columns: 105px minmax(0, 1fr); }
  .admin-product-meta { grid-template-columns: 1fr; }
  .admin-product-meta > span { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .admin-product-meta > span:last-child { border-bottom: 0; }
  .support-shell { height: auto; min-height: 0; display: block; }
  .support-rail { max-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
  .support-conversation { min-height: 610px; }
  .conversation-head { align-items: flex-start; flex-direction: column; }
  .admin-conversation-head { min-height: 160px; }
  .ticket-controls { width: 100%; justify-content: stretch; }
  .ticket-controls select { min-width: 0; flex: 1; }
  .message { max-width: 88%; }
  .reply-box, .admin-reply-box { grid-template-columns: 1fr; }
  .admin-reply-box > div { grid-template-columns: 1fr auto; align-items: center; }
}
