:root {
    --bg: #eef3f6;
    --paper: #fff;
    --ink: #12202a;
    --muted: #5a7080;
    --line: #d0dce4;
    --link: #0e3447;
    --brand: #0e3447;
    --brand-mid: #153a4a;
    --steel: #8fb4c4;
    --ok: #1d6b34;
    --off: #7d8f9c;
    --danger: #8a2b2b;
    --danger-bg: #f8ecec;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(900px 280px at 100% -40px, rgba(143, 180, 196, 0.28), transparent 60%),
        var(--bg);
    color: var(--ink);
    font: 15px/1.45 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--link); }
a:hover { text-decoration: none; }

html:has(.shell),
body:has(.shell) {
    height: 100%;
    overflow: hidden;
}

.shell {
    display: flex;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
}

.ico {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav {
    width: 240px;
    flex: none;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #0b2430 0%, #0e3447 48%, #091c27 100%);
    color: #e7eef2;
    padding: 14px 12px 16px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
    transition: width .18s ease;
}
.nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 4px 14px;
}
.nav-fold {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #e7eef2;
    cursor: pointer;
}
.nav-fold:hover { background: rgba(255, 255, 255, 0.08); }
.nav-fold svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.shell.is-nav-collapsed .nav { width: 72px; }
.shell.is-nav-collapsed .nav-brand,
.shell.is-nav-collapsed .nav a:not(.nav-brand) span { display: none; }
.shell.is-nav-collapsed .nav-head { justify-content: center; margin-left: 0; margin-right: 0; }
.shell.is-nav-collapsed .nav a:not(.nav-brand) { justify-content: center; padding: 10px; }
.shell.is-nav-collapsed .nav a.is-current { box-shadow: inset 0 0 0 1px #3ddbc8; }

.nav-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    text-decoration: none;
}

.nav-brand img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 148px;
}

.nav-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--brand-mid);
    color: #fff;
}

.brand {
    display: block;
    font-size: 12px;
    color: #a9c0cc;
}

.product {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.nav-group {
    margin-top: 14px;
}
.nav-group:first-of-type {
    margin-top: 0;
}
.nav-group-label {
    display: block;
    padding: 0 12px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7a9aab;
}
.nav-group-admin .nav-group-label {
    color: #9ed4c8;
}
.shell.is-nav-collapsed .nav-group-label {
    display: none;
}
.shell.is-nav-collapsed .nav-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.shell.is-nav-collapsed .nav-group:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.nav a:not(.nav-brand) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #d5e2ea;
    text-decoration: none;
}

.nav a:not(.nav-brand):hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav a.is-current {
    background: rgba(61, 219, 200, 0.14);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #3ddbc8;
}

.workspace {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: none;
    z-index: 4;
    min-height: 64px;
    padding: 8px 28px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(14, 52, 71, 0.08);
}

