:root { color-scheme: dark; --bg: #0c0f13; --panel: #14191f; --line: #2a323b; --muted: #8f9aa7; --text: #edf2f7; --accent: #28c49a; --accent-soft: #12382f; --warning: #f0b84b; --danger: #ee6a6a; font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
.topbar { height: 64px; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: #101419; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: #07120f; font-weight: 900; border-radius: 6px; }
.brand strong, .brand small { display: block; }.brand small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.topbar nav { display: flex; align-items: center; gap: 22px; color: #c4ccd4; }.topbar nav form { margin: 0; }.topbar nav button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
main { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 64px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-head span, dialog header span, .login-panel > div > span { color: var(--accent); font: 700 11px/1.4 ui-monospace, Consolas, monospace; }
h1 { margin: 5px 0 6px; font-size: clamp(25px, 3vw, 36px); } h2 { margin: 4px 0; font-size: 21px; }.page-head p, .login-panel p { margin: 0; color: var(--muted); }
button, .filters a, .row-button, .page-link { min-height: 36px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 5px; background: #1a2027; color: var(--text); cursor: pointer; }
button:hover, .filters a:hover { border-color: #53606d; }button:disabled { cursor: not-allowed; opacity: .45; }.primary { border-color: var(--accent); background: var(--accent); color: #07120f; font-weight: 750; }.danger { color: var(--danger); }.icon { width: 36px; padding: 0; font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 7px; background: var(--panel); margin-bottom: 18px; }
.stats div { min-height: 98px; padding: 20px; border-right: 1px solid var(--line); }.stats div:last-child { border: 0; }.stats span, td small { color: var(--muted); }.stats strong { display: block; margin-top: 7px; font-size: 28px; }
.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.filters { padding: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }.filters input { width: min(340px, 40vw); }.filters span { margin-left: auto; color: var(--muted); }
input, select { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; outline: none; background: #0e1216; color: var(--text); } input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(40,196,154,.12); }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: left; text-transform: uppercase; white-space: nowrap; }td { padding: 14px 15px; border-bottom: 1px solid #222931; vertical-align: top; white-space: nowrap; }tbody tr:last-child td { border: 0; }tbody tr:hover { background: #171d23; }
td:first-child small, .device > * { display: block; margin-top: 5px; }.copy-key { min-height: 0; padding: 0; border: 0; background: transparent; color: #d9e7e2; font: 700 12px ui-monospace, Consolas, monospace; }.license-key-cell { min-width: 330px; }.license-key-value { display: flex; align-items: center; gap: 9px; }.license-key-value code { color: #d9e7e2; font: 700 12px ui-monospace, Consolas, monospace; }.license-key-value button { min-height: 28px; padding: 3px 8px; color: var(--accent); font-size: 11px; }.license-key-value.unavailable { display: grid; gap: 4px; }.license-key-value.unavailable span { color: var(--warning); font-size: 11px; }.device code { color: #9fb3ac; font-size: 11px; }.muted { color: var(--muted); }.empty { height: 170px; color: var(--muted); text-align: center; vertical-align: middle; }
.status { display: inline-flex; padding: 4px 8px; border: 1px solid; border-radius: 4px; font-size: 11px; }.status.bound { border-color: #2f8f75; background: var(--accent-soft); color: #69dfbd; }.status.ready { border-color: #52616f; color: #b7c3cd; }.status.renewal { border-color: #6050a2; background: #261f42; color: #b9a6ff; }.status.disabled, .status.expired, .status.superseded { border-color: #735e39; color: var(--warning); }.status.revoked { border-color: #743f43; color: #ff8c92; }
.row-actions { display: flex; gap: 5px; }.row-actions button { min-height: 30px; padding: 4px 8px; font-size: 12px; }.row-actions .icon { width: 30px; padding: 0; }.device details { margin-top: 7px; color: var(--warning); }.device summary { cursor: pointer; font-size: 11px; }.device-details { min-width: 440px; white-space: normal; }.device-details > summary { width: fit-content; color: var(--accent); }.device-details dl { margin: 10px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; border: 1px solid var(--line); border-radius: 5px; background: #0e1216; }.device-details dl div { min-width: 0; }.device-details dl .wide { grid-column: 1 / -1; }.device-details dt { margin-bottom: 3px; color: var(--muted); font-size: 10px; }.device-details dd { margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }.device-details .device-id code { color: #b9ccc5; white-space: normal; word-break: break-all; }
.select-cell { width: 42px; padding-right: 5px; text-align: center; }.select-cell input { min-height: auto; accent-color: var(--accent); }.license-entitlement { min-width: 210px; white-space: normal; }.license-entitlement > * { display: block; }.license-entitlement strong { margin: 7px 0 4px; }.license-entitlement small { max-width: 260px; line-height: 1.5; }.license-type { width: fit-content; padding: 3px 7px; border: 1px solid #44505b; border-radius: 999px; color: #b8c3cc; font-size: 10px; }.license-type.renewal { border-color: #6555a8; color: #c0b0ff; }.row-action-stack { display: grid; gap: 7px; }.row-button, .page-link { display: inline-flex; align-items: center; justify-content: center; width: fit-content; font-size: 12px; }.batch-toolbar { padding: 10px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); background: #11161b; }.batch-toolbar strong { margin-right: 4px; font-size: 12px; }.batch-toolbar label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }.batch-toolbar label[hidden] { display: none; }.batch-toolbar label input { width: 90px; }.batch-toolbar span { margin-left: auto; color: var(--muted); font-size: 12px; }
.flash { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #2d7f69; border-radius: 5px; background: var(--accent-soft); color: #85e5ca; }.flash.error { border-color: #783f43; background: #321c20; color: #ff9ca1; }
dialog { width: min(720px, calc(100% - 28px)); padding: 0; border: 1px solid #3a4651; border-radius: 9px; background: var(--panel); color: var(--text); }dialog::backdrop { background: rgba(0,0,0,.72); }dialog form > header, dialog form > footer { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }dialog form > footer { justify-content: end; gap: 8px; border-top: 1px solid var(--line); border-bottom: 0; }.form-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.form-grid label span, .login-panel label span, .editor-grid label > span { display: block; margin-bottom: 6px; color: #b9c2cb; font-size: 12px; }.form-grid input, .form-grid select, .editor-grid input, .editor-grid select { width: 100%; }.form-grid .full, .editor-grid .full { grid-column: 1 / -1; }.feature-fieldset, .expiry-fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }.feature-fieldset legend, .expiry-fieldset legend { padding: 0 6px; color: #b9c2cb; font-size: 12px; }.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.feature-option { min-width: 0; padding: 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #29333c; border-radius: 5px; background: #10151a; cursor: pointer; }.feature-option input { width: auto; min-height: auto; accent-color: var(--accent); }.feature-option input:disabled + span { color: var(--muted); }.feature-option span { margin: 0 !important; white-space: nowrap; }
.license-profile { display: grid; gap: 18px; }.license-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }.license-summary div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }.license-summary div:last-child { border: 0; }.license-summary span, .license-summary strong { display: block; }.license-summary span { margin-bottom: 8px; color: var(--muted); font-size: 11px; }.license-summary strong { overflow-wrap: anywhere; }.license-editor > header, .renewal-history > header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.license-editor > header span, .renewal-history > header span { color: var(--accent); font: 700 11px ui-monospace, Consolas, monospace; }.editor-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.license-editor > footer { padding: 16px 20px; display: flex; justify-content: end; gap: 8px; border-top: 1px solid var(--line); }.expiry-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.expiry-fieldset > label { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #29333c; border-radius: 5px; background: #10151a; }.expiry-fieldset input[type="radio"] { width: auto; min-height: auto; accent-color: var(--accent); }.expiry-fieldset label > span { margin: 0; white-space: nowrap; }.expiry-fieldset input[type="number"], .expiry-fieldset input[type="datetime-local"] { min-width: 0; }.renewal-history > header > strong { color: var(--muted); font-size: 12px; }
.login-panel { width: min(430px, 100%); margin: 10vh auto 0; padding: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }.login-panel form { display: grid; gap: 15px; margin-top: 26px; }.login-panel input { width: 100%; }.login-panel button { margin-top: 5px; }
.setup-shell { width: min(980px, 100%); min-height: 620px; margin: 3vh auto 0; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.setup-intro { padding: 44px 38px; border-right: 1px solid var(--line); background: linear-gradient(155deg, #10251f 0%, #11171b 58%, #11151a 100%); }.setup-intro > span, .setup-card-head > span { color: var(--accent); font: 700 11px/1.4 ui-monospace, Consolas, monospace; }.setup-intro h1 { margin-top: 10px; }.setup-intro > p { max-width: 310px; margin: 0; color: var(--muted); line-height: 1.7; }
.setup-intro ol { margin: 54px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }.setup-intro li { min-height: 72px; padding: 12px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 7px; color: #7f8a95; }.setup-intro li.active { border-color: #2b574c; background: rgba(40,196,154,.08); color: var(--text); }.setup-intro li b { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #34414b; border-radius: 6px; color: #91a098; font: 700 11px ui-monospace, Consolas, monospace; }.setup-intro li.active b { border-color: var(--accent); background: var(--accent); color: #07120f; }.setup-intro li strong, .setup-intro li small { display: block; }.setup-intro li small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.setup-card { align-self: center; padding: 44px 48px; }.setup-card-head { margin-bottom: 26px; }.setup-card-head h2 { margin: 7px 0 5px; font-size: 25px; }.setup-card-head p { margin: 0; color: var(--muted); }.setup-form { display: grid; gap: 17px; }.setup-form label > span { display: block; margin-bottom: 7px; color: #c7cfd7; font-size: 12px; }.setup-form label > small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }.setup-form input { width: 100%; min-height: 44px; }.setup-form button { min-height: 44px; margin-top: 3px; }.setup-security { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; border: 1px solid #285649; border-radius: 6px; background: var(--accent-soft); }.setup-security strong { color: #75ddbf; font-size: 11px; white-space: nowrap; }.setup-security p { margin: 0; color: #9dc9bb; font-size: 11px; line-height: 1.5; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 18px; }.settings-grid .workspace { padding: 20px; }.settings-grid article > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }.settings-grid article > header span { color: var(--accent); font: 700 11px ui-monospace, Consolas, monospace; }.settings-grid textarea { width: 100%; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #0e1216; color: #cbd7d2; font: 12px/1.6 ui-monospace, Consolas, monospace; letter-spacing: 0; }.settings-facts { display: grid; align-content: start; }.settings-facts div { padding: 15px 0; border-bottom: 1px solid var(--line); }.settings-facts div:last-child { border: 0; }.settings-facts span, .settings-facts strong { display: block; overflow-wrap: anywhere; }.settings-facts span { margin-bottom: 6px; color: var(--muted); font-size: 12px; }.generated-actions { display: flex; align-items: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }.generated-actions a { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid var(--line); border-radius: 5px; }
@media (max-width: 860px) { main { width: min(100% - 24px, 1500px); padding-top: 22px; }.topbar { padding: 0 14px; }.topbar nav a { display: none; }.stats { grid-template-columns: 1fr 1fr; }.stats div:nth-child(2) { border-right: 0; }.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.filters, .batch-toolbar { flex-wrap: wrap; }.filters input { width: 100%; }.filters span, .batch-toolbar span { width: 100%; margin: 4px 0 0; }.page-head { align-items: start; }.page-head p { max-width: 70vw; }.form-grid, .editor-grid { grid-template-columns: 1fr; }.form-grid .full, .editor-grid .full { grid-column: auto; }.settings-grid { grid-template-columns: 1fr; }.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.license-summary { grid-template-columns: 1fr 1fr; }.license-summary div { border-bottom: 1px solid var(--line); }.license-summary div:nth-child(2n) { border-right: 0; }.license-summary div:last-child { grid-column: 1 / -1; border-bottom: 0; }.expiry-fieldset { grid-template-columns: 1fr; }.setup-shell { grid-template-columns: 1fr; margin-top: 0; }.setup-intro { padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); }.setup-intro ol { margin-top: 24px; grid-template-columns: repeat(3, 1fr); }.setup-intro li { grid-template-columns: auto 1fr; }.setup-card { padding: 34px 28px; } }
@media (max-width: 520px) { .stats div { min-height: 82px; padding: 15px; }.stats strong { font-size: 23px; }.page-head { display: grid; }.page-head .primary { width: 100%; }.page-head p { max-width: none; }.brand strong { font-size: 13px; }.setup-intro { padding: 24px 20px; }.setup-intro ol { grid-template-columns: 1fr; gap: 2px; }.setup-intro li:not(.active) { display: none; }.setup-card { padding: 28px 20px; }.setup-security { grid-template-columns: 1fr; } }
