:root {
  --ink: #090d18;
  --panel: #111827;
  --panel-raised: #182136;
  --line: #2a3650;
  --paper: #f7f5ee;
  --muted: #9aa7bd;
  --blue: #6f8cff;
  --blue-bright: #9aabff;
  --danger: #ff6b79;
  --rarity-1: #d8dee9;
  --rarity-2: #4aa8ff;
  --rarity-3: #b67cff;
  --rarity-4: #ffc857;
  --rarity-5: #ff6577;
  --rarity-6: #65f2d0;
  --radius: 18px;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% -10%, #1e2d59 0, transparent 36rem), var(--ink); color: var(--paper); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button, select { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--rarity-6); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.rarity-rail { position: fixed; inset: 0 auto 0 0; width: 6px; display: grid; grid-template-rows: repeat(6, 1fr); z-index: 20; }
.rarity-rail span { background: var(--rail-color); box-shadow: 0 0 20px color-mix(in srgb, var(--rail-color) 45%, transparent); }
.rarity-rail span:nth-child(1) { --rail-color: var(--rarity-1); }
.rarity-rail span:nth-child(2) { --rail-color: var(--rarity-2); }
.rarity-rail span:nth-child(3) { --rail-color: var(--rarity-3); }
.rarity-rail span:nth-child(4) { --rail-color: var(--rarity-4); }
.rarity-rail span:nth-child(5) { --rail-color: var(--rarity-5); }
.rarity-rail span:nth-child(6) { --rail-color: var(--rarity-6); }
.topbar { min-height: 82px; padding: 16px clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 52px; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 8px; transform: rotate(-4deg); color: var(--blue-bright); font-family: Consolas, monospace; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .01em; }
.brand small { color: var(--muted); font: 12px/1.3 Consolas, monospace; text-transform: uppercase; letter-spacing: .11em; }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.topbar nav > a:not(.button) { padding: 10px; text-decoration: none; color: var(--muted); }
.topbar form { margin: 0; }
main { width: min(1440px, calc(100% - clamp(32px, 8vw, 120px))); margin: 0 auto; padding: clamp(36px, 6vw, 76px) 0 90px; }

h1, h2 { margin: 0; font-family: "Arial Black", "Segoe UI", sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(2.25rem, 5vw, 5.2rem); line-height: .94; }
h2 { font-size: 1.2rem; }
.eyebrow { margin: 0 0 12px; color: var(--blue-bright); font: 700 13px/1.3 Consolas, monospace; text-transform: uppercase; letter-spacing: .14em; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; cursor: pointer; font-weight: 650; color: var(--paper); background: none; }
.button-primary { color: #091020; background: var(--blue-bright); box-shadow: 0 8px 28px #6f8cff2b; }
.button-primary:hover { background: #b3bfff; }
.button-secondary { border-color: var(--line); background: var(--panel-raised); }
.button-quiet { color: var(--muted); }
.button-danger { border-color: #71313b; color: #ffadb5; background: #351821; }
.button-wide { width: 100%; }

.workspace-heading { display: flex; gap: 40px; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats div { padding: 13px 18px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { color: var(--muted); font-size: .78rem; }
.stats dd { margin: 2px 0 0; font: 700 1.45rem/1 Consolas, monospace; }
.filters { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto auto; gap: 10px; margin-bottom: 28px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--paper); padding: 11px 13px; }
input::placeholder, textarea::placeholder { color: #6f7d94; }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
select { cursor: pointer; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel-raised), var(--panel)); transition: transform .2s ease, border-color .2s ease; }
.catalog-card:hover { transform: translateY(-4px); border-color: #4c5e82; }
.catalog-card.is-archived { filter: saturate(.55); opacity: .72; }
.card-image { aspect-ratio: 4/5; display: block; position: relative; overflow: hidden; background: #070a12; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card:hover .card-image img { transform: scale(1.035); }
.archive-stamp { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%) rotate(-8deg); padding: 8px 18px; border: 3px solid var(--paper); color: var(--paper); font: 800 1.2rem Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.card-body { padding: 18px; }
.rarity { display: inline-flex; width: fit-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-bright); font: 700 .75rem Consolas, monospace; text-transform: uppercase; letter-spacing: .06em; }
.catalog-card[data-rarity="Обычный"] .rarity { color: var(--rarity-1); }
.catalog-card[data-rarity="Редкий"] .rarity { color: var(--rarity-2); }
.catalog-card[data-rarity="Эпический"] .rarity { color: var(--rarity-3); }
.catalog-card[data-rarity="Легендарный"] .rarity { color: var(--rarity-4); }
.catalog-card[data-rarity="Ультра"] .rarity { color: var(--rarity-5); }
.catalog-card[data-rarity="Ьє"] .rarity { color: var(--rarity-6); }
.card-body h2 { margin: 12px 0 8px; }
.card-body h2 a { text-decoration: none; }
.card-body p { min-height: 3.2em; margin: 0; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-actions a { color: var(--blue-bright); font-size: .88rem; }
.empty-state { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p { color: var(--muted); margin: 9px 0 22px; }
.empty-card { width: 100px; height: 130px; display: grid; place-items: center; margin-bottom: 22px; border: 2px dashed #536486; border-radius: 14px; color: var(--blue-bright); font-size: 2.5rem; transform: rotate(5deg); }

.form-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(420px, 1.3fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.form-heading { position: sticky; top: 140px; }
.form-heading > p:last-child { max-width: 32rem; color: var(--muted); line-height: 1.65; }
.back-link { display: inline-block; margin-bottom: 42px; color: var(--muted); text-decoration: none; }
.editor { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 80px #0004; }
.editor > label, .editor fieldset { display: block; margin: 0 0 26px; border: 0; padding: 0; }
.editor label > span:first-child, .editor legend { display: block; margin-bottom: 9px; font-weight: 700; }
.editor label > small { display: block; color: var(--muted); margin-top: 7px; }
.rarity-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.rarity-picker label { cursor: pointer; }
.rarity-picker label:nth-child(1) { --pick-color: var(--rarity-1); }
.rarity-picker label:nth-child(2) { --pick-color: var(--rarity-2); }
.rarity-picker label:nth-child(3) { --pick-color: var(--rarity-3); }
.rarity-picker label:nth-child(4) { --pick-color: var(--rarity-4); }
.rarity-picker label:nth-child(5) { --pick-color: var(--rarity-5); }
.rarity-picker label:nth-child(6) { --pick-color: var(--rarity-6); }
.rarity-picker input { position: absolute; opacity: 0; pointer-events: none; }
.rarity-picker span { min-height: 78px; display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; margin: 0 !important; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); }
.rarity-picker b { grid-row: span 2; font-size: 1.35rem; }
.rarity-picker small { color: #718099; font: .72rem Consolas, monospace; }
.rarity-picker input:checked + span { border-color: var(--pick-color); color: var(--paper); box-shadow: inset 0 0 0 1px var(--pick-color), 0 0 22px color-mix(in srgb, var(--pick-color) 15%, transparent); }
.rarity-picker input:focus-visible + span { outline: 3px solid var(--rarity-6); outline-offset: 3px; }
.upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-drop { min-height: 104px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; margin: 0 !important; border: 1px dashed #566887; border-radius: 12px; cursor: pointer; color: var(--blue-bright); }
.upload-drop small { margin-top: 5px; color: var(--muted); }
.upload-field input:focus-visible + .upload-drop { outline: 3px solid var(--rarity-6); outline-offset: 3px; }
.current-image { display: flex; align-items: center; gap: 12px; margin: -8px 0 26px; color: var(--muted); font-size: .82rem; }
.current-image img { width: 56px; height: 70px; object-fit: cover; border-radius: 7px; }
.editor-actions, .detail-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert { margin-bottom: 22px; padding: 13px 15px; border: 1px solid #71313b; border-radius: 10px; color: #ffb1b9; background: #351821; }

.detail-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(380px, 1.22fr); gap: clamp(45px, 9vw, 130px); align-items: center; }
.detail-image { aspect-ratio: 4/5; max-height: 70vh; position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: 28px 28px 0 -18px #23304a, 0 30px 80px #0006; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image.is-archived { filter: saturate(.5); }
.detail-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; color: var(--muted); font: .8rem Consolas, monospace; }
.detail-copy h1 { max-width: 780px; overflow-wrap: anywhere; }
.description { margin: 24px 0 30px; max-width: 680px; color: #c7cfdd; font-size: 1.08rem; line-height: 1.7; white-space: pre-line; }
.record-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 30px; border-block: 1px solid var(--line); }
.record-meta div { padding: 16px 12px 16px 0; }
.record-meta dt { color: var(--muted); font-size: .78rem; }
.record-meta dd { margin: 5px 0 0; font-size: .9rem; }
.history-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 50px; margin-top: 90px; padding-top: 36px; border-top: 1px solid var(--line); }
.history-table div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.history-table time { color: var(--muted); font: .82rem Consolas, monospace; }
.toast { position: fixed; right: 28px; top: 102px; z-index: 30; padding: 13px 18px; border: 1px solid #497867; border-radius: 10px; background: #102b25; color: #9effdc; box-shadow: 0 16px 40px #0006; }

.control-heading { display: grid; grid-template-columns: 1fr minmax(280px, .72fr); align-items: end; gap: 50px; margin-bottom: 42px; }
.control-heading > p { max-width: 530px; margin: 0 0 4px; color: var(--muted); line-height: 1.65; }
.grant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grant-card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel-raised), var(--panel)); }
.grant-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; top: -110px; border: 1px solid var(--grant-accent); border-radius: 50%; box-shadow: 0 0 80px color-mix(in srgb, var(--grant-accent) 18%, transparent); pointer-events: none; }
.grant-spins { --grant-accent: var(--rarity-3); }
.grant-coins { --grant-accent: var(--rarity-4); }
.grant-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid var(--grant-accent); border-radius: 15px; color: var(--grant-accent); font: 800 1.7rem Consolas, monospace; }
.grant-card h2 { font-size: 2rem; }
.grant-card > .muted { min-height: 3em; margin: 10px 0 26px; line-height: 1.5; }
.grant-card label { display: block; margin-bottom: 18px; }
.grant-card label > span { display: block; margin-bottom: 8px; font-weight: 700; }
.grant-card .button { margin-top: 8px; }
.player-balances, .grant-history { display: grid; grid-template-columns: minmax(210px, .45fr) 1.55fr; gap: 46px; margin-top: 70px; padding-top: 32px; border-top: 1px solid var(--line); }
.balance-list article, .grant-history-list article { display: grid; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.balance-list article { grid-template-columns: 1fr auto auto; }
.balance-list div, .grant-history-list div { min-width: 0; }
.balance-list strong, .balance-list small, .grant-history-list strong, .grant-history-list small { display: block; }
.balance-list small, .grant-history-list small { margin-top: 4px; color: var(--muted); font: .78rem Consolas, monospace; }
.balance-list article > span { min-width: 86px; font: 700 .95rem Consolas, monospace; }
.grant-history-list article { grid-template-columns: auto 1fr auto; }
.grant-history-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.grant-history-list time { color: var(--muted); font: .78rem Consolas, monospace; white-space: nowrap; }
.broadcast-section { display: grid; grid-template-columns: minmax(230px, .55fr) 1.45fr; gap: 46px; margin-top: 28px; padding: clamp(24px, 4vw, 42px); border: 1px solid #5c4b2b; border-radius: var(--radius); background: linear-gradient(135deg, #1c1d2b, var(--panel)); }
.broadcast-copy .grant-symbol { --grant-accent: var(--rarity-4); }
.broadcast-copy > p:last-child { line-height: 1.55; }
.broadcast-section form label { display: block; margin-bottom: 18px; }
.broadcast-section form label > span { display: block; margin-bottom: 8px; font-weight: 700; }
.broadcast-section form label > small { display: block; margin-top: 7px; color: var(--muted); }
.broadcast-section textarea { min-height: 160px; }

.section-tabs { display: flex; gap: 8px; margin: -4px 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-tabs a { min-width: 150px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); text-align: center; text-decoration: none; background: var(--panel); }
.section-tabs a.is-active { border-color: var(--blue); color: var(--paper); background: var(--panel-raised); box-shadow: inset 0 -2px var(--blue-bright); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.catalog-toolbar p { margin: 0; color: var(--muted); }
.cosmetic-catalog .card-image { cursor: default; }
.decoration-card-preview { display: grid; place-items: center; background: radial-gradient(circle, #34415b 0 1px, transparent 1px) 0 0/16px 16px, #0c1220; }
.decoration-card-preview img { width: 88%; height: 88%; object-fit: contain; }
.theme-card-preview { display: grid; place-items: center; background: radial-gradient(circle at 70% 22%, color-mix(in srgb, var(--theme-preview) 85%, white), transparent 34%), linear-gradient(145deg, color-mix(in srgb, var(--theme-preview) 34%, #090d18), #090d18); }
.theme-card-preview > span:first-child { font-size: 4.5rem; filter: drop-shadow(0 18px 24px #0008); }
.catalog-settings { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.catalog-settings label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; }
.catalog-settings input[type="number"] { min-height: 42px; }

.shop-admin-heading .muted { max-width: 690px; margin-top: 14px; line-height: 1.6; }
.shop-ledger { justify-self: end; padding: 18px 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font: .85rem Consolas, monospace; background: var(--panel); }
.shop-ledger span { color: var(--paper); font-size: 1.5rem; font-weight: 800; }
.shop-ledger i { margin: 0 12px; color: var(--rarity-6); font-style: normal; }
.cosmetic-admin-grid { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(430px, 1.1fr); gap: 26px; align-items: start; }
.decoration-editor { padding: clamp(24px, 4vw, 38px); }
.decoration-editor .form-heading { position: static; margin-bottom: 24px; }
.decoration-editor label > span, .decoration-editor legend { display: block; margin-bottom: 8px; font-weight: 700; }
.decoration-editor > label { display: block; margin-bottom: 18px; }
.theme-prices { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel-raised), var(--panel)); }
.theme-price-list { display: grid; gap: 9px; margin-top: 24px; }
.theme-price-list form { display: grid; grid-template-columns: 48px minmax(115px, 1fr) 100px 110px auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #0b101c; }
.theme-swatch { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--theme-preview); border-radius: 50%; box-shadow: 0 0 20px color-mix(in srgb, var(--theme-preview) 24%, transparent); }
.theme-price-list input[type="number"] { min-height: 40px; padding: 7px 9px; }
.availability { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.availability input { width: auto; min-height: auto; margin-right: 5px; }
.decoration-library { margin-top: 76px; padding-top: 34px; border-top: 1px solid var(--line); }
.decoration-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.decoration-item { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.decoration-item.is-archived { opacity: .62; }
.decoration-preview { height: 210px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; overflow: hidden; background: radial-gradient(circle, #2d3750 0 1px, transparent 1px) 0 0/14px 14px, #111827; }
.decoration-preview img { width: 90%; height: 90%; object-fit: contain; }
.decoration-item h3 { margin: 10px 0 18px; font-size: 1.25rem; }
.decoration-item form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.decoration-item form > label:first-of-type { grid-column: 1/-1; }
.decoration-item label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; }
.empty-state.compact { min-height: 220px; margin-top: 24px; }

.login-page { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #273863 0, #0a0e19 48%, #05070d 100%); }
.login-shell { width: min(100% - 32px, 520px); padding: 30px 0; }
.login-card { position: relative; overflow: hidden; padding: clamp(30px, 7vw, 58px); border: 1px solid #34415d; border-radius: 28px; background: #101727ed; box-shadow: 0 40px 100px #0008; }
.login-card h1 { margin-bottom: 20px; }
.login-copy { max-width: 310px; margin-bottom: 30px; color: var(--muted); line-height: 1.55; }
.login-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.login-form input { margin-bottom: 12px; }
.login-emblem { position: absolute; width: 150px; height: 205px; right: -55px; top: -42px; display: grid; place-items: center; border: 1px solid var(--rarity-6); border-radius: 20px; transform: rotate(14deg); color: var(--rarity-6); box-shadow: inset 0 0 50px #65f2d012, 0 0 50px #65f2d014; }
.login-emblem span { font: 800 1.7rem Consolas, monospace; }

@media (max-width: 900px) {
  .topbar { position: static; align-items: flex-start; gap: 20px; }
  .topbar nav > a:not(.button), .topbar .button-quiet { display: none; }
  .workspace-heading, .form-layout, .detail-layout, .history-section, .control-heading, .player-balances, .grant-history, .broadcast-section, .cosmetic-admin-grid { grid-template-columns: 1fr; display: grid; }
  .shop-ledger { justify-self: start; }
  .decoration-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .grant-grid { grid-template-columns: 1fr; }
  .workspace-heading { align-items: start; }
  .stats { width: 100%; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1/-1; }
  .form-heading { position: static; }
  .back-link { margin-bottom: 26px; }
  .detail-image { width: min(100%, 520px); max-height: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 14px 20px 14px 24px; }
  .brand strong { font-size: .9rem; }
  .brand small { display: none; }
  .topbar nav { margin-left: auto; }
  .topbar .button-primary { padding: 0 12px; font-size: .85rem; }
  main { width: calc(100% - 40px); padding-top: 34px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(4) { border-top: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .card-grid { grid-template-columns: 1fr; }
  .rarity-picker { grid-template-columns: 1fr 1fr; }
  .editor { padding: 20px; }
  .record-meta { grid-template-columns: 1fr; }
  .record-meta div { border-bottom: 1px solid var(--line); }
  .record-meta div:last-child { border-bottom: 0; }
  .toast { inset: 12px 12px auto; text-align: center; }
  .balance-list article { grid-template-columns: 1fr auto; }
  .balance-list article > span:last-child { grid-column: 2; }
  .grant-history-list article { grid-template-columns: auto 1fr; }
  .grant-history-list time { grid-column: 2; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .theme-price-list form { grid-template-columns: 44px 1fr 90px; }
  .theme-price-list .availability { grid-column: 2; }
  .theme-price-list .button { grid-column: 3; grid-row: 2; }
  .decoration-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
