:root { color-scheme: dark; --bg: #070d17; --surface: #0a1321; --surface-2: #0d192a; --border: #182940; --text: #dce8f7; --muted: #8b9cb3; --cyan: #22d3ee; --blue: #38bdf8; --green: #34d399; --amber: #fbbf24; --orange: #ff7a45; --red: #fb7185; --layout-bg: #070d17; --layout-border: #16243a; --sidebar-bg: #09111f; --topbar-bg: rgba(7,13,23,.92); --control-bg: #0b1625; }
:root[data-theme="light"] { color-scheme: light; --bg: #f4f7fb; --surface: #ffffff; --surface-2: #eef3f8; --border: #d7e0eb; --text: #172237; --muted: #586a80; --cyan: #087f99; --blue: #1677a3; --green: #087f5b; --amber: #9a6700; --orange: #c2410c; --red: #c24157; --layout-bg: #f4f7fb; --layout-border: #d7e0eb; --sidebar-bg: #ffffff; --topbar-bg: rgba(255,255,255,.93); --control-bg: #ffffff; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.55; }
body { background-image: radial-gradient(circle at 75% -20%, rgba(6,182,212,.09), transparent 35%); }
:root[data-theme="light"] body { background-image: radial-gradient(circle at 75% -20%, rgba(14,165,233,.1), transparent 38%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
h2 { margin-bottom: 5px; font-size: 19px; letter-spacing: -.015em; }
p { color: var(--muted); }
.eyebrow { display: block; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.page-header { min-height: 88px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-header p { margin: 0; font-size: 15px; }
.scope-picker { min-width: 240px; }
.scope-picker > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scope-picker select, .scope-picker input { width: 100%; height: 42px; border: 1px solid #21344e; border-radius: 8px; background: #0b1625; color: var(--text); padding: 0 12px; outline: none; }
.scope-picker select:focus, .scope-picker input:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 140px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, rgba(13,25,42,.95), rgba(9,17,31,.95)); overflow: hidden; }
.metric-card.accent { border-color: rgba(34,211,238,.35); }
.metric-card.accent::after { content: ""; position: absolute; top: -55px; right: -45px; width: 140px; height: 140px; border-radius: 50%; background: rgba(34,211,238,.08); filter: blur(8px); }
.metric-card > span { display: block; color: #8796aa; font-size: 13px; font-weight: 700; }
.metric-card strong { display: block; margin: 13px 0 8px; font-size: 34px; line-height: 1; color: #f4fbff; }
.metric-card small { color: var(--muted); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel, .agent-card, .product-card { border: 1px solid var(--border); border-radius: 12px; background: rgba(9,18,32,.88); }
.panel { padding: 20px; }
.panel-heading > div { min-width: 0; }
.panel-heading p { margin: 6px 0 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { margin-top: 4px; margin-bottom: 0; }
.text-link { color: #4acde4; font-size: 13px; font-weight: 700; text-decoration: none; }
.muted { color: var(--muted); font-size: 13px; }
.priority-callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid rgba(251,191,36,.16); border-radius: 9px; background: rgba(251,191,36,.04); }
.priority-callout div, .agent-row div, .activity-row div { min-width: 0; flex: 1; }
.priority-callout strong, .priority-callout span, .agent-row strong, .agent-row span, .activity-row strong, .activity-row span { display: block; }
.priority-callout strong { font-size: 14px; }
.priority-callout div > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #64748b; box-shadow: 0 0 10px currentColor; }
.status-dot.warning { background: var(--amber); color: var(--amber); }
.status-dot.info { background: var(--blue); color: var(--blue); }
.status-dot.success { background: var(--green); color: var(--green); }
.status-dot.neutral { background: #64748b; color: var(--muted); }
.process-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 10px; margin-top: 24px; }
.process-line > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #2a3a50; color: var(--muted); font-size: 13px; font-weight: 800; position: relative; }
.process-line > span.complete { border-color: var(--green); color: var(--green); }
.process-line > span.current { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,.15); }
.process-line i { height: 1px; margin-top: 15px; background: #24354b; }
.process-line small { position: absolute; top: 38px; width: 100px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.agent-list, .activity-list { display: grid; }
.agent-row, .activity-row { display: flex; align-items: center; gap: 12px; min-height: 62px; border-top: 1px solid #132239; }
.agent-row:first-child, .activity-row:first-child { border-top: 0; }
.agent-row strong, .activity-row strong { color: #cfdbea; font-size: 13px; }
.agent-row div > span, .activity-row div > span { margin-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-icon, .product-icon { display: grid; place-items: center; border: 1px solid #1d6072; background: rgba(34,211,238,.05); color: var(--cyan); font-weight: 900; }
.device-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.activity-row time { color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex !important; padding: 4px 7px; border: 1px solid #2c3b50; border-radius: 999px; font-size: 12px !important; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status-pill.online, .status-pill.completed, .status-pill.active, .status-pill.available { color: var(--green); border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.06); }
.status-pill.pending, .status-pill.review, .status-pill.service { color: var(--amber); border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.06); }
.status-pill.in-review, .status-pill.awaiting-generator { color: var(--amber); border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.06); }
.status-pill.offline, .status-pill.rejected { color: var(--red); border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.06); }
.notice { margin-bottom: 18px; padding: 13px 16px; border: 1px solid rgba(56,189,248,.22); border-radius: 10px; background: rgba(56,189,248,.05); color: #7d91aa; font-size: 14px; }
.notice strong { color: #7dd3fc; }
.draft-notice { border-color: rgba(251,191,36,.22); background: rgba(251,191,36,.04); }
.draft-notice strong { color: #fcd34d; }
.feedback-banner { margin-bottom: 18px; padding: 11px 14px; border: 1px solid rgba(52,211,153,.28); border-radius: 9px; background: rgba(52,211,153,.06); color: var(--green); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.product-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px; }
.product-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
.product-card h2 { margin-top: 4px; font-size: 19px; }
.product-card p { margin: 0; font-size: 12px; }
.demo-chip { display: inline-flex; margin-top: 10px; padding: 3px 6px; border: 1px solid rgba(251,191,36,.22); border-radius: 999px; background: rgba(251,191,36,.04); color: #fbbf24; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.product-card dl { display: flex; gap: 20px; margin: 0; }
.product-card dl div { text-align: right; }
.product-card dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.product-card dd { margin: 3px 0 0; color: #ecf8ff; font-size: 20px; font-weight: 800; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-heading { padding: 18px 20px 0; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; background: #0b1727; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 14px; border-top: 1px solid #14243a; color: #9aabc0; font-size: 13px; }
td strong, td small { display: block; }
td strong { color: #d5e2f0; }
td small { margin-top: 4px; color: var(--muted); font-size: 12px; }
code { color: #67e8f9; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
tr.selected td { background: rgba(34,211,238,.035); }
.filter-tabs { padding: 3px; border: 1px solid #203149; border-radius: 8px; background: #08111f; }
.filter-tabs button, .review-button { border: 0; border-radius: 6px; background: transparent; color: #718299; cursor: pointer; font-size: 13px; font-weight: 700; }
.filter-tabs button { padding: 6px 11px; }
.filter-tabs button.active { background: #153047; color: #67e8f9; }
.review-button { padding: 6px 10px; border: 1px solid #234359; color: #5fd6e8; }
.file-actions { display: flex; align-items: center; gap: 7px; }
.danger-button { padding: 6px 10px; border: 1px solid rgba(248,113,113,.4); border-radius: 6px; background: transparent; color: #fca5a5; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.danger-button:hover { background: rgba(248,113,113,.09); }
.danger-button:disabled { cursor: not-allowed; opacity: .45; }
.danger-button.confirm { min-height: 38px; background: rgba(248,113,113,.12); }
.delete-confirmation-row td { padding: 0 12px 12px; border-top: 0; }
.delete-confirmation { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) auto auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid rgba(248,113,113,.28); border-radius: 8px; background: rgba(248,113,113,.05); }
.delete-confirmation strong, .delete-confirmation small { display: block; }
.delete-confirmation strong { color: #fecaca; font-size: 13px; }
.delete-confirmation small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.delete-confirmation label > span { display: block; margin-bottom: 6px; color: #8b98aa; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.delete-confirmation input { width: 100%; min-height: 38px; border: 1px solid #2d3e54; border-radius: 6px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.access-queue { margin-bottom: 18px; }
.access-provision-panel { margin-bottom: 18px; }
.access-provision-panel .panel-heading p { margin: 6px 0 0; }
.access-provision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.access-provision-grid label { display: grid; min-width: 0; gap: 6px; }
.access-provision-grid label span { color: var(--muted); font-size: 13px; font-weight: 700; }
.access-provision-grid input, .access-provision-grid select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--control-bg); color: var(--text); }
.access-provision-grid button { min-height: 40px; }
.access-header { align-items: flex-start; }
.access-header > div:first-child { min-width: 0; }
.access-company-tools { display: grid; gap: 10px; flex: 0 1 310px; min-width: 240px; }
.access-company-tools .scope-picker { min-width: 0; }
.access-company-tools > button { min-height: 40px; }
.access-company-name, .access-static-field { display: grid; gap: 6px; min-width: 0; }
.access-company-name > span, .access-static-field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.access-company-name strong, .access-static-field strong { color: var(--text); overflow-wrap: anywhere; }
.access-company-name { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--control-bg); }
.access-static-field strong { display: flex; align-items: center; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; }
.access-employees table { min-width: 740px; }
.access-employees .action-group { flex-wrap: wrap; }
.access-confirmation { margin: 16px 20px; }
.access-permission-help { padding: 0 20px 18px; margin: 16px 0 0; }
@media (max-width: 900px) { .access-header { flex-wrap: wrap; } .access-company-tools { flex-basis: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
@media (max-width: 600px) { .access-company-tools { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .access-provision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .access-provision-grid { grid-template-columns: 1fr; } }
.registration-panel { margin-bottom: 18px; }
.registration-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.registration-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.registration-grid input, .registration-grid select { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.registration-grid input:focus, .registration-grid select:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.registration-submit { display: grid; gap: 5px; }
.registration-submit small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.primary-button { height: 40px; padding: 0 15px; border: 1px solid rgba(34,211,238,.38); border-radius: 7px; background: rgba(34,211,238,.1); color: #8ce9f5; cursor: pointer; font-size: 13px; font-weight: 800; }
.primary-button:hover { background: rgba(34,211,238,.16); }
.auth-card { padding: clamp(24px, 4vw, 44px); border: 1px solid #1a3048; border-radius: 16px; background: rgba(9,18,32,.94); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.auth-card h1 { margin-top: 8px; }
.auth-lead { max-width: 720px; line-height: 1.65; }
.compact-auth-card { width: min(620px, 100%); margin: 0 auto; }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.identity-card { min-height: 220px; padding: 20px; display: flex; align-items: flex-start; flex-direction: column; border: 1px solid #1b3048; border-radius: 12px; background: #0a1524; }
.identity-card h2 { margin-top: 17px; }
.identity-card p { flex: 1; font-size: 13px; line-height: 1.6; }
.primary-link, .secondary-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 15px; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; }
.primary-link { border: 1px solid rgba(34,211,238,.38); background: rgba(34,211,238,.1); color: #8ce9f5; }
.secondary-link { border: 1px solid #263951; color: #8a9ab0; }
.auth-actions, .request-actions { display: flex; align-items: center; gap: 10px; }
.auth-footer { margin-top: 25px; color: var(--muted); font-size: 13px; }
.email-signin-form { display: grid; gap: 12px; max-width: 440px; margin: 28px 0; }
.email-auth-card { width: min(620px, 100%); margin: 0 auto; }
.email-auth-card .email-signin-form { max-width: none; }
.email-auth-card .identity-grid { grid-template-columns: 1fr; }
.native-auth-card { width: min(540px, 100%); padding: 32px; }
.public-content:has(.native-auth-card) { margin-top: 40px; }
.native-auth-card h1 { font-size: clamp(26px, 3vw, 32px); }
.native-auth-card .auth-lead { margin-bottom: 0; font-size: 16px; }
.native-auth-form { margin: 24px 0 20px; gap: 18px; }
.native-auth-form [hidden], .native-auth [hidden] { display: none !important; }
.native-auth-form label { display: block; margin-bottom: 8px; font-size: 15px; }
.native-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.native-label-row label { flex: 1; }
.native-auth-form .native-text-button { min-height: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--cyan); font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.6; }
.native-auth-form .native-text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.native-auth-form button:focus-visible, .native-auth-form a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.native-password-input { position: relative; }
.native-password-input input { padding-right: 65px; }
.native-auth-form .native-password-input button { position: absolute; inset: 0 14px 0 auto; margin: auto 0; height: fit-content; }
.native-auth-form input { font-size: 16px; min-height: 50px; }
.native-auth-form .primary-button { height: 50px; background: #0a8298; color: #fff; border-color: #1397ad; font-size: 16px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.native-auth-form .primary-button:hover { background: #096e81; }
.native-alternatives { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.native-auth-form .native-step-description { font-size: 15px; }
.native-feedback { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.native-trust label { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.native-auth-form .native-trust input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--cyan); }
.native-auth-form [data-code-group] .native-text-button { margin-top: 10px; }
.native-login-help { padding-top: 16px; border-top: 1px solid var(--border); }
.native-local-recovery { display: grid; gap: 12px; }
.native-auth-card .auth-footer { margin-top: 18px; }
.native-password-rules { padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 14px; line-height: 1.6; }
.native-password-rules > strong { color: var(--text); font-size: 14px; }
.native-password-rules ul { margin: 8px 0 10px; padding: 0; list-style: none; }
.native-password-rules li { margin: 5px 0; overflow-wrap: anywhere; }
.native-password-rules [data-state="met"] { color: var(--green); }
.native-password-rules [data-state="unmet"] { color: var(--amber); }
.native-auth-form .native-password-rules p { font-size: 13px; line-height: 1.6; }
.native-auth-form .native-password-rules .native-password-check-status { margin-bottom: 8px; color: var(--text); }
@media (max-width: 480px) { .native-auth-card { padding: 24px; } .public-content:has(.native-auth-card) { margin-top: 28px; } .native-label-row { gap: 8px; } .native-alternatives { flex-direction: column; align-items: flex-start; } }
.email-signin-form label { color: var(--text); font-size: 14px; font-weight: 700; }
.email-signin-form input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--control-bg); color: var(--text); outline: none; }
.email-signin-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.email-signin-form button { min-height: 46px; }
.email-signin-form p { margin: 0; font-size: 13px; line-height: 1.6; }
.email-signin-form :disabled { cursor: not-allowed; opacity: .65; }
.auth-security-note { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.auth-security-note p { margin: 0; font-size: 14px; line-height: 1.65; }
.auth-security-note p + p { margin-top: 12px; }
.auth-security-note strong { color: var(--text); }
.auth-email-help { margin-top: 12px; font-size: 14px; }
.auth-email-help summary { color: var(--cyan); font-weight: 600; cursor: pointer; }
.auth-email-help p { margin-top: 10px; }
.email-auth-card .email-signin-form p, .email-auth-card .auth-footer { font-size: 14px; }
.internal-signin { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.internal-signin > summary { color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.internal-signin .notice { margin-top: 16px; }
.auth-footer a, .notice a { color: #67e8f9; }
.preview-signin-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 12px; margin-top: 18px; }
.preview-signin-form label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.preview-signin-form input { width: 100%; height: 42px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 11px; outline: none; }
.preview-signin-form input:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.request-card { width: min(820px, 100%); margin: 0 auto; }
.public-registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 20px; }
.public-registration-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.public-registration-grid input, .public-registration-grid select { width: 100%; height: 42px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 11px; outline: none; }
.public-registration-grid input:focus, .public-registration-grid select:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.privacy-note { margin: 16px 0 0; font-size: 12px; }
.firmware-publish-panel, .firmware-release-panel { margin-bottom: 18px; }
.firmware-publish-grid { display: grid; grid-template-columns: 1.25fr .75fr .8fr 2fr auto; align-items: end; gap: 12px; }
.firmware-publish-grid label > span, .compact-search > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.firmware-publish-grid input, .compact-search input { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.firmware-publish-grid input:focus, .compact-search input:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.compact-search { width: min(280px, 100%); }
.firmware-notes { min-width: 280px; line-height: 1.5; }
.status-pill.released { color: var(--green); border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.06); }
.status-pill.superseded { color: #94a3b8; }
.status-pill.failed { color: var(--red); border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.06); }
.file-upload-panel { margin-bottom: 18px; }
.file-upload-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.4fr 1fr auto; align-items: end; gap: 12px; }
.file-upload-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.file-upload-grid select, .file-upload-grid input[type="file"] { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.file-upload-grid input[type="file"] { padding: 8px 10px; color: var(--muted); font-size: 12px; }
.file-upload-grid input[type="file"]::file-selector-button { margin-right: 9px; border: 0; border-radius: 5px; background: #173047; color: #7dd3fc; cursor: pointer; padding: 4px 8px; }
.selected-file { min-height: 40px; display: flex; justify-content: center; flex-direction: column; padding: 0 10px; border: 1px dashed #26384e; border-radius: 7px; min-width: 0; }
.selected-file strong, .selected-file small, .selected-file span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file strong { color: #c8d8e9; font-size: 12px; }
.selected-file small, .selected-file span { color: #596a80; font-size: 12px; }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.inline-empty-state { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.inline-empty-state > span { color: #2c7890; font-size: 30px; }
.inline-empty-state strong { color: #9eafc2; font-size: 14px; }
.inline-empty-state small { font-size: 12px; }
.role-chip, .draft-chip { display: inline-flex; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.role-chip { padding: 4px 7px; border: 1px solid #27445d; color: #89d9e7; background: rgba(34,211,238,.04); }
.draft-chip { padding: 6px 9px; border: 1px solid rgba(251,191,36,.25); color: #fbbf24; background: rgba(251,191,36,.05); }
.action-group { display: flex; gap: 6px; }
.approve-button, .reject-button { padding: 6px 9px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 800; }
.approve-button { border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.06); color: #6ee7b7; }
.reject-button { border: 1px solid rgba(251,113,133,.25); background: rgba(251,113,133,.05); color: #fda4af; }
.role-matrix .permission-heading { min-width: 82px; text-align: center; white-space: normal; line-height: 1.35; }
.permission-cell { text-align: center; }
.permission-yes { color: #5eead4; font-weight: 900; }
.permission-no { color: #34445a; }
.review-panel { position: fixed; z-index: 50; right: 24px; bottom: 24px; width: min(430px, calc(100vw - 48px)); padding: 22px; border: 1px solid #24516a; border-radius: 14px; background: #0a1625; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.license-history-dismiss-layer { position: fixed; inset: 0; z-index: 49; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0,0,0,.2); cursor: default; }
.review-panel .close-button { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; color: #7f90a6; font-size: 24px; cursor: pointer; }
.review-panel p { font-size: 13px; }
.review-panel ul { margin: 16px 0 0; padding-left: 20px; color: #7d8da1; font-size: 13px; line-height: 1.7; }
.license-review-panel { max-height: calc(100vh - 48px); overflow-y: auto; }
.license-submit-panel { margin-bottom: 18px; }
.license-seat-create-panel { margin-bottom: 18px; }
.license-seat-create-panel .panel-heading { margin-bottom: 16px; }
.license-seat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; }
.license-seat-grid label, .license-submit-grid label { min-width: 0; }
.license-seat-grid .license-seat-note { grid-column: span 2; }
.license-seat-grid .license-submit-action { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.license-seat-grid .license-submit-action button { min-width: 165px; }
.license-seat-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.license-seat-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.license-seat-grid input, .license-seat-grid select { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.license-seat-grid input:focus, .license-seat-grid select:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.license-date-policy { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.license-registry-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 0 16px 16px; }
.license-registry-filters label { display: grid; gap: 6px; min-width: 170px; }
.license-registry-filters label:first-child { flex: 1 1 260px; }
.license-registry-filters label span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.license-registry-filters input, .license-registry-filters select { height: 38px; min-width: 0; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }
.license-registry-count { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.license-registry-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.license-registry-actions button { white-space: nowrap; }
.license-registry-empty { padding: 16px; color: var(--muted); }
.license-registry-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 16px; color: var(--muted); font-size: 13px; }
.license-registry-pager button { padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
.license-registry-pager button:disabled { opacity: .45; cursor: default; }
.license-history-entry { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; }
.license-history-entry strong, .license-history-entry small { display: block; }
.license-history-entry small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.license-history-entry p { margin: 7px 0 0; overflow-wrap: anywhere; }
.activation-code-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.activation-code-notice code { padding: 7px 10px; border: 1px solid rgba(34,211,238,.32); border-radius: 7px; color: #8ce9f5; font-size: 14px; letter-spacing: .08em; }
.activation-code-notice span { color: var(--muted); font-size: 12px; }
.offline-response-code { flex: 1 1 100%; min-height: 72px; width: 100%; resize: vertical; font: 13px/1.5 Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.license-submit-panel .panel-heading { margin-bottom: 16px; }
.license-submit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr 2fr auto; align-items: end; gap: 12px; }
.license-offline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.license-offline-grid .license-sequence-field, .license-offline-grid .license-submit-action { grid-column: 1 / -1; }
.license-offline-grid textarea { min-height: 72px; font-size: 14px; }
.license-offline-grid .license-submit-action { justify-self: start; }
.license-offline-grid .license-submit-action button { min-width: 185px; }
.license-offline-seat-field { min-width: 0; }
.license-offline-seat-field > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.license-offline-seat-field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.license-offline-seat-picker { position: relative; }
.license-submit-grid .license-offline-seat-picker input { padding-right: 48px; }
.license-offline-seat-toggle { position: absolute; top: 0; right: 0; width: 42px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 0 7px 7px 0; background: transparent; color: var(--text); cursor: pointer; }
.license-offline-seat-toggle span { width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.license-offline-seat-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.license-offline-seat-options { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; left: 0; max-height: 250px; overflow-y: auto; border: 1px solid #24516a; border-radius: 7px; background: var(--surface); box-shadow: 0 16px 38px rgba(0,0,0,.35); }
.license-offline-seat-options button { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: 14px; }
.license-offline-seat-options button:hover, .license-offline-seat-options button:focus { background: rgba(34,211,238,.1); }
.license-offline-seat-empty { display: block; padding: 12px; color: var(--muted); font-size: 13px; }
.license-submit-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.license-submit-grid input, .license-submit-grid select { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.license-submit-grid textarea { width: 100%; height: 68px; resize: vertical; border: 1px solid #21344e; border-radius: 7px; background: #07101b; color: var(--text); padding: 10px; outline: none; font: inherit; font-size: 14px; line-height: 1.5; }
.license-submit-grid input:focus, .license-submit-grid select:focus, .license-submit-grid textarea:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.license-submit-action { display: grid; gap: 5px; }
.license-submit-action small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.license-action-feedback { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 16px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 18px 48px rgba(0,0,0,.3); font-size: 14px; line-height: 1.5; }
.license-action-feedback div { min-width: 0; flex: 1; }
.license-action-feedback strong { display: block; margin-bottom: 3px; }
.license-action-feedback span { overflow-wrap: anywhere; }
.license-action-feedback button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; }
.license-action-success { border-color: rgba(52,211,153,.55); }
.license-action-success strong { color: var(--green); }
.license-action-error { border-color: rgba(251,113,133,.6); }
.license-action-error strong { color: var(--red); }
.license-status-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 10px 12px; border: 1px solid #1e344c; border-radius: 8px; background: #081321; }
.license-status-summary > span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.workflow-strip { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 14px; }
.workflow-strip span { padding: 5px 8px; border: 1px solid #26374b; border-radius: 999px; color: #5f7086; font-size: 12px; font-weight: 800; white-space: nowrap; }
.workflow-strip span.complete { border-color: rgba(52,211,153,.28); color: #6ee7b7; }
.workflow-strip span.current { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.06); color: #67e8f9; }
.workflow-strip i { height: 1px; background: #26374b; }
.review-history { margin: 14px 0; padding: 12px; border-left: 2px solid #24516a; background: rgba(13,25,42,.7); }
.review-history > span, .review-history > strong, .review-history > small { display: block; }
.review-history > span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.review-history > strong { margin-top: 5px; color: #cad8e7; font-size: 12px; }
.review-history > small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.review-history p { margin: 9px 0 0; color: #8b9bb0; font-size: 12px; line-height: 1.5; }
.review-note { display: block; margin-top: 14px; }
.review-note > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.review-note textarea { width: 100%; min-height: 88px; resize: vertical; border: 1px solid #21344e; border-radius: 7px; background: #07101b; color: var(--text); padding: 10px; outline: none; font: inherit; font-size: 12px; line-height: 1.5; }
.review-note textarea:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.license-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.workflow-note { margin: 14px 0 0; }
.sequence-block { padding: 12px; border: 1px solid #1e344c; border-radius: 8px; background: #07101b; }
.sequence-block span, .sequence-block code { display: block; }
.sequence-block span { margin-bottom: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.tool-registration-panel { margin-bottom: 18px; }
.tool-registration-panel .panel-heading { margin-bottom: 16px; }
.tool-registration-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 12px; }
.tool-registration-grid label > span, .tool-edit-grid label > span, .readonly-field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tool-registration-grid input, .tool-registration-grid select, .tool-edit-grid input, .tool-edit-grid select { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.tool-registration-grid input:focus, .tool-registration-grid select:focus, .tool-edit-grid input:focus, .tool-edit-grid select:focus, .tool-edit-grid textarea:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.tool-location-field { grid-column: span 2; }
.tool-note-field { grid-column: span 3; }
.tool-manage-panel { max-height: calc(100vh - 48px); overflow-y: auto; }
.tool-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; }
.tool-edit-grid .tool-change-note { grid-column: 1 / -1; }
.tool-edit-grid textarea { width: 100%; min-height: 78px; resize: vertical; border: 1px solid #21344e; border-radius: 7px; background: #07101b; color: var(--text); padding: 10px; outline: none; font: inherit; font-size: 12px; line-height: 1.5; }
.readonly-field { min-height: 64px; padding: 10px; border: 1px solid #1c3047; border-radius: 7px; background: #081321; }
.readonly-field strong, .readonly-field small { display: block; }
.readonly-field strong { color: #c5d4e4; font-size: 12px; }
.readonly-field small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tool-history-heading { margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid #1a2b41; }
.tool-history-heading h3 { margin: 5px 0 0; color: #c9d6e5; font-size: 14px; }
.tool-history-list { display: grid; gap: 9px; }
.tool-history-item { padding: 11px 12px; border-left: 2px solid #24516a; background: rgba(7,16,27,.72); }
.tool-history-item > div { display: flex; justify-content: space-between; gap: 10px; }
.tool-history-item strong { color: #bcd0e1; font-size: 12px; }
.tool-history-item span { color: var(--muted); font-size: 12px; }
.tool-history-item p { margin: 7px 0 0; color: #8294aa; font-size: 12px; line-height: 1.45; }
.tool-history-item small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.health-entry-panel { margin-bottom: 18px; }
.health-entry-panel .panel-heading { margin-bottom: 16px; }
.health-entry-summary { display: grid; grid-template-columns: 1.4fr 1.4fr .8fr auto; align-items: end; gap: 12px; margin-bottom: 16px; }
.health-entry-summary label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.health-entry-summary input, .health-entry-summary select { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.health-entry-summary input:focus, .health-entry-summary select:focus, .health-band-editor input:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.health-band-editor-grid, .health-exposure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.health-band-editor { padding: 12px; border: 1px solid #1c3047; border-radius: 9px; background: #081321; }
.health-band-editor > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; margin-bottom: 10px; }
.health-band-editor > div small { grid-column: 2; color: var(--muted); font-size: 12px; }
.health-metric-mark, .health-exposure-grid h3 span { display: inline-grid; width: 25px; height: 25px; place-items: center; border: 1px solid #285069; border-radius: 6px; color: #67e8f9; font-size: 12px; font-weight: 900; }
.health-band-editor label { display: grid; grid-template-columns: 1fr .8fr auto; align-items: center; gap: 6px; margin-top: 7px; }
.health-band-editor input { width: 100%; height: 34px; border: 1px solid #1e324a; border-radius: 6px; background: #07101b; color: var(--text); padding: 0 8px; outline: none; font-size: 12px; }
.health-band-editor label span { color: var(--muted); font-size: 12px; }
.health-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.health-card { padding: 18px; }
.health-card-heading { display: flex; justify-content: space-between; gap: 18px; }
.health-card-heading h2 { margin: 5px 0 3px; }
.health-card-heading p { margin: 0; font-size: 12px; }
.health-state { align-self: flex-start; padding: 5px 8px; border: 1px solid #294158; border-radius: 999px; color: #75879d; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.health-state.healthy { color: #6ee7b7; border-color: rgba(52,211,153,.28); background: rgba(52,211,153,.05); }
.health-state.warning { color: #fcd34d; border-color: rgba(251,191,36,.28); background: rgba(251,191,36,.05); }
.health-state.critical { color: #fda4af; border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.05); }
.life-meter-block { margin: 16px 0; padding: 12px; border: 1px solid #1c3047; border-radius: 9px; background: #081321; }
.life-meter-block > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.life-meter-block span { color: #65768c; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.life-meter-block strong { color: #dbe8f3; font-size: 14px; }
.life-meter-block small { display: block; margin-top: 7px; color: #506278; font-size: 12px; }
.life-meter { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #14253a; }
.life-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #fbbf24, #fb7185); }
.health-exposure-grid section { padding: 11px; border: 1px solid #172b41; border-radius: 8px; }
.health-exposure-grid h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #b9c9da; font-size: 12px; }
.health-exposure-grid h3 span { width: 20px; height: 20px; font-size: 12px; }
.exposure-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #14243a; }
.exposure-row span { color: var(--muted); font-size: 12px; }
.exposure-row strong { color: #aebfd1; font-size: 12px; }
.health-empty { min-height: 110px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.feedback-error { border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.06); color: var(--red); }
.job-create-panel { margin-bottom: 18px; }
.job-create-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 12px; }
.job-create-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.job-create-grid input, .job-create-grid select { width: 100%; height: 40px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; color: var(--text); padding: 0 10px; outline: none; }
.job-create-grid input:focus, .job-create-grid select:focus { border-color: #1596b1; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.job-note-field { grid-column: span 2; }
.job-tool-selector { grid-column: span 2; min-width: 0; margin: 0; padding: 9px 10px; border: 1px solid #21344e; border-radius: 7px; background: #0b1625; }
.job-tool-selector legend { padding: 0 5px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.job-tool-selector > small { color: var(--muted); }
.job-tool-selector label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.job-tool-selector input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: #22d3ee; }
.job-tool-selector label > span { display: flex; align-items: baseline; gap: 7px; margin: 0; color: var(--text); font-size: 14px; letter-spacing: 0; text-transform: none; }
.job-tool-selector label small { color: var(--muted); font-size: 12px; font-weight: 500; }
.job-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.job-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.job-card-heading { display: flex; justify-content: space-between; gap: 16px; }
.job-card-heading h2 { margin: 5px 0 3px; }
.job-card-heading p { margin: 0; font-size: 12px; }
.job-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 16px 0; border: 1px solid #172a40; border-radius: 8px; overflow: hidden; background: #172a40; }
.job-details-grid > div { padding: 11px; background: #081321; }
.job-details-grid span, .job-details-grid strong { display: block; }
.job-details-grid span { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.job-details-grid strong { color: #b8c8d9; font-size: 12px; }
.job-report { padding: 12px; border-left: 2px solid #52647a; background: rgba(82,100,122,.06); }
.job-report.normal { border-color: var(--green); background: rgba(52,211,153,.05); }
.job-report.watch { border-color: var(--amber); background: rgba(251,191,36,.05); }
.job-report.high { border-color: var(--red); background: rgba(251,113,133,.05); }
.job-report > span { color: #718299; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.job-report p { margin: 7px 0 4px; color: #9badc0; font-size: 12px; line-height: 1.45; }
.job-report small { color: var(--muted); font-size: 12px; }
.job-report-entry { display: grid; grid-template-columns: .65fr 1fr 2fr auto; gap: 8px; margin-top: 10px; }
.job-report-entry input, .job-report-entry select { width: 100%; height: 36px; border: 1px solid #21344e; border-radius: 6px; background: #07101b; color: var(--text); padding: 0 9px; outline: none; font-size: 12px; }
.job-report-history { display: grid; gap: 7px; margin-top: 10px; }
.job-report-history > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 9px; border: 1px solid #172a40; border-radius: 7px; }
.job-report-history i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #64748b; }
.job-report-history i.normal { background: var(--green); }
.job-report-history i.watch { background: var(--amber); }
.job-report-history i.high { background: var(--red); }
.job-report-history strong, .job-report-history small { display: block; }
.job-report-history strong { color: #aebfd1; font-size: 12px; }
.job-report-history small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.job-report-history p { grid-column: 2; margin: 4px 0 0; color: #7d8fa4; font-size: 12px; }
.job-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; margin-top: 14px; }
.job-actions input { width: 100%; height: 38px; border: 1px solid #21344e; border-radius: 7px; background: #07101b; color: var(--text); padding: 0 10px; outline: none; font-size: 12px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 18px; }
.coordinate-map { position: relative; min-height: 610px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(34,211,238,.08), transparent 48%), #081321; }
.map-grid-lines { position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(#193047 1px, transparent 1px), linear-gradient(90deg, #193047 1px, transparent 1px); background-size: 12.5% 12.5%; }
.map-grid-lines::before, .map-grid-lines::after { content: ""; position: absolute; background: #24506b; }
.map-grid-lines::before { top: 50%; left: 0; right: 0; height: 1px; }
.map-grid-lines::after { left: 50%; top: 0; bottom: 0; width: 1px; }
.map-pin { position: absolute; z-index: 2; display: flex; align-items: center; flex-direction: column; gap: 5px; transform: translate(-50%, -50%); border: 0; background: transparent; color: #a7b7ca; cursor: pointer; }
.map-pin > span { width: 17px; height: 17px; border: 4px solid #0a1624; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 2px #64748b, 0 0 20px currentColor; }
.map-pin strong { padding: 4px 7px; border: 1px solid #203a51; border-radius: 6px; background: rgba(7,13,23,.9); font-size: 12px; white-space: nowrap; }
.map-pin.normal > span { background: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 20px var(--green); }
.map-pin.watch > span { background: var(--amber); box-shadow: 0 0 0 2px var(--amber), 0 0 20px var(--amber); }
.map-pin.high > span { background: var(--red); box-shadow: 0 0 0 2px var(--red), 0 0 20px var(--red); }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.map-compass { position: absolute; top: 18px; right: 18px; width: 30px; text-align: center; color: #67e8f9; font-size: 12px; font-weight: 900; }
.map-compass i { display: block; width: 1px; height: 28px; margin: 4px auto 0; background: linear-gradient(#67e8f9 50%, #52647a 50%); }
.map-disclaimer { position: absolute; left: 18px; bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.map-detail-panel { padding: 0; overflow: hidden; }
.map-detail-panel .panel-heading { padding: 18px 18px 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 18px 14px; }
.map-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.map-legend i, .map-job-row > i { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.map-legend i.normal, .map-job-row > i.normal { background: var(--green); }
.map-legend i.watch, .map-job-row > i.watch { background: var(--amber); }
.map-legend i.high, .map-job-row > i.high { background: var(--red); }
.map-job-row { width: 100%; min-height: 62px; padding: 12px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 0; border-top: 1px solid #14243a; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.map-job-row:hover, .map-job-row.selected { background: rgba(34,211,238,.04); }
.map-job-row span, .map-job-row strong, .map-job-row small { display: block; }
.map-job-row strong { color: #c7d6e6; font-size: 12px; }
.map-job-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.map-job-row em { color: var(--muted); font-size: 12px; font-style: normal; text-transform: uppercase; }
.map-selected-detail { margin: 16px; padding: 14px; border: 1px solid #1d3249; border-radius: 9px; background: #081321; }
.map-selected-detail h3 { margin: 5px 0 8px; color: #c7d6e6; font-size: 14px; }
.map-selected-detail p { font-size: 12px; line-height: 1.5; }
.map-selected-detail dl { margin: 0; }
.map-selected-detail dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #15263b; }
.map-selected-detail dt, .map-selected-detail dd { font-size: 12px; }
.map-selected-detail dt { color: var(--muted); }
.map-selected-detail dd { margin: 0; color: #a8bacd; text-align: right; }
.agent-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.agent-card { padding: 18px; }
.agent-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.agent-card-heading div { min-width: 0; flex: 1; }
.agent-card-heading h2, .agent-card-heading p { margin: 0; }
.agent-card-heading p { margin-top: 3px; font-size: 12px; }
.agent-card dl { margin: 0; }
.agent-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #14233a; }
.agent-card dt { color: var(--muted); font-size: 12px; }
.agent-card dd { margin: 0; color: #b7c6d8; font-size: 12px; text-align: right; }
.preview-chip { flex-shrink: 0; white-space: nowrap; align-self: center; padding: 7px 10px; border: 1px solid #24435a; border-radius: 999px; color: #60d8e9; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.architecture-note { max-width: 800px; }
.architecture-note h2 { margin-top: 6px; }
.architecture-note p { margin-bottom: 0; line-height: 1.65; font-size: 14px; }
.empty-state { min-height: 400px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #20334c; border-radius: 14px; background: rgba(9,18,32,.5); }
.empty-state .empty-mark { font-size: 42px; color: #2c7890; }
.empty-state h2 { margin: 14px 0 8px; }
.empty-state p { max-width: 500px; font-size: 14px; line-height: 1.6; }
.empty-state a { color: var(--cyan); font-size: 13px; text-decoration: none; }
.blazor-error-boundary { padding: 1rem; background: #7f1d1d; color: #fff; }
:root[data-theme="light"] .metric-card { background: linear-gradient(145deg, #ffffff, #f5f8fc); }
:root[data-theme="light"] .primary-button,
:root[data-theme="light"] .primary-link { border-color: #075f74; background: #08758c; color: #ffffff; }
:root[data-theme="light"] .primary-button:hover,
:root[data-theme="light"] .primary-link:hover { border-color: #064b5b; background: #075f74; }
:root[data-theme="light"] .primary-button:disabled { border-color: #b9d6dc; background: #d9ecef; color: #657f86; }
:root[data-theme="light"] .preview-chip { border-color: #a9ccd4; background: #e9f5f7; color: #145b6a; }
:root[data-theme="light"] .review-button { border-color: #b3d1d8; background: #eef8fa; color: #116276; }
:root[data-theme="light"] .approve-button { border-color: #aad8c7; background: #e8f6ef; color: #075b42; }
:root[data-theme="light"] .reject-button { border-color: #e4b8c0; background: #fcf0f2; color: #a02d43; }
:root[data-theme="light"] .notice { border-color: #b7dce6; background: #edf7fa; color: #4e6476; }
:root[data-theme="light"] .notice strong { color: #0b657b; }
:root[data-theme="light"] .draft-notice { border-color: #e5d5a5; background: #faf6e9; }
:root[data-theme="light"] .draft-notice strong { color: #805c11; }
:root[data-theme="light"] .panel,
:root[data-theme="light"] .agent-card,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .identity-card,
:root[data-theme="light"] .review-panel { background: rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(51,65,85,.08); }
:root[data-theme="light"] .metric-card strong,
:root[data-theme="light"] .product-card dd,
:root[data-theme="light"] td strong,
:root[data-theme="light"] .agent-row strong,
:root[data-theme="light"] .activity-row strong,
:root[data-theme="light"] .selected-file strong,
:root[data-theme="light"] .review-history > strong,
:root[data-theme="light"] .readonly-field strong,
:root[data-theme="light"] .tool-history-heading h3,
:root[data-theme="light"] .tool-history-item strong,
:root[data-theme="light"] .life-meter-block strong,
:root[data-theme="light"] .health-exposure-grid h3,
:root[data-theme="light"] .exposure-row strong,
:root[data-theme="light"] .agent-card dd { color: #25344b; }
:root[data-theme="light"] .scope-picker select,
:root[data-theme="light"] .scope-picker input,
:root[data-theme="light"] .registration-grid input,
:root[data-theme="light"] .registration-grid select,
:root[data-theme="light"] .public-registration-grid input,
:root[data-theme="light"] .public-registration-grid select,
:root[data-theme="light"] .preview-signin-form input,
:root[data-theme="light"] .firmware-publish-grid input,
:root[data-theme="light"] .compact-search input,
:root[data-theme="light"] .file-upload-grid select,
:root[data-theme="light"] .file-upload-grid input[type="file"],
:root[data-theme="light"] .delete-confirmation input,
:root[data-theme="light"] .license-submit-grid input,
:root[data-theme="light"] .license-submit-grid select,
:root[data-theme="light"] .license-seat-grid input,
:root[data-theme="light"] .license-seat-grid select,
:root[data-theme="light"] .tool-registration-grid input,
:root[data-theme="light"] .tool-registration-grid select,
:root[data-theme="light"] .tool-edit-grid input,
:root[data-theme="light"] .tool-edit-grid select,
:root[data-theme="light"] .health-entry-summary input,
:root[data-theme="light"] .health-entry-summary select,
:root[data-theme="light"] .health-band-editor input { border-color: #cbd6e4; background: #ffffff; }
:root[data-theme="light"] .license-submit-grid textarea,
:root[data-theme="light"] .review-note textarea,
:root[data-theme="light"] .tool-edit-grid textarea,
:root[data-theme="light"] .sequence-block { border-color: #cbd6e4; background: #f7f9fc; }
:root[data-theme="light"] .activation-code-notice code { border-color: #9ecbd4; color: #087f99; }
:root[data-theme="light"] th { background: #eef3f8; color: #5b6d84; }
:root[data-theme="light"] td,
:root[data-theme="light"] .agent-row,
:root[data-theme="light"] .activity-row,
:root[data-theme="light"] .exposure-row,
:root[data-theme="light"] .agent-card dl div { border-color: #e0e7f0; color: #5e6f84; }
:root[data-theme="light"] .filter-tabs,
:root[data-theme="light"] .license-status-summary,
:root[data-theme="light"] .readonly-field,
:root[data-theme="light"] .health-band-editor,
:root[data-theme="light"] .life-meter-block { border-color: #d7e0eb; background: #f7f9fc; }
:root[data-theme="light"] .review-history,
:root[data-theme="light"] .tool-history-item { background: #f6f9fc; }
:root[data-theme="light"] .health-exposure-grid section,
:root[data-theme="light"] .empty-state { border-color: #d4deea; background: rgba(255,255,255,.58); }
:root[data-theme="light"] .job-create-grid input,
:root[data-theme="light"] .job-create-grid select,
:root[data-theme="light"] .job-tool-selector,
:root[data-theme="light"] .job-actions input,
:root[data-theme="light"] .job-report-entry input,
:root[data-theme="light"] .job-report-entry select { border-color: #cbd6e4; background: #ffffff; }
:root[data-theme="light"] .job-details-grid { border-color: #dce4ee; background: #dce4ee; }
:root[data-theme="light"] .job-details-grid > div,
:root[data-theme="light"] .map-selected-detail { background: #f7f9fc; }
:root[data-theme="light"] .job-details-grid strong,
:root[data-theme="light"] .map-job-row strong,
:root[data-theme="light"] .map-selected-detail h3,
:root[data-theme="light"] .map-selected-detail dd { color: #25344b; }
:root[data-theme="light"] .coordinate-map { background: radial-gradient(circle at 50% 45%, rgba(8,127,153,.09), transparent 48%), #edf3f8; }
:root[data-theme="light"] .map-grid-lines { background-image: linear-gradient(#cfdae6 1px, transparent 1px), linear-gradient(90deg, #cfdae6 1px, transparent 1px); }
:root[data-theme="light"] .map-pin strong { border-color: #c6d3e0; background: rgba(255,255,255,.94); color: #25344b; }
:root[data-theme="light"] .map-job-row { border-color: #e0e7f0; }
:root[data-theme="light"] .map-selected-detail { border-color: #d7e0eb; }
:root[data-theme="light"] .life-meter { background: #dfe7f0; }
:root[data-theme="light"] tr.selected td { background: rgba(8,127,153,.06); }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } .content-grid, .map-layout { grid-template-columns: 1fr; } .agent-card-grid, .health-card-grid, .job-card-grid { grid-template-columns: 1fr; } .product-card { grid-template-columns: auto 1fr; } .product-card dl { grid-column: 1 / -1; justify-content: space-around; } .registration-grid, .firmware-publish-grid, .file-upload-grid, .tool-registration-grid, .license-submit-grid, .license-seat-grid, .health-entry-summary, .job-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .release-notes-field, .license-sequence-field, .license-seat-note { grid-column: 1 / -1; } .tool-location-field, .tool-note-field, .job-note-field, .job-tool-selector { grid-column: auto; } .identity-grid { grid-template-columns: 1fr; } .identity-card { min-height: 0; } }
@media (max-width: 700px) { .page-header { align-items: stretch; flex-direction: column; } .scope-picker { min-width: 0; } .metric-grid, .product-grid, .registration-grid, .public-registration-grid, .firmware-publish-grid, .file-upload-grid, .tool-registration-grid, .tool-edit-grid, .license-submit-grid, .license-seat-grid, .health-entry-summary, .health-band-editor-grid, .health-exposure-grid, .job-create-grid, .job-summary-grid, .job-details-grid, .job-report-entry, .delete-confirmation, .preview-signin-form { grid-template-columns: 1fr; } .release-notes-field, .tool-edit-grid .tool-change-note, .license-sequence-field, .license-seat-note { grid-column: auto; } .metric-card { min-height: 120px; } .process-line small { width: 75px; } .auth-actions, .request-actions { align-items: stretch; flex-direction: column; } .coordinate-map { min-height: 440px; } }

/* Keep reading text legible without scaling the entire application layout. */
th, td { line-height: 1.5; }
th { white-space: nowrap; }
small { font-size: 12px; line-height: 1.5; }
.field-error { display: block; margin-top: 6px; color: var(--red); font-size: 13px; line-height: 1.5; }
.license-submit-grid .field-error { color: var(--red); font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.license-registry-table { min-width: 940px; }
.status-pill { white-space: nowrap; }
.registration-submit small, .license-submit-action small { white-space: normal; }
@media (max-width: 600px) { .panel-heading { align-items: flex-start; flex-wrap: wrap; } .panel-heading .preview-chip { align-self: flex-start; } }
@media (max-width: 700px) { .license-seat-grid .license-seat-note { grid-column: auto; } }

/* ---------- Console layout (2026-10-14): list-first pages, drawers, menus ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.console-header { min-height: 0; align-items: center; }
.console-header h1 { margin-bottom: 4px; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.secondary-button { height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--control-bg); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.secondary-button:hover { border-color: var(--cyan); color: var(--cyan); }
.secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.header-actions .primary-button, .drawer-footer .primary-button, .drawer-actions .primary-button { white-space: nowrap; }
.drawer-actions .danger-button, .drawer-actions .secondary-button, .drawer-actions .primary-button { height: 38px; padding: 0 14px; }
.danger-button { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.text-danger { color: var(--red) !important; }
.text-warning { color: var(--amber) !important; }
.link-button { padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; font-weight: 800; text-align: left; }
.link-button:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.link-button:focus-visible, .icon-button:focus-visible, .kpi-card:focus-visible, .action-menu button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-card { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.kpi-card:hover { border-color: color-mix(in srgb, var(--cyan) 45%, var(--border)); }
.kpi-card.selected { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.kpi-card > span, .kpi-card > small { display: block; color: var(--muted); }
.kpi-card > span { font-size: 13px; font-weight: 700; }
.kpi-card > strong { display: block; margin: 8px 0 4px; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.kpi-card > small { font-size: 12px; }
.kpi-card.warning > strong { color: var(--amber); }
.kpi-card.danger > strong { color: var(--red); }

.registry-panel { margin-bottom: 18px; }
.registry-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.registry-toolbar input, .registry-toolbar select, .audit-toolbar input, .audit-toolbar select, .usage-record-toolbar input, .usage-record-toolbar select { height: 38px; min-width: 0; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--control-bg); color: var(--text); }
.registry-toolbar .registry-search { flex: 1 1 280px; }
.registry-toolbar select { flex: 0 1 190px; }
.registry-row { cursor: pointer; }
.registry-row:hover td { background: var(--surface-2); }
.registry-row.selected td { background: var(--surface-2); }
.registry-row.selected td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.license-registry-table td { vertical-align: middle; }
.license-registry-table td small.text-warning { margin-top: 6px; }
.row-actions { width: 52px; text-align: right; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.icon-button:hover, .icon-button[aria-expanded="true"] { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.registry-empty { display: grid; gap: 4px; padding: 28px 16px; text-align: center; color: var(--muted); }
.registry-empty strong { color: var(--text); }

.menu-dismiss-layer { position: fixed; inset: 0; z-index: 60; border: 0; background: transparent; cursor: default; }
.action-menu { position: fixed; z-index: 61; width: 236px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.action-menu button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; text-align: left; }
.action-menu button:hover, .action-menu button:focus-visible { background: var(--surface-2); }
.action-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--border); opacity: 1; }
.action-menu .menu-danger { color: var(--red); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(3, 9, 18, .5); }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: -24px 0 70px rgba(0, 0, 0, .35); animation: drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.drawer-header h2 { margin: 2px 0 8px; font-size: 22px; overflow-wrap: anywhere; }
.drawer-header p { margin: 0; font-size: 14px; line-height: 1.55; }
.drawer-header small { color: var(--muted); font-size: 13px; }
.drawer .close-button { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.drawer .close-button:hover { border-color: var(--border); color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.drawer-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--border); }
.detail-grid > div { min-width: 0; padding: 12px 14px; background: var(--surface-2); }
.detail-grid .detail-wide { grid-column: 1 / -1; }
.detail-grid dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-grid dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.detail-grid dd small { display: block; margin-top: 3px; color: var(--muted); }
.drawer-section-title { margin: 24px 0 10px; color: var(--text); font-size: 15px; font-weight: 700; }
.history-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; margin-bottom: 8px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; }
.history-card small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.history-status { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.timeline { margin: 0; padding: 0 0 0 18px; list-style: none; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 16px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border: 2px solid var(--cyan); border-radius: 50%; background: var(--surface); }
.timeline strong, .timeline small { display: block; }
.timeline small { color: var(--muted); }
.timeline p { margin: 6px 0 0; color: var(--text); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

.code-callout { display: grid; gap: 8px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--cyan) 7%, var(--surface)); }
.code-callout small { color: var(--muted); }
.code-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.code-copy code { padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--cyan); font-size: 16px; letter-spacing: .08em; overflow-wrap: anywhere; }
.code-actions { display: flex; justify-content: flex-end; }
.code-callout .offline-response-code { min-height: 64px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid .form-wide { grid-column: 1 / -1; }
.form-grid label, .form-grid .license-offline-seat-field { display: grid; gap: 6px; min-width: 0; }
.form-grid label > span, .form-grid .license-offline-seat-field > label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: normal; text-transform: none; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--control-bg); color: var(--text); outline: none; }
.form-grid textarea { min-height: 84px; padding: 10px 11px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.5; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 15%, transparent); }
.form-grid .license-offline-seat-picker input { padding-right: 48px; }
.form-grid small { color: var(--muted); font-size: 12px; }
.fact-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.fact-row span { color: var(--muted); font-size: 13px; font-weight: 700; }
.fact-row small { grid-column: 1 / -1; color: var(--muted); }
.form-hint { margin: 12px 0 0; font-size: 13px; }

.directory-panel { margin-bottom: 18px; }
.drawer.wide { width: min(1000px, 100vw); }
.people-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.people-toolbar p { flex: 1 1 320px; margin: 0; font-size: 14px; }
.access-employees > .people-toolbar { padding: 0 20px; }
.back-link { margin-bottom: 4px; font-weight: 700; color: var(--cyan); }
.drawer-inline-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.drawer .access-permission-help { padding: 0; }
.directory-panel .row-actions { width: auto; white-space: nowrap; }
.status-chip { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-chip.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.status-chip.waiting { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.status-chip.off { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
tr.dirty td { background: var(--surface-2); }
tr.dirty td:first-child { box-shadow: inset 3px 0 0 var(--amber); }

.audit-toolbar, .usage-record-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.audit-toolbar label, .usage-record-toolbar label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.audit-toolbar .audit-search, .usage-record-toolbar .usage-record-search { flex: 1 1 260px; }
.audit-table td:first-child, .audit-table td:nth-child(3) { white-space: nowrap; }
.audit-table td:nth-child(2) { min-width: 140px; }
.audit-table td:last-child { min-width: 320px; overflow-wrap: anywhere; }
.tone-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.tone-dot.success { background: var(--green); }
.tone-dot.warning { background: var(--amber); }
.tone-dot.danger, .tone-dot.error { background: var(--red); }
.tone-dot.info { background: var(--blue); }

.header-select { height: 40px; min-width: 200px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--control-bg); color: var(--text); }
.primary-button.compact, .secondary-button.compact, .danger-button.compact { height: 32px; padding: 0 11px; font-size: 13px; }
.access-add-person { margin: 0 20px 18px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.access-add-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.access-add-actions small { flex: 1 1 320px; color: var(--muted); }
.access-employees td small, .directory-panel td small { display: block; margin-top: 4px; }
.access-employees .panel-heading .secondary-button { flex-shrink: 0; }

:root[data-theme="light"] .secondary-button { background: #ffffff; }
:root[data-theme="light"] .kpi-card, :root[data-theme="light"] .action-menu { box-shadow: 0 8px 24px rgba(51,65,85,.07); }
:root[data-theme="light"] .drawer-backdrop { background: rgba(15, 23, 42, .28); }
:root[data-theme="light"] .drawer { box-shadow: -18px 0 50px rgba(51,65,85,.18); }

@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .console-header { align-items: stretch; } .header-actions { justify-content: flex-start; } .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-grid, .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kpi-grid { gap: 8px; } .kpi-card { padding: 12px 14px; } .kpi-card > strong { margin: 6px 0 2px; font-size: 24px; } .drawer-header, .drawer-body { padding-left: 18px; padding-right: 18px; } .header-actions > * { flex: 1 1 auto; } }

/* ---------- Billing (2026-10-15) ---------- */
.kpi-card.static { cursor: default; }
.kpi-card.static:hover { border-color: var(--border); }
.month-picker { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--control-bg); }
.month-picker strong { min-width: 124px; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.month-picker .icon-button { width: 30px; height: 30px; }
.month-picker .icon-button:disabled { cursor: not-allowed; opacity: .35; }
.billing-panel { margin-bottom: 18px; }
.billing-table { min-width: 760px; }
.billing-table.compact { min-width: 560px; }
.billing-table.jobs { min-width: 1080px; }
.billing-table .nowrap { white-space: nowrap; }
#billing-recipients { min-height: 64px; }
.billing-table th.num, .billing-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.billing-table td small { display: block; margin-top: 3px; color: var(--muted); }
.billing-table td code { font-size: 12px; overflow-wrap: anywhere; }
.billing-table .subtotal-row td { background: var(--surface-2); font-weight: 700; }
.billing-table tfoot td { border-top: 2px solid var(--border); font-weight: 800; }
.billing-table select { height: 34px; min-width: 170px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--control-bg); color: var(--text); }
/* Billing statuses use the License Center pill look; never the class "progress", which Bootstrap styles as a light progress bar. */
.status-pill.tone-green { color: var(--green); border-color: rgba(52, 211, 153, .48); background: rgba(52, 211, 153, .14); }
.status-pill.tone-blue { color: var(--blue); border-color: rgba(56, 189, 248, .48); background: rgba(56, 189, 248, .14); }
.status-pill.tone-amber { color: var(--amber); border-color: rgba(251, 191, 36, .48); background: rgba(251, 191, 36, .14); }
.status-pill.tone-red { color: var(--red); border-color: rgba(251, 113, 133, .48); background: rgba(251, 113, 133, .14); }
.status-pill.tone-orange { color: var(--orange); border-color: rgba(255, 122, 69, .48); background: rgba(255, 122, 69, .14); }
.status-pill.tone-gray { color: var(--muted); border-color: rgba(139, 156, 179, .42); background: rgba(139, 156, 179, .1); }
/* Who may activate a license by signing in to Data Logger. */
.assignee-panel { margin-top: 8px; }
.assignee-panel .muted { margin: 0 0 10px; }
.assignee-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--border); border-radius: 10px; max-height: 280px; overflow-y: auto; }
.assignee-list li + li { border-top: 1px solid var(--border); }
.assignee-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; }
.assignee-list input { margin-top: 3px; }
.assignee-list span { display: flex; flex-direction: column; color: var(--text); font-weight: 600; }
.assignee-list small { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.assignee-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.text-success { color: var(--green) !important; }
.billing-edit { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.billing-edit h3 { margin: 0 0 14px; font-size: 16px; }
.billing-edit .billing-name { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.notice.warning-notice { border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: color-mix(in srgb, var(--amber) 6%, transparent); color: var(--text); }
.notice.warning-notice strong { color: var(--amber); }
.notice.warning-notice .link-button { color: var(--cyan); }
