:root {
  color-scheme: light;
  --ink: #161c2f;
  --muted: #536078;
  --line: #dce2ed;
  --surface: #fff;
  --canvas: #f4f6fa;
  --nav: #14182a;
  --nav-muted: #abb2ca;
  --accent: #4d3bc3;
  --accent-hover: #3828a6;
  --accent-pale: #eeeaff;
  --danger: #a33445;
  --danger-pale: #fceef0;
  --good: #1e6d54;
  --good-pale: #e8f6ef;
  --warn: #875014;
  --warn-pale: #fff1dd;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  font-weight: 440;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #7458e7; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.loading { display: grid; place-items: center; min-height: 85vh; color: var(--muted); padding: 20px; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.strong { color: var(--ink); font-weight: 700; }
.nowrap { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 760; letter-spacing: -.047em; font-size: 1.39rem; line-height: 1; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; background: #a9a5ff; color: #211459; border-radius: 8px; }
.brand-icon::before { content: ""; width: 17px; height: 16px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%); transform: rotate(-11deg); }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-icon:has(img) { background: transparent; }
.brand-icon:has(img)::before { content: none; }
.button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; width: max-content; max-width: 100%; min-height: 39px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); line-height: 1.25; font-weight: 680; font-size: .84rem; text-align: center; text-decoration: none; }
.button:hover { background: #f7f7fd; border-color: #b8b4db; }
.button.primary { border-color: transparent; background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.button.danger { border-color: #eac7ce; background: var(--danger-pale); color: var(--danger); }
.button.danger:hover { background: #f8e0e4; }
.button.quiet { border-color: transparent; background: transparent; color: var(--accent); }
.button.quiet:hover { background: var(--accent-pale); }
.button:disabled { opacity: .53; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.alert { border-left: 3px solid var(--accent); border-radius: 5px; padding: 9px 11px; background: var(--accent-pale); color: #352883; font-size: .87rem; }
.alert.error { border-color: var(--danger); background: var(--danger-pale); color: var(--danger); }
.alert.warning { border-color: var(--warn); background: var(--warn-pale); color: var(--warn); }

.auth-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(280px,.86fr) minmax(0, 1.14fr); }
.auth-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; overflow: hidden; padding: clamp(28px,5.4vw,90px); background: #15172d; color: #fff; }
.auth-cover::before, .auth-cover::after { position: absolute; z-index: -1; content: ""; width: 115%; aspect-ratio: 1; left: 16%; bottom: -49%; border: 1px solid #9385f66b; border-radius: 50%; background: radial-gradient(circle at center, #6556df7d 0, transparent 68%); }
.auth-cover::after { width: 84%; left: 32%; bottom: -33%; border-color: #b3aafc65; }
.auth-cover .auth-intro { max-width: 11ch; font-size: clamp(2.1rem,4.9vw,4.85rem); letter-spacing: -.065em; font-weight: 710; line-height: .99; text-wrap: balance; }
.auth-cover .small { margin-top: 18px; max-width: 27ch; color: #c5c8de; }
.auth-content { display: grid; align-items: center; padding: clamp(24px,6vw,92px); }
.auth-content section { width: min(100%, 520px); margin-inline: auto; }
.auth-content h1 { font-size: clamp(1.9rem,4vw,2.7rem); line-height: 1.04; font-weight: 750; letter-spacing: -.055em; }
.auth-content h1 + p { margin-top: 9px; margin-bottom: 25px; }
.auth-content .auth-link { margin-top: 14px; }

.frame { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; min-width: 0; padding: 25px 16px 16px; background: var(--nav); color: #fff; }
.sidebar .brand { margin-inline: 8px; }
.role-label { margin: 21px 8px 7px; color: var(--nav-muted); font-size: .71rem; font-weight: 730; letter-spacing: .075em; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 7px 9px; color: #cdd0e0; border-radius: 6px; font-size: .86rem; font-weight: 610; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: #292f48; color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: #343454; }
.nav a[aria-current="page"] .nav-dot { background: #b5a6ff; border-color: #b5a6ff; }
.nav-dot { width: 8px; height: 8px; flex: none; border: 1px solid #9fa6c0; border-radius: 3px; }
.account-line { margin-top: auto; padding: 12px 7px 0; border-top: 1px solid #383d55; }
.account-line strong, .account-line p { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-line strong { font-size: .85rem; }
.account-line p { margin-top: 2px; color: var(--nav-muted); font-size: .77rem; }
.account-line .button { margin-top: 10px; background: transparent; color: #eae8fd; border-color: #555b74; min-height: 33px; }
.account-line .button:hover { background: #2b304d; }
.main { width: min(100%, 1370px); margin-inline: auto; min-width: 0; padding: clamp(20px,3.5vw,48px) clamp(16px,4%,58px) 56px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.95rem,4vw,3.1rem); line-height: 1.02; letter-spacing: -.057em; font-weight: 750; }
.page-head p { margin-top: 6px; max-width: 64ch; font-size: .91rem; color: var(--muted); }
.layout { display: grid; gap: 15px; }
.overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.panel { min-width: 0; padding: clamp(12px,2vw,22px); border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 2px 8px #191b3405; }
.metric { min-height: 108px; display: grid; align-content: start; gap: 4px; }
.metric span { font-size: .77rem; color: var(--muted); font-weight: 630; }
.metric strong { color: var(--ink); font-size: clamp(1rem,2vw,1.38rem); line-height: 1.13; overflow-wrap: anywhere; letter-spacing: -.035em; }
.metric p { line-height: 1.35; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 15px; flex-wrap: wrap; }
.section-head h2, .panel h2 { font-size: 1.12rem; line-height: 1.18; letter-spacing: -.025em; }
.section-head p { margin-top: 4px; max-width: 65ch; }
.license-panel { background: linear-gradient(115deg,#faf8ff,#fff 77%); border-color: #ddd5f5; }
.price { font-variant-numeric: tabular-nums; font-size: 1.27rem; line-height: 1.15; font-weight: 740; color: var(--ink); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field { display: grid; min-width: 0; gap: 5px; align-content: start; color: var(--ink); font-size: .84rem; font-weight: 650; }
.field.wide { grid-column: 1/-1; }
.field input, .field select, .field textarea, .search { min-height: 41px; width: 100%; min-width: 0; padding: 7px 9px; color: var(--ink); border: 1px solid #cbd2e0; border-radius: 6px; background: #fff; font-size: .92rem; font-weight: 480; }
.field textarea { resize: vertical; }
.field input[type=file] { font-size: .83rem; padding-block: 7px; }
.field input::file-selector-button { min-height: 25px; margin-right: 8px; padding: 3px 6px; border: 0; border-radius: 4px; color: var(--accent); background: var(--accent-pale); font-weight: 660; cursor: pointer; }
.field small { font-size: .77rem; line-height: 1.35; color: var(--muted); font-weight: 450; }
.stack { display: grid; gap: 13px; }
.search { width: min(100%, 240px); }
.form-footer { margin-top: 15px; }
.form-alert { margin-top: 6px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .75rem; color: var(--muted); font-weight: 660; }
td:last-child, th:last-child { padding-right: 0; text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
.table-cell-note { display: block; margin-top: 1px; color: var(--muted); font-size: .76rem; }
.empty { padding: 18px 0 5px; font-size: .88rem; color: var(--muted); }
.status { display: inline-flex; gap: 5px; align-items: center; max-width: 100%; width: max-content; padding: 4px 7px; border-radius: 20px; color: #44516b; background: #eff1f7; font-size: .73rem; font-weight: 680; line-height: 1.2; }
.status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--good); background: var(--good-pale); }
.status.bad { color: var(--danger); background: var(--danger-pale); }
.status.warn { color: var(--warn); background: var(--warn-pale); }
.status.beta { color: #563bb4; background: var(--accent-pale); }
.cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 250px),1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card h2 { overflow-wrap: anywhere; }
.card .actions { margin-top: auto; }
.facts { display: grid; grid-template-columns: minmax(96px,.6fr) minmax(0,1fr); gap: 6px 12px; font-size: .84rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 630; overflow-wrap: anywhere; }
.download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.download-item { display: grid; gap: 9px; align-content: start; }
.download-item h3 { font-size: 1.03rem; line-height: 1.15; }
.download-item code, .check-sum { color: var(--muted); overflow-wrap: anywhere; }
.link-row { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; }
.link-row input { flex: 1 1 250px; min-width: 0; width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fafbfe; font-size: .86rem; }
.qr { width: min(250px,100%); aspect-ratio: 1; display: block; margin: 3px auto 9px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.toast { position: fixed; z-index: 5; right: 18px; bottom: 18px; width: max-content; max-width: calc(100% - 36px); padding: 10px 13px; border-radius: 8px; background: #222742; color: white; box-shadow: 0 5px 20px #20294536; font-size: .86rem; }
dialog { padding: 0; width: min(635px, calc(100% - 26px)); max-height: calc(100% - 30px); border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
dialog::backdrop { background: #15192c81; }
.dialog-content { display: grid; gap: 13px; padding: clamp(14px,4vw,26px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dialog-head h2 { font-size: 1.4rem; line-height: 1.13; overflow-wrap: anywhere; letter-spacing: -.037em; }
.dialog-head .button { min-height: 34px; margin-top: -2px; }

@media(max-width: 910px) {
  .frame { grid-template-columns: 192px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 690px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-cover { padding: 20px; gap: 18px; }
  .auth-cover .auth-intro { max-width: none; font-size: 1.4rem; }
  .auth-cover .small { display: none; }
  .auth-content { padding: 24px 18px 36px; }
  .frame { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; align-content: start; padding: 11px 12px 7px; }
  .sidebar .brand { margin: 0; }
  .role-label { margin: 10px 0 2px; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav a { min-height: 32px; font-size: .78rem; }
  .nav-dot { display: none; }
  .account-line { position: absolute; top: 12px; right: 11px; padding: 0; border: 0; }
  .account-line strong, .account-line p { display: none; }
  .account-line .button { margin: 0; }
  .main { padding-top: 19px; }
  .page-head { margin-bottom: 15px; }
}
@media(max-width: 480px) {
  .field-grid, .download-grid { grid-template-columns: 1fr; }
  .metric { min-height: 87px; }
}
