:root {
    color-scheme:dark;
    --bg:#151a17;
    --card:#1d2420;
    --card-2:#202722;
    --ink:#edf2ef;
    --muted:#9ba79f;
    --line:#343e38;
    --line-strong:#46524b;
    --accent:#0d6b47;
    --accent-light:#78c4a4;
    --soft:#25372e;
    --danger:#e8897d;
    --danger-bg:#3a211e;
    --warning:#e4c66a;
    --warning-bg:#332d1c;
    --radius:14px
}
* {
    box-sizing:border-box
}
html,body {
    min-height:100%;
    margin:0
}
body {
    font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
    background:var(--bg);
    color:var(--ink);
    font-size:14px;
    line-height:1.45
}
.wrap {
    max-width:1280px;
    margin:30px auto;
    padding:0 22px 48px
}

.wrap.wrap-invoices {
    max-width:none;
    width:100%;
    padding-left:28px;
    padding-right:28px
}
.invoice-list-table {
    min-width:1420px
}
.invoice-list-table th,.invoice-list-table td {
    white-space:nowrap
}
.invoice-list-table td:nth-child(4),
.invoice-list-table td:nth-child(5) {
    white-space:normal;
    min-width:170px
}
@media(max-width:700px) {
    .wrap.wrap-invoices {
        padding-left:14px;
        padding-right:14px
    }
}

