/* Zefri Workspace · visual system. Loaded after the functional layout in style.css. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --ink: #17243a;
  --muted: #637187;
  --blue: #2563eb;
  --accent: #2563eb;
  --paper: #f4f6fa;
  --line: #e0e6ef;
  --surface: #fff;
  --nav: #101b2c;
  --nav-muted: #9eabc0;
  --normal: #127453;
  --normal-bg: #eaf7f1;
  --warn: #8d5b12;
  --warn-bg: #fff6e4;
  --danger: #b42e48;
  --danger-bg: #fff0f2;
  --gray-bg: #eef2f7;
  --radius: 12px;
  --sidebar-width: 244px;
  --shadow-card: 0 2px 5px #182b4803, 0 1px 2px #182b4803;
}
body { font-size: 13px; line-height: 1.6; letter-spacing: -.12px; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #82aaff; outline-offset: 3px;
}
button:disabled { cursor: not-allowed; }
.sidebar {
  width: var(--sidebar-width); height: 100dvh; padding: 27px 17px 18px;
  background: var(--nav); color: #bcc8da; border-right: 1px solid #243046;
  scrollbar-width: thin; scrollbar-color: #34415a transparent; overflow-y: auto;
}
.brand { margin: 0 15px 28px; width: max-content; }
.brand img { width: 113px; height: auto; }
.workspace {
  gap: 11px; padding: 13px 11px; border-radius: 9px; margin-bottom: 27px;
  border-color: #2b374a; background: #192639;
}
.workspace-symbol {
  width: 33px; height: 33px; border-radius: 7px; border: 1px solid #3a4961;
  color: #bfd3f5; background: #253650;
}
.workspace-symbol .icon { width: 18px; height: 18px; }
.workspace > div { min-width: 0; }
.workspace strong { color: #edf3fd; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.workspace small { color: #9caec8; font-size: 10px; margin-top: 2px; }
.nav-caption { margin: 0 13px 12px; font-size: 9px; letter-spacing: 1.6px; color: #8192ad; }
.sidebar nav { gap: 5px; }
.sidebar > * { flex-shrink: 0; }
.nav-item {
  position: relative; min-height: 44px; padding: 11px 13px; gap: 11px;
  border: 1px solid transparent; border-radius: 7px; font-size: 12px;
  font-weight: 550; color: #aab8cf; transition: background .16s, color .16s;
}
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.7; color: #8b9fbf; }
.nav-item.active { color: #f5f9ff; background: #243b60; border-color: #34527f; }
.nav-item.active::before { content: ""; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: #6b9dff; }
.nav-item.active svg { color: #8cb7ff; }
.nav-item:hover { background: #1e2e45; color: #fff; }
.nav-item b { min-width: 20px; font-size: 10px; padding: 1px 5px; text-align: center; color: #cfe0ff; background: #36547e; }
.side-note { display: flex; gap: 11px; align-items: flex-start; margin: auto 10px 22px; padding-top: 36px; }
.side-note > .icon { width: 18px; height: 18px; margin-top: 2px; color: #87a3ce; }
.side-note strong { font-size: 10px; font-weight: 600; letter-spacing: 0; color: #ccd7e8; }
.side-note p { color: #8d9fba; font-size: 10px; line-height: 1.6; margin: 3px 0 0; }
.side-help { font-size: 11px; gap: 10px; margin: 0 11px 19px; color: #b4c2d8; }
.side-help > .icon:first-child { border: 0; width: 17px; height: 17px; }
.side-help > .icon:last-child { margin-left: auto; width: 15px; height: 15px; color: #8395b2; }
.side-help:hover { color: #fff; }
.side-footer { font-size: 10px; gap: 8px; border-color: #2b374a; padding: 16px 11px 0; color: #8fa2bf; }
.side-footer .icon { width: 15px; height: 15px; color: #9cb6dc; }
.shell { margin-left: var(--sidebar-width); }
.topbar {
  position: sticky; top: 0; z-index: 8; min-height: 70px; height: auto;
  padding: 14px 32px; background: #ffffffef; backdrop-filter: blur(16px);
}
.breadcrumbs { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs > span { color: #a0acc0; margin: 0 10px; }
.breadcrumbs strong { color: #263852; font-weight: 650; }
.top-actions { gap: 12px; flex-shrink: 0; }
.mode-badge { font-size: 9px; border: 1px solid #dce6f8; letter-spacing: .45px; padding: 5px 8px; color: #3e5f92; background: #f1f6ff; }
.mode-badge.real { border-color: #cce9db; }
.active-tenant { max-width: 180px; color: #365b96; font-size: 11px; border-color: #dce7f9; padding: 5px 9px; }
.session-identity { font-size: 11px; color: #5c6b82; max-width: 210px; }
main { max-width: 1600px; padding: 30px 32px 0; }
.page-heading { align-items: center; margin-bottom: 26px; gap: 20px; }
.heading-actions { padding-top: 0; gap: 9px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: #657b9c; margin-bottom: 8px; }
h1, .access-panel h1, .summary-number, .temperature, .lead-metric > strong, .notification-metric > strong, .insight-projected-temperature {
  font-family: "Space Grotesk", Manrope, sans-serif;
}
h1 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 600; letter-spacing: -1.25px; line-height: 1.22; }
h2, .panel-heading h2 { font-size: 14px; line-height: 1.5; font-weight: 700; letter-spacing: -.25px; }
.page-heading p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 9px; }
.button { font-size: 12px; font-weight: 650; min-height: 40px; padding: 9px 13px; border-radius: 7px; gap: 8px; }
.button .icon, .text-button .icon { width: 16px; height: 16px; }
.button.small { font-size: 11px; min-height: 35px; padding: 7px 11px; }
.button.primary { border-color: #1c56d7; box-shadow: 0 2px 3px #1748ad15, inset 0 1px 0 #ffffff21; background: #2563eb; }
.button.primary:hover { background: #1c53ce; border-color: #1649bf; }
.button.dark { background: #182b47; border-color: #182b47; }
.button.ghost { background: #fff; color: #435572; border-color: #dbe3ee; box-shadow: 0 1px 2px #182b4804; }
.button.ghost:hover { background: #f8faff; border-color: #a9bfe3; color: #224d95; }
.button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.demo-banner { padding: 11px 14px; margin-bottom: 26px; border-radius: 8px; color: #465f85; font-size: 11px; background: #edf4ff; border-color: #d6e4fb; }
.banner-icon { border: 0; width: 20px; height: 20px; }
.banner-icon .icon { width: 17px; height: 17px; }
.demo-pill { font-size: 8px; }
.connection-error { font-size: 12px; border-radius: 8px; }
.summary-row { gap: 15px; }
.summary-item, .lead-metric, .notification-metric { border-radius: var(--radius); box-shadow: var(--shadow-card); min-height: 143px; padding: 20px; }
.summary-item[data-widget-id="total"], .lead-metric[data-widget-id="lead-total"] { background: #eef4ff; border-color: #cbdcf8; }
.summary-item[data-widget-id="total"] .summary-number { color: #2356ac; }
.summary-label, .lead-metric-label, .notification-metric > span { font-size: 11px; font-weight: 600; color: #52627c; line-height: 1.5; gap: 7px; }
.metric-icon { width: 31px; height: 31px; border-radius: 8px; display: inline-grid; place-items: center; color: #3d6cc1; background: #edf3ff; flex-shrink: 0; }
.metric-icon .icon { width: 17px; height: 17px; }
.summary-item[data-widget-id="total"] .metric-icon { color: #2859af; background: #dce9ff; }
.summary-item[data-widget-id="normal"] .metric-icon { color: var(--normal); background: var(--normal-bg); }
.summary-item[data-widget-id="attention"] .metric-icon { color: var(--warn); background: var(--warn-bg); }
.summary-item[data-widget-id="unread"] .metric-icon { color: #70819b; background: #f0f3f7; }
.summary-number { margin-top: 8px; font-size: 34px; letter-spacing: -1.5px; font-weight: 500; }
.summary-sub, .lead-metric small, .notification-metric > small { font-size: 10px; color: #6e7e95; margin-top: 7px; }
.section-row { margin: 28px 0 15px; }
.section-row h2 { font-size: 15px; }
.section-row h2 > span { font-size: 10px; border-radius: 5px; padding: 0 4px; }
.filters, .segmented { background: #e9edf4; border-color: #e1e6ee; border-radius: 7px; padding: 3px; gap: 2px; }
.filters button, .segmented button { font-size: 11px; min-height: 30px; padding: 5px 11px; border-radius: 5px; color: #61728c; }
.filters button.selected, .segmented button.selected { color: #2454a6; box-shadow: 0 1px 3px #253d6510; font-weight: 650; }
.device-grid { gap: 15px; margin-bottom: 24px; }
.device-card { min-height: 212px; padding: 21px; box-shadow: var(--shadow-card); border-radius: var(--radius); }
.device-card:hover { border-color: #a3bae1; box-shadow: 0 5px 18px #193b7310; }
.device-card.selected { border-color: #5d8ce1; box-shadow: 0 0 0 1px #5d8ce12b, 0 4px 16px #1a54ac06; background: linear-gradient(150deg, #f9fbff, #fff 65%); }
.device-card.selected::after { content: ""; width: 6px; height: 6px; top: 16px; right: 15px; background: #3d78df; box-shadow: 0 0 0 3px #e5edfd; }
.card-header { gap: 10px; padding-right: 8px; align-items: flex-start; }
.device-name { font-size: 12px; line-height: 1.55; font-weight: 700; }
.device-location { font-size: 10px; color: #70809a; margin-top: 5px; }
.status-badge { font-size: 10px; line-height: 1.5; font-weight: 650; padding: 4px 7px; gap: 5px; border-radius: 5px; }
.status-badge::before { width: 4px; height: 4px; flex-shrink: 0; }
.status-alert { background: var(--danger-bg); color: var(--danger); }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.temperature { font-size: 42px; font-weight: 500; letter-spacing: -1.8px; margin: 19px 0 18px; }
.temperature span { font-family: Manrope, sans-serif; font-size: 17px; color: #70819b; }
.temperature.muted { color: #9aa7ba; }
.card-bottom { padding-top: 12px; font-size: 10px; line-height: 1.6; color: #73829a; border-color: #e9edf4; }
.card-arrow { bottom: 62px; right: 22px; color: #869ab8; display: inline-flex; }
.card-arrow .icon { width: 22px; height: 22px; }
.detail-grid { gap: 18px; }
.panel { border-color: var(--line); box-shadow: var(--shadow-card); }
.panel-heading { padding: 22px 23px 19px; gap: 16px; }
.panel-heading .eyebrow { font-size: 9px; letter-spacing: 1.1px; color: #7082a0; margin-bottom: 5px; }
.chart-meta { padding: 0 23px; font-size: 10px; color: #73829a; gap: 7px; }
.chart-container { height: 290px; padding: 15px 15px 0; }
.chart-container svg text { font-family: Manrope, sans-serif; }
.chart-footer { font-size: 10px; margin: 0 23px; padding: 15px 0; color: #73829a; }
.chart-empty { font-size: 12px; }
.chart-empty strong { font-size: 14px; }
.range-key { width: 10px; height: 10px; background: #eaf1ff; border: 1px solid #d6e3fc; }
.equipment-summary { padding: 0 23px 5px; gap: 12px; }
.equipment-mark { display: grid; width: 35px; min-width: 35px; height: 35px; background: #f0f5fd; border-radius: 8px; color: #4677c8; }
.equipment-summary strong { font-size: 11px; font-weight: 650; line-height: 1.6; }
.equipment-summary p { font-size: 11px; color: #73829a; line-height: 1.7; }
dl, .equipment-panel dl { font-size: 11px; margin: 17px 23px 22px; }
dl > div { padding: 10px 0; border-color: #e9eef5; }
dt { color: #70809a; }
dd { font-weight: 650; color: #3f526e; }
.equipment-panel > .button { margin: 0 23px 23px; width: calc(100% - 46px); font-size: 11px; }
.event-row { padding: 18px 23px; grid-template-columns: 36px minmax(130px, 1fr) auto auto; gap: 14px; border-color: #e9eef5; }
.event-symbol { width: 35px; height: 35px; border-radius: 9px; }
.event-symbol .icon { width: 18px; height: 18px; }
.event-title { font-size: 12px; line-height: 1.6; }
.event-desc { font-size: 11px; color: #70809a; line-height: 1.7; margin-top: 4px; }
.event-date { font-size: 10px; color: #73829a; }
.event-action { min-height: 35px; font-size: 10px; border-radius: 6px; color: #365e9b; }
.event-ack { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #627993; }
.event-ack .icon { width: 14px; height: 14px; }
.empty { font-size: 12px; padding: 42px 24px; }
.settings-grid { gap: 16px; }
.settings-card { padding: 22px; }
.settings-card p { font-size: 11px; color: #73829a; }
.settings-card h2 { font-size: 14px; }
.settings-card dl { margin: 20px 0; }
.select-label { font-size: 11px; gap: 10px; }
input, textarea, select { color: #30435f; border-color: #d8e1ed; background: #fff; border-radius: 7px; font-size: 12px; min-height: 42px; }
input, textarea { padding: 11px 12px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 16px; height: 16px; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--blue); }
input::placeholder, textarea::placeholder { color: #8a98ad; }
input:hover, textarea:hover, select:hover { border-color: #aebfd9; }
select { padding: 9px 11px; }
.field-help, .form-grid label { font-size: 11px !important; line-height: 1.75; }
.form-error { font-size: 12px; }
.footnote { font-size: 10px; color: #75829a; line-height: 1.8; padding-top: 18px; }
.panel-subtitle { font-size: 11px; color: #6d7e98; line-height: 1.8; }
.record-count { font-size: 11px; padding: 3px 8px; background: #f3f6fa; border: 1px solid #e4eaf3; border-radius: 5px; color: #6b7e9b; }
.tiny-chip { font-size: 9px; color: #7084a5; letter-spacing: .5px; }
.main-footer { font-size: 10px; color: #7c8ba2; margin-top: 32px; padding: 20px 0 25px; }
.main-footer b { color: #4e6382; font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -1px; }
.lead-summary { gap: 13px; }
.lead-metric > strong { font-size: 34px; margin-top: 9px; font-weight: 500; }
.pipeline-row { font-size: 11px; grid-template-columns: 100px 1fr 28px; margin: 13px 0; }
.pipeline-note { font-size: 10px; color: #7b8aa2; }
.pipeline-track { height: 6px; }
.next-action-row { gap: 14px; padding: 13px 0; }
.next-action-row strong { font-size: 12px; color: #3c5275; }
.next-action-row p { font-size: 11px; color: #73839d; }
.next-action-number { font-family: "Space Grotesk", sans-serif; font-size: 26px; }
.lead-toolbar { gap: 16px; }
.lead-toolbar label { font-size: 11px; color: #61748f; }
.lead-toolbar input, .lead-toolbar select { font-size: 12px; min-height: 42px; }
.leads-empty strong, .insight-locked strong { font-size: 14px; color: #405572; }
.leads-empty p, .insight-locked { font-size: 12px; color: #6b7e99; }
.leads-empty .lock-symbol { background: #edf3fd; color: #4974b7; }
.leads-table { font-size: 12px; }
.leads-table th { font-size: 10px; font-weight: 700; color: #657994; background: #f8fafd; padding: 13px 22px; letter-spacing: .15px; }
.leads-table td { padding: 19px 22px; color: #60738f; border-color: #e9eef5; }
.leads-table td strong { font-size: 12px; color: #304764; }
.contact-line { font-size: 11px; color: #7588a2; }
.lead-status-cell select { font-size: 11px; min-height: 36px; }
.status-save { font-size: 10px; min-height: 30px; border-radius: 5px; }
.leads-error p { font-size: 12px; }
.table-scroll { scrollbar-width: thin; scrollbar-color: #c3cfe1 #f5f7fb; }
.pilot-stores { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pilot-store-card { padding: 19px 23px; }
.pilot-store-card strong { font-size: 12px; }
.pilot-store-card p { font-size: 11px; }
.store-channel { font-size: 10px; }
.notification-summary, .insights-summary { gap: 15px; margin-bottom: 22px; }
.notification-metric > strong { font-size: 32px; font-weight: 500; line-height: 1.2; margin-top: 12px; }
.notification-channel { padding: 0 23px 23px; gap: 15px; font-size: 11px; }
.notification-channel strong, .notification-channel p { font-size: 11px; line-height: 1.8; }
.notification-status { font-size: 10px; padding: 4px 8px; border-radius: 5px; }
.notification-followup { font-size: 11px; max-width: 320px; }
.recipients-panel { margin-bottom: 22px; }
.recipient-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 23px 18px; }
.recipient-toolbar select { min-width: 180px; }
.recipient-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.7; }
.recipient-check input { margin-top: 3px; }
.recipient-empty { padding: 20px 23px 30px; font-size: 12px; color: var(--muted); }
.recipients-table .text-button { white-space: nowrap; }
.team-access { padding: 0 23px 23px; gap: 14px; }
.access-fact { padding: 15px; border-radius: 8px; background: #f8fafd; border-color: #e5eaf3; }
.access-fact span { font-size: 10px; }
.access-fact strong { font-size: 12px; }
.user-actions .button { font-size: 11px; }
.tenant-context { padding: 0 23px 23px; }
.tenant-context strong { font-size: 14px; }
.tenant-context p { font-size: 11px; }
.tenant-active { font-size: 10px; }
.insights-method { border-color: #d6e2f7; background: #f4f8ff; padding: 22px; gap: 16px; }
.insights-method strong { font-size: 13px; color: #334f76; }
.insights-method p { font-size: 11px; color: #637d9f; line-height: 1.8; }
.insights-method-label { font-size: 9px; color: #5879ab; }
.insights-method-icon { width: 38px; height: 38px; background: #e4edfd; border-radius: 9px; color: #3b6ab7; }
.insights-method-icon .icon { width: 21px; height: 21px; }
.insights-source { font-size: 10px; line-height: 1.8; }
.insight-device { padding: 22px; border-color: #e0e7f2; border-radius: 10px; background: #fff; }
.insight-device h3 { font-size: 15px; font-weight: 700; }
.insight-device-store, .insight-risk { font-size: 10px; }
.insight-fact > span { font-size: 10px; color: #6a7c97; }
.insight-fact > strong { font-family: "Space Grotesk", sans-serif; font-size: 20px; color: #304966; }
.insight-fact > small { font-size: 10px; }
.insight-finding > strong { font-size: 12px; }
.insight-finding > p, .insight-projection p, .insight-projection > small, .insight-quality summary, .insight-quality-note, .insight-limitations { font-size: 11px; line-height: 1.8; }
.insight-projection-label { font-size: 9px; }
.insight-projection-horizon { font-size: 10px; }
.insight-projected-temperature { font-size: 32px; }
.insight-quality-facts .insight-fact > strong { font-size: 15px; }
.insight-timestamps { font-size: 10px; }
.insights-pagination > p { font-size: 11px; }
.insights-assistant { border-color: #d3e0f4; }
.insights-assistant > .panel-heading { background: #f5f8fe; }
.insights-assistant-status, .insights-assistant-limits ul, .insights-assistant-privacy { font-size: 11px; }
.insights-assistant-summary { font-size: 13px; }
.insights-assistant-priorities strong, .insights-assistant-priorities p { font-size: 12px; }
.insights-assistant-device, .insights-assistant-limits > strong { font-size: 11px; }
.layout-helper { border-radius: 8px; }
.layout-helper p { font-size: 11px; }
.widget-tools { border-radius: 6px; }
.widget-tools button { min-width: 30px; height: 28px; }
.is-customizing > .summary-item, .is-customizing > .lead-metric { padding-top: 54px; }
.toast { left: calc(50% + var(--sidebar-width) / 2); font-size: 12px; border-radius: 8px; }
dialog { border-color: #d7e0ed; border-radius: 13px; padding: 32px; box-shadow: 0 30px 120px #0d1c3d38; }
dialog::backdrop { background: #0c1a3370; backdrop-filter: blur(6px); }
dialog h2 { font-family: "Space Grotesk", sans-serif; font-size: 27px; font-weight: 600; }
dialog p { font-size: 12px; color: #657792; line-height: 1.8; }
dialog label { font-size: 12px; margin: 21px 0 9px; }
dialog .eyebrow { font-size: 9px; }
.close-button { top: 15px; right: 15px; width: 30px; height: 30px; border: 1px solid #e4eaf3; border-radius: 6px; display: grid; place-items: center; font-size: 22px; }
.close-button .icon { width: 16px; height: 16px; }
.close-button:hover { color: #2c518d; background: #f3f6fb; }
.dialog-brand { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 32px; padding-right: 40px; }
.dialog-brand img { display: block; width: 91px; height: auto; }
.dialog-brand > .icon { color: #7c8ea8; width: 17px; height: 17px; }
.login-support { font-size: 11px; color: #64748b; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.login-support a { color: #305dab; font-weight: 600; }
.login-support a:hover { text-decoration: underline; }
body.auth-screen { min-height: 100dvh; background: #f5f7fb; padding: 1px 20px 35px; }
body.auth-screen > .sidebar, body.auth-screen > .shell, body.auth-screen > .skip { display: none !important; }
body.auth-screen #login-dialog { position: relative; inset: auto; display: block; width: min(420px, 100%); margin: clamp(40px, 13vh, 130px) auto 0; padding: 34px; border-radius: 12px; box-shadow: 0 8px 32px #203a6410, 0 1px 3px #203a6408; }
body.auth-screen #login-dialog > .close-button,
body.auth-screen #login-dialog > .eyebrow,
body.auth-screen #login-dialog .dialog-brand > .icon { display: none; }
body.auth-screen #login-dialog .dialog-brand { padding-right: 0; margin: 0 0 30px; }
body.auth-screen #login-dialog .dialog-brand img { width: 100px; }
body.auth-screen #login-dialog h2 { font-size: 27px; margin-top: 0; }
body.auth-screen #login-dialog #account-auth-description { margin-top: 9px; }
#auth-loading { color: #64748b; font-size: 12px; margin-top: 20px; }
.legacy-access { font-size: 11px; }
.store-fieldset { font-size: 12px; }
.user-store-options label, .check-label { font-size: 12px; }
.summary-sub, .lead-metric small, .notification-metric > small, .device-location,
.card-bottom, .temperature span, .chart-meta, .chart-footer, .event-desc, .event-date,
.equipment-summary p, dt, .settings-card p, .panel-subtitle, .record-count, .contact-line,
.footnote, .main-footer, .tiny-chip, .insight-fact > small, .insight-timestamps {
  color: #64748b;
}
.chart-footer span:first-child { color: #436aa8; }

/* Access portal: an abstract connection graphic, with no simulated operational readings. */
#access-panel { display: grid; grid-template-columns: 1.1fr .9fr; padding: 0; margin: 38px auto 54px; max-width: 1080px; text-align: left; background: #fff; border: 1px solid #dce5f2; box-shadow: 0 12px 45px #243e7007; border-radius: 16px; }
.access-content { padding: 50px 42px 45px; position: relative; z-index: 1; }
.portal-label { display: flex; align-items: center; gap: 8px; color: #5775a4; font-size: 9px; letter-spacing: 1.65px; font-weight: 700; margin-bottom: 29px; }
.portal-label .icon { width: 16px; height: 16px; }
#access-panel h1 { margin: 0; font-size: clamp(34px, 3.2vw, 47px); line-height: 1.15; letter-spacing: -1.8px; color: #162b49; }
#access-panel h1 span { color: #557aa8; }
.access-content > p { max-width: 350px; font-size: 13px; color: #667c9b; line-height: 1.9; margin: 21px 0 27px; }
#access-panel .button { min-height: 44px; font-size: 12px; padding: 11px 18px; }
.access-note { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #7285a0; margin-top: 16px; }
.access-note .icon { width: 13px; height: 13px; }
.access-visual { position: relative; min-height: 380px; overflow: hidden; border-left: 1px solid #e5edf8; background: radial-gradient(ellipse at 50% 45%, #e1edff, transparent 63%), #f5f8fe; display: grid; place-items: center; }
.visual-grid { position: absolute; inset: 0; background-image: radial-gradient(#8da9d24d .7px, transparent .7px); background-size: 18px 18px; mask-image: radial-gradient(ellipse, #000, #0000 80%); }
.signal-orbit { position: absolute; width: 260px; height: 260px; border: 1px solid #b7cbed91; border-radius: 50%; }
.orbit-inner { width: 180px; height: 180px; border-style: dashed; border-color: #b0c5e399; }
.signal-core { position: relative; z-index: 2; width: 98px; height: 98px; display: grid; place-items: center; color: #5184cc; background: linear-gradient(145deg, #fff, #eff5ff); border: 1px solid #bacff0; border-radius: 25px; box-shadow: 0 18px 42px #5484cd1a, inset 0 1px 0 #fff; }
.signal-core > .icon { width: 41px; height: 41px; stroke-width: 1.3; }
.signal-ring { position: absolute; inset: -8px; border: 1px solid #c6d8f1; border-radius: 31px; }
.signal-node { position: absolute; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; color: #678bc0; background: #ffffffef; border: 1px solid #cbdcf4; border-radius: 11px; box-shadow: 0 5px 13px #5a7bad0d; }
.node-top { top: calc(50% - 126px); left: calc(50% - 98px); }
.node-bottom { top: calc(50% + 65px); left: calc(50% + 65px); }
.signal-node .icon { width: 21px; height: 21px; }
.visual-coordinate { position: absolute; z-index: 1; left: 24px; font-family: "Space Grotesk", sans-serif; font-size: 8px; letter-spacing: 1.5px; color: #8098b9; }
.coordinate-top { top: 25px; }
.coordinate-bottom { bottom: 23px; }
.signal-wave { position: absolute; width: 110%; height: 110px; color: #a0bce1; opacity: .55; }
.access-capabilities { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e2eaf6; background: #fbfcff; padding: 19px 22px; gap: 16px; }
.access-capabilities > div { display: flex; align-items: center; justify-content: center; gap: 9px; color: #627b9f; font-size: 10px; line-height: 1.6; }
.access-capabilities .icon { color: #5d83b8; width: 16px; height: 16px; }
#context-loading { max-width: 700px; padding: 65px 30px; background: #fff; }

@media (min-width: 1500px) {
  :root { --sidebar-width: 256px; }
  main { padding-left: 40px; padding-right: 40px; }
  .topbar { padding-left: 40px; padding-right: 40px; }
  .device-card { min-height: 220px; padding: 23px; }
  .summary-item, .lead-metric { padding: 22px; }
}
@media (max-width: 1280px) {
  :root { --sidebar-width: 222px; }
  main { padding-left: 25px; padding-right: 25px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .top-actions { gap: 8px; }
  .session-identity { display: none; }
  .summary-row, .device-grid { gap: 12px; }
  .summary-item { padding: 18px 16px; }
  .summary-label { font-size: 10px; }
  .metric-icon { width: 27px; height: 27px; }
  .card-header { flex-direction: column; gap: 8px; }
  .device-card { padding: 19px; }
  .detail-grid { grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr); }
  .widget-wide { grid-column: span 1; }
  .access-content { padding: 42px 30px; }
  #access-panel h1 { font-size: 39px; }
  .access-capabilities { gap: 10px; padding: 17px; }
  .access-capabilities > div { font-size: 9px; gap: 7px; }
}
@media (max-width: 1020px) {
  :root { --sidebar-width: 200px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .nav-item { font-size: 11px; padding-left: 10px; gap: 10px; }
  .nav-item.active::before { left: -13px; }
  .workspace { padding: 12px 10px; }
  .workspace-symbol { display: none; }
  main, .topbar { padding-left: 22px; padding-right: 22px; }
  .page-heading { display: block; }
  .heading-actions { padding-top: 16px; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-item { min-height: 136px; padding: 18px; }
  .summary-label { font-size: 11px; }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .widget-wide, .widget-full { grid-column: 1 / -1; }
  .card-bottom { flex-direction: row; font-size: 10px; }
  .event-row { grid-template-columns: 35px minmax(120px, 1fr) auto; gap: 12px; }
  .event-date { grid-column: 2; grid-row: 2; margin-top: -5px; }
  .event-action, .event-ack { grid-column: 3; grid-row: 1 / 3; }
  .insights-device-list { grid-template-columns: 1fr; }
  #access-panel { grid-template-columns: 1.1fr .9fr; margin-top: 25px; }
  .access-content { padding: 36px 26px; }
  #access-panel h1 { font-size: 32px; letter-spacing: -1.3px; }
  .access-content > p { font-size: 12px; }
  .access-visual { min-height: 350px; }
  .signal-orbit { width: 230px; height: 230px; }
  .orbit-inner { width: 160px; height: 160px; }
  .signal-core { width: 83px; height: 83px; border-radius: 21px; }
  .signal-ring { border-radius: 27px; }
  .access-capabilities { grid-template-columns: 1fr; gap: 12px; padding: 18px 26px; }
  .access-capabilities > div { justify-content: flex-start; font-size: 11px; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; width: 100%; height: auto; min-height: 108px; padding: 19px 18px 11px; flex-wrap: wrap; gap: 17px; border-right: 0; }
  .brand { margin: 0; }
  .brand img { width: 93px; }
  .brand::after { content: "WORKSPACE"; font-size: 8px; letter-spacing: 2px; color: #92a6c7; position: absolute; right: 20px; top: 25px; }
  .workspace, .nav-caption, .side-note, .side-help, .side-footer { display: none; }
  .sidebar nav { width: 100%; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 1px 0 4px; }
  .nav-item { flex: 0 0 42px; padding: 10px; min-height: 42px; justify-content: center; }
  .nav-item.active::before { display: none; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item > span, .nav-item > b { display: none; }
  .shell { margin-left: 0; }
  .topbar { position: static; min-height: 62px; padding: 12px 18px; align-items: center; gap: 10px; flex-wrap: wrap; }
  .breadcrumbs { font-size: 11px; }
  .breadcrumbs > span { margin: 0 6px; }
  .top-actions { margin-left: auto; gap: 8px; }
  .top-actions .button { min-height: 34px; font-size: 10px; padding: 7px 9px; }
  .active-tenant { display: none; }
  .mode-badge { font-size: 8px; padding: 4px 6px; letter-spacing: .2px; }
  main { padding: 24px 18px 0; }
  h1 { font-size: 29px; letter-spacing: -1.1px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .page-heading { margin-bottom: 23px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { flex-wrap: wrap; padding-top: 17px; gap: 8px; }
  .button { min-height: 40px; font-size: 12px; }
  .summary-row, .lead-summary, .notification-summary, .insights-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .summary-item, .lead-metric, .notification-metric { padding: 16px; min-height: 133px; }
  .summary-label, .lead-metric-label, .notification-metric > span { font-size: 10px; gap: 5px; }
  .metric-icon { width: 26px; height: 26px; border-radius: 6px; }
  .metric-icon .icon { width: 15px; height: 15px; }
  .summary-number, .lead-metric > strong, .notification-metric > strong { font-size: 32px; }
  .summary-sub, .lead-metric small, .notification-metric > small { font-size: 10px; }
  .section-row { flex-wrap: wrap; margin-top: 26px; gap: 12px; }
  .filters button { font-size: 10px; min-height: 32px; padding: 5px 10px; }
  .device-grid, .detail-grid, .settings-grid, .lead-insights { grid-template-columns: 1fr; gap: 14px; }
  .device-card { min-height: 205px; padding: 20px; }
  .card-header { flex-direction: row; align-items: flex-start; gap: 10px; padding-right: 7px; }
  .device-name { font-size: 12px; }
  .device-location { font-size: 11px; }
  .temperature { font-size: 41px; margin: 19px 0 17px; }
  .card-bottom { font-size: 10px; gap: 10px; }
  .card-arrow { bottom: 61px; }
  .panel-heading { padding: 20px 18px 18px; gap: 12px; flex-wrap: wrap; }
  .panel-heading h2 { font-size: 14px; }
  .panel-heading .eyebrow { font-size: 9px; }
  .chart-meta { padding: 0 18px; font-size: 9px; gap: 6px; flex-wrap: wrap; }
  .chart-container { height: 260px; padding: 15px 6px 0; }
  .chart-footer { font-size: 9px; margin: 0 18px; gap: 10px; }
  .equipment-summary { padding-left: 18px; padding-right: 18px; }
  .equipment-panel dl { margin: 18px; font-size: 11px; }
  .equipment-panel > .button { margin: 0 18px 20px; width: calc(100% - 36px); }
  .event-row { padding: 18px; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; }
  .event-symbol { width: 32px; height: 32px; }
  .event-title { font-size: 12px; }
  .event-desc { font-size: 11px; }
  .event-date { grid-column: 2; grid-row: auto; margin: -4px 0 0; font-size: 10px; }
  .event-action, .event-ack { grid-column: 2; grid-row: auto; width: max-content; max-width: 100%; font-size: 10px; min-height: 32px; }
  .event-ack { text-align: left; }
  .select-label { font-size: 11px; flex-direction: row; align-items: center; }
  .select-label select { font-size: 11px; }
  .record-count, .panel-subtitle, .contact-line { font-size: 11px; }
  .tiny-chip { font-size: 9px; }
  .leads-table td, .leads-table th { padding-left: 18px; padding-right: 18px; }
  .lead-toolbar { padding: 0 18px 20px; }
  .lead-toolbar input, .lead-toolbar select { font-size: 13px; min-height: 44px; }
  .lead-metric:first-child { min-height: 133px; }
  .pipeline-row { font-size: 11px; }
  .insights-method { padding: 18px; gap: 12px; }
  .insights-method strong { font-size: 13px; }
  .insights-method p { font-size: 11px; }
  .insights-method-label { margin-left: 50px; font-size: 9px; }
  .insights-device-list { padding: 0 14px 14px; }
  .insight-device { padding: 18px; }
  .insight-device h3 { font-size: 15px; }
  .insight-risk { font-size: 10px; }
  .insight-fact > strong { font-size: 19px; }
  .insight-fact > small { font-size: 10px; }
  .insights-assistant .button { font-size: 11px; }
  .insights-assistant-summary { font-size: 12px; }
  .insights-assistant-privacy { font-size: 10px; }
  .notification-channel, .team-access, .tenant-context { padding-left: 18px; padding-right: 18px; }
  .recipient-toolbar { padding-left: 18px; padding-right: 18px; }
  .main-footer { font-size: 10px; gap: 8px; margin-top: 28px; }
  .toast { left: 50%; font-size: 12px; }
  dialog { padding: 27px; }
  dialog h2 { font-size: 26px; }
  dialog input, dialog select, dialog textarea { font-size: 16px; }
  .dialog-brand { margin-bottom: 28px; }
  body.auth-screen { padding: 1px 18px 30px; }
  body.auth-screen #login-dialog { margin-top: 45px; padding: 28px 25px; }
  .layout-helper p { font-size: 11px; }
  #access-panel { grid-template-columns: 1fr; margin: 14px 0 34px; border-radius: 12px; }
  .access-content { padding: 31px 26px 29px; }
  .portal-label { font-size: 9px; margin-bottom: 23px; }
  #access-panel h1 { font-size: 38px; letter-spacing: -1.7px; }
  .access-content > p { font-size: 12px; margin: 18px 0 23px; }
  .access-note { font-size: 10px; }
  .access-visual { display: none; }
  .access-capabilities { padding: 21px 26px; gap: 15px; }
  .access-capabilities > div { font-size: 11px; }
  .footnote { font-size: 10px; }
}
@media (max-width: 380px) {
  main, .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar { gap: 9px; }
  .mode-badge { display: none; }
  .summary-item, .notification-metric { padding: 14px; }
  .summary-label { flex-wrap: wrap-reverse; gap: 6px; }
  .summary-sub { font-size: 9px; }
  .card-header { flex-wrap: wrap; }
  #access-panel h1 { font-size: 34px; }
  .access-content { padding-left: 23px; padding-right: 23px; }
}
/* Global platform operations keep each customer context explicit. */
.platform-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.platform-section-actions { flex-wrap: wrap; justify-content: flex-end; }
.platform-state:empty { display: none; }
.platform-state { color: var(--muted, #68758a); margin: 0 0 18px; }
.platform-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px); align-items: end; gap: 16px; padding: 0 24px; margin-bottom: 20px; }
.platform-toolbar label { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.platform-toolbar select { width: 100%; }
.platform-clients-table, .platform-devices-table { min-width: 780px; }
.platform-clients-table td strong, .platform-devices-table td strong { display: block; }
.platform-clients-table td small, .platform-devices-table td small { display: block; color: var(--muted, #68758a); margin-top: 4px; }
.platform-provisioning-key { font-family: ui-monospace, monospace; font-size: 13px; }
#platform-root dialog select { display: block; width: 100%; margin-top: 8px; }
.quota-usage { color: #465875; font-size: 13px; line-height: 1.6; margin: 12px 0 20px; }
.analytics-filters { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 18px; padding: 24px; align-items: end; }
.analytics-filters label, .equipment-profile-form label, .equipment-picker label { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; font-size: 12px; }
.analytics-filters select, .analytics-filters input, .equipment-picker select, .equipment-profile-form select { width: 100%; min-width: 0; }
.analytics-filters .button { align-self: end; }
.analytics-timezone { margin: -8px 0 18px; }
.analytics-state, .equipment-state { color: #516480; line-height: 1.6; font-size: 12px; }
.analytics-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.analytics-summary .summary-item { min-height: 145px; }
.analytics-stat-value { display: block; font-size: clamp(18px,2vw,30px); letter-spacing: -1px; line-height: 1.4; margin: 14px 0 8px; }
.analytics-context { font-size: 12px; color: #637187; line-height: 1.7; margin: 20px 0; }
.analytics-charts { padding: 24px; margin-bottom: 22px; }
.analytics-charts h2 { font-size: 17px; }
.analytics-plot svg { display: block; width: 100%; height: auto; margin-top: 20px; overflow: visible; touch-action: pan-y; }
.analytics-axis { font-size: 11px; fill: #6c7c92; font-family: inherit; }
.analytics-gridline { stroke: #e8edf5; stroke-width: 1; }
.analytics-safe-band { fill: #eef7f4; }
.analytics-limit { stroke: #84ad9f; stroke-width: 1; stroke-dasharray: 5 4; }
.analytics-extrema { fill: #d7e6ff; fill-opacity: .7; }
.analytics-mean-line { fill: none; stroke: #2563eb; stroke-width: 2.3; stroke-linejoin: round; }
.analytics-deviation-line { fill: none; stroke: #e98345; stroke-width: 2.3; }
.analytics-point { fill: #2563eb; }
.analytics-fault-point { fill: #e24e67; }
.analytics-crosshair { stroke: #94a5bc; stroke-width: 1; stroke-dasharray: 3 3; }
.analytics-tooltip { min-height: 35px; font-size: 11px; line-height: 1.7; color: #62728b; margin: 12px 0 0; }
.analytics-records { margin-bottom: 24px; }
.analytics-table, .equipment-records-table { min-width: 820px; }
.analytics-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 24px; border-top: 1px solid #e7edf5; }
.analytics-pagination > span { color: #637187; font-size: 12px; text-align: center; }
.equipment-picker { display: flex; align-items: end; gap: 18px; padding: 24px; }
.equipment-picker label { flex: 1; }
.equipment-profile-panel { padding: 24px; margin: 18px 0 24px; }
.equipment-profile-panel > h2 { font-size: 18px; }
.equipment-profile-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.equipment-profile-form textarea { width: 100%; resize: vertical; min-height: 90px; border: 1px solid #d6dfeb; border-radius: 8px; padding: 12px; font: inherit; }
.equipment-wide { grid-column: 1/-1; }
.equipment-form-actions { display: flex; justify-content: flex-end; }
.equipment-maintenance-panel { margin: 24px 0; }
#maintenance-form textarea { width: 100%; resize: vertical; font: inherit; padding: 12px; border: 1px solid #d6dfeb; border-radius: 8px; }
.insight-profile-line { display: flex; gap: 12px; justify-content: space-between; align-items: center; color: #637187; font-size: 12px; margin: 14px 0; }
.insight-maintenance { border-top: 1px solid #e4eaf4; padding-top: 18px; margin-top: 18px; }
.insight-maintenance h4 { font-size: 13px; margin: 0 0 10px; }
.insight-maintenance p, .insight-maintenance li { font-size: 12px; color: #52647e; line-height: 1.7; }
.insight-readiness { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.insight-readiness span { border-radius: 6px; background: #eef3fa; padding: 6px 9px; color: #52647e; font-size: 10px; }
.readiness-state { font-size: 13px; color: #52647e; line-height: 1.7; margin-bottom: 20px; }
.readiness-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.readiness-value { display: block; font-size: 21px; line-height: 1.4; margin: 14px 0; letter-spacing: -.6px; }
.readiness-summary [data-state='attention'], .readiness-summary [data-state='stale'], .readiness-summary [data-state='never_completed'] { border-color: #e4b5a8; }
.readiness-details { padding: 24px; }
.readiness-evidence { margin-top: 18px; }
.readiness-evidence > div { display: grid; grid-template-columns: minmax(180px,1fr) 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid #e9edf4; font-size: 12px; }
.readiness-evidence dt { color: #637187; }.readiness-evidence dd { margin: 0; color: #24364f; }
.readiness-limits { margin-top: 25px; color: #62728b; font-size: 12px; line-height: 1.7; }
.readiness-limits h2 { font-size: 15px; }.readiness-limits li { margin-top: 8px; }
@media (max-width: 760px) {
  .readiness-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .readiness-value { font-size: 17px; }.readiness-evidence > div { grid-template-columns: 1fr; gap: 5px; }
  .analytics-filters, .equipment-profile-form { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 18px; gap: 14px; }
  .analytics-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-charts, .equipment-profile-panel { padding: 18px; }
  .analytics-charts .panel-subtitle { font-size: 11px; }
  .equipment-picker { flex-direction: column; align-items: stretch; padding: 18px; }
  .analytics-pagination { padding: 16px; gap: 8px; }
  .analytics-pagination .button { font-size: 10px; padding: 8px; }
  .platform-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-toolbar { grid-template-columns: 1fr; }
  .platform-section-actions { justify-content: flex-start; }
  #change-password { font-size: 11px; padding: 7px; }
}
@media (max-width: 440px) {
  .readiness-summary { grid-template-columns: 1fr; }
  .analytics-filters, .equipment-profile-form { grid-template-columns: minmax(0,1fr); }
  .analytics-stat-value { font-size: 20px; }
  .analytics-summary .summary-item { padding: 15px; min-height: 138px; }
  .insight-profile-line { align-items: flex-start; flex-direction: column; }
}

/* Rules remain close to the real thresholds and routing configuration. */
.alert-rule-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.alert-rule-card { border: 1px solid #dde5f0; border-radius: 12px; padding: 21px; background: #fbfcfe; }
.alert-rule-card h3 { margin: 0 0 7px; font-size: 15px; color: #20324d; }
.alert-rule-card > strong { display: block; color: #1b4e9b; font-size: 14px; line-height: 1.6; margin: 18px 0 10px; }
.alert-rule-card > p { font-size: 12px; line-height: 1.75; color: #52647e; }
.alert-rule-card .button { margin-top: 10px; }
.alert-rule-note { border-left: 2px solid #adc7ec; padding: 8px 12px; background: #f0f5fc; border-radius: 0 6px 6px 0; }
.alert-rule-calculator { padding: 16px; margin: 18px 0; border: 1px solid #dce5f1; border-radius: 10px; background: #f8faff; }
.alert-rule-calculator > summary { color: #244b82; font-size: 12px; font-weight: 700; cursor: pointer; }
.alert-rule-calculator[open] > summary { margin-bottom: 13px; }
.alert-rule-calculator .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 15px 0; }
.alert-rule-preview { padding: 14px 16px; background: #eef4fd; border: 1px solid #cadbf5; border-radius: 9px; color: #244e87; font-size: 12px; line-height: 1.8; }

.audit-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; padding: 22px; margin-bottom: 12px; }
.audit-filters label { min-width: 0; font-size: 11px; color: #52647e; font-weight: 600; }
.audit-filters input,.audit-filters select { width: 100%; min-width: 0; margin-top: 7px; }
.audit-filter-actions { grid-column: 1/-1; display: flex; gap: 10px; justify-content: flex-end; }
.audit-state { font-size: 12px; color: #52647e; line-height: 1.75; margin: 20px 0; }
.audit-records { overflow: hidden; }
.audit-records-heading { padding: 23px; margin-bottom: 0; }
.audit-records-heading .panel-subtitle { font-size: 12px; }
.audit-table-wrap { overflow-x: auto; }
.audit-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.audit-table th { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #6a7b93; background: #f7f9fc; padding: 13px 17px; text-align: left; white-space: nowrap; }
.audit-table td { padding: 17px; border-top: 1px solid #e6ecf5; vertical-align: top; font-size: 12px; color: #344965; line-height: 1.65; overflow-wrap: anywhere; }
.audit-table td:first-child { font-variant-numeric: tabular-nums; width: 147px; }
.audit-table td > strong { font-size: 12px; color: #273c59; font-weight: 650; }
.audit-table td:nth-child(2) { min-width: 150px; }.audit-table td:nth-child(3) { min-width: 170px; }
.audit-subline { display: block; color: #708098; font-size: 10px; margin-top: 5px; }
.audit-outcome { display: inline-flex; padding: 3px 8px; border-radius: 5px; background: #eef3f9; color: #38526f; font-size: 10px; font-weight: 650; white-space: nowrap; }
.audit-outcome[data-outcome='denied'] { background: #fff0e8; color: #985020; }
.audit-outcome[data-outcome='failed'] { background: #fcebed; color: #a23b47; }
.audit-row-details { min-width: 125px; max-width: 310px; }.audit-row-details summary { cursor: pointer; color: #275fae; font-size: 11px; font-weight: 650; white-space: nowrap; }
.audit-row-details dl { margin: 13px 0 0; }.audit-row-details dl > div + div { margin-top: 10px; }
.audit-row-details dt { font-size: 10px; color: #73829a; }.audit-row-details dd { margin: 2px 0 0; font-size: 11px; color: #344965; }
.audit-pagination { border-top: 1px solid #e4ebf5; padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 13px; font-size: 11px; color: #63758f; }
.audit-footnote { margin-top: 18px; line-height: 1.8; }
@media (max-width: 1000px) {
  .audit-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .alert-rule-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .audit-records-heading { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px; }
  .audit-records-heading .button { align-self: flex-start; }
  .audit-filters { padding: 18px; gap: 14px; }
  .audit-table { min-width: 0; }.audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .audit-table tbody,.audit-table tr { display: block; }.audit-table tr { padding: 15px 18px; border-top: 1px solid #e4ebf5; }
  .audit-table td { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 0 12px; border: 0; padding: 6px 0; min-width: 0; width: auto; }
  .audit-table td::before { content: attr(data-label); color: #74849a; font-size: 10px; font-weight: 600; }
  .audit-table td > .audit-subline { grid-column: 2; }.audit-table td:first-child { width: auto; }
  .audit-table td:nth-child(2),.audit-table td:nth-child(3) { min-width: 0; }
  .audit-outcome { justify-self: start; }.audit-row-details { min-width: 0; max-width: none; }
  .audit-pagination { padding: 15px; gap: 8px; flex-wrap: wrap; justify-content: center; }.audit-pagination span { order: -1; width: 100%; text-align: center; }
  .audit-pagination .button { padding: 8px 12px; font-size: 11px; }
  .alert-rule-calculator .form-grid { grid-template-columns: 1fr; }.alert-rule-card { padding: 17px; }
}
@media (max-width: 440px) {
  .audit-filters { grid-template-columns: 1fr; }.audit-filter-actions { flex-direction: column; }.audit-filter-actions .button { justify-content: center; }
}

/* Account surfaces: one clear context, protected actions and predictable focus. */
.navigation-toggle,.close-navigation,.navigation-scrim { display:none; }
#active-tenant,#session-identity,#mode-badge { display:none; }
.topbar { gap:20px; }
.top-actions { flex-shrink:0; }
.side-note { display:none; }
.side-help { margin-top:auto; padding-top:24px; min-height:44px; }
.account-nav-item { margin-top:14px; }
.button,.button.small,.text-button,.filters button,.event-action { min-height:44px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #2563eb;outline-offset:3px;
}
.sidebar button:focus-visible,.sidebar a:focus-visible { outline-color:#a9cbff; }
summary { cursor:pointer; }
input,select,textarea { min-height:44px; }
.page-heading .heading-actions { padding-top:0; }
.security-identity,.security-summary,.security-sessions,.security-confirmation,.security-guidance,.recovery-code-panel { padding:24px; margin-bottom:18px; }
.security-identity { display:flex; gap:16px; align-items:flex-start; }
.security-identity > .icon { width:32px;height:32px;color:#2563eb; }
.security-identity-copy { min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere; }
.security-identity-copy strong { font-size:17px; }
.security-identity-copy small { color:#51617a; }
.security-state,.onboarding-state { color:#51617a;margin:0 0 16px; }
.security-state:empty,.onboarding-state:empty { display:none; }
.security-summary h2,.security-sessions h2,.security-confirmation h2,.security-guidance h2,.recovery-code-panel h2,.onboarding-content h2,.onboarding-secret h2 { margin:0 0 12px;font-size:17px; }
.security-protection { display:block;color:#127453;font-size:15px; }
.security-summary p,.security-guidance p,.security-confirmation p,.recovery-code-panel p { margin:8px 0 0; }
.security-session-list { list-style:none;margin:0;padding:0; }
.security-session-list li { display:flex;flex-direction:column;gap:4px;padding:14px 0;border-top:1px solid var(--line); }
.security-session-list li:first-child { border-top:0; }
.security-session-list span { color:#51617a;font-size:12px; }
.security-confirm-fields { display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px; }
.security-confirm-fields label,.onboarding-form-panel label { display:flex;flex-direction:column;gap:8px;font-size:12px;min-width:0; }
.security-confirm-fields input,.security-confirm-fields select,.onboarding-form-panel input,.onboarding-form-panel select { width:100%;min-width:0; }
.security-actions { display:flex;flex-wrap:wrap;gap:12px; }
.security-guidance { background:#f1f5fa; }
.security-guidance p { color:#465875; }
.mfa-auth h3,.activation-auth h3 { margin:20px 0 8px;font-size:20px;letter-spacing:-.5px; }
.mfa-description { color:#51617a;line-height:1.7;font-size:13px; }
.mfa-setup { margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f9fbff;text-align:center; }
.mfa-qr { display:block;width:188px;height:188px;max-width:100%;object-fit:contain;background:white;padding:8px;margin:0 auto 12px; }
.mfa-manual { font-size:12px; }
.mfa-manual summary { display:flex;min-height:44px;align-items:center;justify-content:center;color:#2458a6; }
.mfa-secret { display:block;padding:12px 0;word-break:break-all;font-family:ui-monospace,monospace;letter-spacing:1px;user-select:all; }
#mfa-code { font-size:22px;letter-spacing:3px; }
.mfa-auth .text-button { margin-top:8px; }
.mfa-auth .check-label { align-items:flex-start;font-size:12px;line-height:1.7;gap:10px; }
.recovery-code-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;padding:16px;margin:18px 0;background:#f3f6fb;border:1px solid #d9e2ef;border-radius:8px; }
.recovery-code-list li { color:#17243a;font-family:ui-monospace,monospace;font-size:13px;padding:6px 0;word-break:break-all;user-select:all; }
body.auth-screen #login-dialog { width:min(480px,100%); }
.onboarding-content { display:grid;gap:20px; }
.onboarding-checklist,.onboarding-form-panel,.onboarding-secret { padding:24px; }
.onboarding-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.onboarding-steps { list-style:none;padding:0;margin:20px 0; }
.onboarding-steps li { display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line); }
.onboarding-steps li > .icon { color:#2458a6; }
.onboarding-steps li > div { flex:1;min-width:0; }
.onboarding-steps small { display:block;color:#51617a; }
.onboarding-form-panel form { display:grid;gap:14px;margin-top:20px; }
.onboarding-store-options { min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px; }
.onboarding-form-panel label.store-option { display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px; }
.onboarding-store-options input { width:18px;height:18px;min-height:18px;flex:0 0 auto; }
.onboarding-secret { border:1px solid #98b6e5;background:#f3f7ff;margin:0 0 20px; }
.onboarding-secret > input { width:100%;margin:14px 0;font-family:ui-monospace,monospace;font-size:12px; }
.onboarding-secret > button { margin:0 8px 8px 0; }
.onboarding-content table { min-width:650px; }
.onboarding-content table td small { display:block;color:#51617a; }
.onboarding-content .panel > h2 { padding:20px 24px 0; }
.onboarding-content .onboarding-checklist > h2,.onboarding-content .onboarding-form-panel > h2 { padding:0; }
@media (max-width:1100px) {
  .topbar { padding-left:24px;padding-right:24px; }
  .security-confirm-fields { grid-template-columns:1fr 1fr; }
  .security-confirm-fields > label:first-child { grid-column:1/-1; }
}
@media (max-width:760px) {
  body.navigation-open { overflow:hidden; }
  .navigation-toggle { display:inline-flex;flex:0 0 44px;justify-content:center;padding:8px;font-size:24px; }
  .close-navigation { display:flex;position:absolute;right:13px;top:14px;width:44px;justify-content:center;color:#d6e3f9;border-color:#34445d; }
  .navigation-scrim:not([hidden]) { display:block;position:fixed;inset:0;z-index:29;background:#07101fb3;border:0; }
  .sidebar { display:flex;position:fixed;inset:0 auto 0 0;width:min(286px,86vw);height:100dvh;z-index:30;padding:28px 18px 18px;transform:translateX(-105%);transition:transform .18s ease;overflow-y:auto;overflow-x:hidden; }
  body.navigation-open .sidebar { transform:translateX(0); }
  .sidebar .brand { display:block;margin:0 14px 28px; }
  .sidebar .brand img { width:113px; }
  .sidebar .workspace { display:flex; }
  .sidebar .nav-caption,.sidebar .side-help,.sidebar .side-footer { display:flex; }
  .sidebar nav { display:flex;flex-direction:column;overflow:visible;width:100%;gap:5px;padding:0; }
  .sidebar .nav-item { flex:0 0 auto;justify-content:flex-start;min-height:44px;padding:11px 13px;gap:11px; }
  .sidebar .nav-item > span,.sidebar .nav-item > b { display:inline; }
  .sidebar .nav-item.active::before { display:block; }
  .shell { margin-left:0; }
  .topbar { position:sticky;min-height:72px;padding:12px 18px;gap:10px;flex-wrap:nowrap; }
  .breadcrumbs { flex:1;font-size:11px;line-height:1.5; }
  .breadcrumbs strong { display:block; }
  .breadcrumbs > span { display:none; }
  .top-actions { margin:0;gap:8px; }
  .top-actions .button { min-width:44px;min-height:44px;padding:10px; }
  .top-actions .button > span:not(.icon) { display:none; }
  .top-actions .button > svg { width:18px;height:18px; }
  .button,.button.small,.text-button,.filters button,.event-action { min-height:44px; }
  .security-confirm-fields,.onboarding-grid { grid-template-columns:1fr; }
  .security-confirm-fields > label:first-child { grid-column:auto; }
  .security-identity,.security-summary,.security-sessions,.security-confirmation,.security-guidance,.recovery-code-panel,.onboarding-checklist,.onboarding-form-panel,.onboarding-secret { padding:20px; }
  .security-actions { flex-direction:column; }
  .security-actions .button { width:100%;justify-content:center; }
  .security-confirm-fields input,.security-confirm-fields select,.onboarding-form-panel input,.onboarding-form-panel select { font-size:16px; }
  .onboarding-steps li { flex-wrap:wrap; }
  .onboarding-steps li > div { flex-basis:calc(100% - 40px); }
  .onboarding-steps li > .button { margin-left:33px; }
  .onboarding-content .panel > h2 { padding:20px; }
  .onboarding-content .onboarding-checklist > h2,.onboarding-content .onboarding-form-panel > h2 { padding:0; }
  .page-heading:has(#change-password) { flex-direction:column;align-items:flex-start; }
  .page-heading:has(#change-password) .heading-actions { width:100%;padding:8px 0 0; }
}
@media (prefers-reduced-motion:reduce) { .sidebar { transition:none; } }
.nav-group { display:flex;flex-direction:column;gap:5px; }
.nav-group + .nav-group { margin-top:14px;padding-top:16px;border-top:1px solid #2b374a; }
.nav-group-title { margin:0 13px 5px;color:#9eabc0;font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase; }
.nav-group .nav-item { width:100%; }
.nav-group .account-nav-item { margin-top:0; }
.live-status { display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0 0 22px;padding:12px 15px;border:1px solid #dce6f4;border-radius:8px;background:#f8faff;color:#365478;font-size:12px; }
.live-status > .icon { color:#2864be;width:17px;height:17px; }
.live-status > span[role='status'] { font-weight:650; }
.live-status small { font-size:11px;color:#516480; }
.live-status[data-state='error'],.live-status[data-state='offline'] { background:#fff8ee;border-color:#ebd7b1;color:#805420; }
.live-status[data-state='error'] > .icon,.live-status[data-state='offline'] > .icon { color:#805420; }
@media(max-width:760px){.live-status{align-items:flex-start;}.live-status small{flex-basis:100%;padding-left:27px;}}
