:root {
    color-scheme: dark;
    --bg: #07111f;
    --panel: #101d2d;
    --panel-2: #15263a;
    --line: #263a51;
    --text: #edf5ff;
    --muted: #8fa5bb;
    --primary: #12b981;
    --primary-hover: #0fa371;
    --danger: #ef5b69;
    --warning: #f5b942;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }

.lic-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.lic-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; background: linear-gradient(180deg, #0b192a, #081421); border-right: 1px solid var(--line); }
.lic-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.lic-brand-mark, .lic-login-logo { display: grid; place-items: center; color: white; font-weight: 800; background: linear-gradient(135deg, #16c98d, #2775e6); box-shadow: 0 10px 28px #12b98133; }
.lic-brand-mark { width: 42px; height: 42px; border-radius: 13px; }
.lic-brand strong, .lic-brand small { display: block; }
.lic-brand strong { font-size: 18px; }
.lic-brand small { color: var(--muted); margin-top: 2px; }
.lic-nav-caption { padding: 0 12px 10px; color: #667e96; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lic-nav-link { display: flex; align-items: center; gap: 13px; min-height: 48px; margin-bottom: 6px; padding: 0 14px; color: #b8c9da; text-decoration: none; border-radius: 12px; transition: .18s; }
.lic-nav-link:hover { color: white; background: #172a3e; }
.lic-nav-link.active { color: white; background: linear-gradient(90deg, #12b9812d, #2775e61e); box-shadow: inset 3px 0 var(--primary); }
.lic-nav-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #6ee7bd; font-size: 21px; }
.lic-workspace { min-width: 0; }
.lic-topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: #0a1726d9; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.lic-topbar-title { font-weight: 700; font-size: 17px; }
.lic-muted, .lic-page-heading p, .lic-section-heading p { color: var(--muted); }
.lic-muted { font-size: 12px; margin-top: 3px; }
.lic-user-panel { display: flex; align-items: center; gap: 10px; }
.lic-user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #07111f; background: #6ee7bd; font-weight: 800; }
.lic-content { padding: 30px 34px 54px; max-width: 1680px; margin: 0 auto; }
.lic-page-heading, .lic-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lic-page-heading { margin-bottom: 24px; }
.lic-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.lic-page-heading h1 { margin: 5px 0 4px; font-size: 29px; }
.lic-page-heading p, .lic-section-heading p { margin: 0; }
.lic-back-link { padding: 0; color: #77dcb9; background: transparent; border: 0; }

.lic-button { min-height: 40px; padding: 0 17px; color: var(--text); border: 1px solid transparent; border-radius: 10px; font-weight: 650; transition: .18s; }
.lic-button:disabled { cursor: default; opacity: .55; }
.lic-button-primary { background: var(--primary); color: #04130e; }
.lic-button-primary:hover:not(:disabled) { background: var(--primary-hover); color: white; transform: translateY(-1px); }
.lic-button-secondary { color: #bff9e5; background: #12382f; border-color: #215b4c; }
.lic-button-danger { color: #ffc4ca; background: #421e29; border-color: #73313f; }
.lic-button-ghost { background: #142437; border-color: var(--line); }
.lic-button-ghost:hover { background: #1b3046; }
.lic-button-block { width: 100%; min-height: 48px; }
.lic-button-small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.lic-icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: white; background: var(--panel-2); font-size: 22px; }

.lic-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.lic-search { display: flex; align-items: center; gap: 10px; width: min(520px, 100%); padding: 0 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.lic-search span { color: var(--muted); font-size: 22px; }
.lic-search input { width: 100%; min-height: 43px; color: var(--text); background: transparent; border: 0; outline: 0; }
.lic-card { background: linear-gradient(145deg, #111f30, #0e1a29); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px #0003; }
.lic-table-card, .lic-tab-content { overflow: hidden; }
.lic-table-wrap { width: 100%; overflow-x: auto; }
.lic-table { width: 100%; border-collapse: collapse; }
.lic-table th { padding: 14px 18px; color: #91a8bd; background: #0d1a29; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.lic-table td { padding: 15px 18px; border-bottom: 1px solid #203448; vertical-align: middle; }
.lic-table tr:last-child td { border-bottom: 0; }
.lic-table tbody tr:hover { background: #17283a; }
.lic-clickable { cursor: pointer; }
.lic-row-id { display: block; margin-top: 4px; color: #728aa2; font-size: 11px; }
.lic-code { font-family: Consolas, monospace; overflow-wrap: anywhere; }
.lic-copy-code { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 7px 10px; color: #a8f1d7; background: #102c28; border: 1px solid #245549; border-radius: 8px; text-align: left; transition: .18s; }
.lic-copy-code:hover { color: white; background: #174139; border-color: #32806a; transform: translateY(-1px); }
.lic-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lic-badge.success { color: #83f1ca; background: #0d3c31; }
.lic-badge.danger { color: #ffabb5; background: #44212b; }
.lic-badge.neutral { color: #adc0d2; background: #24364a; }
.lic-update-state { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 27px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lic-update-state.available { color: #071b14; background: #65ddb5; box-shadow: 0 0 0 3px #65ddb51b; }
.lic-update-state.current { color: #71869a; background: #1b2b3d; }
.lic-empty { padding: 55px 20px; color: var(--muted); text-align: center; }
.release-management-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: start; }
.release-management-card { min-width: 0; overflow: hidden; }
.release-management-card > header { display: flex; align-items: center; gap: 13px; padding: 18px; background: #0d1a29; border-bottom: 1px solid var(--line); }
.release-management-card > header > div { min-width: 0; flex: 1; }
.release-management-card h2 { margin: 0 0 4px; font-size: 18px; }
.release-management-card header small { display: block; overflow: hidden; color: var(--muted); font: 10px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.release-management-list { max-height: 610px; overflow-y: auto; }
.release-management-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 61px; padding: 12px 16px; border-bottom: 1px solid #203448; }
.release-management-row:last-child { border-bottom: 0; }
.release-management-row:hover { background: #17283a; }
.release-management-row code { min-width: 0; overflow: hidden; color: #c9f7e7; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.lic-form-card { margin-bottom: 23px; padding: 24px; }
.lic-provision-card { margin-bottom: 23px; padding: 22px 24px; background: linear-gradient(145deg, #101f30, #0b1725); border: 1px solid #28445d; border-radius: 15px; box-shadow: 0 16px 40px #0002; }
.lic-provision-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.lic-provision-heading span,.lic-provision-heading strong { display: block; }.lic-provision-heading span { margin-bottom: 5px; color: #8fa9c0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }.lic-provision-heading strong { font-size: 17px; }.lic-provision-heading b { color: #8ff0cf; font-size: 25px; }
.lic-provision-track { height: 9px; margin: 17px 0 20px; overflow: hidden; background: #07121d; border: 1px solid #20374b; border-radius: 999px; }.lic-provision-track span { display: block; height: 100%; background: linear-gradient(90deg, #14b88a, #41d5a9, #47a8e5); border-radius: inherit; transition: width .28s ease; }
.lic-provision-steps { display: grid; gap: 8px; max-height: 285px; overflow-y: auto; padding-right: 5px; }
.lic-provision-step { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 11px; color: #8fa5b8; background: #091522; border: 1px solid #1d3245; border-radius: 10px; transition: .18s; }.lic-provision-step.active { color: white; background: #123228; border-color: #2f8069; }.lic-provision-step.complete { color: #a7c2b8; }.lic-provision-step.error { color: #ffd2d7; background: #3a1d27; border-color: #8e394a; }
.lic-provision-step-marker { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: #8ff0cf; background: #173a32; border-radius: 50%; font-weight: 850; }.lic-provision-step.active .lic-provision-step-marker { animation: service-pulse 1.4s infinite; }.lic-provision-step.error .lic-provision-step-marker { color: white; background: #a73b4f; animation: none; }
.lic-provision-step div { min-width: 0; flex: 1; }.lic-provision-step strong,.lic-provision-step small { display: block; }.lic-provision-step strong { font-size: 13px; overflow-wrap: anywhere; }.lic-provision-step small { margin-top: 3px; color: #6f879c; font-size: 11px; }
.lic-nginx-card { margin-bottom: 23px; overflow: hidden; background: linear-gradient(145deg, #101f30, #0b1725); border: 1px solid #28445d; border-radius: 15px; box-shadow: 0 16px 40px #0002; }
.lic-nginx-summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; cursor: pointer; list-style: none; }.lic-nginx-summary::-webkit-details-marker { display: none; }.lic-nginx-summary h2 { margin: 0 0 5px; font-size: 19px; }.lic-nginx-summary p,.lic-nginx-hint { margin: 0; color: var(--muted); }.lic-nginx-chevron { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #8ff0cf; background: #153a32; border-radius: 9px; font-size: 22px; transition: transform .2s ease; }.lic-nginx-card[open] .lic-nginx-chevron { transform: rotate(180deg); }
.lic-nginx-body { padding: 0 24px 24px; border-top: 1px solid #20374b; }.lic-nginx-hint { padding: 16px 0; font-size: 13px; }
.lic-nginx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lic-nginx-grid article { min-width: 0; overflow: hidden; background: #081420; border: 1px solid #20374b; border-radius: 12px; }
.lic-nginx-title { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #20374b; }
.lic-nginx-title strong,.lic-nginx-title small { display: block; }.lic-nginx-title small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.lic-nginx-grid pre { max-height: 390px; margin: 0; padding: 17px; overflow: auto; color: #bcebdc; background: #06101a; font: 12px/1.55 Consolas, monospace; white-space: pre; }
.lic-section-title { margin-bottom: 18px; font-size: 17px; font-weight: 750; }
.lic-config-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 2px 0 -1px; padding: 0 13px; }
.lic-config-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; padding: 0 16px; color: var(--muted); background: #0c1826; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; font-weight: 700; }
.lic-config-tab:hover { color: white; background: #14263a; }
.lic-config-tab.active { color: white; background: var(--panel); box-shadow: inset 0 3px var(--primary); }
.lic-config-tab-content { min-height: 275px; border-top-left-radius: 0; }
.lic-section-number { display: inline-grid; place-items: center; min-width: 30px; min-height: 25px; margin-right: 7px; color: #8ff0cf; background: #153a32; border-radius: 7px; font-size: 11px; }
.lic-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lic-version-update-field { min-width: 0; }
.lic-version-update-control { display: flex; align-items: stretch; gap: 8px; min-width: 0; width: 100%; }
.lic-version-update-control select { flex: 1 1 0; width: 0; min-width: 0; max-width: 100%; }
.lic-version-update-control .lic-button { flex: 0 0 auto; min-height: 45px; padding-inline: 13px; white-space: nowrap; }
.lic-version-update-field > small { color: var(--muted); font-size: 12px; }
.lic-field { display: grid; gap: 8px; color: #b6c7d8; font-size: 13px; }
.lic-field-wide { grid-column: 1 / -1; }
.lic-field input, .lic-field select { width: 100%; min-height: 45px; padding: 0 13px; color: var(--text); background: #091522; border: 1px solid #2a4058; border-radius: 9px; outline: none; }
.lic-field select { color-scheme: dark; }
.lic-field input:focus, .lic-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #12b98124; }
.lic-switch-row { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 10px 14px; background: #0b1725; border: 1px solid var(--line); border-radius: 10px; }
.lic-switch-row input { width: 19px; height: 19px; accent-color: var(--primary); }
.lic-switch-row span, .lic-switch-row strong, .lic-switch-row small { display: block; }
.lic-switch-row small { margin-top: 3px; color: var(--muted); }
.lic-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: -1px; padding-left: 13px; }
.lic-tab { min-height: 48px; padding: 0 17px; color: var(--muted); background: #0c1826; border: 1px solid var(--line); border-bottom: 0; border-radius: 11px 11px 0 0; }
.lic-tab span { margin-left: 7px; padding: 2px 7px; background: #26394c; border-radius: 99px; font-size: 11px; }
.lic-tab.active { color: white; background: var(--panel); box-shadow: inset 0 3px var(--primary); }
.lic-tab-content { min-height: 330px; padding: 24px; border-top-left-radius: 0; }
.lic-section-heading { margin-bottom: 20px; }
.lic-section-heading h2 { margin: 0 0 4px; font-size: 19px; }
.lic-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 13px; }
.lic-select-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 78px; padding: 14px; background: #0b1725; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.lic-select-card.selected { background: #103027; border-color: #277a62; }
.lic-select-card > input { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; accent-color: var(--primary); }
.lic-app-letter { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 11px; color: #92edcc; background: #193b34; font-size: 18px; font-weight: 800; }
.lic-select-card strong, .lic-select-card small { display: block; }
.lic-select-card small { margin-top: 5px; color: var(--muted); }
.lic-inline-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 22px; padding: 18px; background: #0b1725; border: 1px solid var(--line); border-radius: 13px; }
.lic-inline-form .lic-switch-row { align-self: end; }
.lic-inline-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; }
.lic-license-code-field { min-width: 330px; }
.lic-license-code-row { display: flex; align-items: stretch; gap: 8px; }
.lic-license-code-row input { min-width: 0; }
.lic-license-code-row .lic-button { flex: 0 0 auto; }
.lic-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.lic-stat { padding: 18px; background: #0b1725; border: 1px solid var(--line); border-radius: 12px; }
.lic-stat span, .lic-stat strong { display: block; }
.lic-stat span { color: var(--muted); font-size: 13px; }
.lic-stat strong { margin-top: 7px; font-size: 27px; }
.lic-history-list { display: grid; gap: 10px; max-height: 490px; padding-right: 7px; overflow-y: auto; scrollbar-color: #35516a #0a1522; scrollbar-width: thin; }
.lic-history-list::-webkit-scrollbar { width: 9px; }
.lic-history-list::-webkit-scrollbar-track { background: #0a1522; border-radius: 99px; }
.lic-history-list::-webkit-scrollbar-thumb { background: #35516a; border: 2px solid #0a1522; border-radius: 99px; }
.lic-history-list::-webkit-scrollbar-thumb:hover { background: #47708f; }
.lic-history-item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; min-height: 90px; padding: 15px 16px; background: #0b1725; border: 1px solid var(--line); border-radius: 12px; }
.lic-history-marker { width: 10px; height: 10px; margin-top: 6px; background: #6f879e; border-radius: 50%; box-shadow: 0 0 0 4px #6f879e22; }
.lic-history-marker.created { background: #20ca91; box-shadow: 0 0 0 4px #20ca9122; }
.lic-history-marker.deleted { background: var(--danger); box-shadow: 0 0 0 4px #ef5b6922; }
.lic-history-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.lic-history-heading time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lic-history-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 5px; color: #7890a7; font-family: Consolas, monospace; font-size: 11px; }
.lic-history-user { color: #75ddb9; }
.lic-history-entity-title { color: #dceafa; font-family: Inter, "Segoe UI", sans-serif; }
.lic-history-details { margin-top: 10px; }
.lic-history-details summary { width: max-content; color: #70ddba; cursor: pointer; font-size: 12px; }
.lic-history-details pre { max-height: 260px; margin: 10px 0 0; padding: 12px; overflow: auto; color: #c7d8e8; background: #07111d; border-radius: 8px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lic-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.lic-pagination > span { color: var(--muted); font-size: 13px; text-align: center; }
.lic-alert { margin: 0 0 18px; padding: 13px 16px; border-radius: 10px; }
.lic-alert-error { color: #ffc1c8; background: #421e29; border: 1px solid #74313f; }
.lic-alert-success { color: #9af1d2; background: #10392f; border: 1px solid #256451; }
.lic-confirm-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: #020811c7; backdrop-filter: blur(7px); }
.lic-confirm-card { width: min(610px, 100%); padding: 28px; background: linear-gradient(145deg, #152336, #0d1928); border: 1px solid #6d3440; border-radius: 18px; box-shadow: 0 35px 110px #000b; }
.lic-confirm-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: #a63f52; border-radius: 14px; font-size: 25px; font-weight: 900; }
.lic-confirm-icon.lic-confirm-success { background: #168661; box-shadow: 0 0 0 7px #16866122; }
.lic-confirm-card h2 { margin: 18px 0 8px; }.lic-confirm-card p { margin: 0 0 15px; color: #aabdd0; line-height: 1.55; }.lic-confirm-card > strong { display: block; padding: 12px 14px; color: #ffd2d7; background: #321a23; border: 1px solid #68313e; border-radius: 10px; overflow-wrap: anywhere; }
.lic-delete-progress { display: grid; gap: 7px; max-height: 210px; margin-top: 15px; overflow-y: auto; }.lic-delete-progress > div { display: flex; align-items: center; gap: 9px; padding: 9px 11px; color: #bad0c8; background: #0a1824; border-radius: 8px; }.lic-delete-progress span { color: #65ddb4; font-weight: 800; }
.lic-dump-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; color: #bdf5e1; background: #0b2b25; border: 1px solid #286a57; border-radius: 11px; }.lic-dump-result code { min-width: 0; overflow-wrap: anywhere; }
.lic-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.lic-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 10%, #123f48 0, transparent 32%), radial-gradient(circle at 85% 90%, #152c5b 0, transparent 36%), #07111f; }
.lic-login-card { width: min(430px, 100%); padding: 38px; background: #101d2df2; border: 1px solid #2a4058; border-radius: 22px; box-shadow: 0 30px 100px #0009; }
.lic-login-logo { width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 18px; font-size: 24px; }
.lic-login-card h1 { margin: 0 0 8px; text-align: center; font-size: 27px; }
.lic-login-card > p { margin: 0 0 28px; color: var(--muted); text-align: center; }
.lic-login-card .lic-field { margin-bottom: 17px; }

.service-status-page { min-height: 100vh; padding: clamp(24px, 5vw, 72px); background: radial-gradient(circle at 15% 12%, #103a43 0, transparent 30%), radial-gradient(circle at 88% 85%, #142d5b 0, transparent 34%), #07111f; }
.service-status-shell { width: min(1120px, 100%); margin: 0 auto; }
.service-status-header { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 38px; }
.service-status-clock { margin-left: auto; padding: 13px 17px; text-align: right; background: #0b1928b8; border: 1px solid var(--line); border-radius: 13px; }.service-status-clock span,.service-status-clock strong,.service-status-clock small { display: block; }.service-status-clock span,.service-status-clock small { color: var(--muted); font-size: 10px; }.service-status-clock strong { margin: 4px 0; font-size: 17px; }
.service-status-brand { width: 68px; height: 68px; display: block; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 14px 22px #0007); }
.service-status-overline { color: #65d9b2; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.service-status-title { margin: 3px 0 4px; font-size: clamp(27px, 4vw, 42px); font-weight: 700; line-height: 1.2; }
.service-status-header p { margin: 0; color: var(--muted); }
.service-status-hero { display: flex; align-items: center; gap: 17px; min-height: 105px; margin-bottom: 18px; padding: 23px 27px; border: 1px solid; border-radius: 18px; box-shadow: 0 20px 55px #0004; }
.service-status-hero.healthy { background: linear-gradient(100deg, #0c3028, #10283a); border-color: #23604f; }
.service-status-hero.degraded { background: linear-gradient(100deg, #3a2912, #292332); border-color: #73572c; }
.service-status-pulse { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 8px #12b98120; }
.degraded .service-status-pulse { background: var(--warning); box-shadow: 0 0 0 8px #f5b94220; }
.service-status-caption, .service-status-hero strong { display: block; }
.service-status-caption { margin-bottom: 5px; color: #8ea9b7; font-size: 12px; }
.service-status-hero strong { font-size: clamp(19px, 3vw, 27px); }
.service-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-status-card { min-height: 220px; padding: 24px; background: linear-gradient(145deg, #111f30, #0d1927); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 45px #0002; }
.service-status-card-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.service-status-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #94eed0; background: #153a32; font-weight: 850; }
.service-status-icon.time { color: #9bbcf6; background: #172f53; }
.service-status-icon.uptime { color: #e2bb70; background: #443417; }
.service-status-icon.database { color: #b7a6ff; background: #2e2853; font-size: 12px; }
.service-status-icon.clock { color: #78dced; background: #123a45; font-size: 17px; }
.service-status-badge { min-height: 27px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.service-status-badge.online { color: #80ebc6; background: #0c3b30; }
.service-status-badge.offline { color: #ffadb6; background: #45212b; }
.service-status-label, .service-status-card strong, .service-status-card small { display: block; }
.service-status-label { color: var(--muted); font-size: 12px; }
.service-status-card strong { margin: 8px 0; font-size: clamp(20px, 3vw, 27px); overflow-wrap: anywhere; }
.service-status-card small { color: #718aa2; line-height: 1.5; overflow-wrap: anywhere; }
.service-status-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 0 4px; color: #637d96; font-size: 11px; }
.server-history-card { margin-top: 18px; padding: 24px; overflow: hidden; background: linear-gradient(145deg, #111f30, #0b1725); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 45px #0002; }
.server-history-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0 14px; }
.server-history-legend span { display: inline-flex; align-items: center; gap: 8px; color: #93a9bd; font-size: 12px; }
.server-history-legend i { width: 22px; height: 4px; border-radius: 99px; background: #40d7a2; }
.server-history-legend .memory i { background: #5598ff; }.server-history-legend .disk i { background: #f2ad4c; }
.server-history-legend b { color: var(--text); font-size: 13px; }
.server-history-chart { position: relative; min-height: 250px; padding: 8px 0 28px 48px; }
.server-history-chart svg { display: block; width: 100%; height: 205px; overflow: visible; }
.server-history-grid line { stroke: #263b50; stroke-width: 1; vector-effect: non-scaling-stroke; }
.server-history-line { fill: none; stroke: #40d7a2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.server-history-line.memory { stroke: #5598ff; }.server-history-line.disk { stroke: #f2ad4c; }
.server-history-line.receive { stroke: #40d7a2; }.server-history-line.send { stroke: #5598ff; }
.server-history-legend .receive i { background: #40d7a2; }.server-history-legend .send i { background: #5598ff; }
.server-network-history { margin-top: 22px; padding-top: 5px; border-top: 1px solid #20364b; }.network-chart { margin-top: 2px; }
.server-history-y-axis { position: absolute; top: 8px; bottom: 37px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: #678097; font-size: 10px; }
.server-history-x-axis { display: flex; justify-content: space-between; margin-top: 7px; color: #678097; font-size: 10px; }
.server-history-empty { position: absolute; inset: 45% 20px auto 48px; color: #7890a5; text-align: center; font-size: 12px; }
.server-load-card { margin-top: 18px; padding: 25px; background: linear-gradient(145deg, #111f30, #0d1927); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 45px #0002; }
.release-versions-card { margin-top: 18px; padding: 25px; background: linear-gradient(145deg, #111f30, #0d1927); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 45px #0002; }
.release-versions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.release-version-item { min-height: 92px; display: flex; align-items: center; gap: 16px; padding: 17px 19px; background: #091522; border: 1px solid #20364b; border-radius: 13px; }
.release-version-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #8ff0cf; background: #153a32; font-size: 12px; font-weight: 850; }.release-version-icon.ui { color: #a8c5ff; background: #172f53; }.release-version-icon.admin { color: #ffd49a; background: #4b3018; }
.release-version-item div span,.release-version-item div strong { display: block; }.release-version-item div span { color: var(--muted); font-size: 12px; }.release-version-item div strong { margin-top: 6px; font-size: 20px; overflow-wrap: anywhere; }
.installer-download-link { display: flex; align-items: center; gap: 11px; padding: 10px 14px; color: #d9fff2; background: #12382f; border: 1px solid #28705d; border-radius: 12px; text-decoration: none; transition: .18s; }
.installer-download-link:hover { color: white; background: #185040; border-color: #42aa8c; transform: translateY(-1px); }
.installer-download-link span:last-child,.installer-download-link strong,.installer-download-link small { display: block; }.installer-download-link strong { font-size: 13px; }.installer-download-link small { margin-top: 2px; color: #8fb9aa; font-size: 10px; }
.installer-download-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #071b15; background: #65d9b2; border-radius: 9px; font-size: 21px; font-weight: 900; }
.server-load-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.server-load-heading h2 { margin: 5px 0 0; font-size: 22px; }.server-load-heading > span { color: var(--muted); font-size: 11px; }
.server-load-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.server-load-item { padding: 18px; background: #091522; border: 1px solid #20364b; border-radius: 13px; }
.server-load-item.network { grid-column: 1 / -1; }
.server-network-live { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.server-network-live > div { min-width: 0; padding: 4px 8px; }.server-network-live > div + div { border-left: 1px solid #20364b; padding-left: 26px; }
.server-network-live span,.server-network-live strong,.server-network-live small { display: block; }.server-network-live span { color: #8fa7bc; font-size: 12px; }.server-network-live strong { margin: 8px 0; color: #73dfbd; font-size: 22px; }.server-network-live > div + div strong { color: #70a8ff; }
.server-load-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.server-load-value span { color: #9eb1c3; font-size: 12px; }.server-load-value strong { font-size: 21px; }
.server-load-track { height: 9px; margin: 16px 0 11px; overflow: hidden; background: #172a3c; border-radius: 99px; }.server-load-track span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #16c98d, #4ee0af); transition: width .5s ease; }
.server-load-track.memory span { background: linear-gradient(90deg, #2775e6, #65a1ff); }.server-load-track.disk span { background: linear-gradient(90deg, #f0aa32, #ffd06c); }
.server-load-item small { color: #6f879d; line-height: 1.4; }

#blazor-error-ui { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 1000; padding: 15px; background: #541f2b; color: white; border-radius: 10px; }
#blazor-error-ui .dismiss { margin-left: 12px; cursor: pointer; }

/* Licensing infrastructure console */
.infra-page { min-height: 100vh; color: #dbe4ef; background: #090d16; font-size: 13px; }
.infra-page .mono { font-family: Consolas, "JetBrains Mono", monospace; }
.infra-header { position: sticky; top: 0; z-index: 20; background: #090d16ee; border-bottom: 1px solid #1e293b; backdrop-filter: blur(16px); }
.infra-header-main { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1720px; margin: auto; padding: 0 24px; }
.infra-brand,.infra-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.infra-brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }.infra-brand strong { color: #f8fafc; font-size: 16px; }.infra-brand > span { color: #475569; }.infra-brand small { color: #94a3b8; }.infra-brand b { color: #fff; white-space: nowrap; }.infra-brand em { display: flex; align-items: center; gap: 7px; padding: 4px 8px; color: #34d399; background: #10b98114; border: 1px solid #10b98140; border-radius: 99px; font: 11px Consolas,monospace; }
.pulse { display: inline-block; width: 7px; height: 7px; background: #34d399; border-radius: 50%; box-shadow: 0 0 0 4px #34d39918; animation: infra-pulse 1.8s infinite; }.pulse.cyan { background: #22d3ee; box-shadow: 0 0 0 4px #22d3ee18; }
@keyframes infra-pulse { 50% { opacity: .45; box-shadow: 0 0 0 7px transparent; } }
.infra-pill { padding: 7px 10px; color: #cbd5e1; background: #0f172a; border: 1px solid #1e293b; border-radius: 8px; font-size: 11px; white-space: nowrap; }.infra-pill span { color: #64748b; margin-left: 5px; }
.infra-download { display: flex; align-items: center; gap: 8px; padding: 8px 13px; color: #03150f; background: #10b981; border-radius: 8px; font-weight: 750; text-decoration: none; box-shadow: 0 0 18px #10b9813d; }.infra-download:hover { color: #03150f; background: #34d399; }
.infra-context { min-height: 35px; display: flex; align-items: center; gap: 14px; max-width: 1720px; margin: auto; padding: 6px 24px; color: #64748b; background: #0b101c; font-size: 11px; }.infra-context b { color: #cbd5e1; }.infra-context > i { width: 1px; height: 13px; background: #273449; }.infra-context .green { color: #34d399; }.infra-cluster { display: flex; gap: 7px; margin-left: auto; }.infra-cluster em { padding: 3px 7px; color: #34d399; background: #052e28; border: 1px solid #145c4b; border-radius: 5px; font-style: normal; }.infra-cluster em.error { color: #f87171; background: #3f151e; border-color: #7f1d2d; }
.infra-main { max-width: 1720px; margin: auto; padding: 24px; }.infra-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }.infra-panel { background: #0f172abb; border: 1px solid #273449; border-radius: 12px; box-shadow: 0 12px 32px #0002; backdrop-filter: blur(12px); }
.infra-kpi { min-height: 165px; padding: 16px; }.infra-kpi > header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }.infra-kpi header > div { min-width: 0; flex: 1; }.infra-kpi small,.infra-kpi strong { display: block; }.infra-kpi small { margin-bottom: 3px; color: #94a3b8; font: 10px Consolas,monospace; letter-spacing: .08em; }.infra-kpi strong { color: #f8fafc; font-size: 14px; }.infra-kpi header > em { padding: 3px 7px; color: #34d399; background: #10b98112; border: 1px solid #10b98135; border-radius: 5px; font: bold 9px Consolas,monospace; white-space: nowrap; }.infra-kpi header > em.cyan { color: #22d3ee; border-color: #06b6d43d; background: #06b6d412; }
.metric-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #34d399; background: #10b98116; border: 1px solid #10b98135; border-radius: 9px; font: bold 10px Consolas,monospace; }.metric-icon.cyan { color: #22d3ee; background: #06b6d416; border-color: #06b6d435; }.metric-icon.amber { color: #fbbf24; background: #f59e0b16; border-color: #f59e0b35; }.metric-icon.purple { color: #a78bfa; background: #8b5cf616; border-color: #8b5cf635; font-size: 19px; }
.infra-kpi dl { margin: 0; padding-top: 9px; border-top: 1px solid #1e293b; }.infra-kpi dl div { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; }.infra-kpi dt { color: #94a3b8; font-weight: normal; }.infra-kpi dd { margin: 0; color: #e2e8f0; font: 11px Consolas,monospace; text-align: right; }
.mini-metric { display: grid; grid-template-columns: 38px 1fr; gap: 4px 8px; margin-top: 7px; color: #94a3b8; font-size: 10px; }.mini-metric b { color: #34d399; text-align: right; }.mini-metric > div { grid-column: 1/-1; height: 4px; overflow: hidden; background: #1e293b; border-radius: 5px; }.mini-metric i { display: block; height: 100%; background: #10b981; }.mini-metric.cyan b { color: #22d3ee; }.mini-metric.cyan i { background: #06b6d4; }.mini-metric.amber b { color: #fbbf24; }.mini-metric.amber i { background: #f59e0b; }
.network-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.network-kpi > div { padding: 12px 9px; background: #0b1220; border: 1px solid #1e293b; border-radius: 8px; }.network-kpi span,.network-kpi strong { display: block; }.network-kpi span { color: #34d399; font-size: 10px; }.network-kpi div + div span { color: #22d3ee; }.network-kpi strong { margin-top: 8px; color: #f1f5f9; font: bold 13px Consolas,monospace; }
.infra-workspace { display: grid; grid-template-columns: minmax(0,2fr) minmax(310px,1fr); gap: 22px; }.infra-left,.infra-right { display: flex; flex-direction: column; gap: 22px; }.chart-card { padding: 18px; }.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid #1e293b; }.panel-heading h2 { margin: 0; color: #f8fafc; font-size: 13px; }.panel-heading h2 .pulse { margin-right: 8px; }.panel-heading p { margin: 5px 0 0; color: #64748b; font-size: 11px; }.panel-heading > span { color: #64748b; font: 10px Consolas,monospace; }.chart-legend { display: flex; flex-wrap: wrap; gap: 7px; }.chart-legend span { padding: 5px 7px; background: #0b1220; border: 1px solid #1e293b; border-radius: 6px; font: 10px Consolas,monospace; }.green { color: #34d399!important; }.cyan { color: #22d3ee!important; }.amber { color: #fbbf24!important; }.purple { color: #a78bfa!important; }.blue { color: #60a5fa!important; }
.infra-chart { position: relative; height: 250px; padding: 20px 0 25px 45px; }.infra-chart svg { width: 100%; height: 190px; overflow: visible; }.chart-grid line { stroke: #263449; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }.chart-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }.chart-line.cpu { stroke: #34d399; }.chart-line.memory { stroke: #22d3ee; }.chart-line.disk { stroke: #f59e0b; stroke-dasharray: 5 3; }.chart-y { position: absolute; left: 0; top: 22px; bottom: 39px; display: flex; flex-direction: column; justify-content: space-between; color: #64748b; font: 9px Consolas,monospace; }.chart-y.short span:nth-child(2) { margin-top: auto; margin-bottom: auto; }.chart-x { display: flex; justify-content: space-between; color: #64748b; font: 9px Consolas,monospace; }
.telemetry { overflow: hidden; }.telemetry > header { display: flex; justify-content: space-between; padding: 12px 16px; background: #0b1220; border-bottom: 1px solid #1e293b; font: 10px Consolas,monospace; letter-spacing: .05em; }.telemetry header em { color: #34d399; font-style: normal; }.telemetry-lines { min-height: 126px; padding: 12px 16px; color: #94a3b8; background: #070b13; font-size: 10px; }.telemetry-lines p { margin: 7px 0; }.telemetry-lines time { color: #475569; margin-right: 8px; }.telemetry-lines b { margin-right: 7px; color: #34d399; }
.builds,.operations,.host { padding: 17px; }.build-item { display: flex; align-items: center; gap: 11px; margin-top: 11px; padding: 11px; background: #0b1220; border: 1px solid #1e293b; border-radius: 8px; }.build-item > i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: #10b98118; border-radius: 6px; font: bold 10px Consolas,monospace; }.build-item > div { min-width: 0; flex: 1; }.build-item small,.build-item strong,.build-item em { display: block; }.build-item small { color: #64748b; font: 9px Consolas,monospace; }.build-item strong { margin: 3px 0; overflow: hidden; color: #f1f5f9; font: bold 12px Consolas,monospace; text-overflow: ellipsis; }.build-item em { color: #34d399; font: 9px Consolas,monospace; }.build-item > a { padding: 7px 10px; color: #34d399; background: #10b98114; border: 1px solid #10b98135; border-radius: 6px; text-decoration: none; }.build-item > b { color: #64748b; font: 9px Consolas,monospace; }
.operations button,.operations > a { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 11px; color: #e2e8f0; background: #162235; border: 1px solid #2a3a50; border-radius: 7px; text-align: left; text-decoration: none; }.operations button:hover,.operations > a:hover { background: #1e3047; }.operations small { color: #64748b; }.host dl { margin: 9px 0 0; }.host dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #1e293b88; }.host dt { color: #94a3b8; font-weight: normal; }.host dd { margin: 0; color: #cbd5e1; font: 10px Consolas,monospace; text-align: right; overflow-wrap: anywhere; }
.infra-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 15px 4px 0; color: #64748b; border-top: 1px solid #1e293b; font: 10px Consolas,monospace; }.infra-footer .pulse { margin-right: 7px; }
@media(max-width:1200px){.infra-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.infra-workspace{grid-template-columns:1fr}.infra-right{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}}
@media(max-width:800px){.infra-brand small,.infra-brand>span,.infra-brand em,.infra-pill{display:none}.infra-header-main,.infra-context,.infra-main{padding-left:14px;padding-right:14px}.infra-cluster{display:none}.infra-right{grid-template-columns:1fr}.infra-header{position:relative}}
@media(max-width:560px){.infra-kpis{grid-template-columns:1fr}.infra-download span{display:none}.infra-brand b{font-size:12px}.infra-main{padding-top:14px}.chart-legend{display:none}.infra-chart{height:220px;padding-left:37px}.infra-chart svg{height:160px}.infra-footer{flex-direction:column}.network-kpi{grid-template-columns:1fr}}

@media (max-width: 850px) {
    .lic-shell { grid-template-columns: 78px minmax(0, 1fr); }
    .lic-sidebar { padding-inline: 10px; }
    .lic-brand { padding-inline: 8px; justify-content: center; }
    .lic-brand > div, .lic-nav-caption, .lic-nav-link span:last-child { display: none; }
    .lic-nav-link { justify-content: center; padding: 0; }
    .lic-content { padding: 24px 18px 40px; }
    .lic-topbar { padding: 0 18px; }
    .lic-topbar > div:first-child { display: none; }
    .lic-topbar { justify-content: flex-end; }
    .lic-form-grid, .lic-inline-form { grid-template-columns: 1fr; }
    .lic-nginx-grid { grid-template-columns: 1fr; }
    .lic-field-wide, .lic-inline-actions { grid-column: auto; }
    .lic-license-code-field { min-width: 0; }
    .service-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .release-management-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .lic-page-heading, .lic-section-heading, .lic-toolbar { align-items: stretch; flex-direction: column; }
    .lic-page-heading .lic-button, .lic-section-heading .lic-button { width: 100%; }
    .lic-heading-actions { width: 100%; flex-direction: column; }
    .lic-user-panel > span:not(.lic-user-avatar) { display: none; }
    .lic-tabs { padding-left: 0; }
    .lic-login-card { padding: 28px 22px; }
    .lic-license-code-row { align-items: stretch; flex-direction: column; }
    .lic-config-tabs { grid-template-columns: 1fr; gap: 5px; padding: 0; margin-bottom: 8px; }
    .lic-config-tab { border-bottom: 1px solid var(--line); border-radius: 10px; }
    .lic-config-tab-content { border-top-left-radius: 16px; }
    .lic-history-heading, .lic-pagination { align-items: stretch; flex-direction: column; }
    .lic-confirm-actions { flex-direction: column-reverse; }.lic-confirm-actions .lic-button { width: 100%; }
    .lic-dump-result { align-items: stretch; flex-direction: column; }
    .service-status-page { padding: 24px 16px; }
    .service-status-grid { grid-template-columns: 1fr; }
    .service-status-header { align-items: flex-start; }
    .service-status-clock { width: 100%; margin-left: 0; text-align: left; }
    .service-status-footer { flex-direction: column; gap: 5px; }
    .server-load-grid { grid-template-columns: 1fr; }
    .server-network-live { grid-template-columns: 1fr; }
    .server-network-live > div + div { padding: 18px 8px 4px; border-top: 1px solid #20364b; border-left: 0; }
    .release-versions-grid { grid-template-columns: 1fr; }
    .server-load-heading { align-items: flex-start; flex-direction: column; }
    .lic-history-heading time { white-space: normal; }
}