.card {
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px;
    margin:16px 0;
    box-shadow:0 10px 30px rgba(0,0,0,.16)
}
h1,h2,h3 {
    color:var(--ink);
    letter-spacing:-.02em
}
h1 {
    font-size:24px;
    margin:0 0 8px
}
h2 {
    font-size:18px;
    margin:0 0 14px
}
h3 {
    font-size:15px;
    margin:18px 0 8px
}
p {
    margin:8px 0 12px
}
a {
    color:var(--accent-light)
}
label {
    display:block;
    font-size:12px;
    font-weight:750;
    color:var(--muted);
    margin:12px 0 5px
}
input,select,textarea {
    width:100%;
    box-sizing:border-box;
    padding:10px 12px;
    border:1px solid #3a463f;
    border-radius:9px;
    font:inherit;
    background:#171d19;
    color:var(--ink);
    outline:none;
    transition:border-color .15s,box-shadow .15s,background .15s
}
select option {
    background:#171d19;
    color:var(--ink)
}
select option:checked {
    background:var(--soft);
    color:var(--ink)
}
input:focus,select:focus,textarea:focus {
    border-color:var(--accent-light);
    box-shadow:0 0 0 2px rgba(120,196,164,.12)
}
input::placeholder,textarea::placeholder {
    color:#6f7c74
}
textarea {
    min-height:90px;
    resize:vertical
}
button,.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    background:var(--accent);
    color:#fff;
    border:1px solid var(--accent);
    border-radius:9px;
    padding:9px 14px;
    font:inherit;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    transition:background .15s,border-color .15s,color .15s,transform .05s
}
button:hover,.btn:hover {
    background:#0f7b52;
    border-color:#0f7b52
}
button:active,.btn:active {
    transform:translateY(1px)
}
.btn.secondary {
    background:#2a322d;
    color:var(--ink);
    border-color:var(--line-strong)
}
.btn.secondary:hover {
    background:#313b35;
    border-color:#5a6b62
}
.btn.danger,button.danger {
    background:#8f3028;
    border-color:#a84338;
    color:#fff
}
.btn.danger:hover,button.danger:hover {
    background:#a23a31
}
.btn[aria-disabled="true"],button:disabled {
    opacity:.45;
    cursor:not-allowed;
    transform:none
}
.actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center
}
.pill {
    display:inline-block;
    padding:3px 8px;
    border-radius:999px;
    background:var(--soft);
    border:1px solid #365443;
    color:var(--accent-light);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase
}
.grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px
}
.muted {
    color:var(--muted)
}
.error {
    background:var(--danger-bg);
    border:1px solid #6e3731;
    color:#f1b4ad;
    padding:12px;
    border-radius:9px
}
.ok {
    background:#1d3329;
    border:1px solid #315d49;
    color:#9ad9bc;
    padding:12px;
    border-radius:9px
}
.warn {
    background:var(--warning-bg);
    border:1px solid #66572c;
    color:#ecd88f;
    padding:12px;
    border-radius:9px
}
.keyrow {
    display:flex;
    align-items:center;
    gap:8px
}
.key {
    flex:1;
    font:650 18px ui-monospace,SFMono-Regular,Consolas,monospace;
    letter-spacing:.03em;
    background:#171d19;
    border:1px solid var(--line);
    padding:12px;
    border-radius:9px;
    word-break:break-all
}
.copybtn {
    color:var(--accent-light);
    width:42px;
    height:42px;
    padding:8px;
    background:var(--soft);
    border:1px solid #365443;
    display:inline-flex;
    align-items:center;
    justify-content:center
}
.copybtn:hover {
    background:#2d4639;
    border-color:var(--accent-light)
}
.copybtn svg {
    width:22px;
    height:22px;
    display:block
}
.copybtn.copied {
    outline:2px solid var(--accent-light);
    outline-offset:1px
}
.tablewrap {
    overflow-x:auto;
    border:1px solid var(--line);
    border-radius:11px
}
.contact-table input {
    min-width:180px
}
.contact-table td {
    vertical-align:middle
}
.contact-actions {
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap
}
.primary-badge {
    display:inline-block;
    padding:4px 9px;
    border-radius:999px;
    background:var(--soft);
    border:1px solid #365443;
    color:var(--accent-light);
    font-size:11px;
    font-weight:800
}
.not-primary {
    color:#748078
}
table {
    width:100%;
    border-collapse:collapse;
    background:var(--card)
}
th,td {
    text-align:left;
    border-bottom:1px solid var(--line);
    padding:10px 9px;
    font-size:13px;
    vertical-align:middle
}
th {
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.035em;
    background:#1a201c
}
tbody tr:hover {
    background:#202923
}
tbody tr:last-child td {
    border-bottom:0
}
code {
    color:#b5d8c5;
    background:#171d19;
    border-radius:5px;
    padding:2px 4px
}
.top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}
.top a {
    color:var(--accent-light);
    text-decoration:none
}
.adminbar {
    min-height:66px;
    background:rgba(29,36,32,.98);
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    gap:18px;
    padding:0 20px;
    position:sticky;
    top:0;
    z-index:20;
    box-shadow:0 8px 24px rgba(0,0,0,.22);
    backdrop-filter:blur(12px)
}
.adminbar-main {
    display:flex;
    align-items:stretch;
    min-width:0;
    gap:18px
}
.adminbrand {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:max-content;
    padding:8px 4px 8px 0;
    color:var(--ink);
    text-decoration:none
}
.adminbrand svg {
    width:40px;
    height:40px;
    display:block;
    flex:0 0 40px
}
.adminbrand-text {
    display:flex;
    flex-direction:column;
    justify-content:center;
    line-height:1.05
}
.adminbrand-text strong {
    font-size:17px;
    font-weight:850;
    letter-spacing:-.035em;
    color:var(--ink)
}
.adminbrand-text small {
    margin-top:4px;
    font-size:10px;
    font-weight:700;
    letter-spacing:.025em;
    color:var(--muted)
}
.adminnav {
    display:flex;
    align-items:stretch;
    gap:2px;
    overflow-x:auto
}
.adminnav a {
    display:flex;
    align-items:center;
    padding:0 12px;
    color:#b0bab4;
    text-decoration:none;
    font-weight:700;
    font-size:13px;
    white-space:nowrap;
    border-bottom:3px solid transparent
}
.adminnav a:hover {
    background:#222b26;
    color:var(--ink)
}
.adminnav a.active {
    color:var(--accent-light);
    border-bottom-color:var(--accent-light);
    background:#202923
}
.adminuser {
    display:flex;
    gap:12px;
    align-items:center;
    white-space:nowrap;
    font-size:12px;
    color:var(--muted)
}
.adminuser a {
    color:var(--accent-light);
    text-decoration:none;
    font-weight:750
}
.searchbar {
    display:grid;
    grid-template-columns:minmax(260px,1fr) auto;
    gap:10px;
    align-items:end;
    margin-bottom:16px
}
.filterbar {
    display:grid;
    grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(130px,.55fr)) auto;
    gap:10px;
    align-items:end;
    margin-bottom:16px
}
.filterbar label,.searchbar label {
    margin-top:0
}
.filter-actions {
    display:flex;
    gap:8px;
    align-items:center;
    padding-bottom:1px
}
.resultmeta {
    font-size:12px;
    color:var(--muted);
    margin:0 0 10px
}
.btn.linklike {
    background:transparent;
    border-color:transparent;
    color:var(--accent-light);
    padding-left:8px;
    padding-right:8px
}
.btn.linklike:hover {
    background:var(--soft);
    border-color:var(--line)
}
.auth-card {
    max-width:440px;
    margin:9vh auto 0;
    padding:30px
}
.auth-brand {
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:24px
}
.auth-brand svg {
    width:52px;
    height:52px;
    flex:0 0 52px
}
.auth-brand-copy {
    display:flex;
    flex-direction:column;
    line-height:1.05
}
.auth-brand-copy strong {
    font-size:22px;
    font-weight:850;
    letter-spacing:-.04em
}
.auth-brand-copy span {
    font-size:12px;
    font-weight:700;
    color:var(--muted);
    margin-top:5px
}
.auth-card h1 {
    font-size:18px;
    margin-top:4px
}
.auth-card button {
    width:100%
}
hr {
    border:0;
    border-top:1px solid var(--line);
    margin:22px 0
}
@media(max-width:1000px) {
    .adminbar {
        align-items:flex-start;
        flex-direction:column;
        padding:8px 14px 10px;
        gap:4px
    }
    .adminbar-main {
        width:100%;
        flex-direction:column;
        gap:2px
    }
    .adminbrand {
        padding-bottom:4px
    }
    .adminnav {
        width:100%
    }
    .adminnav a {
        height:40px;
        padding:0 10px
    }
    .adminuser {
        align-self:flex-end
    }
    .filterbar {
        grid-template-columns:1fr 1fr
    }
    .filter-actions {
        grid-column:1/-1
    }
}
@media(max-width:700px) {
    .grid {
        grid-template-columns:1fr
    }
    .searchbar,.filterbar {
        grid-template-columns:1fr
    }
    .filter-actions {
        grid-column:auto
    }
    .wrap {
        margin-top:20px;
        padding-left:14px;
        padding-right:14px
    }
    .card {
        padding:18px
    }
    .adminbrand-text small {
        display:none
    }
}


