:root { --canvas: #f3f6fa; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 34px 20px 24px; background: #17334d; color: #c4d4e1; display: flex; flex-direction: column; z-index: 5; }
.sidebar-brand { display: flex; align-items: center; gap: 13px; padding: 0 12px; margin-bottom: 48px; border: 0; background: transparent; color: white; text-align: left; font-size: 24px; font-weight: 650; line-height: 1.2; }
.sidebar-logo { display: grid; place-items: center; position: relative; width: 42px; height: 44px; font-size: 32px; font-weight: 750; color: #86d7cb; border: 1px solid #527084; border-radius: 10px; }
.sidebar-logo > span { position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; background: #6fd0bd; border: 3px solid #17334d; border-radius: 50%; }
.sidebar-brand-caption { display: block; font-size: 11px; color: #b2c8d9; margin-top: 7px; letter-spacing: 3px; }
.dashboard-navigation { display: flex; flex-direction: column; gap: 7px; }
.dashboard-navigation > button { display: flex; align-items: center; min-height: 47px; gap: 13px; border: 0; padding: 12px 15px; text-align: left; color: #c6d7e4; background: transparent; border-radius: 8px; font-weight: 550; }
.dashboard-navigation > button:hover { background: #24455e; color: white; }
.dashboard-navigation > button[aria-current="page"] { background: #e8f5f4; color: #125b5c; }
.dashboard-navigation svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; font-size: 11px; opacity: .8; }
.sidebar-footer { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 22px 12px 0; border-top: 1px solid #35526a; font-size: 11px; }
.sidebar-footer strong { display: block; color: #d1e2ed; font-weight: 500; margin-bottom: 5px; }
.sidebar-footer span:last-child { color: #9ab4c8; font-size: 10px; }
.sidebar-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #71cdbc; margin-top: 5px; flex-shrink: 0; }
body[data-mode="dashboard"] .topbar { max-width: none; margin-left: 236px; min-height: 76px; padding: 16px 36px; background: white; border-bottom: 1px solid var(--line); }
body[data-mode="dashboard"] .topbar > .brand { display: none; }
body[data-mode="dashboard"] main { margin-left: 236px; max-width: none; padding: 0 36px 30px; }
.section-breadcrumb { order: -1; color: var(--muted); font-size: 12px; }
.dashboard { max-width: 1440px; margin: 0 auto; }
.page-heading { padding: 30px 0 26px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.8px; }
#page-title { scroll-margin-top: 75px; }
.page-heading p { margin-top: 6px; color: var(--muted); }
.snapshot-time { font-size: 10px; }
.snapshot-time strong { font-size: 12px; }
.personal-page { min-width: 0; }
.personal-page > .panel { margin-bottom: 22px; }
.home-status { display: flex; align-items: center; gap: 15px; padding: 22px 24px; border: 1px solid #cbdedb; background: #edf7f4; color: #1e6255; border-radius: 10px; margin-bottom: 22px; }
.home-status-mark { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 6px #18734413; margin: 0 4px; }
.home-status h2 { font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.home-status p { color: #4f6f67; font-size: 12px; }
.home-attention-count { margin-left: auto; padding: 5px 10px; border: 1px solid currentColor; border-radius: 20px; font-size: 11px; white-space: nowrap; }
.home-status[data-tone="warning"] { background: #fff8ec; border-color: #ead8b6; color: var(--amber); }
.home-status[data-tone="warning"] p { color: #796746; }
.home-status[data-tone="warning"] .home-status-mark { box-shadow: 0 0 0 6px #96500c0d; }
.home-status[data-tone="info"] { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.home-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 26px; overflow: hidden; }
.home-metric { min-width: 0; text-align: left; padding: 25px 24px; color: var(--navy); background: transparent; border: none; border-right: 1px solid var(--line); border-radius: 0; }
.home-metric:last-child { border-right: none; }
.home-metric:hover { background: #f7fafc; }
.home-metric > span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.home-metric > span::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.metric-services > span::before { background: var(--teal); }.metric-codex > span::before { background: var(--purple); }.metric-devices > span::before { background: #ad6c24; }
.home-metric > strong { display: block; margin: 11px 0 6px; font-size: clamp(23px,2.5vw,32px); font-weight: 650; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.home-metric > small { color: var(--muted); font-size: 11px; }
.home-columns { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 24px; }
.home-section { background: white; border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 24px 18px; border-bottom: 1px solid #e8eef3; }
.home-section-heading h2 { font-size: 15px; font-weight: 650; }
.home-section-heading > span { font-size: 11px; color: var(--muted); }
.text-button { padding: 6px 0; min-height: 32px; border: 0; background: transparent; color: var(--blue); font-size: 12px; white-space: nowrap; }
.text-button:hover { color: #133e82; text-decoration: underline; text-underline-offset: 3px; }
.home-section ul { list-style: none; padding: 0; margin: 0; }
.home-issue { display: flex; align-items: flex-start; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #edf1f5; }
.home-issue:last-child { border-bottom: none; }
.issue-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-top: 7px; flex-shrink: 0; }
.home-issue.is-error .issue-dot { background: var(--red); }.home-issue.is-info .issue-dot { background: var(--blue); }
.home-issue > div { min-width: 0; flex: 1; }
.home-issue strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.home-issue p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 4px; }
.home-issue .text-button { padding: 0; }
.home-section .home-clear-state { padding: 28px 24px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.home-service-list > li { display: grid; grid-template-columns: minmax(0,1fr) 76px 68px; align-items: center; gap: 12px; padding: 13px 24px; border-bottom: 1px solid #edf1f5; }
.home-service-list > li:last-child { border-bottom: none; }
.home-service-name { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.home-latency { font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.home-service-list .badge { justify-self: start; font-size: 10px; padding: 3px 7px; }
.home-section-note { padding: 15px 24px; font-size: 10px; line-height: 1.8; color: var(--muted); border-top: 1px solid #edf1f5; }
.home-domain-list > li, .home-device-list > li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #edf1f5; }
.home-domain-list > li:last-child,.home-device-list > li:last-child { border-bottom: none; }
.home-domain-list strong,.home-device-list strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.home-domain-list div > span,.home-device-list div > span { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.module-intro { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-bottom: 23px; padding: 21px 24px; border-left: 3px solid var(--teal); background: #e9f3f2; border-radius: 0 8px 8px 0; }
.module-intro h2 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.module-intro p { color: var(--muted); font-size: 12px; }
.module-chip { color: var(--teal); font-size: 11px; flex-shrink: 0; }
.module-footnote { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 18px 4px; }
.personal-page .site-table th:first-child { width: 38%; }.personal-page .site-table th:nth-child(2) { width: 25%; }
.personal-page .site-table th:nth-child(3) { width: 15%; }.personal-page .site-table th:last-child { width: auto; }
.personal-page .site-table td:last-child { text-align: right; }
.site-http { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-check-notice { padding: 12px 16px; margin: 0 26px 20px; background: var(--blue-soft); border-radius: 7px; color: var(--blue); font-size: 12px; }
.service-check-notice.is-error { background: var(--red-soft); color: var(--red); }
.codex-page { display: grid; gap: 24px; }
.codex-page > .panel { order: initial; margin-bottom: 0; }
#page-devices .device-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px; }
#page-devices .device-row { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
#page-devices .device-row:first-child { border-top: 1px solid var(--line); }
#page-devices .device-explanation { margin-top: 22px; }
.domain-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; margin-bottom: 24px; padding: 4px 0 18px; }
.domain-summary > div { border-left: 2px solid var(--blue-line); padding-left: 17px; }
.domain-summary > div:nth-child(2) { border-color: #abd0bd; }.domain-summary > div:nth-child(3) { border-color: #e2bd8f; }.domain-summary > div:nth-child(4) { border-color: var(--purple-line); }
.domain-summary span { color: var(--muted); display: block; font-size: 11px; }
.domain-summary strong { font-size: 28px; line-height: 1.2; display: block; margin-top: 9px; font-variant-numeric: tabular-nums; }
.domain-panel { --panel-accent: var(--blue); --panel-tint: #f8faff; }
.domain-panel .panel-heading { align-items: center; margin-bottom: 0; }
.domain-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.domain-heading-actions .button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.domain-notice { padding: 12px 16px; margin: 18px 24px 0; color: var(--blue); background: var(--blue-soft); font-size: 12px; border-radius: 6px; line-height: 1.8; }
.domain-notice.is-error { color: var(--red); background: var(--red-soft); }
.domain-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding: 22px 24px; }
.domain-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: var(--muted); }
.domain-filters .domain-search { margin-right: auto; flex: 1; max-width: 350px; min-width: 180px; }
.domain-filters input,.domain-filters select,.domain-token-row input,.domain-date-field input { min-height: 40px; background: white; border: 1px solid #c9d7e2; color: var(--navy); border-radius: 6px; padding: 9px 12px; font: inherit; font-size: 12px; min-width: 0; }
.domain-filters input:focus,.domain-token-row input:focus { border-color: var(--blue); }
.domain-table-wrap { overflow-x: auto; margin: 0 12px; }
.domain-table { width: 100%; min-width: 770px; border-collapse: collapse; text-align: left; }
.domain-table th { padding: 12px; background: #f6f9fc; font-size: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.domain-table td { padding: 17px 12px; border-bottom: 1px solid #e9eff4; vertical-align: middle; }
.domain-table tr:last-child td { border-bottom: none; }
.domain-name { display: block; text-decoration: none; font-size: 14px; font-weight: 600; }
.domain-name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.domain-date { display: block; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.domain-source { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.expiry-days { display: inline-flex; padding: 4px 8px; font-size: 11px; border-radius: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.expiry-days.is-good { color: var(--green); background: #eef7f1; }.expiry-days.is-soon { color: var(--amber); background: var(--amber-soft); }.expiry-days.is-expired { color: var(--red); background: var(--red-soft); }.expiry-days.is-unknown { color: var(--muted); background: #eef2f6; }
.domain-renew { font-size: 11px; color: var(--muted); white-space: nowrap; }
.domain-table .domain-empty { text-align: center; padding: 42px 20px; color: var(--muted); font-size: 12px; }
.domain-connection { border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.domain-connection > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 24px; font-size: 13px; font-weight: 600; cursor: pointer; }
.domain-connection > summary::before { content: '+'; color: var(--blue); font-size: 20px; font-weight: 400; line-height: 1; width: 14px; }.domain-connection[open] > summary::before { content: '−'; }
.domain-connection-body { padding: 0 24px 24px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.domain-connection-body ol { padding-left: 20px; margin: 16px 0 24px; max-width: 800px; }.domain-connection-body li { padding-left: 3px; margin-bottom: 6px; }
.domain-connection a { color: var(--blue); text-underline-offset: 3px; }
#domain-connection-form { padding: 20px; background: #f5f8fc; border-radius: 8px; }
#domain-connection-form > label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 9px; }
.domain-token-row { display: flex; gap: 12px; max-width: 680px; }.domain-token-row input { flex: 1; }.domain-token-row .button { font-size: 12px; }
.domain-connection-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.domain-connection-footer p { max-width: 680px; font-size: 11px; }.domain-connection-footer .button { font-size: 11px; white-space: nowrap; }
.domain-expiry-dialog { max-width: 520px; }.domain-expiry-name { margin: 12px 0 22px; font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.domain-date-field { display: grid; gap: 8px; font-size: 12px; }.domain-date-field input { width: 100%; font-size: 15px; }
.domain-source.is-outdated { color: var(--amber); }
.manual-domain-action { display: block; padding-top: 0; }
.domain-manual-dialog { max-width: 570px; }
.domain-manual-form { margin-top: 22px; display: grid; gap: 19px; }
.domain-manual-form > label { display: grid; gap: 8px; font-size: 12px; font-weight: 550; }
.domain-manual-form input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #c9d7e2; border-radius: 6px; padding: 10px 12px; font: inherit; background: white; color: var(--navy); }
.domain-manual-form small { font-size: 10px; font-weight: 400; color: var(--muted); }
.domain-manual-form .device-dialog-actions { margin-top: 0; gap: 8px; }
.domain-manual-form .device-dialog-actions .button { font-size: 12px; padding: 9px 12px; }
.domain-expiry-dialog .device-dialog-actions { gap: 8px; }.domain-expiry-dialog .button { font-size: 12px; padding: 9px 12px; }
body[data-view="share"] [data-admin-only] { display: none !important; }
body[data-view="share"] .home-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (min-width: 1800px) { body[data-mode="dashboard"] .topbar { padding-left: 50px; padding-right: 50px; } body[data-mode="dashboard"] main { padding-left: 50px; padding-right: 50px; } }
@media (max-width: 1200px) {
  .dashboard-sidebar { width: 210px; padding-left: 14px; padding-right: 14px; }body[data-mode="dashboard"] .topbar { margin-left: 210px; padding-left: 24px; padding-right: 24px; }body[data-mode="dashboard"] main { margin-left: 210px; padding-left: 24px; padding-right: 24px; }
  .home-metric { padding: 22px 18px; }.home-columns { gap: 20px; grid-template-columns: 1fr 1fr; }.home-section-heading,.home-issue,.home-service-list > li,.home-domain-list > li,.home-device-list > li { padding-left: 18px; padding-right: 18px; }
  .domain-panel .panel-heading { flex-direction: column; align-items: stretch; }.domain-heading-actions { justify-content: flex-start; }#page-devices .device-list { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .dashboard-sidebar { position: static; width: auto; padding: 0 20px; background: white; color: var(--navy); border-bottom: 1px solid var(--line); }.sidebar-brand,.sidebar-footer { display: none; }
  .dashboard-navigation { flex-direction: row; gap: 16px; overflow-x: auto; padding: 0; scrollbar-width: thin; }.dashboard-navigation > button { min-height: 52px; padding: 13px 5px; color: var(--muted); border-radius: 0; border-bottom: 3px solid transparent; gap: 8px; white-space: nowrap; background: transparent; }.dashboard-navigation > button[aria-current="page"] { background: transparent; color: var(--teal); border-bottom-color: var(--teal); }.dashboard-navigation > button:hover { background: #f6f9fc; color: var(--teal); }.dashboard-navigation svg { width: 17px; height: 17px; }.nav-count { display: none; }
  body[data-mode="dashboard"] .topbar { margin-left: 0; padding: 15px 24px; }.section-breadcrumb { display: none; }body[data-mode="dashboard"] .topbar > .brand { display: flex; }body[data-mode="dashboard"] main { margin-left: 0; }
  .dashboard-sidebar { position: sticky; top: 0; }.dashboard-sidebar + .topbar { border-bottom: none; }
}
@media (max-width: 700px) {
  .home-columns { grid-template-columns: 1fr; }.home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.home-metric:nth-child(2) { border-right: none; }.home-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .home-metric > strong { font-size: 28px; }.home-status { align-items: flex-start; padding: 18px; }.home-status-mark { margin-top: 8px; }.home-status h2 { font-size: 15px; }.home-status p { font-size: 11px; line-height: 1.8; }.home-attention-count { display: none; }
  .domain-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }.domain-filters { gap: 12px; }.domain-filters .domain-search { flex-basis: 100%; max-width: none; }.domain-filters label:not(.domain-search) { flex: 1; }
  .domain-connection-footer { align-items: flex-start; flex-direction: column; }.module-intro { padding: 18px; }.module-intro p { font-size: 11px; line-height: 1.8; }.module-chip { display: none; }
}
@media (max-width: 580px) {
  body[data-mode="dashboard"] main { padding-left: 16px; padding-right: 16px; }body[data-mode="dashboard"] .topbar { padding: 13px 16px; gap: 8px; min-height: 70px; }.topbar .brand { font-size: 17px; }.topbar .brand-description { display: none; }.toolbar .button { padding: 7px 9px; font-size: 11px; min-height: 36px; }
  .dashboard-sidebar { padding: 0 16px; }.dashboard-navigation { gap: 19px; }.dashboard-navigation > button { font-size: 12px; gap: 7px; }.dashboard-navigation > button > svg { display: none; }
  .page-heading { padding: 20px 0 23px; gap: 12px; }.page-heading h1 { font-size: 26px; }.page-heading p { max-width: none; font-size: 12px; }.snapshot-time { font-size: 10px; }
  .home-status { margin-bottom: 18px; }.home-metrics { margin-bottom: 20px; }.home-metric { padding: 20px 17px; }.home-metric > small { font-size: 10px; }.home-metric > span { font-size: 11px; }
  .home-section-note { padding-left: 18px; padding-right: 18px; }.home-section-heading { padding-top: 18px; padding-bottom: 15px; }.home-columns { gap: 20px; }
  .domain-summary { margin-bottom: 16px; }.domain-summary span { font-size: 10px; }.domain-summary strong { font-size: 25px; }.domain-panel .panel-heading { padding: 20px 18px; gap: 14px; }.domain-heading-actions { gap: 6px; }.domain-heading-actions .button { font-size: 10px; padding: 8px 9px; }
  .domain-notice { margin-left: 18px; margin-right: 18px; font-size: 11px; }.domain-filters { padding: 20px 18px; }.domain-filters input,.domain-filters select { font-size: 16px; }.domain-table-wrap { margin: 0 7px; }.domain-table th,.domain-table td { padding-left: 11px; padding-right: 11px; }
  .domain-connection > summary { padding: 18px; font-size: 12px; gap: 9px; }.domain-connection-body { padding: 0 18px 18px; font-size: 11px; }#domain-connection-form { padding: 16px; }.domain-token-row { flex-direction: column; }.domain-token-row input { font-size: 16px; width: 100%; }.domain-token-row .button { align-self: flex-start; }
  .domain-manual-form input,.domain-date-field input { font-size: 16px; }
  .personal-page .panel-heading-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; }.personal-page .sites-panel .panel-heading { flex-direction: column; gap: 14px; }.personal-page .site-table th:first-child { width: 34%; }.personal-page .site-table th:nth-child(2) { width: 27%; }.personal-page .site-table th:nth-child(3) { width: 15%; }.site-http { font-size: 10px; }.site-latency { white-space: nowrap; }.service-check-notice { margin-left: 18px; margin-right: 18px; font-size: 11px; }
  #page-devices .device-row { padding: 16px; }#page-devices .device-list { padding-left: 16px; padding-right: 16px; gap: 16px; }.codex-page { gap: 20px; }
  body[data-view="share"] .home-metrics { grid-template-columns: 1fr; }body[data-view="share"] .home-metric { border-right: none; border-bottom: 1px solid var(--line); }body[data-view="share"] .home-metric:last-child { border-bottom: none; }
}
