:root {
  color-scheme: light;
  --cp-red: #e2211c;
  --cp-black: #000000;
  --cp-gray: #d2d2cd;
  --cp-white: #ffffff;
  --red: #e2211c;
  --red-dark: #b81713;
  --ink: #171717;
  --muted: #6d6d6d;
  --line: #e8e8e8;
  --surface: #ffffff;
  --canvas: #f5f5f3;
  --success: #157347;
  --shadow: 0 14px 36px rgba(17,17,17,.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.application-device-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 30px); background: var(--surface); color: var(--ink); }
.application-device-dialog::backdrop { background: rgba(0,0,0,.5); }
.application-device-dialog h2 { margin-top: 10px; }
.application-device-dialog-target { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.application-device-dialog-impact { padding: 12px; border-left: 3px solid var(--red); background: var(--canvas); line-height: 1.5; }
.application-device-dialog textarea { resize: vertical; min-height: 90px; }
.application-device-dialog-error { color: var(--red-dark); font-size: 13px; font-weight: 700; }
.application-device-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.application-device-dialog-actions .button { flex: 1 1 170px; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand strong { display: block; letter-spacing: .08em; font-size: 15px; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.top-actions, .inline { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-button:hover { border-color: var(--red); color: var(--red); }
.environment, .secure-badge, .live-dot { border-radius: 99px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.environment { background: #171717; color: #fff; }
.secure-badge { background: #fce8e7; color: var(--red-dark); }
.live-dot { color: var(--success); background: #e9f6ef; }
.mfa-control { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.mfa-badge { display: inline-flex; align-items: center; gap: 7px; min-width: 142px; justify-content: center; }
.mfa-badge #mfa-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mfa-badge.active { color: var(--success); background: #e9f6ef; }
.mfa-badge.warning { color: #805d00; background: #fff4cc; }
.mfa-badge.expired { color: var(--red-dark); background: #fce8e7; }
.mfa-help { margin: -8px 0 18px; text-align: right; font-size: 12px; }
.mfa-help.expired { color: var(--red-dark); font-weight: 700; }
.button-small { padding: 6px 10px; font-size: 12px; }
.shell { display: grid; grid-template-columns: 228px minmax(0,1fr); min-height: calc(100vh - 120px); }
.sidebar-collapsed .shell { grid-template-columns: 76px minmax(0,1fr); }
.sidebar { padding: 24px 16px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.nav-tree { display: grid; gap: 18px; }
.nav-group { display: grid; gap: 4px; }
.nav-group-title { margin: 0 10px 4px; color: #8b8b8b; font-size: 10px; line-height: 1.3; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nav-group:has(.nav-item.active) .nav-group-title { color: var(--red-dark); }
.nav-item { display: grid; grid-template-columns: 24px 1fr; margin-left: 4px; border: 0; border-left: 2px solid transparent; background: transparent; padding: 10px 12px; border-radius: 0 10px 10px 0; text-align: left; cursor: pointer; color: #555; font-weight: 600; text-decoration: none; }
.nav-item span { grid-row: 1 / 3; margin-right: 10px; color: var(--red); }
.nav-item b { color: inherit; font-size: 14px; }
.nav-item small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.2; font-weight: 500; }
.nav-item.active { border-left-color: var(--red); background: #fcebea; color: var(--ink); }
.sidebar-collapsed .nav-tree { gap: 8px; }
.sidebar-collapsed .nav-group { gap: 4px; }
.sidebar-collapsed .nav-group + .nav-group { padding-top: 8px; border-top: 1px solid var(--line); }
.sidebar-collapsed .nav-group-title { display: none; }
.sidebar-collapsed .nav-item { grid-template-columns: 1fr; justify-items: center; margin-left: 0; border-left: 0; border-radius: 10px; padding: 13px 8px; }
.sidebar-collapsed .nav-item span { grid-row: auto; margin: 0; font-size: 19px; }
.sidebar-collapsed .nav-item b, .sidebar-collapsed .nav-item small, .sidebar-collapsed .sidebar-note { display: none; }
.sidebar-note { margin-top: auto; padding: 16px; border-radius: 12px; background: #191919; color: #fff; }
.sidebar-note p { color: #c7c7c7; font-size: 13px; line-height: 1.45; margin-bottom: 0; }
main { padding: 38px clamp(22px,4vw,60px); min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
h1 { font-size: clamp(30px,4vw,45px); line-height: 1.05; margin: 7px 0 10px; letter-spacing: -.035em; }
h2 { margin: 4px 0; font-size: 22px; }
h3 { font-size: 15px; margin: 22px 0 10px; }
p { color: var(--muted); }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.context-controls { min-width: min(620px, 55vw); display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
label { display: block; color: #444; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #d7d7d7; border-radius: 8px; background: #fff; padding: 11px 12px; margin-top: 7px; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(226,33,28,.12); border-color: var(--red); }
.button { border: 1px solid #d5d5d5; border-radius: 8px; padding: 10px 14px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 700; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.button:hover { border-color: #aaa; }
.button:disabled { opacity: .55; cursor: wait; }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-quiet { background: #f1f1f1; }
.button-danger { background: #fff; border-color: var(--red); color: var(--red-dark); }
.button-danger:hover { background: #fcebea; border-color: var(--red-dark); }
.notice { padding: 12px 15px; border-left: 4px solid var(--red); background: #fff; border-radius: 7px; margin-bottom: 18px; box-shadow: var(--shadow); }
.notice.success { border-color: var(--success); }
.access-strip { display: grid; grid-template-columns: repeat(3,minmax(180px,1fr)); gap: 1px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.access-strip > div { padding: 11px 15px; background: var(--surface); }
.access-strip span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.access-strip strong { font-size: 13px; }
.text-success { color: var(--success); }
.text-warning { color: #805d00; }
.text-danger { color: var(--red-dark); }
.context-strip { display: grid; grid-template-columns: repeat(3,minmax(140px,1fr)) minmax(260px,1.6fr); gap: 1px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.context-strip > * { margin: 0; padding: 12px 15px; background: var(--surface); }
.context-strip span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.context-strip strong { font-size: 13px; }
.context-strip p { font-size: 12px; line-height: 1.4; }
.section-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,.8fr); gap: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.summary-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.summary-card span, .summary-card small { display: block; color: var(--muted); }
.summary-card span { font-size: 12px; font-weight: 700; }
.summary-card strong { display: block; margin: 8px 0 5px; font-size: 32px; line-height: 1; }
.summary-card small { font-size: 11px; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 20px; }
.dashboard-grid > .card { padding: 22px; }
.location-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 10px; }
.location-summary-item, .attention-row { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.location-summary-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.location-summary-item:hover, .attention-row:hover { border-color: var(--red); background: #fff8f7; }
.location-summary-item span { color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.location-summary-item small { color: var(--muted); }
.attention-list { display: grid; gap: 9px; }
.attention-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; padding: 13px; }
.attention-row strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fcebea; color: var(--red-dark); font-size: 18px; }
.attention-row span { font-weight: 650; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.device-list-card, .detail-card, .policy-card { padding: 22px; }
.fleet-overview-card { grid-column: 1 / -1; padding: 22px; }
.global-groups-card { grid-column: 1 / -1; padding: 22px; }
body[data-workspace-section="inventory"] .fleet-overview-card,
body[data-workspace-section="inventory"] .global-groups-card,
body[data-workspace-section="inventory"] .provision-card { display: none; }
body[data-workspace-section="organization"] .device-list-card,
body[data-workspace-section="organization"] .detail-card,
body[data-workspace-section="organization"] .provision-card { display: none; }
body[data-workspace-section="enrollment"] .device-list-card,
body[data-workspace-section="enrollment"] .detail-card,
body[data-workspace-section="enrollment"] .fleet-overview-card,
body[data-workspace-section="enrollment"] .global-groups-card { display: none; }
.inventory-toolbar { display: grid; grid-template-columns: minmax(220px,1.5fr) repeat(4,minmax(130px,1fr)); gap: 10px; align-items: end; margin-bottom: 12px; padding: 14px; border-radius: 10px; background: #fafafa; border: 1px solid var(--line); }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; margin-bottom: 8px; color: var(--muted); font-size: 12px; align-items: center; }
.active-filters span { padding: 5px 8px; border-radius: 99px; background: #fcebea; color: var(--ink); }
.empty-table-cell { padding: 28px; color: var(--muted); text-align: center; cursor: default; }
.quick-form { display: grid; grid-template-columns: .8fr 1fr 1.5fr auto; gap: 12px; align-items: end; margin: 16px 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; }
.group-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.group-card:hover, .group-card.active { border-color: var(--red); background: #fff8f7; }
.group-card strong, .group-card span { display: block; }
.group-card span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.group-card .policy-line { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); }
.provision-card { grid-column: 1 / -1; min-width: 0; padding: 22px; }
.compact-grid { margin-top: 18px; }
.station-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 24px 0; list-style: none; }
.station-steps li { display: flex; align-items: center; gap: 9px; color: #8a8a8a; font-size: 13px; }
.station-steps li::after { content: ""; height: 2px; background: var(--line); flex: 1; margin-left: 4px; }
.station-steps li:last-child::after { display: none; }
.station-steps span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #ececec; font-weight: 800; }
.station-steps .active { color: var(--ink); }
.station-steps .active span { background: var(--red); color: #fff; }
.station-steps .done { color: var(--success); }
.station-steps .done span { background: #e9f6ef; color: var(--success); }
.station-steps .done::after { background: #a8d9bf; }
.enrollment-guide { margin: 20px 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.guide-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.guide-heading h3 { margin: 5px 0 0; font-size: 18px; }
.guide-time { padding: 6px 10px; border-radius: 99px; background: #ececec; color: #555; font-size: 12px; font-weight: 700; white-space: nowrap; }
.prerequisite-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.prerequisite-list span { padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: #444; font-size: 12px; }
.station-download-card { display: grid; gap: 12px; padding: 18px; border: 1px solid #f1b7b4; border-radius: 10px; background: #fff8f7; }
.station-download-card h4 { margin: 5px 0 7px; font-size: 16px; }
.station-download-card p { margin: 0; font-size: 13px; line-height: 1.5; }
.station-download-card > .button { justify-self: start; }
.installer-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.installer-flow li { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #f1d2cf; border-radius: 8px; background: #fff; }
.installer-flow strong { color: var(--red); font-size: 12px; }
.installer-flow span { color: #555; font-size: 12px; line-height: 1.4; }
.station-kit-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.station-kit-meta span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #444; font-size: 12px; }
.installer-advanced { border-top: 1px solid #f1d2cf; padding-top: 10px; }
.installer-advanced summary { width: fit-content; cursor: pointer; color: #555; font-size: 12px; font-weight: 750; }
.installer-advanced summary:hover { color: var(--red); }
.installer-advanced-body { display: grid; gap: 10px; padding-top: 12px; }
.installer-advanced-body > p { color: #555; }
.connection-method, .guide-step-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 10px; overflow: hidden; }
.connection-method summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; color: var(--ink); font-weight: 750; list-style: none; }
.connection-method summary::-webkit-details-marker { display: none; }
.connection-method summary::after { content: "+"; margin-left: auto; color: var(--red); font-size: 20px; }
.connection-method[open] summary::after { content: "−"; }
.method-body { padding: 0 16px 16px 52px; }
.method-body p, .guide-step-card p { font-size: 13px; line-height: 1.5; }
.method-number { flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.guide-step-card { display: flex; gap: 12px; padding: 16px; }
.guide-step-card > div { flex: 1; min-width: 0; }
.guide-step-card h4 { margin: 4px 0 12px; font-size: 14px; }
.command-row { display: flex; align-items: stretch; border: 1px solid #d8d8d8; border-radius: 8px; overflow: hidden; background: #171717; }
.command-row + .command-row { margin-top: 8px; }
.command-row code { flex: 1; min-width: 0; padding: 11px 12px; color: #fff; font-family: Consolas, monospace; font-size: 12px; overflow-x: auto; white-space: nowrap; }
.copy-command { border: 0; border-left: 1px solid #444; padding: 0 12px; background: #2d2d2d; color: #fff; cursor: pointer; font-weight: 700; }
.copy-command:hover { background: #444; }
.copy-command.copied { background: var(--success); }
.command-row-install { flex-direction: column; }
.command-row-install code { overflow-x: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.command-row-install .copy-command { min-height: 44px; border-left: 0; border-top: 1px solid #444; }
.command-example { margin: 7px 0 12px; }
.command-example code, .method-body p code, .guide-step-card p code { padding: 2px 5px; border-radius: 4px; background: #ececec; color: var(--ink); font-family: Consolas, monospace; }
.important-note { margin: 12px 0; padding: 10px 12px; border-left: 3px solid var(--red); background: #fff5f4; color: #4e3332; font-size: 13px; }
.station-panel, .station-device { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.station-panel > div { width: min(430px, 100%); }
.station-panel p { margin: 8px 0 0; }
.station-device { margin-top: 16px; align-items: center; background: #fff8f7; }
.station-device h3 { margin: 9px 0 5px; font-size: 20px; }
.station-device p { margin: 0; }
.station-progress, .station-finalize { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.station-progress strong { display: block; margin-top: 13px; }
.station-progress p { margin: 5px 0 0; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e6e6e6; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .25s ease; }
.station-finalize { background: #fff8f7; border-color: #f1b7b4; }
.station-finalize h3 { margin-top: 0; color: var(--red-dark); }
.one-time-secret { margin-top: 18px; padding: 16px; border: 1px solid #d8dce3; border-radius: 8px; background: #f8f9fb; }
.one-time-secret input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.card-heading p { margin: 4px 0; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #777; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
td { padding: 15px 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.selected { background: #fff5f4; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: #ececec; font-size: 12px; font-weight: 700; }
.status-pill.active { background: #e9f6ef; color: var(--success); }
.empty-state { text-align: center; padding: 50px 16px; }
.empty-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fcebea; color: var(--red); font-size: 28px; margin: 0 auto 15px; }
.mono { font-family: Consolas, monospace; font-size: 11px; word-break: break-all; }
.metrics { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 18px 0; }
.metrics div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.metrics dt { color: var(--muted); }
.metrics dd { margin: 0; font-weight: 700; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.command-history ul { list-style: none; padding: 0; margin: 0; max-height: 190px; overflow-y: auto; }
.command-history li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.device-actions { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; }
.device-actions > summary { padding: 13px 15px; cursor: pointer; font-weight: 750; }
.device-actions[open] { padding: 0 15px 15px; }
.device-actions[open] > summary { margin: 0 -15px 12px; border-bottom: 1px solid var(--line); }
.danger-zone { margin-top: 22px; padding: 16px; border: 1px solid #f1b7b4; border-radius: 10px; background: #fff8f7; }
.danger-zone h3 { color: var(--red-dark); margin-top: 0; }
.danger-zone p { font-size: 12px; line-height: 1.45; }
.danger-zone label + label, .danger-zone .button { margin-top: 12px; }
.policy-card { max-width: 1000px; }
.relationship-banner { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 8px; background: #fff5f4; }
.relationship-banner span { color: var(--muted); font-size: 13px; text-align: right; }
.split-panel { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 20px; margin: 22px 0; }
.module-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.module-tab { border: 1px solid var(--line); border-radius: 99px; padding: 8px 13px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; }
.module-tab.active { border-color: #f1b7b4; background: #fcebea; color: var(--ink); }
.module-panel { margin-top: 18px; }
.empty-guidance { margin-top: 15px; padding: 16px; border-radius: 10px; background: #fafafa; border: 1px solid var(--line); }
.empty-guidance p { margin-bottom: 0; font-size: 13px; }
.assignment-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.assignment-card label { margin-top: 13px; }
.assignment-card .button { width: 100%; margin-top: 14px; }
.catalog-list { display: grid; gap: 9px; }
.catalog-item { display: flex; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.catalog-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.catalog-empty { padding: 20px; border: 1px dashed var(--cp-gray); border-radius: 9px; color: var(--muted); text-align: center; }
.impact-preview { margin: 14px 0; padding: 10px 12px; border-radius: 8px; background: #ececec; color: #444; font-size: 12px; font-weight: 650; }
.section-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.advanced-settings { margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
.advanced-settings summary { padding: 13px 15px; cursor: pointer; font-weight: 700; }
.advanced-settings label { padding: 0 15px 15px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 8px; margin-top: 12px; }
.check-grid label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.check-grid input { width: auto; margin: 0; }
.catalog-table { margin: 18px 0; }
.operation-target { display: grid; grid-template-columns: minmax(240px,360px) 1fr; align-items: end; gap: 14px; margin-top: 16px; }
.audit-toolbar { display: grid; grid-template-columns: minmax(260px,1.5fr) minmax(150px,.6fr) minmax(200px,1fr); gap: 12px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; }
#audit-rows tr { cursor: default; }
.managed-app-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f7;
}
.managed-app-card label:not(:first-child) { display: grid; gap: 8px; margin-top: 14px; }
.managed-app-card .hint { margin-bottom: 0; line-height: 1.45; }
.section-intro { max-width: 760px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 18px; }
.toggle-label { display: flex; align-items: center; gap: 8px; padding-top: 26px; }
.toggle-label input, .check-label input { width: auto; margin: 0; accent-color: var(--red); }
.hint { color: #888; font-weight: 400; }
.check-label { margin: 14px 0; display: flex; gap: 8px; align-items: center; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.form-footer p { font-size: 13px; margin: 0; }
.application-contract {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background: #fff8f7;
}
.application-contract > div:first-child { display: grid; gap: 5px; }
.application-contract small { color: var(--muted); }
.application-platform {
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contract-flow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.contract-flow span { padding: 7px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.contract-flow b { color: var(--red); }
.application-device-grid {
  display: grid;
  grid-template-columns: minmax(320px,.9fr) minmax(340px,1.1fr);
  gap: 20px;
  align-items: stretch;
}
.application-device-form, .activation-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.application-device-form .section-divider { margin-top: 0; }
.application-device-form label + label { margin-top: 14px; }
.application-device-form .button { width: 100%; margin-top: 8px; }
.activation-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #191919;
  color: #fff;
}
.activation-panel h3 { margin: 6px 0 14px; font-size: 23px; }
.activation-panel p { color: #cfcfcf; }
.activation-code-row { display: flex; align-items: stretch; gap: 8px; }
.activation-code-row code {
  flex: 1;
  padding: 16px;
  border: 1px solid #4d4d4d;
  border-radius: 9px;
  background: #000;
  color: #fff;
  font-size: clamp(20px,3vw,32px);
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
}
.activation-code-row .copy-command { flex: 0 0 auto; }
.activation-panel > strong { margin-top: 12px; color: #fff; }
.activation-panel .important-note { margin-top: 10px; color: #e6e6e6; }
.application-device-list-heading { margin-top: 28px; }
.application-device-state {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 99px;
  background: #ececec;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.application-device-state.active { background: #e9f6ef; color: var(--success); }
.application-device-state.pending { background: #fff4cc; color: #805d00; }
.application-device-state.revoked { background: #fce8e7; color: var(--red-dark); }
.application-device-name { display: grid; gap: 3px; }
.application-device-name small { color: var(--muted); font-family: Consolas, monospace; }
.login-card { max-width: 720px; margin: 9vh auto; background: #fff; border-radius: 18px; padding: clamp(30px,6vw,64px); box-shadow: var(--shadow); }
footer { height: 48px; display: grid; place-items: center; color: #777; font-size: 12px; background: #fff; border-top: 1px solid var(--line); }
body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f4;
  --muted: #b8b8b8;
  --line: #3a3a3a;
  --surface: #222222;
  --canvas: #171717;
  --shadow: none;
}
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .sidebar,
body[data-theme="dark"] footer { background: #202020; }
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] .quick-form,
body[data-theme="dark"] .assignment-card,
body[data-theme="dark"] .station-panel,
body[data-theme="dark"] .station-progress,
body[data-theme="dark"] .enrollment-guide { background: #292929; color: var(--ink); }
body[data-theme="dark"] label { color: #e0e0e0; }
body[data-theme="dark"] .group-card:hover,
body[data-theme="dark"] .group-card.active,
body[data-theme="dark"] tbody tr:hover,
body[data-theme="dark"] tbody tr.selected,
body[data-theme="dark"] .relationship-banner { background: #321f1e; }
body[data-theme="dark"] .inventory-toolbar,
body[data-theme="dark"] .audit-toolbar,
body[data-theme="dark"] .empty-guidance,
body[data-theme="dark"] .application-device-form { background: #292929; }
body[data-theme="dark"] .application-contract { background: #321f1e; }
body[data-theme="dark"] .location-summary-item:hover,
body[data-theme="dark"] .attention-row:hover { background: #321f1e; }
@media (max-width: 950px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { min-width: 0; max-width: 100vw; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 18px; }
  .nav-tree { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 18px; }
  .nav-group { min-width: max-content; }
  .nav-item { flex: 0 0 150px; }
  .sidebar-note { display: none; }
  .section-grid { grid-template-columns: 1fr; }
  .context-controls { min-width: 0; width: 100%; }
  .context-strip { grid-template-columns: 1fr 1fr; }
  .access-strip { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .inventory-toolbar { grid-template-columns: 1fr 1fr; }
  .quick-form { grid-template-columns: 1fr 1fr; }
  .split-panel { grid-template-columns: 1fr; }
  .application-device-grid { grid-template-columns: 1fr; }
  main { padding-top: 24px; }
}
@media (max-width: 650px) {
  .topbar { padding: 0 16px; }
  .brand small { display: none; }
  .page-heading, .form-footer { align-items: stretch; flex-direction: column; }
  .context-controls { grid-template-columns: 1fr; }
  .context-strip { grid-template-columns: 1fr; }
  .access-strip, .summary-grid { grid-template-columns: 1fr; }
  .quick-form { grid-template-columns: 1fr; }
  .relationship-banner, .operation-target { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
  .application-contract, .contract-flow { align-items: stretch; flex-direction: column; }
  .relationship-banner span { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .inventory-toolbar, .audit-toolbar { grid-template-columns: 1fr; }
  .toggle-label { padding-top: 0; }
  .action-grid { grid-template-columns: 1fr; }
  .station-steps { grid-template-columns: 1fr 1fr; }
  .station-steps li::after { display: none; }
  .station-panel, .station-device { align-items: stretch; flex-direction: column; }
  .card-heading, .guide-heading { align-items: stretch; flex-direction: column; }
  .mfa-control { justify-content: flex-start; }
  .mfa-help { text-align: left; margin-top: -6px; }
  .prerequisite-list { flex-direction: column; }
  .installer-flow { grid-template-columns: 1fr; }
  .method-body { padding-left: 16px; }
  .guide-step-card { align-items: flex-start; }
  .command-row { flex-direction: column; }
  .copy-command { min-height: 38px; border-left: 0; border-top: 1px solid #444; }
}
