/* Self-hosted presentation only. No remote assets, fonts or scripts. */
:root {
  color-scheme: light;
  --ink: #1d2839; --muted: #667386; --line: #e4e9f0; --bg: #f5f7fb;
  --card: #fff; --nav: #172334; --blue: #2457c5; --ok: #187145;
  --warn: #875900; --bad: #a72c32; --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #5783e7; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; line-height: 1.35; letter-spacing: -.6px; }
h2 { margin-bottom: 4px; font-size: 17px; line-height: 1.5; }
h3 { font-size: 15px; }
search { display: block; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 16px; background: #fff; border-radius: 6px; }
.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 28px 18px 20px; background: var(--nav); color: #e7edf6; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: #fff; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #658fe9; border-radius: 10px; background: #2c5dc4; color: #fff; font-size: 24px; font-weight: 750; }
.brand-subtitle { display: block; margin-top: 4px; color: #aab9cd; font-size: 11px; font-weight: 400; letter-spacing: 1px; }
.nav-caption { margin: 40px 12px 12px; color: #91a1b9; font-size: 11px; letter-spacing: 1px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 13px; border-radius: 8px; border-inline-start: 3px solid transparent; background: transparent; color: #cfdae9; font-weight: 500; }
.nav-link:hover { background: #243650; color: #fff; text-decoration: none; }
.nav-link[aria-current="page"] { background: #293d59; border-inline-start-color: #7aa7ff; color: #fff; font-weight: 600; }
.nav-symbol { color: #a8c7ff; font-size: 19px; line-height: 1; }
.nav-arrow { margin-left: auto; color: #a8c0df; font-size: 20px; }
.sidebar-context { margin: 28px 12px; color: #cfdae9; font-size: 12px; }
.sidebar-context > span:last-child { display: block; padding-top: 6px; color: #94a6bf; font-size: 11px; }
.context-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #90a8c9; }
.account { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 20px; border-top: 1px solid #304055; min-width: 0; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; background: #30425c; color: #c0d1e7; font-size: 12px; }
.account > div { min-width: 0; flex: 1; }
.account strong { display: block; color: #e3eaf3; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; }
.account div > span { display: block; color: #94a6bf; font-size: 10px; }
.logout { border: 1px solid #45566e; border-radius: 6px; padding: 4px 7px; color: #d6e0ef; background: transparent; font-size: 11px; cursor: pointer; white-space: nowrap; }
.logout:hover { background: #30425c; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 16px 36px; border-bottom: 1px solid var(--line); background: #fff; color: #627086; font-size: 12px; }
.breadcrumb-separator { margin: 0 12px; color: #b7c1d0; }
.topbar-note { border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; color: #6a778b; font-size: 11px; white-space: nowrap; }
main { width: 100%; max-width: 1450px; margin: 0 auto; padding: 32px 36px 16px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.section-kicker { display: block; margin-bottom: 8px; color: #567098; font-size: 11px; letter-spacing: 1px; font-weight: 600; }
.lead { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.observation { text-align: right; padding-bottom: 2px; }
.observation span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.observation strong { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.metrics { display: grid; gap: 16px; margin-bottom: 26px; }
.metrics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 21px 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.metric > span { display: block; color: #5e6e84; font-size: 12px; }
.metric > strong { display: block; margin: 9px 0 7px; color: #213552; font-size: 31px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.metric small { margin-left: 8px; color: #8995a6; font-size: 11px; font-weight: 400; }
.metric p { margin-bottom: 0; color: #788597; font-size: 11px; }
.panel { margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 19px; border-bottom: 1px solid var(--line); }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.count { display: inline-block; min-width: 25px; margin-left: 5px; padding: 0 7px; border-radius: 5px; background: #edf1f7; color: #6c7d96; text-align: center; vertical-align: 1px; font-size: 11px; font-weight: 500; }
.quiet-label { color: #8090a4; font-size: 11px; white-space: nowrap; }
.action-links { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-panel { padding: 20px 24px; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.filter-field { min-width: 0; }
.filter-field-wide { grid-column: span 2; }
.filter-field label { display: block; margin-bottom: 6px; color: #485c77; font-size: 12px; font-weight: 500; }
.filter-field input, .filter-field select { display: block; width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #d8e0ec; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.filter-field input::placeholder { color: #9ba7b8; }
.filter-actions { display: flex; align-items: center; gap: 10px; }
.table-wrapper { overflow-x: auto; max-width: 100%; container-type: inline-size; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; padding: 12px 20px; background: #f9fafd; color: #718096; font-size: 11px; font-weight: 500; }
td { padding: 18px 20px; border-top: 1px solid #edf0f5; vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: #fcfdff; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
.msg-body { max-width: 440px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.55; }
.company-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.company-name > div { min-width: 0; }
.company-monogram { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 9px; background: #edf3fe; border: 1px solid #e3ebfb; color: #4b73b2; font-size: 14px; }
.primary-link { color: #2a3f5d; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.secondary-text { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.3px; }
.company-name .mono { font-size: 10px; color: #8994a6; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.badge::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #edf8f1; color: var(--ok); border-color: #d9efdf; }
.badge-warn { background: #fff8e8; color: var(--warn); border-color: #f3e7c9; }
.badge-bad { background: #fff0f0; color: var(--bad); border-color: #f2d8db; }
.badge-neutral { background: #f1f4f8; color: #63738a; border-color: #e6ebf1; }
.compact-badge { margin: 8px 0 0 46px; padding: 1px 6px; font-size: 10px; }
.compact-health-badge { margin-top: 6px; padding: 1px 6px; font-size: 10px; }
.table-number { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timestamp { font-variant-numeric: tabular-nums; }
.row-action { text-align: right; white-space: nowrap; }
.text-link { font-size: 12px; font-weight: 500; }
.text-link > span[aria-hidden] { padding-left: 6px; }
.empty-state { padding: 54px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 10px 0 5px; color: #4b5e78; }
.empty-state p { margin-bottom: 0; font-size: 12px; }
.empty-symbol { display: inline-grid; place-items: center; width: 45px; height: 45px; border: 1px solid #e5ebf4; border-radius: 12px; background: #f6f8fc; color: #8399b8; font-size: 23px; }
.view-note { display: flex; align-items: flex-start; gap: 9px; color: #7a8799; font-size: 11px; }
.view-note p { margin-bottom: 0; }
.info-mark { display: inline-grid; place-items: center; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; border: 1px solid #9dacc2; border-radius: 50%; font-size: 10px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 24px 36px; color: #8995a5; font-size: 10px; }
.back-link { display: inline-flex; gap: 8px; margin-bottom: 20px; color: #637694; font-size: 12px; }
.sync-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 24px; }
.sync-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.sync-overview p { margin: 9px 0 0; font-size: 11px; }
.sync-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; align-self: center; }
dt { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
dd { margin: 0; color: #42546f; font-size: 12px; overflow-wrap: anywhere; }
.notice { margin-bottom: 20px; padding: 12px 16px; border: 1px solid #dce6f8; border-radius: 8px; background: #eff4fe; color: #45608b; font-size: 12px; }
.notice-warn { border-color: #efe1bf; background: #fff9ec; color: var(--warn); }
.notice-bad { border-color: #edd4d8; background: #fff3f3; color: var(--bad); }
.muted { color: var(--muted); }
.text-warn { color: var(--warn); }
.device-label { display: block; color: #2f435f; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.record-label { font-size: 12px; }
.sync-details > summary { display: flex; align-items: center; gap: 12px; padding: 20px 24px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.sync-details > summary::-webkit-details-marker { display: none; }
.sync-details > summary::after { content: "+"; margin-left: auto; color: #637793; font-size: 20px; font-weight: 400; line-height: 1; }
.sync-details[open] > summary::after { content: "−"; }
.summary-hint { color: #8592a5; font-size: 11px; font-weight: 400; }
.details-body { padding: 0 24px 24px; border-top: 1px solid var(--line); font-size: 12px; }
.details-body > p { margin-top: 18px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 20px 0 24px; }
.diagnostic-grid > div { min-width: 0; }
code { border-radius: 4px; background: #f4f6f9; color: #52647e; padding: 2px 4px; font-size: 11px; overflow-wrap: anywhere; }
.device-diagnostic { margin: 10px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; }
.device-diagnostic summary { cursor: pointer; overflow-wrap: anywhere; }
.device-diagnostic summary span { margin-left: 8px; }
.json-link { display: inline-block; margin-top: 18px; }
.auth-shell { grid-template-columns: minmax(280px, 36%) minmax(0, 1fr); }
.auth-shell .sidebar { padding: 38px; }
.sidebar-intro { margin: auto 0; padding: 55px 10px; }
.eyebrow { color: #829cbe; font-size: 10px; letter-spacing: 3px; }
.sidebar-intro h1 { margin: 22px 0; color: #f0f4fa; font-size: 30px; font-weight: 600; line-height: 1.7; }
.sidebar-intro > p:last-child { max-width: 260px; color: #9cafc8; font-size: 13px; line-height: 1.9; }
.sidebar-footnote { margin: 0 10px; color: #8195b0; font-size: 10px; }
.auth-shell main { display: grid; place-items: center; flex: 1; padding: 48px 24px; }
.login-card { width: 100%; max-width: 410px; padding: 36px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 30px #20396005; }
.login-card h1 { font-size: 25px; }
.login-form { margin-top: 29px; }
.login-form label { display: block; margin: 19px 0 8px; color: #485c77; font-size: 12px; font-weight: 500; }
.login-form input:not([type=hidden]) { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d8e0ec; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.login-form input::placeholder { color: #9ba7b8; }
input:user-invalid, select:user-invalid { border-color: var(--bad); background: #fffafa; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; }
.button-primary { width: 100%; min-height: 44px; margin-top: 27px; background: var(--blue); color: #fff; }
.button-primary:hover { background: #1c49aa; }
.button-inline { background: var(--blue); color: #fff; white-space: nowrap; }
.button-inline:hover { background: #1c49aa; }
.button-secondary { border: 1px solid #d8e0ec; background: #fff; color: #485c77; white-space: nowrap; }
.button-secondary:hover { background: #f5f7fb; }
.login-note { margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 18px; color: #8390a3; font-size: 11px; }
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 208px minmax(0, 1fr); }
  .auth-shell { grid-template-columns: minmax(260px, 34%) minmax(0, 1fr); }
  main { padding: 28px 24px 16px; }
  .topbar { padding: 16px 24px; }
  .page-footer { padding: 24px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .metric { padding: 18px 16px; }
  .metrics-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sync-overview { grid-template-columns: 1fr; gap: 20px; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-field-wide { grid-column: span 2; }
}
@media (max-width: 800px) {
  .app-shell, .auth-shell { display: block; }
  .sidebar, .auth-shell .sidebar { position: static; height: auto; padding: 18px 20px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  .brand { padding: 0; font-size: 17px; gap: 9px; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 20px; border-radius: 8px; }
  .brand-subtitle { font-size: 10px; letter-spacing: .5px; }
  .nav-caption, .sidebar-context, .avatar { display: none; }
  .sidebar nav { grid-column: 1 / -1; grid-row: 2; }
  .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-link { min-height: 36px; padding: 5px 12px; font-size: 12px; }
  .nav-symbol { font-size: 18px; }
  .account { padding: 0; margin: 0; border: 0; gap: 12px; }
  .account strong { max-width: 100px; font-size: 11px; }
  .account div > span { font-size: 9px; }
  .sidebar-intro, .sidebar-footnote { display: none; }
  .topbar { min-height: 50px; padding: 12px 20px; font-size: 11px; }
  .topbar-note { font-size: 10px; padding: 2px 7px; }
  main { padding: 24px 20px 12px; }
  .page-heading { align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  h1 { font-size: 25px; }
  .observation { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; }
  .observation span { margin: 0; }
  .metrics { gap: 10px; margin-bottom: 22px; }
  .metric { padding: 16px 14px; }
  .metric > span { font-size: 11px; }
  .metric > strong { font-size: 27px; }
  .metric p { font-size: 10px; }
  .metric small { margin-left: 4px; font-size: 10px; }
  .panel-heading { align-items: flex-start; padding: 18px; }
  .quiet-label { display: none; }
  .filter-panel { padding: 18px; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-field-wide { grid-column: span 1; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; }
  .responsive-table thead { display: none; }
  .responsive-table tr { padding: 19px 18px; border-bottom: 1px solid var(--line); }
  .responsive-table tr:last-child { border-bottom: 0; }
  .responsive-table td, .responsive-table th { padding: 0; border: 0; }
  .responsive-table td:not(:first-child):not(.row-action) { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 8px; align-items: start; margin-top: 16px; }
  .responsive-table td[data-label]:not(:first-child)::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 5; color: #7c899c; font-size: 11px; }
  .responsive-table td:not(:first-child) > * { grid-column: 2; justify-self: start; }
  .responsive-table td:not(:first-child) > .secondary-text { margin-top: 4px; }
  .responsive-table .row-action { margin-top: 16px; text-align: left; }
  .table-number { line-height: 1.2; }
  .company-monogram { width: 34px; height: 34px; flex-basis: 34px; }
  .compact-badge { margin-left: 45px; }
  .sync-overview { padding: 20px; }
  .sync-times { gap: 16px; }
  .sync-times dd { font-size: 11px; }
  .sync-details > summary { padding: 18px; flex-wrap: wrap; gap: 6px 12px; }
  .summary-hint { font-size: 10px; }
  .details-body { padding: 0 18px 20px; }
  .diagnostic-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-footer { padding: 24px 20px; }
  .auth-shell .workspace { min-height: calc(100svh - 82px); }
  .auth-shell main { padding: 35px 20px; }
  .login-card { padding: 28px; }
}
@media (max-width: 380px) {
  .sidebar, .auth-shell .sidebar { padding: 16px; }
  .account { gap: 7px; }
  .account strong { max-width: 76px; }
  main { padding: 22px 16px 12px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .metric { padding: 14px 10px; }
  .metric > strong { font-size: 25px; }
  .metric p { line-height: 1.6; }
  .responsive-table td:not(:first-child):not(.row-action) { grid-template-columns: 104px minmax(0, 1fr); }
  .summary-hint { display: none; }
  .sync-times { grid-template-columns: 1fr; }
  .page-footer { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto; } }
@container (width < 680px) {
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; }
  .responsive-table thead { display: none; }
  .responsive-table tr { padding: 19px 18px; border-bottom: 1px solid var(--line); }
  .responsive-table tr:last-child { border-bottom: 0; }
  .responsive-table td, .responsive-table th { padding: 0; border: 0; }
  .responsive-table td:not(:first-child):not(.row-action) { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 8px; align-items: start; margin-top: 16px; }
  .responsive-table td[data-label]:not(:first-child)::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 5; color: #7c899c; font-size: 11px; }
  .responsive-table td:not(:first-child) > * { grid-column: 2; justify-self: start; }
  .responsive-table td:not(:first-child) > .secondary-text { margin-top: 4px; }
  .responsive-table .row-action { margin-top: 16px; text-align: left; }
}
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
