:root {
  color-scheme: dark;
  --bg: #08080a;
  --panel: #111114;
  --panel-2: #16161a;
  --line: #27272d;
  --line-soft: #1e1e23;
  --text: #f5f5f7;
  --muted: #888891;
  --muted-2: #606069;
  --red: #ef3340;
  --red-strong: #ff2638;
  --red-soft: rgba(239, 51, 64, .12);
  --green: #36d990;
  --amber: #f5b942;
  --blue: #5d8dff;
  --radius: 14px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 5%, #1c0e12 0, transparent 30%), var(--bg); color: var(--text); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.hidden { display: none !important; }

.ambient { position: fixed; border-radius: 999px; filter: blur(120px); opacity: .13; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; background: var(--red); top: -210px; left: 25%; }
.ambient-two { width: 320px; height: 320px; background: #7b1622; bottom: -170px; right: -70px; }

.brand { display: flex; align-items: center; gap: 12px; letter-spacing: -.02em; }
.brand-mark { display: block; width: 38px; height: 38px; object-fit: cover; border-radius: 50%; box-shadow: 0 9px 28px rgba(239, 51, 64, .28); }
.brand b { display: block; font: 700 14px/1 Space Grotesk; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted-2); font-size: 8px; letter-spacing: .23em; margin-top: 5px; }
.brand-large .brand-mark { width: 50px; height: 50px; font-size: 16px; }
.brand-large b { font-size: 17px; }

.eyebrow { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.primary, .secondary, .ghost, .icon-button, .account-pill, .text-button, .danger-text { border: 0; color: var(--text); }
.primary { background: var(--red); min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 10px 24px rgba(239, 51, 64, .16); transition: .2s; }
.primary:hover { background: var(--red-strong); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(239, 51, 64, .25); }
.secondary { background: #1a1a1f; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 700; }
.secondary:hover { border-color: #42424a; }
.ghost { background: transparent; min-height: 39px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.wide { width: 100%; }

.login-layout { position: relative; z-index: 1; min-height: 100vh; display: block; }
.login-intro { padding: 60px clamp(48px, 7vw, 118px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.06); }
.intro-copy { margin: auto 0; }
.intro-copy h1 { margin: 18px 0 22px; font: 700 clamp(48px, 6vw, 86px)/.96 Space Grotesk; letter-spacing: -.065em; }
.intro-copy h1 em { color: var(--red); font-style: normal; }
.intro-copy p { color: #a1a1aa; font-size: 16px; line-height: 1.75; max-width: 580px; }
.system-line { color: var(--muted-2); font-size: 10px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.system-line i, .server-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.login-panel { width: 100vw; min-height: 100vh; display: grid; place-items: center; padding: 40px; background: rgba(10,10,12,.65); backdrop-filter: blur(18px); }
.login-card { width: min(390px, 100%); }
.login-card h2 { font: 700 34px/1.1 Space Grotesk; margin: 14px 0 8px; letter-spacing: -.04em; }
.login-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 32px; }
.mobile-brand { display: none; margin-bottom: 52px; }
.login-brand { margin-bottom: 42px; }
.remember-row { display: flex; align-items: center; gap: 9px; width: max-content; margin: -2px 0 17px; cursor: pointer; }
.remember-row input { width: 13px; min-width: 13px; height: 13px; min-height: 13px; padding: 0; margin: 0; flex: 0 0 13px; accent-color: var(--red); }
.telegram-button { margin-top: 10px; }
.telegram-link-panel { display: grid; gap: 8px; padding: 15px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 9px; background: #101014; }
.telegram-link-panel b { font-size: 13px; }
.telegram-link-panel small { color: var(--muted); line-height: 1.5; }
.telegram-link-panel button { margin-top: 5px; }

label { display: grid; gap: 9px; color: #b7b7be; font-size: 11px; font-weight: 700; letter-spacing: .03em; margin-bottom: 17px; }
input, select, textarea { width: 100%; background: #121216; border: 1px solid var(--line); color: var(--text); border-radius: 8px; outline: 0; transition: border-color .2s, box-shadow .2s; }
input, select { height: 46px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: rgba(239,51,64,.7); box-shadow: 0 0 0 3px rgba(239,51,64,.08); }
input::placeholder, textarea::placeholder { color: #53535c; }
.form-error { min-height: 21px; color: #ff6671; font-size: 12px; margin: -4px 0 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); position: relative; z-index: 1; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; background: rgba(12,12,15,.95); border-right: 1px solid var(--line-soft); padding: 26px 18px 20px; display: flex; flex-direction: column; backdrop-filter: blur(18px); z-index: 20; }
.sidebar .brand { padding: 0 8px 30px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button { height: 45px; border: 0; border-radius: 8px; color: #777780; background: transparent; text-align: left; padding: 0 12px; display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 600; transition: .18s; }
.sidebar nav button > span { color: #414148; font: 600 9px Space Grotesk; }
.sidebar nav button:hover { color: #c5c5cb; background: rgba(255,255,255,.025); }
.sidebar nav button.active { color: white; background: linear-gradient(90deg, rgba(239,51,64,.15), rgba(239,51,64,.025)); box-shadow: inset 2px 0 var(--red); }
.sidebar nav button.active > span { color: var(--red); }
.nav-badge { margin-left: auto; background: var(--red-soft); color: var(--red); padding: 3px 6px; border-radius: 99px; font-size: 9px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 18px; }
.server-state { display: flex; align-items: center; gap: 11px; padding: 0 10px; color: #777780; font-size: 9px; letter-spacing: .12em; }
.server-state span { display: grid; gap: 4px; }
.server-state small { color: var(--green); font-size: 8px; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { min-height: 91px; padding: 20px clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; background: rgba(8,8,10,.7); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.crumb { color: var(--muted-2); font-size: 8px; letter-spacing: .17em; }
.crumb b { color: var(--red); }
.topbar h1 { font: 600 19px Space Grotesk; margin: 6px 0 0; letter-spacing: -.02em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.loader-download { min-height: 39px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid rgba(239,51,64,.35); border-radius: 8px; background: rgba(239,51,64,.09); color: #fff; text-decoration: none; font-size: 9px; letter-spacing: .08em; transition: .2s; }
.loader-download span { color: var(--red); font: 700 16px Space Grotesk; }
.loader-download:hover { border-color: var(--red); background: rgba(239,51,64,.16); transform: translateY(-1px); }
.icon-button { width: 39px; height: 39px; border-radius: 8px; background: #121216; border: 1px solid var(--line); font-size: 18px; }
.icon-button:hover { border-color: #45454e; }
.menu-button { display: none; }
.account-pill { height: 43px; border-radius: 9px; background: #121216; border: 1px solid var(--line); padding: 4px 12px 4px 5px; display: grid; grid-template-columns: 33px auto; grid-template-rows: 1fr 1fr; column-gap: 9px; text-align: left; }
.account-pill > span { grid-row: 1 / 3; display: grid; place-items: center; width: 33px; height: 33px; background: var(--red-soft); color: var(--red); border-radius: 7px; font-size: 10px; font-weight: 800; }
.account-pill b { align-self: end; font-size: 10px; }
.account-pill small { align-self: start; color: var(--muted-2); font-size: 7px; letter-spacing: .12em; }

.content { padding: 38px clamp(24px, 4vw, 56px) 80px; max-width: 1640px; margin: 0 auto; }
.view { display: none; animation: appear .25s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } }
.section-heading { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { font: 650 clamp(26px, 3vw, 36px)/1.1 Space Grotesk; letter-spacing: -.045em; margin: 10px 0 0; }
.section-heading p { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.section-heading time { color: var(--muted-2); font-size: 10px; letter-spacing: .08em; margin-top: 23px; }
.heading-actions { display: flex; gap: 10px; align-self: center; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { min-height: 128px; padding: 20px; background: linear-gradient(145deg, #141417, #0f0f12); border: 1px solid var(--line-soft); border-radius: var(--radius); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; right: -45px; top: -42px; background: var(--accent, var(--red)); opacity: .13; filter: blur(3px); }
.stat-card span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.stat-card b { display: block; font: 650 28px Space Grotesk; margin-top: 23px; }
.stat-card small { color: var(--muted-2); font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; }
.panel { background: rgba(17,17,20,.93); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.panel-head { min-height: 43px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h3 { font: 600 17px Space Grotesk; margin: 7px 0 0; }
.text-button { background: transparent; color: var(--muted); font-size: 10px; align-self: center; }
.text-button:hover { color: var(--red); }
.product-list { display: grid; gap: 9px; }
.product-row { display: grid; grid-template-columns: 41px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 13px; background: #0e0e11; border: 1px solid #1d1d22; border-radius: 9px; }
.product-logo { width: 41px; height: 41px; border-radius: 9px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font: 700 11px Space Grotesk; }
.product-row b { font-size: 12px; }
.product-row small { color: var(--muted-2); display: block; font-size: 9px; margin-top: 5px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.online, .status.available { color: var(--green); background: rgba(54,217,144,.08); }
.status.updating { color: var(--amber); background: rgba(245,185,66,.08); }
.status.offline, .status.redeemed, .status.disabled { color: #777780; background: rgba(120,120,130,.08); }
.activity-list { display: grid; }
.activity-item { position: relative; padding: 3px 0 17px 20px; border-left: 1px solid #26262c; margin-left: 4px; }
.activity-item:last-child { padding-bottom: 0; border-color: transparent; }
.activity-item::before { content: ''; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #18181c; }
.activity-item b { display: block; font-size: 10px; line-height: 1.45; }
.activity-item span { color: var(--muted-2); font-size: 8px; }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.release-guide-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid rgba(229,46,63,.32); border-radius: var(--radius); background: linear-gradient(110deg, rgba(229,46,63,.11), rgba(17,17,20,.95) 58%); }
.guide-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,82,101,.45); border-radius: 11px; color: #ff5265; background: rgba(229,46,63,.1); font: 700 21px Space Grotesk; }
.release-guide-banner h3 { margin: 6px 0 4px; font: 600 16px Space Grotesk; }
.release-guide-banner p { color: var(--muted); font-size: 10px; }
.release-guide-banner .text-button { white-space: nowrap; }
.project-card { background: rgba(17,17,20,.96); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.project-hero { padding: 24px; min-height: 158px; position: relative; background: linear-gradient(135deg, #18181c 0%, #0e0e11 75%); }
.project-hero::after { content: attr(data-code); position: absolute; right: 18px; bottom: -13px; font: 800 82px/.8 Space Grotesk; color: rgba(255,255,255,.022); letter-spacing: -.09em; }
.project-title { display: flex; justify-content: space-between; gap: 16px; }
.project-title h3 { font: 700 27px Space Grotesk; margin: 15px 0 6px; }
.project-title p { color: var(--muted); font-size: 11px; }
.project-version { margin-top: 20px; display: flex; align-items: center; gap: 18px; }
.project-version b { font: 600 15px Space Grotesk; }
.project-version small { color: var(--muted-2); font-size: 9px; display: block; }
.project-body { padding: 20px 24px 23px; }
.release-current { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.release-current b { font-size: 11px; }
.release-current small { color: var(--muted-2); font-size: 9px; display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash { font-family: Consolas, monospace; color: #707079; }
.project-actions { display: flex; gap: 8px; margin-top: 18px; }
.project-actions button { flex: 1; }
.release-history { margin-top: 16px; display: grid; gap: 7px; }
.release-history summary { color: var(--muted); font-size: 10px; cursor: pointer; }
.release-history-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1b1b1f; font-size: 9px; }
.release-history-row small { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filter-bar { display: grid; grid-template-columns: minmax(230px, 1fr) repeat(3, minmax(135px, .3fr)); gap: 9px; background: #101013; border: 1px solid var(--line-soft); border-radius: 11px; padding: 11px; }
.filter-bar input, .filter-bar select { height: 39px; font-size: 10px; margin: 0; }
.table-tools { min-height: 42px; display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 9px; padding: 0 5px; }
.danger-text { background: transparent; color: #ff5e69; font-size: 10px; }
.table-wrap { overflow: auto; border: 1px solid var(--line-soft); border-radius: 11px; background: #101013; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { height: 42px; padding: 0 13px; color: #5e5e67; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line-soft); }
td { height: 57px; padding: 9px 13px; border-bottom: 1px solid #1a1a1f; font-size: 10px; color: #babac1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.012); }
.check-cell { width: 37px; }
.check-cell input, td input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--red); }
.key-code { font: 500 10px Consolas, monospace; color: #efeff2; white-space: nowrap; }
.copy-button, .row-button { background: transparent; border: 0; color: #65656e; font-size: 12px; }
.copy-button:hover, .row-button:hover { color: var(--red); }
.avatar { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: #202026; color: #aaaab2; margin-right: 9px; font-size: 9px; font-weight: 800; vertical-align: middle; }
.user-cell b { font-size: 10px; color: #e2e2e5; }
.user-cell small { display: block; color: var(--muted-2); margin: 4px 0 0 39px; font-size: 8px; }

.seller-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.seller-card { background: #111114; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; }
.seller-head { display: flex; justify-content: space-between; gap: 12px; }
.seller-head .avatar { width: 42px; height: 42px; margin: 0; background: var(--red-soft); color: var(--red); }
.seller-head h3 { font: 600 15px Space Grotesk; margin: 11px 0 4px; }
.seller-head p { color: var(--muted-2); font-size: 9px; margin: 0; }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.seller-stats div { background: #0d0d10; border: 1px solid #1b1b1f; border-radius: 8px; padding: 12px; }
.seller-stats b { font: 600 19px Space Grotesk; display: block; }
.seller-stats small { color: var(--muted-2); font-size: 8px; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 18px; }
.form-panel label { max-width: 700px; }
.news-preview { min-height: 265px; background: radial-gradient(circle at 85% 15%, rgba(239,51,64,.18), transparent 33%), #0c0c0f; border: 1px solid #24242a; border-radius: 11px; padding: 28px; display: flex; flex-direction: column; }
.news-preview > span { color: var(--red); font-size: 8px; letter-spacing: .2em; font-weight: 800; }
.news-preview h3 { font: 650 25px Space Grotesk; margin: 28px 0 10px; }
.news-preview p { color: #8f8f98; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.news-preview time { color: #56565e; font-size: 8px; letter-spacing: .1em; margin-top: auto; }

dialog { width: min(520px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: auto; color: var(--text); background: #121215; border: 1px solid #303037; border-radius: 15px; padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(5px); }
dialog form { padding: 25px; }
dialog header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
dialog h2 { font: 650 24px Space Grotesk; margin: 8px 0 0; }
.dialog-close { border: 0; background: transparent; color: #707079; font-size: 26px; line-height: 1; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dialog-grid .full { grid-column: 1 / -1; }
dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; }
dialog hr { border: 0; border-top: 1px solid var(--line-soft); margin: 23px 0; }
.guide-dialog { width: min(880px, calc(100% - 30px)); }
.guide-dialog article { padding: 26px; }
.guide-dialog header p { max-width: 600px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.guide-steps { display: grid; gap: 10px; }
.guide-steps > section { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: #0e0e11; }
.guide-steps > section > b { color: rgba(255,82,101,.72); font: 700 17px Space Grotesk; }
.guide-steps h3 { margin: 0 0 7px; font: 600 14px Space Grotesk; }
.guide-steps p, .guide-steps li { color: #b4b4bb; font-size: 11px; line-height: 1.65; }
.guide-steps p + p { margin-top: 4px; }
.guide-steps small { display: block; margin-top: 7px; color: var(--muted-2); font-size: 9px; }
.guide-steps ol { padding-left: 18px; }
.guide-dialog code { color: #ececf0; font: 500 10px/1.65 Consolas, monospace; overflow-wrap: anywhere; }
.guide-warning, .guide-success { margin-top: 10px; padding: 10px 12px; border-radius: 7px; font-size: 10px; line-height: 1.55; }
.guide-warning { color: #ffb3bc; border: 1px solid rgba(229,46,63,.25); background: rgba(229,46,63,.07); }
.guide-success { color: #8ce7b8; border: 1px solid rgba(49,222,136,.22); background: rgba(49,222,136,.06); }
.zip-example { display: flex; align-items: flex-start; gap: 14px; margin-top: 9px; padding: 10px 12px; border-left: 2px solid var(--success); background: rgba(49,222,136,.045); }
.zip-example span { color: var(--success); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.guide-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.guide-file-grid section { padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: #0b0b0e; }
.guide-file-grid code { display: block; margin-top: 10px; color: #9d9da6; }
.guide-dialog footer { align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.guide-dialog footer p { max-width: 570px; color: var(--muted); font-size: 10px; }
.toggle-row { grid-template-columns: 1fr auto; align-items: center; background: #0d0d10; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--red); }
.device-panel { display: grid; gap: 7px; padding: 15px; margin: 18px 0; background: #0d0d10; border: 1px solid var(--line-soft); border-radius: 9px; }
.device-panel b { font-size: 11px; }
.device-panel small { color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.device-panel button { margin-top: 7px; }
.file-drop { min-height: 94px; border: 1px dashed #3a3a42; background: #0d0d10; border-radius: 9px; display: grid; place-items: center; padding: 15px; text-align: center; position: relative; }
.file-drop input { position: absolute; inset: 0; opacity: 0; height: 100%; cursor: pointer; }
.file-drop span { font-size: 11px; }
.file-drop small { color: var(--muted-2); font-size: 9px; margin-top: -16px; }
.upload-progress { height: 34px; border: 1px solid var(--line); border-radius: 7px; position: relative; overflow: hidden; display: grid; place-items: center; }
.upload-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(239,51,64,.22); transition: width .15s; }
.upload-progress span { position: relative; font-size: 9px; font-weight: 700; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 270px; max-width: 420px; background: #1b1b20; border: 1px solid #34343b; border-left: 3px solid var(--green); padding: 13px 16px; border-radius: 8px; box-shadow: 0 15px 45px rgba(0,0,0,.4); font-size: 11px; animation: toast-in .2s ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { transform: translateX(15px); opacity: 0; } }
.loading-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,10,.68); display: grid; place-content: center; justify-items: center; gap: 13px; backdrop-filter: blur(3px); color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.spinner { width: 29px; height: 29px; border: 2px solid #33333a; border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted-2); font-size: 10px; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .seller-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-intro { display: none; }
  .login-panel { min-height: 100vh; }
  .mobile-brand { display: flex; }
  .app-shell { display: block; }
  .workspace { width: 100%; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: inline-grid; place-items: center; }
  .topbar { padding: 15px 18px; min-height: 77px; }
  .topbar > div:nth-child(2) { margin-right: auto; margin-left: 12px; }
  .topbar h1 { font-size: 15px; }
  .account-pill b, .account-pill small { display: none; }
  .loader-download b { display: none; }
  .loader-download { width: 39px; padding: 0; justify-content: center; }
  .account-pill { width: 43px; padding: 4px; display: grid; grid-template-columns: 1fr; }
  .content { padding: 27px 18px 65px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .projects-grid, .news-layout { grid-template-columns: 1fr; }
  .release-guide-banner { grid-template-columns: auto 1fr; }
  .release-guide-banner .text-button { grid-column: 2; justify-self: start; }
  .seller-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .login-panel { padding: 25px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 108px; padding: 15px; }
  .stat-card b { margin-top: 17px; font-size: 23px; }
  .section-heading { display: grid; }
  .section-heading time { display: none; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .filter-bar { grid-template-columns: 1fr; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-grid .full { grid-column: auto; }
  .guide-file-grid { grid-template-columns: 1fr; }
  .guide-dialog footer { align-items: stretch; flex-direction: column; }
  .product-row { grid-template-columns: 41px minmax(0,1fr) auto; }
  .product-row > .status { display: none; }
}
