/* TettoWeb Monitor — standalone, private website monitoring. */
:root {
  --navy: #0a1a29;
  --navy-soft: #14293e;
  --blue: #356df3;
  --blue-deep: #2459d4;
  --blue-tint: #edf3ff;
  --paper: #f5f7fb;
  --surface: #fff;
  --ink: #122437;
  --muted: #738197;
  --line: #e2e7ef;
  --green: #25836a;
  --green-tint: #eaf6f0;
  --amber: #a47629;
  --amber-tint: #fff6e7;
  --red: #bd5c53;
  --red-tint: #fff0ed;
  --radius: 5px;
  --shadow: 0 3px 18px #17324f05;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--blue); }
button { -webkit-appearance: none; }
svg { width: 19px; height: 19px; display: block; flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 600; }
h1 { font-size: 31px; line-height: 1.25; letter-spacing: -.045em; }
h2 { font-size: 15px; line-height: 1.5; letter-spacing: -.02em; }
h3 { font-size: 14px; line-height: 1.6; letter-spacing: -.015em; }
.eyebrow { display: block; font-size: 9px; font-weight: 650; letter-spacing: .14em; line-height: 1.6; color: #8190a5; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid #dce3ed; border-radius: var(--radius); background: #fff; color: #465971; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.button svg { width: 15px; height: 15px; }
.button:hover:not(:disabled) { background: #f7faff; border-color: #b9ccef; }
.button-primary { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 2px 4px #356df319; }
.button-primary:hover:not(:disabled) { background: var(--blue-deep); border-color: var(--blue-deep); }
.button-small { min-height: 33px; padding: 6px 10px; font-size: 10px; }
.button-quiet { border-color: transparent; background: transparent; color: #7a8ba2; }
.button-quiet:hover:not(:disabled) { background: #f0f4fa; border-color: transparent; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; padding: 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #7d8ba0; }
.icon-button:hover { background: #f0f4fa; color: var(--blue); }
.icon-button svg { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #5276ba; font-size: 10px; font-weight: 600; white-space: nowrap; }
.text-link svg { width: 14px; height: 14px; }
.text-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.green-ink { color: var(--green); }
.amber-ink { color: var(--amber); }
.push-right { margin-left: auto; }
.subtle-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 20px; padding: 1px 6px; margin-left: 9px; border: 1px solid #e4eaf3; border-radius: 4px; background: #f6f8fc; font-size: 9px; color: #8090a6; vertical-align: 1px; }
.boot-screen { min-height: 100dvh; display: flex; gap: 16px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.boot-screen .brand-symbol { background: var(--navy); color: #fff; }
.noscript-note { position: fixed; inset: auto 20px 20px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); z-index: 100; }

/* Navigation */
.app-shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 238px; display: flex; flex-direction: column; padding: 30px 18px 0; background: var(--navy); color: #a1afbf; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #fff; line-height: 1.15; font-size: 23px; font-weight: 650; letter-spacing: -.065em; }
.brand-symbol { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 36px; color: #6592ff; border: 1px solid #294565; border-radius: 5px; background: #10243a; }
.brand-symbol svg { width: 26px; height: 26px; }
.brand-web { font-weight: 400; }
.brand small, .login-brand small { display: block; margin-top: 6px; font-size: 8px; letter-spacing: .26em; color: #8c9fb6; font-weight: 500; }
.workspace-mark { display: flex; align-items: center; gap: 9px; margin: 32px 0 29px; padding: 12px 11px; background: #102337; border: 1px solid #203448; border-radius: var(--radius); }
.workspace-avatar { display: grid; place-items: center; width: 29px; height: 29px; color: #c4d4eb; background: #263c55; border-radius: 4px; font-size: 9px; font-weight: 650; }
.workspace-mark strong { display: block; color: #c3cfdd; font-size: 10px; font-weight: 550; }
.workspace-mark small { display: block; color: #6f839c; font-size: 8px; margin-top: 1px; }
.workspace-mark > [data-icon] { margin-left: auto; color: #57708a; }
.workspace-mark > [data-icon] svg { width: 12px; height: 12px; }
.nav-label { margin: 0 12px 12px; color: #566c84; font-size: 8px; font-weight: 600; letter-spacing: .15em; }
.nav-links { display: flex; flex-direction: column; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 13px; border: 1px solid transparent; border-radius: 4px; color: #8ea1b7; font-size: 11px; font-weight: 500; }
.nav-link > [data-icon] { color: #6f89a5; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link.active { color: #e6efff; border-color: #26466e; background: #183556; box-shadow: inset 2px 0 #5288ff; }
.nav-link.active > [data-icon] { color: #84abff; }
.nav-link:hover { background: #132a40; color: #e1eafa; }
.nav-count { min-width: 22px; padding: 1px 5px; margin-left: auto; background: #263d56; border-radius: 3px; color: #a7bedb; font-size: 9px; text-align: center; }
.alert-count { color: #efc78e; background: #4b3d2d; }
.sidebar-bottom { margin-top: auto; padding-top: 42px; }
.monitor-beacon { display: flex; align-items: flex-start; gap: 10px; padding: 15px 12px 26px; }
.monitor-beacon .status-dot { margin-top: 5px; width: 6px; height: 6px; }
.monitor-beacon strong { display: block; color: #95acc5; font-size: 10px; font-weight: 500; }
.monitor-beacon small { display: block; color: #536d88; font-size: 9px; margin-top: 2px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid #1d3146; min-height: 77px; padding: 16px 6px 16px 10px; }
.profile-avatar { display: grid; place-items: center; width: 32px; height: 32px; background: #e7eef9; color: #284467; border-radius: 5px; font-size: 9px; font-weight: 650; }
.sidebar-profile strong { display: block; color: #b5c4d7; font-size: 10px; }
.sidebar-profile small { display: block; color: #657d98; font-size: 9px; }
.sidebar-profile .icon-button { margin-left: auto; color: #688099; }
.sidebar-profile .icon-button:hover { color: #c0d2ee; background: #1b334d; }
.status-dot, .tiny-dot, .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.status-dot.warning { background: #d5a462; }
.status-dot.inactive { background: #6e8096; }
.live-dot { width: 5px; height: 5px; background: #59966e; box-shadow: 0 0 0 4px #eaf3ed; }
.main-shell { margin-left: 238px; min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #fff; padding: 0 36px; }
.breadcrumb { display: flex; gap: 11px; align-items: center; font-size: 10px; white-space: nowrap; }
.breadcrumb-root { color: #9aa6b6; }
.breadcrumb-divider { color: #c9d2df; }
.breadcrumb strong { color: #556981; font-size: 10px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 24px; color: #8a98ad; font-size: 10px; }
.private-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 9px; color: #8896ab; }
.private-pill svg { width: 12px; height: 12px; }
.mobile-menu, .nav-shade { display: none; }

/* Dashboard */
.main-content { max-width: 1600px; margin: 0 auto; padding: 34px 36px 20px; min-width: 0; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.page-intro p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.page-intro .button { flex-shrink: 0; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.health-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 17px 20px; border: 1px solid #dce9e3; border-radius: var(--radius); background: #f0f7f3; margin-bottom: 22px; }
.health-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.health-symbol { display: grid; place-items: center; width: 36px; height: 36px; background: #e1f0e7; border: 1px solid #cfe5d8; border-radius: 5px; color: #4b9270; }
.health-symbol svg { width: 19px; height: 19px; }
.health-main strong { display: block; color: #3e6d57; font-size: 12px; font-weight: 600; }
.health-main p { margin-top: 3px; color: #7f9b8a; font-size: 10px; line-height: 1.7; }
.health-strip.warning { background: #fffaef; border-color: #eee1c6; }
.health-strip.warning .health-symbol { background: #fbf0da; border-color: #eddfbf; color: #ad8b4f; }
.health-strip.warning .health-main strong { color: #94743c; }
.health-strip.warning .health-main p { color: #a79370; }
.health-strip.neutral { background: #eef4fc; border-color: #dce6f5; }
.health-strip.neutral .health-symbol { background: #e2ebfb; border-color: #d0ddf3; color: #6989bd; }
.health-strip.neutral .health-main strong { color: #4e6f9d; }
.health-strip.neutral .health-main p { color: #8296b4; }
.health-next { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-left: 24px; border-left: 1px solid #dce8df; }
.health-next small { display: block; font-size: 7px; font-weight: 600; letter-spacing: .1em; color: #86a18f; }
.health-next strong { display: block; font-size: 14px; color: #547b63; font-weight: 500; font-variant-numeric: tabular-nums; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-width: 0; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6c7e95; font-size: 10px; }
.metric-label > [data-icon] { color: #7995c5; }
.metric-label > .green-ink { color: #62a18c; }
.metric-label > .amber-ink { color: #ba9c6e; }
.metric-label svg { width: 16px; height: 16px; }
.metric-number { display: block; margin: 9px 0 5px; color: #1b314c; font-size: 32px; letter-spacing: -.045em; line-height: 1.3; font-weight: 550; font-variant-numeric: tabular-nums; }
.metric-number .metric-unit { font-size: 14px; letter-spacing: -.01em; font-weight: 450; color: #8b9bb1; margin-left: 4px; }
.metric-caption { color: #94a1b3; font-size: 9px; line-height: 1.8; min-height: 16px; }
.metric-caption .mini-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #77ae98; margin: 0 5px 1px 0; }
.overview-columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 20px; margin-bottom: 24px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px 17px; }
.panel-heading h2 { color: #253c58; }
.panel-heading p { color: #94a1b3; font-size: 10px; margin-top: 4px; }
.panel-footer { display: flex; align-items: center; gap: 7px; border-top: 1px solid #edf0f5; padding: 12px 22px; font-size: 8px; line-height: 1.7; color: #9ba8ba; min-height: 42px; }
.panel-footer .tiny-dot { width: 4px; height: 4px; background: #a8bacc; }
.panel-footer svg { width: 12px; height: 12px; }
.compact-site-list { padding: 0 22px 5px; }
.compact-site { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; text-align: left; padding: 13px 0; background: transparent; border: 0; border-bottom: 1px solid #eef2f7; color: var(--ink); }
.compact-site:last-child { border-bottom: 0; }
.compact-site:hover .site-title { color: var(--blue); }
.site-avatar { display: grid; place-items: center; height: 31px; width: 31px; min-width: 31px; border: 1px solid #e2e9f4; border-radius: 5px; color: #7590b7; background: #f2f6fc; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.site-copy { min-width: 0; flex: 1; }
.site-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 550; color: #405775; }
.site-subtitle { display: block; font-size: 8px; margin-top: 2px; color: #9aa8bc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-mini-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 79px; color: #8b9cb2; font-size: 8px; flex-shrink: 0; }
.site-mini-status .status-dot { width: 4px; height: 4px; }
.site-latency { min-width: 52px; text-align: right; color: #8d9db2; font-size: 9px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.history-bars { display: flex; align-items: stretch; gap: 2px; width: 93px; height: 20px; overflow: hidden; flex-shrink: 0; }
.history-bars .history-bar { flex: 1; min-width: 2px; max-width: 5px; border-radius: 1px; background: #b0d8c5; }
.history-bars .history-bar.is-restricted, .history-bars .history-bar.is-rate-limited { background: #e6c99a; }
.history-bars .history-bar.is-error { background: #dfa59e; }
.history-bars .history-bar.is-unknown, .history-bars .history-bar.is-paused { background: #e5eaf1; }
.history-bars.empty-bars { align-items: center; font-size: 8px; color: #acb6c6; }
.incident-list { padding: 0 22px 5px; }
.incident-preview { display: flex; flex-direction: column; }
.incident-preview .incident-list { flex: 1; }
.incident-row { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.incident-row:last-child { border-bottom: 0; }
.incident-symbol { display: grid; place-items: center; width: 28px; height: 28px; min-width: 28px; border-radius: 4px; color: #b58a4f; background: #fff5e6; }
.incident-symbol svg { width: 14px; height: 14px; }
.incident-row.info .incident-symbol { color: #5f9c83; background: #edf7f1; }
.incident-row.high .incident-symbol, .incident-row.error .incident-symbol, .incident-row.critical .incident-symbol { color: #bc8174; background: #fff0eb; }
.incident-body { min-width: 0; flex: 1; }
.incident-body strong { display: block; color: #526984; font-size: 10px; line-height: 1.7; font-weight: 550; overflow-wrap: anywhere; }
.incident-body p { color: #97a4b7; font-size: 9px; line-height: 1.8; margin-top: 3px; overflow-wrap: anywhere; }
.incident-body time { display: block; color: #adb7c6; font-size: 8px; margin-top: 6px; }
.unread-mark { width: 5px; height: 5px; background: #6895eb; border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.schedule-panel { display: flex; align-items: center; gap: 17px; padding: 22px; background: linear-gradient(110deg,#fff 0%,#fff 48%,#f7faff 100%); }
.schedule-icon { display: grid; place-items: center; width: 43px; height: 43px; min-width: 43px; background: #edf3ff; color: #6990da; border: 1px solid #dce7fc; border-radius: 5px; }
.schedule-icon svg { width: 22px; height: 22px; }
.schedule-copy { flex: 1; min-width: 0; }
.schedule-copy .eyebrow { font-size: 7px; color: #8da0bd; margin-bottom: 4px; }
.schedule-copy h2 { color: #3f5c83; font-size: 13px; }
.schedule-copy p { font-size: 9px; color: #93a3ba; margin-top: 3px; }
.schedule-stats { display: flex; gap: 25px; padding: 0 18px; }
.schedule-stats small { display: block; color: #a2afc1; font-size: 7px; letter-spacing: .08em; }
.schedule-stats strong { display: block; color: #6c83a3; font-weight: 500; font-size: 10px; margin-top: 4px; }
.schedule-panel .button { font-size: 9px; padding: 8px 11px; min-height: 35px; color: #6383b6; }
.scope-note { display: flex; gap: 7px; align-items: flex-start; margin-top: 15px; color: #9aa7ba; font-size: 8px; line-height: 1.9; }
.scope-note svg { width: 12px; height: 12px; margin-top: 2px; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 34px; padding-top: 16px; border-top: 1px solid #e6ebf3; color: #a9b3c2; font-size: 8px; }
.footer-divider { padding: 0 5px; color: #c4cedc; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 20px; min-height: 170px; text-align: center; }
.empty-state > [data-icon] { width: 42px; height: 42px; border: 1px solid #e7edf6; border-radius: 5px; background: #f7f9fd; color: #9cafc9; margin-bottom: 13px; }
.empty-state > [data-icon] svg { width: 20px; height: 20px; }
.empty-state strong { color: #6a809d; font-size: 11px; font-weight: 550; }
.empty-state p { color: #a0adbf; font-size: 10px; line-height: 1.9; max-width: 310px; margin: 5px auto 0; }
.notice { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 24px; border: 1px solid #ecd9b7; border-radius: var(--radius); background: #fff8e9; color: #a0824f; }
.notice strong { display: block; font-size: 11px; }
.notice p { font-size: 10px; margin-top: 2px; }
.notice .button { margin-left: auto; background: #fffaf1; border-color: #eadabf; color: #a0824f; }

/* Inventories and forms */
input, select, textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid #dce3ee; border-radius: 4px; background: #fff; color: #536880; font-size: 11px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a6b1c2; }
select { width: auto; cursor: pointer; padding-right: 27px; }
textarea { resize: vertical; }
.inventory-toolbar { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #edf1f7; }
.search-field { position: relative; display: flex; align-items: center; flex: 1; max-width: 420px; }
.search-field > [data-icon] { position: absolute; left: 11px; color: #9baac0; pointer-events: none; }
.search-field svg { width: 15px; height: 15px; }
.search-field input { padding-left: 35px; padding-right: 35px; background: #fafbfd; }
.search-field kbd { position: absolute; right: 11px; border: 1px solid #e0e6ef; border-radius: 3px; font: 9px ui-monospace,monospace; padding: 1px 5px; color: #a4b0c3; }
.inventory-toolbar select { max-width: 195px; background: #fff; color: #8393ab; font-size: 10px; min-height: 38px; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d6dfed transparent; }
table { border-collapse: collapse; width: 100%; }
.site-table { min-width: 690px; }
th { color: #98a6bb; font-size: 7px; font-weight: 600; letter-spacing: .08em; text-align: left; padding: 13px 14px; background: #fcfdff; border-bottom: 1px solid #edf1f7; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 18px; text-align: right; }
td { padding: 16px 14px; color: #788ca7; font-size: 10px; vertical-align: middle; border-bottom: 1px solid #edf1f7; }
tbody tr:last-child td { border-bottom: 0; }
.site-table tbody tr:hover { background: #fbfcff; }
.website-cell { display: flex; align-items: center; gap: 11px; max-width: 330px; }
.site-name-button { display: block; padding: 0; text-align: left; border: 0; background: none; max-width: 100%; }
.site-name-button:hover .site-title { color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 7px; border-radius: 3px; font-size: 8px; line-height: 1.6; border: 1px solid transparent; background: #f2f5f9; color: #8b9cb4; }
.badge .status-dot { width: 4px; height: 4px; background: currentColor; }
.badge.is-ok { background: #edf7f1; border-color: #e0efe5; color: #6f9f83; }
.badge.is-restricted, .badge.is-rate-limited { background: #fff7eb; border-color: #f1e6d1; color: #ba995f; }
.badge.is-error { background: #fff1ed; border-color: #f4dfd7; color: #bf8d7b; }
.badge.is-unknown, .badge.is-paused { border-color: #e9edf4; background: #f5f7fa; color: #9ba8bd; }
.response-value { color: #69809e; font-variant-numeric: tabular-nums; font-size: 11px; }
.response-value small { color: #a4b0c2; font-size: 8px; }
.ssl-value { display: flex; gap: 5px; align-items: center; font-size: 9px; color: #93a5bc; white-space: nowrap; }
.ssl-value svg { width: 12px; height: 12px; }
.ssl-value.warning { color: #b79861; }
.ssl-value.error { color: #bc8074; }
.table-history { display: flex; flex-direction: column; gap: 5px; }
.table-history .history-bars { width: 115px; height: 18px; }
.table-history > small { color: #a1aec1; font-size: 7px; }
.table-actions { display: inline-flex; align-items: center; gap: 3px; }
.table-actions .icon-button { width: 28px; min-width: 28px; height: 30px; padding: 5px; }
.table-actions svg { width: 14px; height: 14px; }
.incident-full-list { padding: 5px 24px; }
.incident-full-list .incident-row { padding: 20px 0; gap: 14px; }
.incident-full-list .incident-symbol { width: 34px; min-width: 34px; height: 34px; }
.incident-full-list .incident-body strong { font-size: 12px; }
.incident-full-list .incident-body p { font-size: 11px; max-width: 760px; }
.incident-full-list .incident-body time { font-size: 9px; }
.incident-read { flex-shrink: 0; color: #a8b3c4; font-size: 9px; align-self: center; }
.clients-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.client-card { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.client-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.client-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #ecf2ff; color: #7e9bd3; border: 1px solid #dee8fb; border-radius: 5px; font-size: 11px; font-weight: 600; }
.client-card-heading > div { min-width: 0; flex: 1; }
.client-card-heading h2 { font-size: 13px; color: #456183; overflow-wrap: anywhere; }
.client-card-heading p { font-size: 9px; color: #9aabc1; margin-top: 2px; }
.client-notes { color: #91a1b7; font-size: 10px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 18px; }
.client-site-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 17px; }
.client-site-list button { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; background: none; text-align: left; color: #8ba0bc; font-size: 10px; overflow-wrap: anywhere; min-height: 25px; }
.client-site-list button:hover { color: var(--blue); }
.client-site-list .status-dot { width: 4px; height: 4px; }
.client-links { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #edf1f6; padding-top: 12px; margin-top: auto; font-size: 9px; color: #7c97bd; }
.client-links a { display: inline-flex; align-items: center; gap: 5px; }
.client-links svg { width: 12px; height: 12px; }
.clients-grid > .empty-state { grid-column: 1/-1; background: #fff; border: 1px dashed #dbe4f1; border-radius: var(--radius); min-height: 260px; }
.settings-columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; gap: 20px; }
.settings-panel-icon { color: #91a9d4; }
.settings-form .panel-heading { border-bottom: 1px solid #edf1f7; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px; cursor: pointer; }
.switch-row strong { display: block; font-size: 12px; color: #5a7395; font-weight: 550; }
.switch-row small { display: block; font-size: 10px; color: #98a9bf; margin-top: 4px; }
.switch { position: relative; display: block; width: 35px; height: 20px; flex-shrink: 0; }
.switch input { width: 35px; height: 20px; position: absolute; inset: 0; margin: 0; opacity: 0; min-height: 0; z-index: 1; cursor: pointer; }
.switch > span { display: block; position: absolute; inset: 0; border-radius: 20px; background: #ccd7e8; transition: background .2s; }
.switch > span::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 3px #17428222; transition: transform .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.settings-form > .form-grid { padding: 0 23px 26px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 10px; color: #7c90ac; font-weight: 550; }
.field input, .field select, .field textarea { width: 100%; }
.field small { color: #a2afc2; font-size: 8px; line-height: 1.7; }
.optional { font-size: 8px; color: #b0bbc9; font-weight: 400; margin-left: 4px; }
.settings-submit { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid #edf1f7; padding: 16px 23px; }
.settings-submit > span { font-size: 8px; color: #a5b1c3; }
.settings-form > .form-error { margin: 0 23px 18px; }
.settings-explainer { padding: 24px; }
.explainer-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #e0e9fb; background: #f1f6ff; border-radius: 5px; color: #7b9ad0; margin-bottom: 15px; }
.settings-explainer h2 { color: #597497; font-size: 14px; margin-bottom: 11px; }
.settings-explainer ul { padding: 0; margin: 0; list-style: none; }
.settings-explainer li { position: relative; padding: 6px 0 6px 16px; color: #8c9fb9; font-size: 10px; line-height: 1.9; }
.settings-explainer li::before { content: ""; width: 4px; height: 4px; position: absolute; top: 13px; left: 0; border-radius: 50%; background: #9bb4de; }
.subtle-note { background: #f7f9fd; border: 1px solid #e7edf6; border-radius: 4px; padding: 13px 14px; margin-top: 20px; }
.subtle-note strong { display: block; color: #7891b1; font-size: 10px; }
.subtle-note p { color: #9cabc1; font-size: 9px; margin-top: 5px; line-height: 1.9; }
.form-error { color: #b37367; border: 1px solid #efdad4; background: #fff6f2; padding: 10px 12px; font-size: 11px; border-radius: 4px; }
.check-row { display: flex; align-items: center; gap: 9px; color: #7d92b0; font-size: 10px; cursor: pointer; margin: 17px 0; }
.check-row input { width: 15px; height: 15px; min-height: 0; margin: 0; accent-color: var(--blue); }

/* Dialogs */
dialog { color: var(--ink); border: 1px solid #dce4ef; background: #fff; border-radius: 6px; box-shadow: 0 25px 110px #08223e2b; padding: 0; max-height: 90dvh; overflow: auto; }
dialog::backdrop { background: #081b30a3; backdrop-filter: blur(3px); }
.form-dialog { width: min(520px,calc(100% - 32px)); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px 19px; border-bottom: 1px solid #e9eef6; }
.dialog-heading .eyebrow { margin-bottom: 5px; font-size: 7px; color: #9aacbf; }
.dialog-heading h2 { font-size: 20px; font-weight: 550; color: #3c597d; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-heading a { display: inline-block; color: #9baec8; font-size: 9px; margin-top: 4px; overflow-wrap: anywhere; }
.dialog-heading a:hover { color: var(--blue); }
.dialog-heading .icon-button { margin: -4px -7px 0 0; }
.dialog-content { padding: 23px 25px; }
.dialog-footer { display: flex; gap: 9px; justify-content: flex-end; align-items: center; padding: 16px 25px; border-top: 1px solid #e9eef6; background: #fcfdff; }
.dialog-footer .button { min-height: 36px; font-size: 10px; padding: 8px 12px; }
.history-dialog { width: min(850px,calc(100% - 32px)); }
.history-content { padding: 23px 25px; min-height: 200px; }
.history-period { font-size: 9px; color: #a5b3c6; margin-right: auto; }
.history-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.history-metric { background: #f8faff; border: 1px solid #e5edf9; border-radius: 4px; padding: 15px 17px; }
.history-metric small { display: block; color: #9aacc5; font-size: 9px; }
.history-metric strong { display: block; color: #5c7ba5; font-size: 23px; letter-spacing: -.04em; margin-top: 4px; font-weight: 550; }
.history-chart-panel { border: 1px solid #e6edf7; border-radius: 4px; padding: 17px; margin-bottom: 23px; }
.history-chart-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #8da2c1; font-size: 9px; margin-bottom: 15px; }
.history-chart { display: block; width: 100%; height: 140px; overflow: visible; }
.history-chart .chart-grid { stroke: #edf1f8; stroke-width: 1; }
.history-chart .chart-line { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.history-chart .chart-area { fill: #eaf1ff; }
.history-chart .chart-point { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.history-chart-labels { display: flex; justify-content: space-between; color: #b0bdd0; font-size: 8px; margin-top: 6px; }
.history-timeline { margin: 20px 0 6px; }
.history-timeline .history-bars { width: 100%; height: 24px; gap: 3px; }
.history-timeline .history-bar { max-width: none; }
.timeline-key { display: flex; justify-content: space-between; gap: 12px; color: #a6b4c7; font-size: 8px; margin-top: 7px; }
.history-table th { font-size: 7px; }
.history-table td { font-size: 9px; padding-top: 12px; padding-bottom: 12px; }
.history-table td:first-child,.history-table th:first-child { padding-left: 12px; }
.history-table td:last-child,.history-table th:last-child { padding-right: 12px; }
.history-table .detail-cell { max-width: 270px; overflow-wrap: anywhere; color: #9caec8; text-align: left; }
.history-note { color: #a0b0c6; font-size: 9px; line-height: 1.9; margin-top: 15px; }
.loading-note { color: #9cafc8; text-align: center; padding: 42px 0; font-size: 11px; }
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 9px; max-width: min(390px,calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dbe6f5; box-shadow: 0 9px 35px #1239681c; border-radius: 5px; padding: 13px 16px; color: #6a85aa; font-size: 11px; line-height: 1.8; animation: toast-in .2s ease-out; }
.toast.error { color: #b77f70; border-color: #f0dcd4; }
.toast > [data-icon] svg { width: 16px; height: 16px; }
.toast > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.is-spinning svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Sign in */
.login-screen { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100dvh; background: #fff; }
.login-story { display: flex; flex-direction: column; padding: 52px 64px 28px; background: var(--navy); color: #e7eef8; overflow: hidden; }
.login-brand { display: flex; align-items: center; gap: 12px; font-size: 25px; letter-spacing: -.065em; font-weight: 650; line-height: 1.2; }
.login-story-body { margin: auto 0; padding: 65px 0; }
.light-eyebrow { color: #6f8fb4; font-size: 8px; }
.login-story h1 { color: #e1eaf7; font-size: clamp(31px,3.5vw,48px); line-height: 1.25; letter-spacing: -.045em; font-weight: 500; }
.login-story p { max-width: 340px; margin-top: 21px; color: #7390b1; font-size: 12px; line-height: 2; }
.login-trace { margin: 42px -75px -25px -64px; }
.login-trace svg { width: 100%; height: auto; }
.login-trace path { fill: none; stroke: #264b77; stroke-width: 1.5; }
.login-story .login-footnote { color: #486786; font-size: 9px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form { width: 100%; max-width: 330px; }
.login-form .eyebrow { color: #8e9fb7; font-size: 8px; }
.login-form h2 { font-size: 25px; letter-spacing: -.04em; color: #314c70; font-weight: 550; }
.login-form > p { font-size: 11px; color: #9aa9bf; margin: 12px 0 31px; line-height: 1.9; }
.login-form > label { display: block; font-size: 10px; color: #7c92b0; font-weight: 500; margin-bottom: 8px; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; min-height: 45px; }
.password-field .icon-button { position: absolute; top: 5px; right: 5px; }
.login-form .form-error { margin: 12px 0 0; font-size: 10px; }
.login-submit { margin-top: 20px; width: 100%; min-height: 44px; justify-content: space-between; padding: 11px 15px; }
.login-form .login-hint { color: #aeb9c9; font-size: 9px; margin: 18px 0 0; text-align: center; }

@media (min-width: 1500px) { .main-content { padding-top: 42px; } .page-intro { margin-bottom: 30px; } .overview-columns { margin-bottom: 28px; } .compact-site { padding: 15px 0; } .incident-row { padding: 17px 0; } }
@media (max-width: 1250px) { .sidebar { width: 210px; padding-left: 14px; padding-right: 14px; } .main-shell { margin-left: 210px; } .main-content { padding: 28px 26px 18px; } .topbar { padding: 0 26px; } .metric-card { padding: 16px; } .metric-label { font-size: 9px; } .metrics-grid { gap: 11px; } .overview-columns { gap: 16px; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); } .site-mini-status { min-width: 65px; } .compact-site > .history-bars { width: 65px; } .schedule-stats { gap: 15px; padding: 0 4px; } .schedule-stats > div:last-child { display: none; } .clients-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .settings-columns { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); } }
@media (max-width: 1050px) { .sidebar { width: 190px; padding-left: 10px; padding-right: 10px; } .main-shell { margin-left: 190px; } .brand { font-size: 21px; gap: 8px; padding: 0 8px; } .brand-symbol { width: 29px; height: 32px; } .brand-symbol svg { width: 23px; height: 23px; } .workspace-mark { padding: 10px 8px; gap: 7px; } .workspace-mark strong { font-size: 9px; } .workspace-mark small { font-size: 7px; } .workspace-avatar { width: 26px; height: 26px; } .nav-link { font-size: 10px; padding-left: 10px; gap: 9px; } .nav-link svg { width: 15px; height: 15px; } .topbar-right { gap: 14px; } .topbar-right time { font-size: 8px; } h1 { font-size: 27px; } .main-content { padding: 27px 22px 18px; } .topbar { padding: 0 22px; height: 65px; } .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .metric-card { padding: 17px 19px; } .metric-label { font-size: 10px; } .overview-columns { grid-template-columns: 1fr; gap: 20px; } .incident-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 25px; } .incident-list .incident-row:nth-child(-n+2) { border-top: 0; } .compact-site > .history-bars { width: 110px; } .site-mini-status { min-width: 105px; } .schedule-panel { flex-wrap: wrap; gap: 14px; padding: 19px; } .schedule-copy { min-width: 200px; } .schedule-stats { margin-left: 57px; padding: 0; margin-right: auto; } .schedule-stats > div:last-child { display: block; } .settings-columns { grid-template-columns: 1fr; } .inventory-toolbar { flex-wrap: wrap; } .inventory-toolbar .search-field { max-width: none; flex-basis: 100%; } .inventory-toolbar select { flex: 1; max-width: none; } .login-story { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 760px) { .sidebar { width: 238px; transform: translateX(-100%); transition: transform .2s; padding: 26px 18px 0; } .main-shell { margin-left: 0; } body.nav-open .sidebar { transform: translateX(0); } .mobile-menu { display: inline-flex; width: 32px; min-width: 32px; height: 32px; margin-left: -7px; } .nav-shade { position: fixed; inset: 0; z-index: 29; border: 0; width: 100%; height: 100%; background: #091f37a3; } body.nav-open .nav-shade { display: block; } .topbar { height: 61px; padding: 0 20px; } .breadcrumb { gap: 9px; } .breadcrumb-root { font-size: 9px; } .breadcrumb strong { font-size: 9px; } .topbar-right time { display: none; } .topbar-right { gap: 0; } .private-pill { font-size: 8px; gap: 4px; } .private-pill svg { width: 11px; height: 11px; } .main-content { padding: 26px 20px 19px; } .page-intro { gap: 15px; margin-bottom: 21px; } .page-intro .eyebrow { font-size: 7px; } h1 { font-size: 27px; } .page-intro p { font-size: 10px; } .page-intro > .button { min-height: 37px; font-size: 9px; padding: 9px 11px; } .health-strip { padding: 14px 15px; gap: 15px; margin-bottom: 18px; } .health-main { gap: 10px; } .health-main strong { font-size: 11px; } .health-main p { font-size: 9px; } .health-symbol { width: 31px; min-width: 31px; height: 31px; } .health-symbol svg { width: 17px; height: 17px; } .health-next { padding-left: 14px; } .health-next small { font-size: 6px; } .health-next strong { font-size: 12px; } .metrics-grid { gap: 11px; margin-bottom: 20px; } .metric-card { padding: 15px 16px; } .metric-number { font-size: 30px; } .overview-columns { gap: 20px; margin-bottom: 20px; } .panel-heading { padding: 18px 18px 15px; } .compact-site-list, .incident-list { padding-left: 18px; padding-right: 18px; } .panel-footer { padding-left: 18px; padding-right: 18px; } .compact-site { padding: 13px 0; } .compact-site > .history-bars { width: 80px; } .site-mini-status { min-width: 80px; } .site-latency { min-width: 44px; font-size: 8px; } .scope-note { font-size: 8px; } .clients-grid { gap: 14px; } .settings-submit > span { max-width: 180px; } .login-story { padding: 34px 30px 22px; } .login-form-wrap { padding: 32px; } .login-story h1 { font-size: 32px; } .login-story p { font-size: 11px; } .nav-link { font-size: 11px; min-height: 45px; } .brand { font-size: 23px; gap: 11px; padding: 0 12px; } .workspace-mark strong { font-size: 10px; } .workspace-mark small { font-size: 8px; } .workspace-avatar { width: 29px; height: 29px; } }
@media (max-width: 540px) { .main-content { padding: 23px 15px 17px; } .topbar { padding: 0 15px; } .page-intro { align-items: flex-start; flex-wrap: wrap; gap: 16px; } .page-intro h1 { font-size: 25px; } .page-intro p { font-size: 10px; line-height: 1.9; } .page-intro > .check-button { width: 100%; min-height: 42px; font-size: 11px; } .intro-actions { width: 100%; justify-content: stretch; } .intro-actions .button { flex: 1; min-height: 42px; font-size: 10px; } .health-strip { flex-direction: column; align-items: stretch; padding: 15px; gap: 12px; } .health-main { align-items: flex-start; } .health-main p { line-height: 1.8; } .health-next { border-left: 0; border-top: 1px solid #dce8df; margin-left: 41px; padding: 11px 0 0; gap: 9px; } .health-next > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; } .health-next strong { font-size: 11px; } .health-next small { font-size: 6px; } .health-next .live-dot { width: 4px; height: 4px; } .metrics-grid { gap: 10px; } .metric-card { padding: 13px 14px; } .metric-label { font-size: 9px; gap: 5px; align-items: flex-start; min-height: 28px; } .metric-label svg { width: 14px; height: 14px; } .metric-number { font-size: 29px; margin-top: 4px; } .metric-caption { font-size: 8px; min-height: 26px; } .panel-heading h2 { font-size: 14px; } .panel-heading p { font-size: 9px; } .panel-heading .text-link { font-size: 9px; gap: 4px; } .panel-heading .text-link svg { width: 12px; height: 12px; } .compact-site { gap: 9px; } .site-avatar { width: 27px; min-width: 27px; height: 29px; font-size: 8px; } .site-title { font-size: 10px; } .site-subtitle { font-size: 8px; } .site-mini-status { min-width: 64px; font-size: 7px; gap: 4px; } .compact-site > .history-bars { width: 53px; height: 18px; gap: 1px; } .site-latency { display: none; } .compact-site > .history-bars.empty-bars { font-size: 7px; } .panel-footer { gap: 5px; font-size: 7px; flex-wrap: wrap; } .panel-footer .push-right { display: none; } .incident-list { display: block; } .incident-row { padding: 13px 0; } .incident-body strong { font-size: 10px; } .incident-body p { font-size: 9px; } .schedule-panel { gap: 12px; padding: 17px; } .schedule-icon { width: 35px; min-width: 35px; height: 35px; } .schedule-icon svg { width: 19px; height: 19px; } .schedule-copy { min-width: 0; flex-basis: calc(100% - 50px); } .schedule-copy h2 { font-size: 12px; } .schedule-copy p { font-size: 9px; line-height: 1.8; margin-top: 5px; } .schedule-stats { margin-left: 47px; gap: 25px; } .schedule-stats small { font-size: 6px; } .schedule-stats strong { font-size: 9px; } .schedule-panel > .button { width: 100%; margin-top: 3px; min-height: 40px; font-size: 10px; } .scope-note { font-size: 7px; margin-top: 12px; } .scope-note svg { width: 11px; height: 11px; margin-top: 2px; } .app-footer { font-size: 7px; gap: 12px; margin-top: 25px; align-items: flex-start; } .app-footer > span:last-child { max-width: 130px; text-align: right; } .inventory-toolbar { padding: 15px; gap: 8px; } .inventory-toolbar select { font-size: 9px; min-width: 0; } .search-field input { font-size: 10px; min-height: 41px; } .search-field kbd { display: none; } .site-table { min-width: 650px; } .clients-grid { grid-template-columns: 1fr; } .client-card { padding: 18px; } .incident-full-list { padding: 3px 17px; } .incident-full-list .incident-row { flex-wrap: wrap; gap: 10px; } .incident-full-list .incident-body { flex-basis: calc(100% - 44px); } .incident-full-list .incident-body strong { font-size: 11px; } .incident-full-list .incident-body p { font-size: 10px; } .incident-full-list .incident-row > .button, .incident-read { margin-left: 44px; } .settings-columns { gap: 18px; } .settings-form .panel-heading { padding: 18px; } .switch-row { padding: 19px 18px; gap: 20px; } .switch-row strong { font-size: 11px; } .switch-row small { font-size: 9px; line-height: 1.9; } .settings-form > .form-grid { padding: 0 18px 18px; gap: 15px; grid-template-columns: 1fr; } .settings-form > .form-grid .field { margin-bottom: 0; } .settings-submit { padding: 15px 18px; flex-direction: column; align-items: stretch; gap: 12px; } .settings-submit > span { max-width: none; text-align: center; } .settings-submit .button { width: 100%; min-height: 42px; } .settings-explainer { padding: 20px; } .form-dialog, .history-dialog { width: calc(100% - 20px); max-height: 94dvh; } .dialog-heading { padding: 19px 19px 16px; } .dialog-heading h2 { font-size: 18px; } .dialog-content { padding: 19px; } .dialog-footer { padding: 14px 19px; flex-wrap: wrap; gap: 8px; } .dialog-footer .button { min-height: 41px; } .dialog-content .form-grid { grid-template-columns: 1fr; gap: 0; } .field { margin-bottom: 17px; } .field label { font-size: 11px; } input, select, textarea { min-height: 43px; font-size: 12px; } .check-row { min-height: 40px; font-size: 10px; } .history-content { padding: 19px; } .history-metrics { gap: 8px; margin-bottom: 18px; } .history-metric { padding: 11px 10px; } .history-metric small { font-size: 7px; min-height: 24px; } .history-metric strong { font-size: 20px; } .history-chart-panel { padding: 12px; margin-bottom: 18px; } .history-chart-title { font-size: 8px; } .history-chart { height: 115px; } .history-period { flex-basis: 100%; font-size: 8px; } .history-table { min-width: 540px; } .history-note { font-size: 8px; } .toasts { bottom: 16px; right: 16px; } .login-screen { grid-template-columns: 1fr; } .login-story { padding: 28px 27px; min-height: 245px; } .login-brand { font-size: 21px; gap: 9px; } .login-brand small { font-size: 7px; margin-top: 4px; } .login-story-body { padding: 28px 0 0; } .login-story h1 { font-size: 29px; } .login-story h1 br { display: none; } .login-story p { font-size: 10px; max-width: 280px; margin-top: 12px; } .login-story .light-eyebrow, .login-trace, .login-story .login-footnote { display: none; } .login-form-wrap { padding: 34px 28px 42px; } .login-form { max-width: 380px; } .login-form h2 { font-size: 23px; } .login-form > p { font-size: 11px; margin-bottom: 25px; } .login-form .login-hint { margin-bottom: 0; } .notice { flex-wrap: wrap; gap: 9px; padding: 12px; } .notice > div { flex: 1; } .notice .button { margin-left: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Readability pass: readable operational data on both desktop and phone. */
body { font-size: 14px; }
.eyebrow { font-size: 10px; color: #687d98; }
.button { font-size: 12px; }
.button-small, .text-link { font-size: 11px; }
.nav-label { font-size: 9px; color: #8096af; }
.nav-link { font-size: 12px; }
.nav-count { font-size: 10px; }
.workspace-mark strong, .sidebar-profile strong, .monitor-beacon strong { font-size: 12px; }
.workspace-mark small, .sidebar-profile small, .monitor-beacon small { font-size: 10px; }
.workspace-mark small, .sidebar-profile small, .monitor-beacon small { color: #8298b2; }
.breadcrumb, .breadcrumb-root, .breadcrumb strong, .topbar-right, .private-pill { font-size: 11px; }
.breadcrumb-root, .private-pill, .topbar-right { color: #6f8199; }
.page-intro p { font-size: 13px; color: #687d96; }
.health-main strong { font-size: 14px; }
.health-main p { font-size: 12px; }
.health-next small { font-size: 9px; letter-spacing: .07em; }
.health-next strong { font-size: 15px; }
.health-main p { color: #5e7e69; }
.health-strip.warning .health-main p { color: #8e7549; }
.health-strip.neutral .health-main p { color: #667f9e; }
.health-next small { color: #617f6c; }
.metric-label { font-size: 12px; color: #60738d; min-height: 19px; }
.metric-number { font-size: 34px; }
.metric-caption { font-size: 11px; color: #73849d; line-height: 1.8; }
.panel-heading h2 { font-size: 17px; }
.panel-heading p { font-size: 12px; color: #7b8da6; }
.subtle-badge { font-size: 10px; }
.panel-footer { font-size: 10px; color: #7b8ca3; }
.site-title { font-size: 13px; color: #3e5777; }
.site-subtitle { font-size: 11px; color: #7f91ac; }
.site-avatar { font-size: 10px; }
.site-mini-status { font-size: 10px; min-width: 86px; color: #71849f; }
.site-latency { font-size: 11px; min-width: 58px; color: #7387a2; }
.history-bars.empty-bars { font-size: 10px; color: #7d90aa; }
.incident-body strong { font-size: 12px; color: #4b6383; }
.incident-body p { font-size: 11px; color: #788ca7; }
.incident-body time { font-size: 10px; color: #8293ab; }
.incident-row.success .incident-symbol { color: #357c61; background: #eaf6ee; }
.incident-row.info .incident-symbol { color: #527db4; background: #eef4ff; }
.schedule-copy .eyebrow { font-size: 9px; color: #748cab; }
.schedule-copy h2 { font-size: 15px; }
.schedule-copy p { font-size: 11px; color: #7b8fab; }
.schedule-stats small { font-size: 9px; color: #7c91ad; }
.schedule-stats strong { font-size: 12px; }
.schedule-panel .button { font-size: 11px; }
.scope-note { font-size: 10px; color: #7c8da5; }
.app-footer { font-size: 10px; color: #7e8fa7; }
.empty-state strong { font-size: 13px; }
.empty-state p { font-size: 12px; color: #7f91ab; }
.notice strong { font-size: 13px; }
.notice p { font-size: 12px; }
input, select, textarea { font-size: 13px; }
.inventory-toolbar select, .search-field input { font-size: 12px; color: #657e9f; }
.search-field kbd { font-size: 10px; }
.site-table { min-width: 760px; }
th { font-size: 10px; color: #7187a5; }
td { font-size: 12px; color: #6b81a0; }
.badge { font-size: 10px; }
.badge.is-ok { color: #4f8265; }
.badge.is-restricted, .badge.is-rate-limited { color: #96763d; }
.badge.is-error { color: #a66e5d; }
.badge.is-unknown, .badge.is-paused { color: #788ca9; }
.response-value { font-size: 12px; }
.response-value small { font-size: 10px; }
.ssl-value { font-size: 11px; color: #758dab; }
.table-history > small { font-size: 9px; color: #7a90ae; }
.incident-full-list .incident-body strong { font-size: 14px; }
.incident-full-list .incident-body p { font-size: 13px; }
.incident-full-list .incident-body time, .incident-read { font-size: 11px; }
.client-card-heading h2 { font-size: 15px; }
.client-card-heading p, .client-notes, .client-site-list button, .client-links { font-size: 12px; color: #758ca9; }
.client-card-heading p { color: #7e93af; }
.switch-row strong { font-size: 14px; }
.switch-row small { font-size: 12px; color: #7d92af; }
.field label { font-size: 12px; color: #6b83a4; }
.field small, .optional, .settings-submit > span { font-size: 10px; color: #8294af; }
.settings-explainer h2 { font-size: 16px; }
.settings-explainer li { font-size: 12px; color: #748caa; }
.subtle-note strong { font-size: 12px; }
.subtle-note p { font-size: 11px; color: #7f93af; }
.check-row { font-size: 12px; }
.dialog-heading .eyebrow { font-size: 9px; }
.dialog-heading a { font-size: 11px; color: #6f8caf; }
.dialog-footer .button { font-size: 12px; }
.history-period { font-size: 11px; color: #8194b0; }
.history-metric small { font-size: 11px; color: #7c93b1; }
.history-chart-title { font-size: 11px; color: #7088aa; }
.history-chart-labels, .timeline-key { font-size: 10px; color: #8297b5; }
.history-table th { font-size: 10px; }
.history-table td { font-size: 11px; }
.history-table .detail-cell { color: #7d93b2; }
.history-note { font-size: 11px; color: #7d92af; }
.loading-note { font-size: 13px; color: #8196b2; }
.toast { font-size: 13px; }
.login-form .eyebrow { font-size: 10px; }
.login-form > p { font-size: 13px; color: #7d90ac; }
.login-form > label { font-size: 12px; }
.login-form .login-hint { font-size: 11px; color: #8597b0; }
.login-form .form-error { font-size: 12px; }
.login-story p { font-size: 14px; }
.login-story .login-footnote { font-size: 11px; }
.light-eyebrow { font-size: 10px; }
@media (max-width: 1250px) {
  .metric-label { font-size: 11px; }
  .site-mini-status { min-width: 78px; }
  .compact-site > .history-bars { width: 59px; }
}
@media (max-width: 1050px) {
  .nav-link { font-size: 11px; }
  .workspace-mark strong { font-size: 11px; }
  .workspace-mark small { font-size: 9px; }
  .topbar-right time { font-size: 10px; }
  .metric-label { font-size: 12px; }
  .site-mini-status { min-width: 98px; }
  .compact-site > .history-bars { width: 100px; }
}
@media (max-width: 760px) {
  .nav-link { font-size: 12px; }
  .workspace-mark strong { font-size: 12px; }
  .workspace-mark small { font-size: 10px; }
  .breadcrumb-root, .breadcrumb strong, .private-pill { font-size: 10px; }
  .page-intro .eyebrow { font-size: 9px; }
  .page-intro p { font-size: 12px; }
  .page-intro > .button { font-size: 11px; }
  .health-main strong { font-size: 13px; }
  .health-main p { font-size: 11px; }
  .health-next small { font-size: 9px; }
  .health-next strong { font-size: 13px; }
  .metric-label { font-size: 11px; }
  .metric-caption { font-size: 10px; }
  .site-mini-status { min-width: 88px; }
  .compact-site > .history-bars { width: 70px; }
  .site-latency { font-size: 10px; }
  .scope-note, .settings-submit > span { font-size: 10px; }
}
@media (max-width: 540px) {
  input, select, textarea, .search-field input, .inventory-toolbar select { font-size: 16px; }
  .page-intro p { font-size: 12px; }
  .intro-actions .button, .page-intro > .check-button { font-size: 12px; min-height: 44px; }
  .health-main strong { font-size: 13px; }
  .health-main p { font-size: 11px; }
  .health-next small { font-size: 9px; letter-spacing: .02em; }
  .health-next strong { font-size: 12px; }
  .health-next > div { gap: 8px; }
  .metric-label { font-size: 11px; min-height: 34px; }
  .metric-number { font-size: 31px; }
  .metric-caption { font-size: 10px; min-height: 32px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading p { font-size: 11px; }
  .panel-heading .text-link { font-size: 10px; }
  .site-title { font-size: 12px; }
  .site-subtitle { font-size: 10px; }
  .site-avatar { font-size: 9px; }
  .site-mini-status { min-width: 79px; font-size: 10px; }
  .compact-site > .history-bars { width: 39px; }
  .compact-site > .history-bars.empty-bars { font-size: 9px; }
  .panel-footer { font-size: 9px; }
  .incident-body strong { font-size: 12px; }
  .incident-body p { font-size: 11px; }
  .incident-body time { font-size: 10px; }
  .schedule-copy .eyebrow { font-size: 9px; }
  .schedule-copy h2 { font-size: 14px; }
  .schedule-copy p { font-size: 11px; }
  .schedule-stats small { font-size: 9px; }
  .schedule-stats strong { font-size: 11px; }
  .schedule-panel > .button { min-height: 44px; font-size: 12px; }
  .scope-note, .app-footer { font-size: 9px; }
  .inventory-toolbar select { flex-basis: 100%; }
  .inventory-toolbar .search-field { flex-basis: 100%; }
  .site-table { min-width: 760px; }
  .incident-full-list .incident-body strong { font-size: 13px; }
  .incident-full-list .incident-body p { font-size: 12px; }
  .incident-full-list .incident-row > .button { min-height: 44px; }
  .switch-row strong { font-size: 13px; }
  .switch-row small { font-size: 12px; }
  .field label { font-size: 12px; }
  .settings-submit > span { font-size: 10px; }
  .settings-submit .button { font-size: 12px; min-height: 44px; }
  .dialog-footer .button { font-size: 12px; min-height: 44px; }
  .check-row { font-size: 12px; }
  .history-metric small { font-size: 10px; min-height: 34px; }
  .history-metric strong { font-size: 21px; }
  .history-chart-title { font-size: 10px; }
  .history-chart-labels, .timeline-key { font-size: 9px; }
  .history-period, .history-note { font-size: 10px; }
  .history-table { min-width: 610px; }
  .history-table th { font-size: 10px; }
  .history-table td { font-size: 11px; }
  .icon-button, .mobile-menu { width: 40px; min-width: 40px; height: 40px; }
  .table-actions .icon-button { width: 44px; min-width: 44px; height: 44px; }
  .login-story p { font-size: 12px; }
  .login-form > p { font-size: 13px; }
  .login-form .login-hint { font-size: 11px; }
}

/* Client domains: one client can own multiple existing or newly added sites. */
.client-form-dialog { width: min(650px,calc(100% - 32px)); }
.client-form-dialog[open] { display: flex; flex-direction: column; max-height: 90dvh; overflow: hidden; }
.client-form-dialog > form { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(90dvh - 2px); overflow: hidden; }
.client-form-dialog .dialog-heading, .client-form-dialog .dialog-footer { flex-shrink: 0; }
.client-form-dialog .dialog-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d2deee transparent; }
.client-domains-section { margin: 5px 0 22px; padding: 20px 0; border-top: 1px solid #e6edf6; border-bottom: 1px solid #e6edf6; }
.client-domains-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.client-domains-heading h3 { font-size: 14px; color: #4a6589; }
.client-domains-count { flex-shrink: 0; display: inline-flex; padding: 3px 8px; border: 1px solid #dce7fc; border-radius: 4px; background: #f0f5ff; color: #6687bd; font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.client-domains-hint { margin: 0 0 12px; font-size: 11px; line-height: 1.9; color: #7b90ad; }
.client-domain-search { width: 100%; max-width: none; margin-bottom: 10px; }
.client-domain-search input { min-height: 40px; font-size: 12px; }
.client-domain-options { max-height: 246px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d2deee transparent; border: 1px solid #e0e8f4; border-radius: 4px; background: #fcfdff; }
.client-domain-option { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 13px; cursor: pointer; border-bottom: 1px solid #eaf0f7; }
.client-domain-option:last-child { border-bottom: 0; }
.client-domain-option:hover { background: #f4f8ff; }
.client-domain-option:has(input:checked) { background: #f1f6ff; }
.client-domain-option:focus-within { box-shadow: inset 0 0 0 2px #9bb9f8; }
.client-domain-option input { flex-shrink: 0; width: 16px; min-width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--blue); cursor: pointer; }
.client-domain-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.client-domain-copy strong { display: block; font-size: 12px; line-height: 1.7; font-weight: 550; color: #527094; overflow-wrap: anywhere; }
.client-domain-copy small { display: block; font-size: 10px; line-height: 1.7; color: #8b9db6; overflow-wrap: anywhere; }
.client-domain-option .badge { flex-shrink: 0; font-size: 9px; }
.client-domains-empty { padding: 20px 16px; font-size: 12px; line-height: 1.9; color: #879ab4; text-align: center; }
.client-unassign-hint { margin: 10px 0 19px; font-size: 10px; }
.client-new-domains { margin-bottom: 0; }
.client-new-domains textarea { min-height: 110px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.9; }
.client-new-domains small { font-size: 11px; line-height: 1.9; }
.client-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e9eff7; }
.client-card-actions .button { min-height: 36px; font-size: 11px; padding: 8px 10px; gap: 6px; }
.client-card-actions .button svg { width: 13px; height: 13px; }
.client-card .client-links { margin-top: 14px; }
.client-site-list .client-more-domains { font-size: 11px; color: #678ac1; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 540px) {
  .client-form-dialog { width: calc(100% - 20px); }
  .client-form-dialog[open] { max-height: 94dvh; }
  .client-form-dialog > form { max-height: calc(94dvh - 2px); }
  .client-domains-section { padding: 17px 0; margin-bottom: 19px; }
  .client-domains-heading h3 { font-size: 14px; }
  .client-domains-count { font-size: 10px; }
  .client-domain-search input, .client-new-domains textarea { font-size: 16px; }
  .client-domain-option { padding: 11px 10px; gap: 9px; min-height: 64px; }
  .client-domain-copy strong { font-size: 12px; }
  .client-domain-copy small { font-size: 10px; }
  .client-domain-option .badge { font-size: 9px; padding: 3px 5px; gap: 3px; }
  .client-unassign-hint { font-size: 10px; }
  .client-new-domains small { font-size: 11px; }
  .client-card-actions { gap: 8px; }
  .client-card-actions .button { min-height: 44px; font-size: 11px; }
}

/* Email: separate public DNS and secure endpoint checks. */
.mail-scope { display: flex; align-items: center; gap: 13px; padding: 16px 18px; margin: -2px 0 22px; border: 1px solid #dce7f5; border-radius: 5px; background: #eef4fc; color: #42607f; }
.mail-scope > svg { width: 22px; height: 22px; flex-shrink: 0; color: #356df3; }
.mail-scope p { flex: 1; font-size: 12px; line-height: 1.8; margin: 0; }
.mail-interval { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 11px; font-weight: 550; padding: 6px 9px; background: #fff; border: 1px solid #d9e5f5; border-radius: 4px; color: #526f93; }
.mail-interval svg { width: 14px; height: 14px; }
.mail-next { font-size: 24px; min-height: 46px; display: flex; align-items: center; white-space: nowrap; letter-spacing: -.035em; }
.mail-inventory { margin-bottom: 24px; }
.mail-toolbar select { max-width: 210px; }
.mail-targets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 20px; }
.mail-targets > .empty-state, .mail-targets > .loading-note { grid-column: 1 / -1; }
.mail-target-card { padding: 18px; min-width: 0; border: 1px solid #e1e8f1; border-radius: 5px; background: #fff; box-shadow: 0 2px 5px #0a1a2903; }
.mail-target-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.mail-domain-symbol { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 38px; border: 1px solid #dfe8fa; border-radius: 5px; background: #f1f6ff; color: #527ab9; }
.mail-domain-symbol svg { width: 19px; height: 19px; }
.mail-target-copy { flex: 1; min-width: 0; }
.mail-domain-button { display: block; padding: 0; border: 0; background: transparent; color: #2a4669; font-size: 14px; font-weight: 600; text-align: left; line-height: 1.6; overflow-wrap: anywhere; cursor: pointer; }
.mail-domain-button:hover { color: var(--blue); }
.mail-domain-button:focus-visible { outline: 2px solid #80a8fb; outline-offset: 4px; border-radius: 2px; }
.mail-target-copy p { font-size: 11px; color: #647c98; margin: 2px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.mail-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 5px; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 550; line-height: 1.6; white-space: nowrap; }
.mail-badge svg { width: 12px; height: 12px; }
.mail-state-ok { color: #23745d; background: #edf7f1; }
.mail-state-warning { color: #92691f; background: #fff7e8; }
.mail-state-error { color: #ad4947; background: #fdf0ef; }
.mail-state-unknown, .mail-state-not_configured, .mail-state-paused { color: #65758b; background: #f0f3f7; }
.mail-check-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; margin-bottom: 17px; }
.mail-check-chip { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 5px 4px; border-radius: 4px; font-size: 10px; font-weight: 550; }
.mail-check-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.mail-target-footer { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #edf1f7; }
.mail-target-time { color: #657c98; font-size: 10px; line-height: 1.7; }
.mail-target-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mail-target-actions .button { font-size: 10px; min-height: 33px; padding: 6px 8px; gap: 5px; }
.mail-target-actions .button svg { width: 12px; height: 12px; }
.mail-scheduler-warning { color: #996b24; }
.mail-events { padding: 0 23px; }
.mail-events .incident-row { align-items: flex-start; }
.mail-event-domain { display: block; font-size: 10px; color: #5676a0; margin-bottom: 4px; overflow-wrap: anywhere; }
.mail-events .incident-body strong { display: block; font-size: 13px; }
.mail-events .incident-body p { font-size: 12px; overflow-wrap: anywhere; }
.mail-events .incident-body time { font-size: 10px; }
.mail-panel-icon svg { width: 20px; height: 20px; color: #7792b3; }
.mail-form-dialog { width: min(660px,calc(100% - 32px)); }
.mail-form-dialog[open], .mail-history-dialog[open] { display: flex; flex-direction: column; max-height: 90dvh; overflow: hidden; }
.mail-form-dialog > form { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(90dvh - 2px); overflow: hidden; }
.mail-form-dialog .dialog-heading, .mail-form-dialog .dialog-footer, .mail-history-dialog .dialog-heading, .mail-history-dialog .dialog-footer { flex-shrink: 0; }
.mail-form-dialog .dialog-content, .mail-history-dialog .dialog-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d2deee transparent; }
.mail-form-dialog .field label { font-size: 12px; color: #48617e; }
.mail-form-dialog .field small { display: block; font-size: 11px; line-height: 1.8; color: #6a7f9a; }
.mail-form-dialog .field input, .mail-form-dialog .field select, .mail-form-dialog .field textarea { font-size: 13px; color: #37516e; }
.mail-form-dialog .field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.8; resize: vertical; min-height: 72px; }
.mail-endpoints { padding: 18px 0 0; margin: 4px 0 7px; border-top: 1px solid #e8edf5; }
.mail-endpoints h3 { color: #405c7e; font-size: 13px; }
.mail-endpoints > p { font-size: 11px; line-height: 1.8; color: #6a7f9a; margin: 6px 0 17px; }
.mail-endpoint-grid { grid-template-columns: minmax(0,1fr) minmax(0,.6fr); }
.mail-history-dialog { width: min(820px,calc(100% - 32px)); }
.mail-history-dialog .dialog-heading p { font-size: 12px; color: #6a83a0; margin: 5px 0 0; }
.mail-result-heading { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.mail-result-heading h3, .mail-runs > h3 { color: #3e5b7d; font-size: 14px; }
.mail-result-meta { font-size: 11px; line-height: 1.8; color: #687e99; margin: 5px 0 16px; }
.mail-check-details { display: grid; gap: 10px; }
.mail-check-detail { padding: 14px 16px; border: 1px solid #e2e9f2; border-radius: 4px; background: #fcfdff; min-width: 0; }
.mail-check-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mail-check-detail-heading h3 { font-size: 12px; color: #3d597a; line-height: 1.7; overflow-wrap: anywhere; }
.mail-check-detail-copy { font-size: 12px; color: #617792; line-height: 1.9; margin: 7px 0 0; overflow-wrap: anywhere; }
.mail-dns-records { margin-top: 10px; }
.mail-dns-records summary { color: #567aa8; font-size: 11px; cursor: pointer; line-height: 1.8; }
.mail-record-list { margin-top: 8px; display: grid; gap: 6px; }
.mail-record-list pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; padding: 10px 12px; margin: 0; border-radius: 3px; background: #edf2f8; color: #566e8c; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.8; max-height: 170px; overflow-y: auto; }
.mail-limitations { margin: 18px 0; padding: 14px 16px; border: 1px solid #e2e9f2; border-radius: 4px; background: #f4f7fb; }
.mail-limitations strong { font-size: 12px; color: #4e6684; }
.mail-limitations ul { padding-left: 18px; margin: 8px 0 0; color: #6a7e97; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.mail-runs { margin-top: 24px; }
.mail-runs > h3 { margin-bottom: 12px; }
.mail-history-run { border: 1px solid #e2e9f2; border-radius: 4px; margin-bottom: 8px; padding: 0 14px; }
.mail-history-run > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.mail-history-run > summary::after { content: '+'; color: #6d86a5; font-size: 16px; }
.mail-history-run[open] > summary::after { content: '−'; }
.mail-history-run > summary time { font-size: 12px; color: #536f92; flex: 1; }
.mail-history-run > .mail-check-details { padding-bottom: 14px; }
@media (max-width: 1250px) {
  .mail-targets { grid-template-columns: 1fr; }
  .mail-target-footer { flex-wrap: nowrap; }
}
@media (max-width: 1050px) {
  .mail-target-footer { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .mail-scope { align-items: flex-start; flex-wrap: wrap; padding: 15px; gap: 10px; }
  .mail-scope p { flex-basis: calc(100% - 34px); }
  .mail-interval { margin-left: 32px; }
  .mail-targets { padding: 16px; }
  .mail-events { padding: 0 18px; }
}
@media (max-width: 540px) {
  .mail-scope p { font-size: 11px; }
  .mail-next { font-size: 22px; min-height: 43px; white-space: normal; }
  .mail-toolbar select { max-width: none; }
  .mail-targets { padding: 13px; gap: 12px; }
  .mail-target-card { padding: 14px 12px; }
  .mail-target-heading { gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
  .mail-domain-symbol { width: 31px; height: 33px; }
  .mail-target-copy { flex-basis: calc(100% - 43px); }
  .mail-target-heading > .mail-badge { margin-left: 40px; margin-top: -3px; }
  .mail-domain-button { font-size: 14px; }
  .mail-check-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .mail-check-chip { min-height: 32px; font-size: 11px; }
  .mail-target-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .mail-target-actions .button { font-size: 11px; min-height: 42px; padding: 8px; }
  .mail-target-time { font-size: 10px; }
  .mail-events .incident-row { gap: 10px; }
  .mail-events .incident-body strong { font-size: 12px; }
  .mail-events .incident-body p { font-size: 11px; }
  .mail-form-dialog, .mail-history-dialog { width: calc(100% - 20px); }
  .mail-form-dialog[open], .mail-history-dialog[open] { max-height: 94dvh; }
  .mail-form-dialog > form { max-height: calc(94dvh - 2px); }
  .mail-form-dialog .field input, .mail-form-dialog .field select, .mail-form-dialog .field textarea { font-size: 16px; }
  .mail-form-dialog .dialog-content .mail-endpoint-grid { grid-template-columns: minmax(0,1fr) minmax(0,.75fr); gap: 0 12px; }
  .mail-form-dialog .dialog-footer .button { flex: 1; }
  .mail-check-detail { padding: 12px; }
  .mail-check-detail-heading { align-items: flex-start; }
  .mail-check-detail-copy { font-size: 11px; }
  .mail-dns-records summary { font-size: 10px; }
  .mail-record-list pre { font-size: 10px; }
  .mail-history-run { padding: 0 10px; }
  .mail-history-run > summary time { font-size: 11px; }
  .mail-history-dialog .dialog-footer { flex-wrap: nowrap; }
  .mail-history-dialog .dialog-footer .button { font-size: 11px; padding: 8px 10px; }
}
