:root {
  --bg: #f4f5f7;
  --panel: #fff;
  --panel-2: #f7f7f9;
  --line: #e6e7eb;
  --text: #202127;
  --muted: #72757d;
  --accent: #df0018;
  --accent-2: #bb0014;
  --danger: #b3273a;
  --success: #327a52;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 33px; letter-spacing: -.035em; font-weight: 650; line-height: 1.3; margin: 7px 0 9px; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-weight: 600; }
.icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 10; padding: 12px 18px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.brand { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 200px; height: 40px; overflow: hidden; background: #fff; }
.brand-wordmark { display: block; flex-shrink: 0; width: 216px; height: auto; max-width: none; }
.account { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.account form { margin: 0; }
.header-caption { color: var(--muted); font-size: 12px; }
.app-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); flex: 1; }
.sidebar { display: flex; flex-direction: column; padding: 28px 17px; background: #fff; border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 9px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #666973; font-size: 13px; }
.nav-item:hover { background: var(--panel-2); }
.nav-item.active { color: var(--accent); background: #fff0f1; font-weight: 600; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-note { margin: auto 12px 4px; padding-top: 100px; font-size: 11px; line-height: 1.9; color: #858890; }
.shell { width: min(980px, 100%); min-width: 0; margin: 0 auto; padding: 38px 32px 56px; }
.signed-out .app-layout { grid-template-columns: minmax(0, 1fr); }
.signed-out .shell { padding-top: 48px; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.dashboard-head .muted { margin-bottom: 0; font-size: 13px; }
.eyebrow { color: var(--accent); letter-spacing: .14em; font-size: 10px; font-weight: 650; margin-bottom: 10px; }
.muted { color: var(--muted); line-height: 1.8; max-width: 650px; }
.primary, .secondary, button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--panel); font-weight: 550; font-size: 13px; line-height: 1.35; cursor: pointer; transition: background .15s, border-color .15s; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.secondary { white-space: nowrap; }
.app-adaptation { max-width: 320px; text-align: left; }
.app-adaptation strong { display: block; color: var(--danger); margin-bottom: 8px; }
.app-adaptation p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 12px; }
.secondary:hover { background: var(--panel-2); color: var(--text); border-color: #cdd0d7; }
button:disabled { color: #757881; background: #eceef1; border-color: #eceef1; cursor: not-allowed; }
button.complete:disabled { color: var(--success); background: #edf6ef; border-color: #edf6ef; }
.text-button { border: 0; padding: 0 6px; color: var(--muted); background: transparent; font-weight: 400; }
.text-button:hover { color: var(--accent); background: transparent; }
.button-link { display: inline-flex; align-items: center; justify-content: center; }
.notice { padding: 14px 16px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); line-height: 1.65; overflow-wrap: anywhere; }
.notice.error { color: var(--danger); border-color: #f1d5db; background: #fff7f8; }
.notice.success { color: var(--success); border-color: #d6e8dc; background: #f4faf6; }
.auth-card { width: min(460px, 100%); margin: 24px auto; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 8px 30px #1c202a04; }
.auth-card h1 { font-size: 27px; }
.auth-card .muted { font-size: 13px; }
.stack { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #525660; font-size: 13px; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #dfe1e7; border-radius: 8px; padding: 12px 13px; color: var(--text); background: #fff; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8b8e96; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #df00180d; }
.footnote { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.verification-row button { min-height: 46px; padding-inline: 12px; }
.auth-feedback { color: var(--muted); font-size: 12px; line-height: 1.6; margin: -8px 0 0; }
.auth-feedback.error { color: var(--danger); }
.auth-recovery { justify-self: end; font-size: 12px; margin-top: -8px; }
.device-group + .device-group { margin-top: 42px; padding-top: 32px; border-top: 1px solid #dcdfe5; }
.device-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 25px; padding: 24px 28px; border-radius: 14px; background: #222329; color: #fff; }
.device-card h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.device-card p { margin: 9px 0 0; color: #b4b6be; font-size: 12px; line-height: 1.6; }
.device-card .device-id { color: #dedfe3; overflow-wrap: anywhere; }
.device-card .last-seen { font-size: 11px; color: #9c9faa; }
.device-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.device-facts span { padding: 5px 8px; border: 1px solid #4a4c55; border-radius: 999px; color: #d9dbe1; background: #2b2d33; font-size: 10px; }
.device-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.device-controls form { margin: 0; }
.device-controls .secondary { min-height: 38px; color: #fff; border-color: #555862; background: #2d2f36; }
.device-controls .secondary:hover { background: #383a43; border-color: #6c707c; }
.device-controls .secondary:disabled { color: #898c95; border-color: #44464d; background: #292a30; }
.device-card .device-control-note { margin-top: 8px; max-width: 620px; font-size: 11px; }
.device-command { max-width: 620px; margin-top: 14px; padding: 13px 14px; border: 1px solid #494b54; border-radius: 10px; background: #292a30; }
.device-command-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-command-head strong { font-size: 12px; }
.device-command .status { flex-shrink: 0; color: #d8dae0; background: #3a3c44; font-size: 10px; }
.device-command .status.succeeded { color: #a9d9b8; background: #294032; }
.device-command .status.failed { color: #efb3bd; background: #4b2d33; }
.device-command-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; }
.device-command-progress progress { width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; background: #43454d; accent-color: var(--accent); }
.device-command-progress progress::-webkit-progress-bar { background: #43454d; }
.device-command-progress progress::-webkit-progress-value { background: var(--accent); }
.device-command-progress span { color: #c8cad1; font-size: 10px; }
.device-command p { margin-top: 7px; font-size: 11px; }
.device-deactivate { margin-top: 14px; }
.device-deactivate .secondary { color: #fff; border-color: #555862; background: #2d2f36; }
.device-deactivate .secondary:hover { background: #383a43; border-color: #6c707c; }
.device-deactivate .secondary:disabled { opacity: .5; cursor: default; }
.device-card .device-deactivate-note { margin-top: 7px; max-width: 520px; font-size: 11px; }
.device-status { display: flex; gap: 8px; align-items: center; color: #c4c6ce; font-size: 12px; margin-bottom: 16px; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #9296a3; }
.dot.seen { background: #a9bdad; }
.dot.online { background: #4fd078; box-shadow: 0 0 0 4px #4fd07820; }
.dot.offline { background: #9499a3; }
.dot.unknown { background: #e6b65b; }
.usb-block { width: 68px; height: 88px; margin: 2px 8px; border: 1px solid #555760; border-radius: 13px; display: grid; place-items: center; background: #313239; color: #c7c9d0; transform: rotate(7deg); }
.usb-block .icon { width: 31px; height: 31px; }
.device-app-link { display: inline-block; margin-top: 18px; min-height: 44px; align-content: center; color: #fff; font-size: 13px; }
.device-app-link:hover { color: #fff; text-decoration: underline; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.section-title h2 { margin: 0; }
.section-title span { color: var(--muted); font-size: 12px; }
.app-section-title { margin-top: 29px; }
.product-grid { padding: 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.product-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 24px 0; }
.product-card + .product-card { border-top: 1px solid var(--line); }
.app-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #555057; background: #f6f3f2; }
.app-icon .icon { width: 24px; height: 24px; }
.product-copy h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.5; }
.product-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.ownership { margin-top: 7px; color: #858891; font-size: 11px; line-height: 1.6; }
.ownership.owned { color: var(--success); }
.product-action { min-width: 92px; text-align: right; }
.product-price { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
.product-action button { min-width: 80px; }
.action-stack { display: grid; gap: 8px; }
.action-stack form, .action-stack button { width: 100%; }
.app-more { text-align: center; }
.app-more summary { display: flex; justify-content: center; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.app-more summary::-webkit-details-marker { display: none; }
.app-more summary::after { content: "⌄"; margin-left: 6px; }
.app-more[open] summary::after { content: "⌃"; }
.app-more summary:hover { color: var(--text); background: var(--panel-2); }
.app-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-more form { margin-top: 4px; }
.catalog-empty { margin: 0; padding: 30px 0; color: var(--muted); font-size: 13px; }
.install-process { display: flex; align-items: center; gap: 0; list-style: none; margin: 23px 0 0; padding: 0; color: var(--muted); font-size: 11px; }
.install-process li { display: flex; align-items: center; gap: 6px; }
.install-process li + li::before { content: ""; width: 38px; height: 1px; margin: 0 10px; background: #d9dade; }
.install-process span { background: #e7e8eb; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.console-tip { font-size: 12px; line-height: 1.8; margin: 20px 0 0; color: var(--muted); }
.mobile-only, .mobile-task, .mobile-nav { display: none; }
.empty-state { text-align: center; padding: 54px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.device-orbit { width: 66px; height: 66px; margin: 0 auto 26px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 8px #df001808; }
.device-orbit img { display: block; flex-shrink: 0; width: 82px; height: 82px; max-width: none; }
.jobs { margin-top: 38px; }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.job-row div { display: grid; gap: 6px; min-width: 0; }
.job-row strong { font-size: 13px; font-weight: 550; }
.job-row span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.job-row .status { flex-shrink: 0; }
.status { padding: 5px 9px; border-radius: 99px; background: #e9ebef; }
.status.succeeded { color: var(--success); background: #e8f3ec; }
.status.failed { color: var(--danger); background: #f9e8ec; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; background: #fff; border-top: 1px solid var(--line); color: #888b92; font-size: 11px; }
.footer-brand { width: 126px; height: 30px; }
.footer-brand .brand-wordmark { width: 138px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric-grid article { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.metric-grid strong { font-size: 27px; font-weight: 600; }
.metric-grid span { color: var(--muted); font-size: 12px; }
.operation-overview { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff, #f8f9fb); }
.operation-overview > .section-title { margin-bottom: 16px; }
.operation-overview > .section-title h2 { margin-top: 2px; }
.operation-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; }
.operation-metric-grid article { background: #fff; }
.operations-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.operations-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; margin-top: 18px; }
.operations-panel { padding: 19px; }
.operations-panel .section-title { margin-bottom: 9px; }
.operations-panel h3 { font-size: 15px; }
.failure-reason-list, .recent-failure-list { display: grid; }
.failure-reason-list > div, .recent-failure-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.failure-reason-list span, .recent-failure-list span { display: grid; gap: 4px; min-width: 0; }
.failure-reason-list strong, .recent-failure-list strong, .recent-failure-list b { font-size: 12px; overflow-wrap: anywhere; }
.failure-reason-list small, .recent-failure-list small, .recent-failure-list time { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.failure-reason-list > div > b { min-width: 31px; padding: 5px 8px; border-radius: 99px; color: var(--danger); background: #fff0f2; font-size: 12px; text-align: center; }
.recent-failure-list > div > span:last-child { flex-shrink: 0; text-align: right; }
.admin-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.admin-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.admin-panel h2 { margin-bottom: 8px; }
.compact-stack { margin-top: 18px; gap: 13px; }
.mini-list { display: grid; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.signing-panel { margin-top: 16px; }
.signing-panel .section-title h2 { margin-bottom: 0; }
.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 14px; }
.inline-upload { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); min-width: 0; }
.inline-upload input[type=file] { font-size: 12px; }
.danger-link { color: var(--danger); font-size: 13px; }
.crl-state { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.crl-state.good { color: var(--success); background: #edf6ef; }
.crl-state.bad { color: var(--danger); background: #fff0f2; }
.admin-section { margin-top: 38px; }
.admin-device-list { display: grid; gap: 12px; }
.admin-device-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.device-primary h3 { margin: 9px 0 7px; font-size: 15px; overflow-wrap: anywhere; }
.device-primary p { color: var(--muted); font-size: 12px; }
.status-badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: var(--muted); background: var(--panel-2); font-size: 10px; letter-spacing: .04em; }
.status-active, .status-provisioned { color: var(--success); background: #edf6ef; }
.status-suspended { color: #94722c; background: #fff7e6; }
.status-revoked, .status-retired { color: var(--danger); background: #fff0f2; }
.device-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.device-facts div { min-width: 0; }
.device-facts dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.device-facts dd { margin: 3px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.device-admin-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; grid-column: 1 / -1; }
.device-admin-actions .status-form { flex-basis: 100%; }
.status-form { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px; }
.status-form select { padding: 9px 11px; font-size: 12px; }
.certificate-details { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.certificate-details summary { cursor: pointer; }
.certificate-details code { display: block; margin-top: 7px; overflow-wrap: anywhere; }
.audit-list { border-top: 1px solid var(--line); }
.audit-list > div { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr auto; gap: 15px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 12px; }
.audit-list strong, .audit-list span, .audit-list time { overflow-wrap: anywhere; }
.audit-list span, .audit-list time { color: var(--muted); }
@media (max-width: 1000px) {
  .dashboard-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .admin-grid, .import-grid, .operations-grid { grid-template-columns: 1fr; }
  .operation-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audit-list > div { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .sidebar { padding: 24px 10px; }
  .nav-item { gap: 8px; font-size: 12px; }
  .shell { padding: 28px 24px 44px; }
  .product-card { grid-template-columns: 40px minmax(0, 1fr); gap: 13px; }
  .app-icon { width: 40px; height: 40px; }
  .product-action { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
  .product-price { margin: 0; }
  .action-stack { max-width: 220px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .operation-overview { padding: 18px; }
  .operation-metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-device-row { grid-template-columns: 1fr; }
  .status-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 78px; }
  body { background: #f8f8fa; }
  .topbar { min-height: 64px; padding: 8px 20px; gap: 10px; box-shadow: 0 1px 8px #1c202a08; }
  .brand { width: 156px; height: 32px; }
  .brand-wordmark { width: 168px; }
  .account > span, .header-caption { display: none; }
  .account { gap: 0; }
  .app-layout { display: block; }
  .sidebar { display: none; }
  .shell, .signed-out .shell { width: 100%; padding: 25px 20px calc(116px + env(safe-area-inset-bottom)); }
  .signed-out .shell { padding-bottom: 42px; }
  .mobile-only { display: inline; }
  .desktop-only { display: none; }
  h1 { font-size: 29px; }
  .dashboard-head { align-items: flex-start; gap: 17px; margin-bottom: 22px; }
  .dashboard-head h1 { margin-bottom: 5px; }
  .dashboard-head .muted { font-size: 12px; }
  .dashboard-head > .secondary { min-height: 38px; padding: 0 12px; }
  .device-group + .device-group { margin-top: 30px; padding-top: 25px; }
  .device-card { padding: 20px; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 8px 24px #1c202a06; }
  .device-card h2 { font-size: 17px; }
  .device-card p, .device-card .device-id { color: var(--muted); }
  .device-card .last-seen { color: #8b8d95; }
  .device-facts { gap: 6px; }
  .device-facts span { color: #5d616a; border-color: #e4e5e9; background: #f7f7f8; }
  .device-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .device-controls form, .device-controls .secondary { width: 100%; }
  .device-controls .secondary { color: var(--text); border-color: var(--line); background: #fff; }
  .device-controls .secondary:hover { background: var(--panel-2); border-color: #cdd0d7; }
  .device-controls .secondary:disabled { color: #8a8d95; border-color: #eceef1; background: #f2f3f5; }
  .device-command { border-color: #ececef; background: #fafafa; }
  .device-command .status { color: #676b74; background: #eceef1; }
  .device-command .status.succeeded { color: var(--success); background: #e8f3ec; }
  .device-command .status.failed { color: var(--danger); background: #f9e8ec; }
  .device-command-progress progress { background: #e4e5e8; }
  .device-command-progress progress::-webkit-progress-bar { background: #e4e5e8; }
  .device-command-progress span { color: var(--muted); }
  .device-deactivate .secondary { color: var(--danger); border-color: #e8c3ca; background: #fff7f8; }
  .device-deactivate .secondary:hover { background: #fff0f2; border-color: #dcaab4; }
  .device-status { margin-bottom: 11px; color: #696d76; font-weight: 600; }
  .device-status .dot.seen { background: #88929c; }
  .usb-block { width: 52px; height: 66px; margin: 0; border: 1px solid #f7d8dc; border-radius: 12px; background: #fff1f2; color: var(--accent); transform: rotate(5deg); }
  .usb-block .icon { width: 28px; height: 28px; }
  .device-app-link { color: var(--accent); }
  .device-app-link:hover { color: var(--accent-2); }
  .mobile-task { display: block; margin-top: 14px; padding: 17px 19px; border: 1px solid #f3dfe2; border-left: 3px solid var(--accent); border-radius: 13px; background: #fff; }
  .mobile-task-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .mobile-task-heading h3 { margin: 0; font-size: 13px; }
  .mobile-task-heading span { flex-shrink: 0; border-radius: 99px; padding: 4px 8px; color: var(--accent); background: #fff0f2; font-size: 11px; }
  .mobile-task-name { margin: 9px 0 0; font-size: 13px; font-weight: 600; }
  .mobile-task-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
  .app-section-title { margin-top: 27px; }
  .product-grid { padding: 0 17px; border-radius: 14px; }
  .product-card { grid-template-columns: 42px minmax(0, 1fr); gap: 11px 13px; padding: 18px 0; }
  .app-icon { width: 42px; height: 42px; }
  .product-copy h3 { font-size: 15px; }
  .product-copy p { font-size: 11px; }
  .product-action { grid-column: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; text-align: left; }
  .product-price { margin: 0; font-size: 11px; }
  .product-action .action-stack { width: min(100%, 220px); max-width: 220px; }
  .product-action form { margin: 0; }
  .product-action button { min-height: 38px; }
  .install-process { margin-top: 18px; }
  .install-process li + li::before { width: 26px; margin: 0 8px; }
  .jobs { display: none; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: stretch; justify-content: space-around; min-height: calc(66px + env(safe-area-inset-bottom)); padding: 5px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -3px 16px #1c202a0a; }
  .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 3px; flex: 1; min-width: 0; color: #858891; font-size: 10px; font-weight: 600; }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav .icon { width: 21px; height: 21px; }
  /* Administrator management panel (issue 91): a native details/summary
     disclosure, so the panel opens, closes and reports its expanded state
     without JavaScript; navigation.js only adds Escape/outside-tap closing.
     The panel spans the bar above it, scrolls when a short viewport needs
     it, and keeps large touch targets with visible focus outlines. */
  .mobile-nav .mobile-admin { display: grid; flex: 1; min-width: 0; }
  .mobile-nav .mobile-admin > summary { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 44px; color: #858891; font-size: 10px; font-weight: 600; cursor: pointer; list-style: none; }
  .mobile-nav .mobile-admin > summary::-webkit-details-marker { display: none; }
  .mobile-nav .mobile-admin > summary:hover { color: var(--text); }
  .mobile-nav .mobile-admin > summary.active { color: var(--accent); }
  .mobile-nav .mobile-admin[open] > summary { color: var(--accent); }
  .mobile-nav .mobile-admin > summary span::after { content: " ⌄"; }
  .mobile-nav .mobile-admin[open] > summary span::after { content: " ⌃"; }
  .mobile-nav .mobile-admin-panel { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 10px); display: grid; max-height: calc(100vh - 150px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 -8px 28px #1c202a1a; }
  .mobile-nav .mobile-admin-panel a { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: #666973; font-size: 13px; font-weight: 550; }
  .mobile-nav .mobile-admin-panel a:hover { background: var(--panel-2); }
  .mobile-nav .mobile-admin-panel a.active { color: var(--accent); background: #fff0f1; font-weight: 600; }
  .mobile-nav .mobile-admin-panel .icon { width: 18px; height: 18px; }
  @supports (height: 100dvh) {
    .mobile-nav .mobile-admin-panel { max-height: calc(100dvh - 150px); }
  }
  @supports (left: max(10px, env(safe-area-inset-left))) {
    .mobile-nav .mobile-admin-panel { left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); }
  }
  .section-title { gap: 10px; }
  .section-title span { font-size: 11px; }
  .signing-panel .section-title { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 25px; margin: 5px auto; }
  .auth-card h1 { font-size: 25px; }
  input, select, textarea { font-size: 16px; }
  .admin-panel { padding: 20px; }
  .site-footer { padding: 12px 20px; gap: 12px; }
  .signed-in .site-footer { display: none; }
  .footer-brand { width: 116px; height: 28px; }
  .footer-brand .brand-wordmark { width: 126px; }
  .site-footer > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Administrator operations; no controls/scripts are included in customer pages. */
.ops-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.ops-search,.ops-filter,.ops-buttons,.ops-pagination{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.ops-search label{flex:1;min-width:0}.ops-search{margin:24px 0 12px}.ops-filter label{display:grid;gap:6px}
.ops-device-list{display:grid;gap:20px}.ops-device{min-width:0}.ops-device h2{font-size:18px;overflow-wrap:anywhere}
.ops-device .device-facts{margin:20px 0}.ops-controls{margin-top:20px}.ops-controls summary{font-weight:600;cursor:pointer}
.ops-controls form{max-width:700px;margin:20px 0}.ops-buttons button{width:auto}.ops-pagination{justify-content:center;margin:24px}
.ops-import{margin-top:32px}.ops-import form{max-width:620px}.ops-controls hr{border:0;border-top:1px solid #e5e7eb;margin:24px 0}
.table-wrap{width:100%;min-width:0;overflow-x:auto}.table-wrap table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.table-wrap th{color:#6b7280;font-weight:500;text-align:left}.table-wrap th,.table-wrap td{padding:12px 10px;border-bottom:1px solid #edf0f3;vertical-align:top;overflow-wrap:anywhere}.table-wrap small{color:#717781}.ops-device .table-wrap table,.ops-activity table,.ops-audit table{min-width:620px}.ops-activity .table-wrap,.ops-audit .table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.danger-button{background:#fff;border:1px solid #bb2525;color:#a51f1f;border-radius:10px;padding:10px 16px;font-weight:600;cursor:pointer}
button:disabled{opacity:.4;cursor:not-allowed}.admin-panel .table-wrap{max-width:100%}.admin-panel td{overflow-wrap:anywhere}
@media(max-width:760px){.ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-filter{width:100%}.ops-device .device-facts{grid-template-columns:1fr}.ops-buttons{display:grid;grid-template-columns:1fr}.ops-buttons button{width:100%}.ops-search button{width:100%}.ops-device{padding:18px}.ops-device code{font-size:11px}}
/* Product review follows the existing console palette on desktop and mobile. */
.edition-status { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line, #27313b); border-radius: 12px; }
.edition-status strong { color: var(--accent, #64e7bf); }
.edition-status p { margin: 6px 0 0; font-size: 14px; }
.edition-review { margin: 18px 0; padding: 16px; border: 1px solid var(--line, #27313b); border-radius: 12px; }

/* Administrator live task progress (read-only view, issue 84). */
.admin-live { margin: 18px 0; padding: 16px; border: 1px solid var(--line, #27313b); border-radius: 12px; background: var(--panel-2, #f6f7f9); }
.admin-live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.admin-live-head h3 { margin: 0; font-size: 15px; }
.live-conn { margin: 0; font-size: 11px; color: var(--muted, #6b7280); }
.live-conn.ok { color: var(--success, #1f9d55); }
.live-conn.stale { color: #94722c; }
.admin-live-body { display: grid; gap: 7px; margin-top: 12px; font-size: 13px; }
.admin-live-body p { margin: 0; }
.live-heading { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.live-title { font-weight: 600; overflow-wrap: anywhere; }
.live-meta { font-size: 12px; }
.live-note { font-size: 11px; }
.admin-live .device-command-progress { margin-top: 4px; }
.admin-live [data-presence] { display: inline-flex; align-items: center; gap: 6px; }
/* Key number opens the live detail page; inherits panel typography. */
.section-title h2 a { color: inherit; }