.top-start, .top-end {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.top-logo { display: none; align-items: center; }
.top-logo img { height: 28px; width: auto; filter: brightness(0); }

.who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.who strong {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.who span {
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-pick { position: relative; }
.lang-pick summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    list-style: none;
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary .ico { width: 16px; height: 16px; }
.lang-pick summary .chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lang-pick form {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: none;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(14, 52, 71, 0.12);
}
.lang-pick[open] form { display: grid; }
.lang-pick button {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
}
.lang-pick button:hover,
.lang-pick button.is-current { background: #f4f7f9; }
.lang-pick button.is-current { font-weight: 600; }
.btn-quiet {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    height: 34px;
    padding: 0 12px;
}

.content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    width: 100%;
    max-width: none;
    padding: 20px 28px 32px;
}
.content:has(.board),
.content:has(.plans) { max-width: none; }

h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.lead { margin: 6px 0 0; color: var(--muted); }
.note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.explain { max-width: 640px; margin: 8px 0 0; color: var(--ink); font-size: 14px; }
.sheet form { margin: 0; }
.sheet .btn, .sheet .btn-quiet { margin-top: 0; padding: 4px 10px; }
.sheet select, .sheet input[type="number"] {
    font: inherit;
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}
.sheet input[type="number"] { width: 72px; }
.empty { margin: 16px 0; color: var(--muted); }
.back { font-size: 14px; }

.search { margin: 16px 0; }
.search input, .field input {
    width: 100%;
    max-width: 360px;
    border: 1px solid #c5d4de;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: 7px 9px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.stats li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(14, 52, 71, 0.05);
}
.stat-ico {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e4eef3;
    color: var(--brand);
}
.stat-copy { min-width: 0; }
.stat-copy span { display: block; color: var(--muted); font-size: 13px; }
.stats strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.sheet { overflow-x: auto; margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.sheet.sheet-scroll {
    max-height: min(420px, 55vh);
    overflow: auto;
}
.sheet.sheet-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
}
.platform-downloads .sheet { margin-top: 12px; }
.platform-downloads h2 { margin-top: 28px; }
.upgrade-break { margin: 12px 0 8px; }
.upgrade-break p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0;
    font-size: 14px;
}
.upgrade-break .pay-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 16px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th, .sheet td { width: 1%; white-space: nowrap; }
.sheet th:last-child, .sheet td:last-child { width: auto; }
.sheet.desk th, .sheet.desk td { width: auto; vertical-align: middle; }
.sheet.desk .grow { width: 100%; white-space: normal; }
.sheet.desk th.acts,
.sheet.desk td.acts { width: 1%; text-align: right; white-space: nowrap; }
.sheet.desk .row-actions {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.sheet.desk .row-actions form,
.device-page .row-actions form { display: inline-flex; margin: 0; }
.sheet.desk .icon-act,
.device-page .icon-act { margin: 0; flex: none; text-decoration: none; }
.icon-act .ico { width: 16px; height: 16px; }
.sheet.desk tr.is-on td { background: #f3f8fb; }
.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;
}
a.btn-quiet { display: inline-flex; align-items: center; text-decoration: none; }
.check-line { display: inline-flex; align-items: center; gap: 6px; }
.panel-form.group-pick { max-width: none; margin-top: 16px; }
.group-pick .pick-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
}
.group-pick .pick-scroll {
    max-height: min(52vh, 520px);
    overflow: auto;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.group-pick .checks { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.group-pick .checks li { margin: 0; border-bottom: 1px solid var(--line); }
.group-pick .checks label { display: flex; gap: 10px; align-items: center; padding: 8px 2px; }
.group-pick .checks .id { margin-left: auto; white-space: nowrap; }
.group-pick .pick-bar .btn,
.group-pick .pick-bar .btn-quiet { margin-top: 0; }
.group-pick .pick-search { width: 100%; max-width: none; margin-top: 4px; box-sizing: border-box; }
.device-id { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 0; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.device-actions form { display: inline-flex; margin: 0; }
.device-act { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.device-act .ico { width: 16px; height: 16px; }
.panel-form.device-card { max-width: none; margin-top: 14px; }
.panel-form.device-card h2 { margin: 0 0 12px; font-size: 16px; }
.device-card .empty { margin: 0; }
.device-card table { width: 100%; }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.fact-grid div { display: grid; gap: 2px; min-width: 0; }
.fact-grid dt { color: var(--muted); font-size: 12px; }
.fact-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.device-people { margin: 0; padding-left: 18px; }
.badge .dot { margin-right: 0; }
th { font-size: 13px; font-weight: 600; color: var(--muted); background: #f4f7f9; }
.sheet thead th { position: sticky; top: 0; z-index: 1; }
tr:last-child td { border-bottom: 0; }
.id { font-family: Consolas, "Courier New", monospace; font-size: 13px; }

.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--off); }
.dot.on { background: var(--ok); }

.facts { width: 100%; max-width: 640px; margin-top: 16px; }
.facts th { width: 180px; }

.gate { background: var(--bg); }
.gate-split { display: flex; min-height: 100vh; }
.gate-side {
    width: 380px;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 36px 48px;
    background: var(--brand);
    color: #f4f7f8;
}
.gate-logo-link { display: inline-block; text-decoration: none; }
.gate-logo { width: 210px; height: auto; display: block; }
.gate-changelog { margin: 10px 0 0; font-size: 14px; }
.gate-changelog a { color: #d5e2ea; }
.gate-mark { margin: 0; font-size: 13px; color: #a9c0cc; }
.gate-product {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}
.gate-product::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 16px;
    background: var(--steel);
}
.gate-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}
.gate-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #e7eef2;
    font-size: 14px;
}
.gate-points .ico { color: var(--steel); }
.gate-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gate-tools { display: flex; justify-content: flex-end; padding: 16px 24px 0; }
.gate-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 28px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(14, 52, 71, 0.08);
}
.gate-card h1 { font-size: 20px; }
.gate-card .lead { margin-bottom: 4px; }
.field { display: block; margin-top: 14px; font-size: 14px; }
.field input { max-width: none; margin-top: 4px; padding: 9px 10px; }
.field input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.password-field {
    position: relative;
    display: block;
    margin-top: 4px;
}
.password-field input {
    margin-top: 0;
    width: 100%;
    padding-right: 5.5rem;
    box-sizing: border-box;
}
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
}
.password-toggle:hover { color: var(--brand); }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
a.btn { text-decoration: none; }
.btn {
    display: inline-block;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    padding: 8px 14px;
    cursor: pointer;
}
.btn:hover { background: var(--brand-mid); }
.gate-card .btn { display: block; width: 100%; padding: 10px 14px; }
.alt { display: block; margin-top: 14px; font-size: 14px; }
.error {
    margin-top: 14px;
    padding: 8px 10px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}
.product-card, .panel-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(14, 52, 71, 0.05);
    padding: 18px 20px 20px;
}
.panel-form { margin-top: 16px; max-width: 460px; }
.billing-page .panel-form { max-width: 640px; margin-top: 20px; }
.billing-form .field { display: block; margin-top: 14px; }
.billing-form .field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.billing-form .field-control {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    font: inherit;
    color: var(--ink);
}
.billing-form .field-control:focus {
    outline: 2px solid var(--brand);
    border-color: var(--brand);
}
.billing-form textarea.field-control { resize: vertical; min-height: 88px; line-height: 1.45; }
.billing-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0;
}
.billing-form .field-row .field { margin-top: 14px; }
.billing-form .section-title {
    margin: 22px 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.billing-form .billing-section { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.billing-form .billing-section:first-of-type { border-top: 0; padding-top: 0; }
.billing-kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.billing-kind-pick .kind-card {
    position: relative;
    display: block;
    padding: 14px 14px 14px 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.billing-kind-pick .kind-card:hover { border-color: var(--steel); }
.billing-kind-pick input { position: absolute; left: 14px; top: 16px; margin: 0; }
.billing-kind-pick .kind-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.billing-kind-pick label:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
    background: #f4fafc;
}
.billing-form .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.billing-form .form-actions .btn { margin-top: 0; }
.billing-form .billing-hint { margin-top: 18px; }
.billing-form .field-check { display: flex; align-items: flex-end; padding-bottom: 10px; }
.billing-form .check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
@media (max-width: 640px) {
    .billing-kind-pick, .billing-form .field-row { grid-template-columns: 1fr; }
}
.content:has(.user-page) { max-width: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-head .btn { margin-top: 2px; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-head-actions .btn,
.page-head-actions .btn-quiet { margin-top: 2px; }
dialog.modal textarea {
    width: 100%;
    margin-top: 4px;
    padding: 9px 10px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }
.badge { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.badge.on { background: #d7eddf; color: #1d6b34; }
.badge.off { background: #f3e6dc; color: #8a4a2b; }
tr.is-passive td { color: var(--muted); }
.btn.danger, .btn-quiet.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-quiet.danger { color: var(--danger); background: var(--paper); }
dialog.modal {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}
dialog.modal::backdrop { background: rgba(14, 52, 71, 0.45); }
dialog.modal form { margin: 0; padding: 18px 20px 20px; }
dialog.modal h2 { margin: 0; }
dialog.modal .field select { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-actions .btn, .modal-actions .btn-quiet { margin-top: 0; }
.kicker { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.product-card h2, .panel-form h2 { margin-top: 4px; font-size: 22px; letter-spacing: -0.02em; }
.download-apps { margin-top: 8px; }
.download-app-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 4px;
}
.download-app-head h2 { margin: 0; }
.download-feats {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--ink);
}
.download-feats li { margin-top: 6px; }
.download-app-actions { margin: 16px 0 0; }
.btn.is-disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}
.download-app.is-soon .badge.off { background: #f3e6dc; color: #8a4a2b; }
.meters { list-style: none; margin: 14px 0 0; padding: 0; }
.meters li { margin-top: 12px; }
.meters span, .meters b { display: block; }
.meters b { font-weight: 600; }
.meter { display: block; height: 8px; margin-top: 6px; background: #e6eef2; border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0e3447, #1f8f86); }
.machine-list td { vertical-align: middle; }
.machine-list .machine-name strong { display: block; }
.machine-list .machine-note .note { display: block; margin: 0; max-width: 220px; white-space: normal; font-size: 13px; }
.machine-list .acts { width: 1%; text-align: right; white-space: nowrap; }
.machine-list .row-actions { justify-content: flex-end; }
.icon-act {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--brand);
    cursor: pointer;
}
.icon-act:hover { background: #e4eef3; }
.icon-act.danger { color: var(--danger); }
.icon-act.danger:hover { background: var(--danger-bg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.filters input, .filters select, .field select, .sheet select, .pick-search {
    border: 1px solid #c5d4de;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: 7px 9px;
}
.filters .btn { margin-top: 0; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; }
.checks li { margin-top: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; }

.platform-board {
    margin-bottom: 22px;
    padding: 20px 20px 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(14, 52, 71, 0.05);
}
.platform-board .stats { margin-top: 14px; }
.platform-board .sheet { margin-top: 14px; }
.platform-board > p { margin: 14px 0 12px; }
.platform-board > p a,
.product-card > p a,
.side-card > p a {
    font-weight: 650;
    text-decoration: none;
}

.board {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    grid-template-areas: "head head" "stats stats" "main side";
    gap: 18px 20px;
    align-items: start;
}
.board-head { grid-area: head; }
.board-main { grid-area: main; }
.board-side { grid-area: side; }
.board .stats {
    grid-area: stats;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 0;
}
.board .product-grid { margin-top: 0; }
.board-head .lead { font-size: 15px; }
.tone-ok { background: #f3faf5; border-color: #b7d7c2; }
.tone-ok .stat-ico { background: #cfe8d8; color: #1d6b34; }
.tone-off { background: #fbf6f2; border-color: #e4d0c4; }
.tone-off .stat-ico { background: #f0ddd2; color: #8a4a2b; }
.tone-steel { background: #f3f8fb; border-color: #c5d8e2; }
.tone-steel .stat-ico { background: #d3e5ee; color: #0e3447; }
.tone-brand { background: #f4f7f9; border-color: #c3d2db; }
.tone-brand .stat-ico { background: #0e3447; color: #fff; }
.tone-people { background: #f4f7f8; border-color: #c9d5dc; }
.tone-people .stat-ico { background: #153a4a; color: #fff; }
.tone-machine { background: #fbf8f1; border-color: #e3d7b4; }
.tone-machine .stat-ico { background: #efe2bc; color: #6b5420; }
.accent-brand { border-top: 3px solid #0e3447; }
.accent-steel { border-top: 3px solid #5f8ea3; }
.accent-gold { border-top: 3px solid #b0893e; }
.accent-off { border-top: 3px solid #8a4a2b; }
.accent-gold .meter i { background: #b0893e; }
.side-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(14, 52, 71, 0.05);
    padding: 16px 16px 14px;
}
.side-card + .side-card { margin-top: 12px; }
.side-card h2 { margin: 0 0 10px; font-size: 15px; }
.side-card .sheet { margin-top: 0; border: 0; }
.side-card .empty { margin: 4px 0 0; }
.side-card > p { margin: 10px 0 0; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.sheet table.price-table th,
.sheet table.price-table td { width: auto; }
.price-table th, .price-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: normal;
}
.price-table thead th { vertical-align: bottom; }
.price-table th:first-child, .price-table td:first-child {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    position: sticky;
    left: 0;
    background: var(--paper);
    white-space: normal;
    min-width: 140px;
}
.price-table .is-yours { background: #f3f8fb; }
.price-table th.is-yours:first-child, .price-table td.is-yours:first-child { background: #f3f8fb; }
.price-row td { font-size: 18px; font-weight: 650; color: var(--brand); }
.plan-name { display: block; font-size: 15px; color: var(--ink); }
.plan-tag { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: #5f8ea3; }
.is-yours .plan-tag { color: var(--brand); }
.mark-on { color: var(--ok); }
.mark-off { color: #c5d0d6; }
.seat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-summary { margin-bottom: 16px; }
.content:has(.paytr-checkout) { max-width: none; }
.paytr-frame-wrap {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px 16px;
    overflow: visible;
    box-sizing: border-box;
}
.paytr-frame-wrap iframe {
    display: block;
    width: 100% !important;
    min-width: min(100%, 670px);
    max-width: 100%;
    min-height: 620px;
    border: 0;
}
.pay-total { margin: 8px 0; font-size: 32px; }
.pay-total span { font-size: 14px; color: var(--muted); font-weight: 400; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    padding: 18px;
}
.pay-card.is-stripe { border-top-color: #635bff; }
.pay-card.is-yoo { border-top-color: #0077ff; }
.pay-card .btn { display: block; width: 100%; text-align: center; }
.seat.is-multi { background: #f4f7f8; border-color: #c5d5dc; border-top-color: #0e3447; }
.seat {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: #fbf8f1;
    border: 1px solid #e3d7b4;
    border-top: 3px solid #b0893e;
    padding: 18px 20px;
}
.seat h2 { margin: 4px 0 0; font-size: 28px; }
.seat-period { font-size: 14px; font-weight: 600; color: var(--muted); }
.seat .btn { flex: none; }
.board-side th, .board-side td { padding: 8px; font-size: 13px; }

.home { background: var(--bg); }
.home-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: var(--brand);
}
.home-brand img { height: 36px; width: auto; display: block; }
.home-tools { display: flex; align-items: center; gap: 14px; }
.home-bar .langs button { color: #d5e2ea; }
.home-bar .langs button.is-current { color: #fff; }
.home-bar .btn, .home-actions .btn { margin-top: 0; }
.home-bar .btn { background: #fff; color: var(--brand); }
.home-quiet { color: #d5e2ea; text-decoration: none; }
.home-hero { max-width: 760px; margin: 0 auto; padding: 64px 28px 12px; }
.home h1 { font-size: 36px; line-height: 1.2; }
.home .lead { max-width: 40em; font-size: 17px; color: var(--muted); }
.home-actions { display: flex; align-items: center; gap: 18px; }
.home-hero .home-quiet { color: var(--brand); font-weight: 600; }
.home-grid, .home-steps, .home-offers { max-width: 980px; margin: 0 auto; padding: 20px 28px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-grid article, .home-steps li, .home-offers li {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 18px 20px;
}
.home-grid article { border-top: 3px solid var(--brand); }
.home-grid article.is-machine { border-top-color: #b0893e; background: #fbf8f1; }
.home-grid h2, .home-steps h2, .home-offers h2 { margin-top: 0; }
.home-steps ol, .home-offers ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.home-steps strong { display: block; margin-bottom: 6px; }
.home-steps span, .home-offers em { color: var(--muted); font-style: normal; font-size: 14px; }
.home-offers strong { display: block; margin-top: 8px; font-size: 28px; color: var(--brand); }
.home-offers li.is-machine { background: #fbf8f1; border-color: #e3d7b4; }

.home-shots, .home-features { max-width: 980px; margin: 0 auto; padding: 12px 28px 8px; }
.home-shots h2, .home-features h2 { margin-top: 12px; }
.shot-row { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; align-items: start; }
.shot-row figure { margin: 0; }
.shot {
    background: #0c1014;
    color: #f4f7f8;
    border: 1px solid #3a4754;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(12, 16, 20, 0.18);
}
.shot-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: #12171c;
    border-bottom: 1px solid #2a3440;
    color: #a7b6c2;
    font-size: 12px;
}
.shot-chrome span { width: 8px; height: 8px; border-radius: 50%; background: #33404c; }
.shot-chrome b { margin-left: 8px; font-weight: 600; color: #f4f7f8; }
.shot-body { padding: 16px 16px 18px; }
.shot-label { margin: 12px 0 6px; color: #a7b6c2; font-size: 11px; }
.shot-body .shot-label:first-child { margin-top: 0; }
.shot-id { margin: 0; font: 600 28px/1.1 Consolas, "Courier New", monospace; color: #3ddbc8; }
.shot-id i {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #33404c;
    border-radius: 6px;
    background: #222a33;
}
.shot-pass {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: #a7b6c2;
    font-size: 12px;
}
.shot-pass b {
    padding: 6px 10px;
    border: 1px solid #33404c;
    border-radius: 8px;
    background: #222a33;
    color: #f4f7f8;
    font: 600 13px Consolas, "Courier New", monospace;
}
.shot-cards { display: flex; gap: 10px; }
.shot-cards div {
    width: 132px;
    padding: 8px;
    border: 1px solid #33404c;
    border-radius: 8px;
    background: #171d24;
}
.shot-cards em { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #6b7280; }
.shot-cards em.on { background: #22c55e; }
.shot-cards strong, .shot-cards span { display: block; }
.shot-cards strong { font: 600 12px Consolas, "Courier New", monospace; }
.shot-cards span { margin-top: 2px; color: #a7b6c2; font-size: 11px; }
.shot-note { margin: 0 0 12px; color: #a7b6c2; font-size: 13px; }
.shot-devices { list-style: none; margin: 0; padding: 0; }
.shot-devices li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #33404c;
    border-radius: 8px;
    background: #171d24;
    font-size: 13px;
}
.shot-devices span { color: #a7b6c2; font-family: Consolas, "Courier New", monospace; }
.shot-row figcaption { margin-top: 10px; }
.shot-row figcaption strong { display: block; }
.shot-row figcaption span { color: var(--muted); font-size: 14px; }
.home-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.home-features li {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 14px 16px;
}
.home-features strong { display: block; margin-bottom: 4px; }
.home-features span { color: var(--muted); font-size: 14px; }

.content:has(.industrial-page) { max-width: none; }
.ind-work {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}
.ind-list {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.ind-rail {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--line);
}
.ind-find {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f6f9fb;
}
.ind-find .ico { color: var(--muted); }
.ind-find input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    padding: 10px 0;
    outline: none;
}
.ind-find:focus-within {
    border-color: var(--brand);
    background: #fff;
}
.ind-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.ind-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f0f5f8;
    color: var(--muted);
    font-size: 12px;
}
.ind-stats strong { color: var(--ink); }
.ind-rail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.ind-rail-actions .btn,
.ind-rail-actions .btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    font-size: 13px;
}
.ind-rail-actions .ico { width: 15px; height: 15px; }
.ind-rail-list {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 12px;
}
.ind-empty {
    margin: 18px 8px;
    color: var(--muted);
    text-align: center;
}
.ind-site {
    margin-top: 8px;
    padding: 8px;
    background: #f6f9fb;
    border-radius: 14px;
}
.ind-site:first-child { margin-top: 0; }
.ind-site-head { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.ind-site-head h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ind-site-n {
    flex: none;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e7eef3;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.ind-site-head form { flex: none; margin: 0; }
.ind-icon-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--danger);
    cursor: pointer;
}
.ind-icon-btn .ico { width: 16px; height: 16px; }
.ind-icon-btn:hover { background: var(--danger-bg); border-color: var(--danger); }
.ind-pick {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    margin-top: 6px;
    padding: 10px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.ind-pick.is-on { border-color: var(--brand); background: #eef5fa; box-shadow: inset 3px 0 0 var(--brand); }
.ind-pick-copy { min-width: 0; }
.ind-pick-copy strong,
.ind-pick-copy small { display: block; }
.ind-pick-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ind-pick small { color: var(--muted); }
.ind-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b42318;
}
.ind-dot.on { background: #1d6b34; box-shadow: 0 0 0 3px rgba(29, 107, 52, 0.16); }
.ind-detail .ind-block { margin-top: 0; }
.ind-detail > .ind-block:first-child {
    position: sticky;
    top: 8px;
    z-index: 2;
}
.ind-detail .ind-block + .ind-block { margin-top: 12px; }
.ind-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ind-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.ind-line form { margin: 0; }
.ind-grant {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f6f9fb;
}
.ind-grant.is-past { background: #fff; }
.ind-grant-cell { min-width: 0; }
.ind-grant-cell span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ind-grant-cell strong,
.ind-grant-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ind-grant-cell strong { margin-top: 2px; }
.ind-grant-cell small { color: var(--muted); }
.ind-grant form { margin: 0; }
.ind-grant-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.ind-grant-acts .btn,
.ind-grant-acts .btn-quiet { margin: 0; height: 36px; }
.ind-grant-add {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #c5d4de;
    border-radius: 12px;
    background: #fff;
}
.ind-grant-add h3 { margin: 0; font-size: 15px; }
.ind-grant-add .hint { margin: 4px 0 0; }
.ind-grant-add .ind-form { margin-top: 12px; }
.ind-device {
    display: flex;
    gap: 8px;
    align-items: end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.ind-device-edit {
    display: grid;
    grid-template-columns: minmax(110px, 1.4fr) minmax(110px, 1fr) 84px minmax(70px, 0.7fr) auto;
    gap: 8px;
    flex: 1;
    align-items: end;
}
.ind-device-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ind-device-edit input {
    width: 100%;
    font: inherit;
    color: var(--ink);
    padding: 7px 9px;
    border: 1px solid #c5d4de;
    background: #fff;
}
.ind-device .btn, .ind-device .btn-quiet { height: 36px; margin: 0; }
.ind-fold { margin-top: 12px; }
.ind-fold > summary {
    cursor: pointer;
    font-weight: 600;
}
.ind-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.ind-steps a {
    display: block;
    min-height: 100%;
    padding: 10px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
}
.ind-steps .ind-no { display: block; font-size: 12px; }
.ind-steps strong { display: block; color: var(--ink); font-size: 14px; }
.ind-steps .is-done a { background: #f3faf6; border-color: #b7d7c3; }
.ind-steps .is-now a { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ind-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}
.ind-tabs button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    padding: 8px 14px;
    cursor: pointer;
}
.ind-tabs button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ind-block {
    margin-top: 16px;
    padding: 16px 18px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.ind-block.is-now { border-color: var(--brand); }
.ind-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-start;
    justify-content: space-between;
}
.ind-head > div:first-child { flex: 1 1 220px; min-width: 0; }
.ind-badges { flex: 0 0 auto; }
.ind-block form { margin: 0; }
.ind-block .row-actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    gap: 8px;
}
.ind-block .row-actions .btn-quiet {
    white-space: nowrap;
    flex: none;
}
.ind-num {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}
.ind-block h2 { margin: 0; }
.ind-block .hint { margin-top: 4px; }
.ind-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 12px;
    align-items: end;
    margin-top: 14px;
}
.ind-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ind-form input, .ind-form select {
    width: 100%;
    font: inherit;
    color: var(--ink);
    padding: 7px 9px;
    border: 1px solid #c5d4de;
    background: #fff;
}
.ind-form .btn { margin-top: 0; height: 36px; }
.ind-block .sheet { margin-top: 14px; }
.ind-id {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.ind-id .id { flex: none; }
.ind-id .btn-quiet { flex: none; }
.ind-span { grid-column: 1 / -1; }
.ind-search { display: flex; gap: 8px; align-items: center; }
.ind-search input { flex: 1; min-width: 0; }
.ind-search .btn { margin-top: 0; height: 36px; }
.ind-map { height: 360px; border: 1px solid #c5d4de; border-radius: 8px; margin-top: 12px; }
dialog.modal.ind-gate-modal { width: min(480px, calc(100vw - 24px)); }
.ind-gate-modal .field input,
.ind-gate-modal .field select {
    width: 100%;
    max-width: none;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #c5d4de;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
dialog.modal.ind-site-modal {
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
}
.ind-site-modal .field input { max-width: none; }
.ind-site-modal .btn { margin-top: 0; }
.ind-site-modal .ind-map {
    height: min(48vh, 420px);
    margin-top: 4px;
}
.ind-site-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ind-hits {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 168px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.ind-hits button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.ind-hits li:last-child button { border-bottom: 0; }
.ind-hits button:hover,
.ind-hits button.is-on { background: #f4f8fc; }
.ind-hits strong,
.ind-hits span { display: block; }
.ind-hits span { color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
    .board {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "stats" "main" "side";
    }
}

@media (max-width: 760px) {
    .shell { display: flex; flex-direction: column; }
    .nav {
        width: auto;
        height: auto;
        flex: none;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 8px;
    }
    .nav-group {
        display: contents;
    }
    .nav-group-label {
        display: none !important;
    }
    .nav-brand { display: none; }
    .top-logo { display: flex; }
    .top { align-items: flex-start; }
    .who strong, .who span { max-width: 42vw; }
    .shell.is-nav-collapsed .nav { width: auto; }
    .nav a:not(.nav-brand) { margin-top: 0; white-space: nowrap; color: #d5e2ea; }
    .nav a.is-current { box-shadow: none; }
    .content, .gate-main { padding: 16px; }
    .page-head { display: block; }
    .stats, .product-grid { grid-template-columns: 1fr; }
    .seat-pair, .pay-grid { grid-template-columns: 1fr; }
    .seat { display: block; }
    .seat .btn { display: inline-block; margin-top: 12px; }
    .fact-grid { grid-template-columns: 1fr 1fr; }
    .home-bar { align-items: flex-start; }
    .home h1 { font-size: 28px; }
    .home-grid, .home-steps ol, .home-offers ul, .shot-row, .home-features ul, .ind-steps, .ind-work, .ind-device-edit, .ind-site-fields, .ind-grant { grid-template-columns: 1fr; }
    .ind-list { position: static; max-height: none; }
    .ind-device { display: block; }
    .board {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "stats" "main" "side";
    }
    .board .stats { grid-template-columns: 1fr 1fr; }
    .gate-split { display: block; }
    .gate-side { width: auto; justify-content: flex-start; padding: 22px 16px 18px; }
    .gate-points { display: none; }
    .gate-main { display: block; }
}

.platform-billing-board { margin-top: 4px; }
.platform-billing-head { margin-bottom: 4px; }
.platform-billing-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}
.platform-billing-filter-card {
    margin: 4px 0 14px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(14, 52, 71, 0.06);
}
.pbf-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.pbf-head-copy h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.pbf-head-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.pbf-clear {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(14, 52, 71, 0.06);
}
.pbf-clear:hover {
    background: rgba(14, 52, 71, 0.1);
}
.pbf-search-form { margin: 0; }
.pbf-search-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #c5d5df;
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(14, 52, 71, 0.04);
    overflow: hidden;
}
.pbf-search-bar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 52, 71, 0.12);
}
.pbf-search-icon {
    display: grid;
    place-items: center;
    width: 46px;
    flex: none;
    color: var(--muted);
}
.pbf-search-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.pbf-search-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 12px 4px 12px 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
}
.pbf-search-bar input:focus { outline: none; }
.pbf-search-submit {
    flex: none;
    margin: 6px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.pbf-search-submit:hover { filter: brightness(1.06); }
.pbf-chips-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #d4e0e8;
}
.pbf-chips-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.platform-billing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pbf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 14px;
    border-radius: 999px;
    border: 1px solid #d4e0e8;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.pbf-chip:hover {
    border-color: #9eb8c8;
    background: #f4f8fb;
    transform: translateY(-1px);
}
.pbf-chip.is-on {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 52, 71, 0.2);
}
.pbf-chip.is-on .pbf-chip-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.pbf-chip-text { line-height: 1.2; }
.pbf-chip-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8eef2;
    font-size: 11px;
    font-weight: 700;
    color: #4a6272;
}
.pbf-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8eef2;
    color: var(--muted);
    font-size: 13px;
}
.pbf-active-q {
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef4f8;
    color: var(--ink);
    font-weight: 600;
}
.platform-billing-empty {
    max-width: none;
    text-align: center;
    padding: 28px 20px;
}
.platform-billing-table th:last-child,
.platform-billing-table td.actions {
    width: 1%;
    white-space: nowrap;
}
.platform-billing-table tbody tr.row-attn {
    background: #fffdf8;
}
.platform-billing-table tbody tr.row-soon {
    background: #fffdf8;
}
.platform-billing-table tbody tr.row-expired {
    background: #fff8f8;
}
.platform-billing-table tbody tr:hover {
    background: #f6fafc;
}
.org-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.org-avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e4eef3;
    color: var(--brand);
    font-weight: 700;
    font-size: 15px;
}
.org-copy strong {
    display: block;
    font-size: 14px;
}
.org-copy strong a {
    color: inherit;
    text-decoration: none;
}
.org-copy strong a:hover {
    color: var(--brand);
    text-decoration: underline;
}
.pill.plan-enterprise { background: #edf3f8; color: #0e3447; }
.pill.plan-team, .pill.plan-business { background: #eef5ff; color: #1a4a8a; }
.pill.plan-pro, .pill.plan-solo { background: #f4f0ff; color: #4a3290; }
.pill.plan-free { background: #eef2f4; color: var(--muted); }
.platform-billing-toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.platform-billing-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.platform-billing-sheet .muted { font-size: 12px; color: var(--muted); }
.badge-ok, .badge-warn { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #e4f4e8; color: var(--ok); }
.badge-warn { background: #fff4e0; color: #8a5a00; }
.billing-warn { color: #8a5a00; font-weight: 600; }
.billing-expired { color: var(--danger); }
.billing-summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.billing-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.billing-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 8px; }
.billing-section { margin-bottom: 28px; }
.billing-readonly { display: grid; gap: 8px; max-width: 640px; }
.billing-readonly > div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: start; }
.billing-readonly dt { margin: 0; color: var(--muted); font-size: 13px; }
.billing-readonly dd { margin: 0; }
@media (max-width: 840px) {
    .billing-summary-cards { grid-template-columns: 1fr; }
    .billing-readonly > div { grid-template-columns: 1fr; }
    .platform-billing-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .platform-billing-stats { grid-template-columns: 1fr; }
}

.muted-small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e8eef2; color: var(--ink); }
.pill.ok { background: #e4f4e8; color: var(--ok); }
.pill.warn { background: #fff4e0; color: #8a5a00; }
.pill.bad { background: var(--danger-bg); color: var(--danger); }
.billing-profile-sheet { margin-top: 12px; }
.billing-profile-table .is-default { background: color-mix(in srgb, var(--accent, #0ea5e9) 6%, transparent); }
.billing-default-pill { margin-left: 8px; font-size: 0.75rem; vertical-align: middle; }
.billing-profile-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.billing-profile-actions .inline-form { display: inline; margin: 0; }
.billing-profile-actions .btn-quiet.danger { color: #b91c1c; }
.billing-page .page-head { margin-bottom: 16px; }
.platform-seats { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border, #e2e8f0); }
.platform-seats-org { margin: 1.25rem 0 0.5rem; font-size: 1rem; font-weight: 600; }
.platform-seats-org .muted { font-weight: 500; color: var(--muted, #64748b); }
.platform-seats-sheet { margin-bottom: 0.5rem; }


.purchase-invoice-head { margin-bottom: 18px; }
.purchase-invoice-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.text-end { text-align: right; }

.invoice-sheet {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
    color: #0f172a;
    max-width: 980px;
}
.invoice-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 2px solid #0f172a; }
.invoice-brand-mark { min-width: 0; }
.invoice-logo {
    display: block;
    width: auto;
    max-width: 240px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}
.invoice-party-address { white-space: pre-line; min-height: 2.5em; }
.invoice-seller-legal {
    margin: 6px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}
.invoice-seller-site {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: #64748b;
}
.invoice-brand-name { font-size: 1.2rem; font-weight: 700; }
.invoice-badge { border: 1px solid #0f172a; padding: 0.3rem 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; white-space: nowrap; }
.invoice-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.invoice-party { border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.85rem 1rem; background: #f8fafc; }
.invoice-party h3, .invoice-notes h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin: 0 0 0.4rem; }
.invoice-party-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.invoice-muted { color: #64748b; white-space: pre-line; margin-bottom: 0.55rem; font-size: 0.92rem; }
.invoice-party dl { margin: 0; }
.invoice-party dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 0.4rem; margin-bottom: 0.25rem; font-size: 0.92rem; }
.invoice-party dt { color: #64748b; font-weight: 500; margin: 0; }
.invoice-party dd { margin: 0; }
.invoice-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem 0.85rem; margin: 1.15rem 0; padding: 0.85rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.invoice-meta span { display: block; color: #64748b; font-size: 0.75rem; }
.invoice-meta strong { display: block; margin-top: 0.1rem; font-size: 0.95rem; }
.invoice-lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9rem; }
.invoice-lines th, .invoice-lines td { border: 1px solid #cbd5e1; padding: 0.5rem 0.6rem; vertical-align: top; }
.invoice-lines thead th { background: #0f172a; color: #fff; font-weight: 600; font-size: 0.8rem; }
.invoice-legal > div, .invoice-totals > div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.9rem; }
.invoice-legal span, .invoice-totals span { color: #64748b; }
.invoice-payable { border-bottom: none !important; margin-top: 0.25rem; padding-top: 0.5rem !important; border-top: 2px solid #0f172a; font-size: 1rem; }
.invoice-notes { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; font-size: 0.9rem; }

@media (max-width: 768px) {
    .invoice-grid-2, .invoice-meta { grid-template-columns: 1fr; }
    .invoice-party dl > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media print {
    .shell .nav, .top, .purchase-invoice-actions, .no-print, .page-head { display: none !important; }
    .shell, .workspace, .content { overflow: visible !important; height: auto !important; }
    body:has(.shell) { overflow: auto !important; }
    .invoice-sheet { box-shadow: none; border: none; border-radius: 0; padding: 0; max-width: none; }
    .invoice-logo {
        height: 44px;
        max-width: 220px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