/* Legal document display names */
.legal-title-form {
    display:flex;
    gap:8px;
    align-items:center;
    min-width:320px;
}
.legal-title-form input {
    min-width:220px;
    margin:0;
}
.legal-title-form button {
    white-space:nowrap;
    margin:0;
}

.checkline {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:10px 0;
    color:var(--ink);
    font-size:13px;
    font-weight:650;
}
.checkline input[type="checkbox"] {
    width:auto;
    margin:0;
    accent-color:var(--accent);
}

/* Admin TOTP 2FA */
.totp-setup{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}
.totp-qr-wrap{display:flex;justify-content:center}
.totp-qr{width:244px;min-height:244px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:center}
.totp-qr img,.totp-qr canvas{display:block;max-width:220px!important;max-height:220px!important}
.secret-copy{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 6px}
.secret-copy code{font-size:15px;letter-spacing:.08em;padding:10px 12px;background:var(--soft);border:1px solid var(--line);border-radius:10px;word-break:break-all}
.totp-input{font-size:20px;letter-spacing:.18em;font-variant-numeric:tabular-nums;max-width:280px}
.recovery-card{border-color:#b58b32}
.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:16px 0}
.recovery-grid code{display:block;padding:9px 11px;background:var(--soft);border:1px solid var(--line);border-radius:8px;font-size:14px;letter-spacing:.05em}
.twofa-actions{align-items:start}
.danger-zone{border-color:#7b3535}
.inline-form{display:inline-block;margin:0}
@media(max-width:760px){.totp-setup{grid-template-columns:1fr}.recovery-grid{grid-template-columns:1fr}.totp-qr-wrap{justify-content:flex-start}}


/* Customer self-service portal */
.portal-wrap{max-width:1040px}.portalbar{min-height:66px;background:rgba(29,36,32,.98);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 22px;position:sticky;top:0;z-index:20;box-shadow:0 8px 24px rgba(0,0,0,.22)}
.portalbrand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.portalbrand svg{width:40px;height:40px}.portalbrand span{display:flex;flex-direction:column;line-height:1.05}.portalbrand strong{font-size:17px;letter-spacing:-.035em}.portalbrand small{margin-top:4px;color:var(--muted);font-size:10px;font-weight:700}
.portaluser{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:12px}.portaluser a{font-weight:750;text-decoration:none}.portal-auth{position:relative}.portal-lang{position:absolute;right:24px;top:22px;font-size:12px;font-weight:800}.portal-security-note{font-size:11px;margin-top:20px}.portal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:10px}.portal-heading p{margin-bottom:0}
.portal-license{padding:22px}.portal-license-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.portal-license-head h2{margin:9px 0 3px}.portal-license-status{text-align:right;display:flex;flex-direction:column;gap:3px}.portal-license-status strong{color:var(--accent-light)}.portal-license-status span{color:var(--muted);font-size:12px}
.portal-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.portal-meta>div{background:#19201c;border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}.portal-meta span{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.03em}.portal-meta strong{font-size:13px}
.portal-device{display:grid;grid-template-columns:minmax(200px,1fr) minmax(360px,1.35fr);gap:16px;padding:14px 0;border-top:1px solid var(--line)}.portal-device:first-of-type{border-top:0}.portal-device-info{display:flex;flex-direction:column;gap:3px}.portal-device-info span{color:var(--muted);font-size:11px}.portal-device-actions{display:flex;gap:8px;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap}.portal-device-actions form{display:flex;gap:7px;align-items:center;margin:0}.portal-device-actions input{min-width:170px;margin:0}.portal-device-actions button{white-space:nowrap}.portal-key-actions{display:flex;justify-content:flex-end;margin-top:14px}.portal-key-actions form{margin:0}.portal-trial-note{margin-top:18px}.portal-footer-note{text-align:center;margin-top:26px}
@media(max-width:760px){.portalbar{align-items:flex-start;flex-direction:column;padding:10px 14px}.portaluser{width:100%;flex-wrap:wrap;justify-content:flex-end}.portal-heading,.portal-license-head{flex-direction:column}.portal-license-status{text-align:left}.portal-meta{grid-template-columns:1fr}.portal-device{grid-template-columns:1fr}.portal-device-actions{justify-content:flex-start}.portal-device-actions form{width:100%;flex-wrap:wrap}.portal-device-actions input{flex:1;min-width:0}.portal-key-actions{justify-content:flex-start}}

.portal-code-help{margin:14px 0 18px;padding:14px 16px;background:#19201c;border:1px solid var(--line);border-radius:10px}
.portal-code-help p:last-child{margin-bottom:0}
.portal-code-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px}
.portal-code-actions form{margin:0}
.portal-code-actions .btn{white-space:nowrap}
.portal-still-waiting{margin-top:16px}
@media(max-width:520px){.portal-code-actions{align-items:stretch;flex-direction:column}.portal-code-actions .btn,.portal-code-actions form,.portal-code-actions button{width:100%}}


/* 0.1.33 — customer portal login width alignment */
.portal-auth form{width:100%}
.portal-auth .totp-input{display:block;width:100%;max-width:none;box-sizing:border-box}
.portal-auth button:not(.inline-button){width:100%}
.portal-code-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.portal-code-actions .btn,
.portal-code-actions form,
.portal-code-actions button{width:100%}
.portal-code-actions form{display:block}
@media(max-width:520px){.portal-code-actions{grid-template-columns:1fr}}


/* 0.1.35 — Orders / public purchase foundation */
.purchasebar{max-width:1280px;margin:0 auto;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.purchase-wrap{max-width:980px}
.purchase-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:6px 0 18px}
.purchase-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.purchase-product{position:relative;display:flex;flex-direction:column;gap:6px;margin:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer}
.purchase-product:hover,.purchase-product.selected{border-color:var(--accent-light);box-shadow:0 0 0 2px rgba(120,196,164,.1)}
.purchase-product>input{position:absolute;right:16px;top:16px;width:auto}
.purchase-product-name{font-size:18px;font-weight:800;color:var(--ink)}
.purchase-product strong{font-size:20px;color:var(--ink)}
.purchase-product strong small{font-size:11px;color:var(--muted);font-weight:700}
.purchase-product>span:last-child{color:var(--muted);font-size:12px}
.customer-type-switch{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 16px}
.customer-type-switch label{display:flex;align-items:center;gap:8px;margin:0;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:#171d19;color:var(--ink);cursor:pointer}
.customer-type-switch input{width:auto}
.company-fields[hidden]{display:none!important}
.purchase-note{margin:18px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#19201c;color:var(--muted);font-size:12px}
.purchase-submit{min-width:220px}
.order-totals{margin-left:auto;margin-top:18px;max-width:380px;border-top:1px solid var(--line)}
.order-totals>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid var(--line)}
.order-totals .grand{font-size:18px}
.commerce-price-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.commerce-price-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card-2)}
.commerce-price-card h3{margin-top:0}
@media(max-width:980px){.purchase-products{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.purchase-products,.commerce-price-grid,.grid{grid-template-columns:1fr}.purchase-heading{flex-direction:column}.purchasebar{align-items:flex-start}.portaluser{flex-wrap:wrap}}

/* 0.1.36 — customer type */
.customer-company-fields[hidden],.manual-company-fields[hidden]{display:none!important}

/* 0.1.40 — editable unpaid order summary */
.purchase-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.purchase-card-heading h2{margin:0}@media(max-width:620px){.purchase-card-heading{align-items:flex-start;flex-direction:column}}
.payment-method-card{display:flex;flex-direction:column;gap:14px}
.payment-method-card h2{margin-bottom:0}
.payment-method-option{display:flex;align-items:flex-start;gap:10px;margin:0;padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:#171d19;color:var(--ink)}
.payment-method-option input{width:auto;margin-top:3px}
.payment-method-option span{display:flex;flex-direction:column;gap:4px}
.payment-method-option small{color:var(--muted);font-weight:400}
.legal-consents{display:flex;flex-direction:column;gap:10px;padding:14px 0 2px;border-top:1px solid var(--line)}
.legal-consents label{display:flex;align-items:flex-start;gap:10px;margin:0;color:var(--ink);line-height:1.5}
.legal-consents input{width:auto;margin-top:4px;flex:0 0 auto}
.legal-consents a{color:var(--accent-light)}
.checkout-actions{margin-bottom:0}

/* 0.1.44 — legal documents in a non-fullscreen modal */
.legal-modal{width:min(920px,calc(100vw - 48px));max-width:none;height:min(760px,calc(100vh - 72px));max-height:none;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);box-shadow:0 24px 80px rgba(0,0,0,.55);overflow:hidden}
.legal-modal::backdrop{background:rgba(5,9,7,.72);backdrop-filter:blur(2px)}
.legal-modal-shell{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}
.legal-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto;padding:13px 14px 13px 18px;border-bottom:1px solid var(--line);background:#171d19}
.legal-modal-head strong{font-size:14px;color:var(--ink)}
.legal-modal-close{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--card-2);color:var(--ink);font-size:25px;line-height:1;cursor:pointer}
.legal-modal-close:hover{border-color:var(--accent-light);background:#202923}
.legal-modal-frame{display:block;flex:1 1 auto;width:100%;min-height:0;border:0;background:#fff}
@media(max-width:620px){.legal-modal{width:calc(100vw - 24px);height:calc(100vh - 48px);border-radius:12px}.legal-modal-head{padding-left:14px}}

/* 0.1.46 — order search and status filtering */
.order-filterbar{grid-template-columns:minmax(280px,1.5fr) minmax(170px,.55fr) auto}
@media(max-width:760px){.order-filterbar{grid-template-columns:1fr}}

/* 0.1.48 — Basic → PRO purchase upgrade */
.upgrade-license-card[hidden]{display:none!important}
.purchase-product>small{color:var(--muted);font-weight:400;line-height:1.45;margin-top:2px}

/* 0.1.48 — dashboard license counts */
.license-stat-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.license-stat {
    display:flex;
    flex-direction:column;
    min-height:132px;
    padding:18px 20px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--card-2);
    color:var(--ink);
    text-decoration:none;
    transition:border-color .15s,background .15s,transform .05s;
}
.license-stat:hover {
    border-color:#4b6658;
    background:#242d27;
}
.license-stat:active {
    transform:translateY(1px);
}
.license-stat-label {
    color:var(--accent-light);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
    font-size:12px;
}
.license-stat-value {
    margin-top:8px;
    font-size:38px;
    line-height:1;
    letter-spacing:-.04em;
}
.license-stat-meta {
    margin-top:auto;
    padding-top:12px;
    color:var(--muted);
    font-size:12px;
}
@media(max-width:720px) {
    .license-stat-grid {grid-template-columns:1fr;}
    .license-stat {min-height:112px;}
}


/* 0.1.51 — immediate Basic license verification in manual upgrade */
.upgrade-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.upgrade-key-row input{margin:0}
.upgrade-key-use{white-space:nowrap;min-width:92px}
@media(max-width:520px){.upgrade-key-row{grid-template-columns:1fr}.upgrade-key-use{width:100%}}
.pill.status-ok{background:#1d3329;border-color:#315d49;color:#9ad9bc}
.pill.status-warn{background:var(--warning-bg);border-color:#66572c;color:#ecd88f}
.pill.status-error{background:var(--danger-bg);border-color:#6e3731;color:#f1b4ad}

.maintenance-banner {
  margin: 14px auto 0;
  width: min(1500px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #9b6b22;
  border-radius: 10px;
  background: #3a2b16;
  color: #f5e6c8;
}
