:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #101828;
  --muted: #71809a;
  --line: #e4e9f1;
  --blue: #2468e8;
  --blue-light: #5bc0ed;
  --green: #22a879;
  --orange: #f47a1f;
  --ink: #1a2233;
  --shadow: 0 10px 28px rgba(26, 47, 85, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(36, 104, 232, .08), transparent 25rem),
    linear-gradient(180deg, #f8faff 0, var(--bg) 34rem);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, select, label[for] { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(36, 104, 232, .22); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { max-width: 1540px; margin: 0 auto; padding: 34px 44px 24px; }
.topbar { display: grid; grid-template-columns: minmax(320px, 1fr) auto minmax(320px, 1fr); align-items: center; gap: 26px; margin-bottom: 54px; }
.brand { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.brand-mark { color: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 37px; height: 37px; stroke-width: 1.7; }
.brand strong { display: block; font-size: 27px; line-height: 1.15; letter-spacing: -.8px; }
.brand small { display: block; color: var(--muted); margin-top: 7px; font-size: 13px; }
.header-actions { display: flex; justify-content: flex-end; gap: 10px; }
.collection-switch { display: flex; padding: 5px; background: #e9eef6; border: 1px solid rgba(119, 139, 173, .12); border-radius: 13px; }
.switch-button { border: 0; background: transparent; color: #69768c; padding: 10px 15px; border-radius: 9px; font-weight: 700; white-space: nowrap; transition: .2s ease; }
.switch-button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 3px 10px rgba(44, 64, 99, .1); }
.switch-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: #fff1e7; color: var(--orange); font-size: 11px; }
.switch-count.licensed-count { background: #eaf1ff; color: var(--blue); }

.button, .icon-button { border: 1px solid var(--line); color: var(--text); background: var(--surface); border-radius: 12px; min-height: 44px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; }
.button svg { width: 18px; }
.button:hover, .icon-button:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(35, 54, 90, .1); }
.button-muted { background: #edf1f6; color: #56647a; border-color: #e0e5ed; }
.button-dark { color: white; background: var(--ink); border-color: var(--ink); }
.icon-button { width: 44px; padding: 0; font-size: 23px; display: grid; place-items: center; }
.icon-button.primary { border-color: var(--blue); background: var(--blue); color: white; }
.icon-button svg { width: 19px; }

.view { display: none; animation: view-in .38s ease both; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.orange { color: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(34px, 4vw, 55px); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.lead { margin: 0; max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.completion-ring { --value: 0; flex: 0 0 auto; width: 132px; height: 132px; padding: 11px; border-radius: 50%; background: conic-gradient(from 8deg, var(--blue-light), var(--blue) calc(var(--value) * 1%), #e7ebf1 0); box-shadow: var(--shadow); position: relative; }
.completion-ring::after { content: ""; position: absolute; inset: 11px; border-radius: inherit; background: var(--surface); }
.completion-ring > div { position: relative; z-index: 1; height: 100%; display: grid; align-content: center; justify-items: center; }
.completion-ring strong { color: var(--blue); font-size: 33px; letter-spacing: -1.5px; }
.completion-ring span { color: var(--muted); font-size: 12px; }
.orange-ring { background: conic-gradient(from 8deg, #ffc66d, var(--orange) calc(var(--value) * 1%), #e7ebf1 0); }
.orange-ring strong { color: var(--orange); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi-card, .platform-card, .chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi-card { min-height: 155px; padding: 25px 28px; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; right: -20px; bottom: -40px; width: 100px; height: 100px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.kpi-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.kpi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }
.kpi-value { display: block; margin-top: 22px; color: var(--accent); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -2px; }
.kpi-detail { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }

.filter-row { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.filter-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-label svg { width: 17px; }
select, .search-field, .field input, .field textarea { min-height: 44px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 11px; }
select { padding: 0 34px 0 13px; }
.section-block { margin-top: 54px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.section-note { color: var(--muted); font-size: 12px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform-card { padding: 23px 25px 24px; }
.platform-card.is-hidden { display: none; }
.platform-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.platform-top h3 { margin: 0; font-size: 18px; }
.platform-percent { color: var(--blue); font-size: 25px; font-weight: 800; }
.platform-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 19px; }
.platform-stats span { color: var(--muted); font-size: 11px; }
.platform-stats strong { display: block; color: var(--text); font-size: 16px; margin-top: 5px; }
.platform-stats > div:nth-child(2) strong { color: var(--green); }
.platform-stats > div:nth-child(3) strong { color: var(--orange); }
.progress { height: 10px; border-radius: 10px; overflow: hidden; background: #e9edf3; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-light)); }

.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chart-card { min-height: 330px; padding: 26px; }
.chart-card h3 { font-size: 16px; margin-bottom: 25px; }
.chart-center { min-height: 225px; display: grid; place-items: center; }
.pie-chart, .donut-chart { width: 190px; height: 190px; border-radius: 50%; position: relative; }
.pie-chart { background: conic-gradient(var(--blue) 0 36.8%, var(--green) 36.8% 72.5%, var(--orange) 72.5% 100%); }
.donut-chart::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: var(--surface); }
.donut-label { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: center; }
.donut-label strong { font-size: 30px; }
.donut-label span { color: var(--muted); font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; color: var(--muted); font-size: 11px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.bar-chart { display: grid; gap: 26px; width: 100%; }
.bar-row { display: grid; grid-template-columns: 42px 1fr 36px; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.bar-track { height: 18px; background: #edf0f5; border-radius: 0 7px 7px 0; overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: 0 7px 7px 0; background: var(--blue); }
.backlog-chart { display: grid; gap: 18px; width: 100%; }
.backlog-total { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.backlog-total strong { display: block; color: var(--orange); font-size: 42px; line-height: 1; letter-spacing: -1.5px; }
.backlog-total span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.backlog-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; font-size: 11px; }
.backlog-row > span { color: var(--muted); }
.backlog-row > strong { min-width: 26px; text-align: right; }
.backlog-track { height: 9px; border-radius: 9px; background: #edf0f5; overflow: hidden; }
.backlog-track i { display: block; height: 100%; border-radius: inherit; }
.backlog-share { color: var(--muted); font-size: 10px; font-weight: 500; }

.archive-principle { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; padding: 17px 21px; background: linear-gradient(90deg, #fff7f0, #fff); border: 1px solid #f7dcc9; border-radius: 14px; }
.archive-principle p { margin: 0; max-width: 920px; color: #6f5a4d; font-size: 13px; line-height: 1.55; }
.archive-stamp { flex: 0 0 auto; transform: rotate(-3deg); border: 2px solid var(--orange); border-radius: 5px; padding: 5px 9px; color: var(--orange); font: 800 10px/1.1 "Manrope", sans-serif; letter-spacing: .09em; text-align: center; }
.bootleg-analytics { grid-template-columns: 1fr 1fr .8fr; }
.studio-bars { display: grid; gap: 14px; width: 100%; }
.studio-row { display: grid; grid-template-columns: minmax(80px, 120px) 1fr 28px; gap: 10px; align-items: center; font-size: 11px; }
.studio-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-track { height: 8px; border-radius: 8px; background: #edf0f5; overflow: hidden; }
.studio-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f3a05d, var(--orange)); }
.studio-card .studio-bars { padding-top: 8px; }
.studio-empty { min-height: 180px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.catalog-section { margin-top: 54px; }
.catalog-heading-actions { display: flex; gap: 9px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; gap: 10px; margin-bottom: 14px; }
.licensed-toolbar { grid-template-columns: minmax(250px, 1fr) auto auto; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 13px; }
.search-field svg { flex: 0 0 auto; width: 17px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.catalog-summary { margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.game-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.licensed-list { display: grid; gap: 10px; }
.licensed-list-header { display: grid; grid-template-columns: minmax(240px, 1.6fr) 80px 115px 130px 110px minmax(245px, auto); gap: 14px; padding: 0 18px 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.licensed-list-header span:nth-last-child(-n+2) { text-align: right; }
.licensed-list-header span:nth-child(2), .quantity-value { text-align: center; }
.licensed-game { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; }
.licensed-game-head { display: grid; grid-template-columns: minmax(240px, 1.6fr) 80px 115px 130px 110px minmax(245px, auto); gap: 14px; align-items: center; min-height: 78px; padding: 16px 18px; }
.licensed-game-head > .badge { justify-self: end; }
.licensed-game-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.platform-token { flex: 0 0 auto; width: 48px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #eaf1ff; color: var(--blue); font-size: 10px; font-weight: 800; }
.licensed-game-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.licensed-game-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: var(--muted); font-size: 10px; }
.licensed-value { min-width: 0; color: #526176; font-size: 11px; font-weight: 700; }
.quantity-value { display: block; width: 100%; }
.licensed-value.regions { white-space: normal; line-height: 1.45; }
.copy-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border-radius: 7px; background: #f0f4fa; color: #526176; font-size: 10px; font-weight: 700; }
.licensed-actions { display: flex; justify-content: flex-end; gap: 6px; }
.action-text-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #56647a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.action-text-button:hover { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.expand-button { transition: transform .2s ease; }
.licensed-game.is-open .expand-button { transform: rotate(180deg); }
.licensed-copies { display: none; border-top: 1px solid var(--line); background: var(--surface-soft); }
.licensed-game.is-open .licensed-copies { display: block; }
.copy-list-header { display: grid; grid-template-columns: 70px 105px 145px minmax(155px, 1fr) minmax(130px, 1fr) auto; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.copy-row { display: grid; grid-template-columns: 70px 105px 145px minmax(155px, 1fr) minmax(130px, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 11px; }
.copy-row:last-child { border-bottom: 0; }
.copy-field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.copy-field strong { font-size: 11px; }
.condition-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 4px 8px; border-radius: 7px; background: #eef1f5; font-weight: 800; }
.condition-pill[data-condition="4"], .condition-pill[data-condition="5"] { color: #13835c; background: #e9f8f2; }
.condition-pill[data-condition="3"] { color: #b05b19; background: #fff2e7; }
.condition-pill[data-condition="NEW"] { color: #315fba; background: #edf3ff; }
.price-pair { display: flex; flex-wrap: wrap; gap: 7px; }
.price-pair b { font-size: 12px; }
.copy-note { color: var(--muted); line-height: 1.45; }
.copy-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; color: var(--muted); font-size: 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; }
.dialog-context { display: block; margin-top: 7px; color: var(--muted); }
.game-table { width: 100%; border-collapse: collapse; }
.game-table th { padding: 15px 17px; background: var(--surface-soft); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.game-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.game-table tr:last-child td { border-bottom: 0; }
.game-table tr:hover td { background: color-mix(in srgb, var(--orange) 2.5%, var(--surface)); }
.game-title { display: flex; align-items: center; gap: 12px; }
.cover-cell { width: 92px; }
.cover-placeholder, .cover-image { width: 68px; height: 68px; aspect-ratio: 1; border-radius: 7px; box-shadow: 0 5px 12px rgba(16,24,40,.16); }
.cover-placeholder { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #343a48, #111827 65%, var(--orange)); font-size: 11px; font-weight: 800; }
.cover-image { display: block; object-fit: cover; background: #e8ecf2; cursor: zoom-in; position: relative; z-index: 1; transition: transform .2s ease, box-shadow .2s ease; }
.cover-image:hover { z-index: 3; transform: scale(1.14); box-shadow: 0 12px 25px rgba(16,24,40,.25); }
.game-title strong { display: block; font-size: 13px; }
.game-title small { display: block; margin-top: 4px; color: var(--muted); }
.translation { max-width: 180px; }
.translation strong, .translation span { display: block; }
.translation span { color: var(--muted); margin-top: 3px; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-search { color: #d96919; background: #fff2e7; }
.status-found { color: #315fba; background: #edf3ff; }
.status-owned { color: #13835c; background: #e9f8f2; }
.status-replace { color: #bd3845; background: #fff0f1; }
.status-archive { color: #6d51aa; background: #f3effc; }
.match-badge { min-width: 106px; justify-content: center; }
.match-yes { color: #13835c; background: #e9f8f2; }
.match-no { color: #bd3845; background: #fff0f1; }
.match-waiting { color: #315fba; background: #edf3ff; }
.match-unknown { color: #69768c; background: #eef1f5; }
.note-cell { max-width: 260px; color: var(--muted); line-height: 1.5; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.row-button:hover { color: var(--blue); }
.row-button svg { width: 14px; }
.empty-state { padding: 55px; display: grid; justify-items: center; gap: 7px; color: var(--muted); }
.empty-state strong { color: var(--text); font-size: 18px; }

footer { display: flex; justify-content: center; gap: 11px; margin-top: 54px; padding: 24px; color: var(--muted); font-size: 11px; }
footer span + span::before { content: "·"; margin-right: 11px; }

dialog { width: min(760px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(16, 24, 40, .27); }
dialog::backdrop { background: rgba(20, 29, 44, .48); backdrop-filter: blur(4px); }
dialog form { padding: 28px; }
.cover-dialog { width: min(620px, calc(100% - 30px)); overflow: visible; background: transparent; box-shadow: none; }
.cover-dialog-inner { position: relative; display: grid; justify-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 90px rgba(16, 24, 40, .32); }
.cover-dialog-inner img { display: block; max-width: 100%; max-height: min(72vh, 720px); border-radius: 10px; object-fit: contain; background: #eef1f5; }
.cover-dialog-inner strong { max-width: 100%; padding: 0 10px 4px; font-size: 14px; text-align: center; }
.cover-dialog-close { position: absolute; z-index: 2; top: 25px; right: 25px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: rgba(16,24,40,.76); color: #fff; font-size: 0; line-height: 0; }
.cover-dialog-close svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.dialog-heading h2 { font-size: 27px; }
.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field span { color: var(--muted); font-size: 11px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 11px 12px; resize: vertical; }
.field select { width: 100%; }
.cover-upload-field small { color: var(--muted); font-size: 10px; }
.cover-upload-field input[type="file"] { padding: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 17px; border-radius: 11px; background: var(--ink); color: white; font-size: 12px; box-shadow: 0 15px 40px rgba(15,23,42,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: none; }

body.dark {
  --bg: #151a22; --surface: #202631; --surface-soft: #252c38; --text: #f2f5fa; --muted: #9ba8ba; --line: #313a48; --ink: #0f141c; --shadow: 0 11px 32px rgba(0,0,0,.19);
  background: radial-gradient(circle at 10% -10%, rgba(50,120,255,.14), transparent 25rem), #151a22;
}
body.dark .collection-switch, body.dark .button-muted { background: #262e3a; }
body.dark .archive-principle { background: linear-gradient(90deg, #31271f, #202631); border-color: #4b382b; }
body.dark .archive-principle p { color: #c7ad9b; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .collection-switch { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .chart-card:last-child { grid-column: 1 / -1; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .licensed-game-head { grid-template-columns: minmax(210px, 1.4fr) 70px 100px 115px 100px minmax(220px, auto); }
  .licensed-list-header { grid-template-columns: minmax(210px, 1.4fr) 70px 100px 115px 100px minmax(220px, auto); }
  .copy-row { grid-template-columns: 60px 95px 130px 1fr auto; }
  .copy-list-header { display: none; }
  .copy-row .copy-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .app-shell { padding: 22px 17px; }
  .topbar { display: flex; flex-wrap: wrap; margin-bottom: 42px; }
  .brand { width: 100%; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 11px; }
  .collection-switch { order: 3; width: 100%; }
  .switch-button { flex: 1; padding: 9px 7px; font-size: 11px; }
  .header-actions { margin-left: auto; }
  .upload-button span { display: none; }
  .hero-row { align-items: flex-end; }
  .completion-ring { width: 94px; height: 94px; padding: 8px; }
  .completion-ring::after { inset: 8px; }
  .completion-ring strong { font-size: 23px; }
  h1 { font-size: 35px; }
  .lead { font-size: 13px; }
  .kpi-grid, .platform-grid, .analytics-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 125px; }
  .chart-card:last-child { grid-column: auto; }
  .filter-row { flex-wrap: wrap; }
  .filter-label { width: 100%; }
  .section-note { display: none; }
  .archive-principle { align-items: flex-start; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-heading { align-items: flex-start; }
  .catalog-heading-actions { flex-direction: column; }
  .licensed-game-head { grid-template-columns: minmax(150px, 1fr) auto; gap: 12px; }
  .licensed-list-header { display: none; }
  .licensed-game-head > .badge { grid-column: 1; justify-self: start; }
  .licensed-game-head > .licensed-value { grid-column: 1; }
  .licensed-actions { grid-row: 1 / span 5; grid-column: 2; align-self: start; flex-direction: column; }
  .copy-row { grid-template-columns: 1fr 1fr; }
  .copy-row .copy-note, .copy-row .licensed-actions { grid-column: 1 / -1; }
  .game-table { min-width: 1080px; }
  .game-table-wrap { overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  footer { flex-wrap: wrap; }
}
