:root {
  --canvas: #f4f5f5;
  --paper: #fff;
  --ink: #222726;
  --muted: #949a98;
  --line: #edf0ee;
  --mint: #d9f8e8;
  --green: #5cc78f;
  --forest: #236c4b;
  --forest-dark: #185336;
  --danger: #b34a42;
  --radius: 23px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
a, button, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--forest); text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { color: var(--ink); min-width: 0; }
input, textarea { width: 100%; border: 1px solid #dfe5e1; border-radius: 10px; background: #fff; padding: 12px 13px; }
input::placeholder { color: #a3aaa6; }
input:focus, textarea:focus { border-color: #69b98c; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid #89cfaa; outline-offset: 3px; }
label { display: block; margin: 20px 0 8px; font-size: .82rem; font-weight: 550; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 2rem; font-weight: 570; line-height: 1.2; letter-spacing: -.055em; }
h2 { font-size: .95rem; font-weight: 550; letter-spacing: -.025em; }
h3 { font-size: .9rem; font-weight: 550; }
p { line-height: 1.6; }
form { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.eyebrow { display: block; color: var(--muted); font-size: .6rem; font-weight: 650; letter-spacing: .13em; margin-bottom: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; transform: translateY(-160%); padding: 12px; background: #fff; border-radius: 8px; }
.skip-link:focus { transform: none; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.4rem; font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--forest-dark); color: #f2fff7; font-size: 2rem; font-weight: 450; letter-spacing: -.15em; padding: 0 6px 5px 0; }
.brand-sub { display: block; font-size: .43rem; letter-spacing: .11em; margin-top: 6px; font-weight: 550; }
.brand-icon { width: 30px; height: 30px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid transparent; border-radius: 10px; padding: 10px 15px; font-size: .75rem; font-weight: 550; line-height: 1.25; white-space: nowrap; text-align: center; transition: background .15s; }
.primary { background: var(--ink); color: #fff; }
.primary:hover:not(:disabled) { background: #3b4941; }
.secondary { color: var(--ink); background: #fff; border-color: #e9edea; }
.secondary:hover:not(:disabled) { background: #f4f8f5; }
.button.small { min-height: 32px; padding: 8px 11px; font-size: .66rem; }
.full-width { width: 100%; }
.button-icon, .icon-button svg, .select-control svg, .soft-icon svg, .summary-caption svg, .nav-link svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.button-icon { width: 17px; height: 17px; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-button { display: inline-flex; align-items: center; border: 0; background: none; padding: 8px 0; color: var(--forest); font-size: .78rem; font-weight: 550; text-decoration: underline; text-decoration-color: #236c4b45; text-underline-offset: 4px; }
.text-button:hover { text-decoration-color: var(--forest); }
.text-button.small { font-size: .66rem; }
.subtle-link { display: inline-block; font-size: .75rem; text-decoration: underline; text-underline-offset: 4px; margin-top: 24px; }
.message { font-size: .78rem; padding: 12px 14px; border: 1px solid #d5ebdd; background: #f0faf4; border-radius: 11px; color: #336547; line-height: 1.55; margin: 14px 0; }
.message.error { border-color: #f4dcd6; background: #fff5f2; color: var(--danger); }
.inline-message { font-size: .75rem; color: var(--muted); padding: 14px 22px; line-height: 1.6; margin: 0; }
.inline-message.error { color: var(--danger); }
.field-help { font-size: .69rem; color: #8a928c; line-height: 1.55; margin: 7px 0 0; }
.optional { color: var(--muted); font-weight: 400; font-size: .67rem; margin-left: 4px; }
.icon-button { border: 0; background: #f5f7f5; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #68736b; font-size: 1.25rem; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-size: .8rem; }
.boot-screen .brand-mark { animation: breathe 1.7s ease-in-out infinite; }
.pending-screen { display: grid; place-items: center; min-height: 100vh; padding: 50px 24px; }
.pending-card { max-width: 690px; background: #fff; border-radius: 26px; padding: 44px; }
.pending-card > .brand { margin-bottom: 45px; }
.pending-card h1 { font-size: 1.9rem; }
.pending-card p, .setup-list { font-size: .85rem; }
.setup-list { padding-left: 21px; line-height: 1.7; margin-bottom: 24px; }
.setup-list li + li { margin-top: 9px; }
.auth-screen { display: grid; grid-template-columns: minmax(340px,43%) 1fr; min-height: 100vh; padding: 14px; gap: 14px; }
.auth-story { border-radius: 27px; background: #233e32; color: #f5f9f5; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-story:after { content: ""; position: absolute; width: 450px; height: 450px; border: 1px solid #ffffff0d; border-radius: 50%; right: -270px; bottom: 10%; box-shadow: 0 0 0 45px #ffffff03,0 0 0 90px #ffffff03,0 0 0 135px #ffffff03; pointer-events: none; }
.auth-story .brand { color: #fff; }
.auth-story .brand-mark { background: #d9f4e3; color: #274c36; }
.auth-story-content { padding: 55px 0; position: relative; z-index: 1; }
.auth-story .eyebrow { color: #9ec2ac; }
.auth-story h2 { font-size: clamp(2rem,3.1vw,3.1rem); line-height: 1.23; font-weight: 440; letter-spacing: -.055em; margin: 24px 0; }
.auth-story-content p { color: #b7cbbd; font-size: .88rem; max-width: 325px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 330px; margin-top: 32px; }
.story-tags span { border: 1px solid #ffffff25; border-radius: 30px; padding: 8px 11px; font-size: .65rem; color: #d9e8dc; }
.story-footer { font-size: .67rem; color: #9db5a4; margin: 0; }
.auth-content { display: flex; align-items: center; justify-content: center; padding: 50px 40px; background: #fff; border-radius: 27px; }
.auth-form-wrap { width: 100%; max-width: 360px; }
.auth-form-wrap h1 { font-size: 1.95rem; margin: 13px 0; }
.auth-form-wrap > p { font-size: .83rem; }
.auth-form-wrap form { margin-top: 30px; }
.password-field { position: relative; }
.password-field input { padding-right: 67px; }
.password-toggle { position: absolute; top: 5px; bottom: 5px; right: 5px; width: 49px; border: 0; border-radius: 7px; background: #f2f5f3; color: #476853; font-size: .69rem; }
.forgot-link { display: block; margin: 8px 0 20px auto; font-size: .72rem; }
.auth-help { color: #919a93; font-size: .7rem !important; margin: 20px 0 0; }
.auth-form-wrap .subtle-link { font-size: .7rem; }
.auth-form-wrap .full-width { min-height: 45px; margin-top: 6px; }
#reset-back { display: block; margin-top: 16px; }
#reset-request-link { margin-top: 20px; }
/* Dashboard */
.app-layout { display: grid; grid-template-columns: 226px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; border-radius: 23px; background: #fff; padding: 31px 17px 20px; display: flex; flex-direction: column; }
.dashboard-brand { padding: 0 8px; font-size: 1.25rem; gap: 10px; }
.dashboard-brand .brand-sub { font-size: .34rem; margin-top: 5px; letter-spacing: .1em; }
.nav-section-label { font-size: .48rem; letter-spacing: .1em; font-weight: 600; color: #b3b8b5; padding: 0 13px; margin: 49px 0 12px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; color: #6e7571; font-size: .72rem; padding: 12px 13px; border-radius: 10px; white-space: nowrap; }
.nav-link.current { background: #f3f5f3; color: #252c27; font-weight: 550; }
.nav-link:hover { background: #f5f8f5; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-bottom > .nav-link { margin-bottom: 22px; }
.account-card { display: flex; gap: 10px; align-items: center; padding: 15px 7px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border-radius: 50%; color: #45775b; font-size: .71rem; background: #e4f4e9; }
.account-card > div { min-width: 0; }
.account-label { font-size: .65rem; font-weight: 550; }
.account-email { overflow-wrap: anywhere; font-size: .54rem; color: #929b95; margin: 4px 0 0; line-height: 1.4; }
.sidebar-bottom .button { font-size: .65rem; min-height: 34px; padding: 9px; }
.main-content { padding: 39px 25px 22px 28px; max-width: 1900px; min-width: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(1.7rem,2.2vw,2.2rem); }
.page-header p { color: #9a9f9c; font-size: .75rem; margin: 0; }
.header-controls { display: flex; align-items: center; gap: 9px; }
.select-control { display: flex; align-items: center; gap: 8px; border-radius: 30px; background: #fff; padding: 9px 13px; min-height: 40px; }
.select-control svg { width: 16px; height: 16px; }
.select-control select { background: none; border: 0; font-size: .68rem; max-width: 180px; padding: 2px 2px 2px 0; }
.chip-control select { max-width: 155px; }
.refresh-button { background: #fff; min-width: 38px; height: 38px; }
.refresh-button svg { width: 16px; height: 16px; }
.header-controls > .button { font-size: .67rem; min-height: 39px; border-radius: 30px; padding: 11px 15px; }
.metrics-context { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #9ba29d; font-size: .59rem; margin: 0 3px 12px; }
.metrics-context > span:first-child { display: flex; align-items: center; gap: 6px; }
.status-dot, .metric-marker, .legend-dot { display: inline-block; background: var(--green); flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; }
.summary-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.summary-card { background: #fff; padding: 22px 20px 19px; border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; }
.summary-label { font-size: .74rem; color: #979e99; font-weight: 450; }
.summary-card strong { display: block; font-size: clamp(1.4rem,2.05vw,2.05rem); line-height: 1.25; font-weight: 550; letter-spacing: -.045em; margin: 23px 0 14px; overflow-wrap: anywhere; }
.summary-caption { display: flex; align-items: center; gap: 5px; color: #919a93; font-size: .58rem; line-height: 1.45; margin-top: auto; }
.summary-caption svg { width: 12px; height: 12px; color: #6a8272; }
.metric-marker { width: 5px; height: 5px; background: #b1dec2; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 14px; margin-bottom: 15px; }
.panel { min-width: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 23px 16px; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: .88rem; font-weight: 500; color: #858e87; }
.panel-heading p { margin: 8px 0 0; font-size: .62rem; color: #a2aaa4; line-height: 1.45; }
.chart-heading { align-items: flex-start; padding-bottom: 11px; }
.chart-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chart-controls select { border: 0; border-radius: 7px; background: #f5f7f5; padding: 7px 9px; font-size: .61rem; }
.chart-stat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 23px 9px; }
.chart-stat-label { display: flex; align-items: center; gap: 6px; color: #8f9791; font-size: .61rem; }
.chart-value { display: flex; gap: 7px; align-items: baseline; margin-top: 10px; }
.chart-value strong { font-size: 2rem; line-height: 1; font-weight: 550; letter-spacing: -.055em; }
.chart-value > span { color: #9da49f; font-size: .8rem; }
.chart-stat > p { font-size: .59rem; color: #9da59f; text-align: right; max-width: 170px; margin: 0; line-height: 1.7; }
.chart-canvas { height: 215px; padding: 0 13px 0 10px; }
.chart-canvas svg, .bar-canvas svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-empty { display: flex; align-items: center; justify-content: center; min-height: 190px; height: 100%; padding: 35px; text-align: center; font-size: .73rem; line-height: 1.7; color: #adb4ae; background: repeating-linear-gradient(0deg,transparent,transparent 47px,#f7f8f6 47px,#f7f8f6 48px); border-radius: 12px; }
.chart-grid-line { stroke: #e6ebe7; stroke-width: 1; stroke-dasharray: 4 6; }
.chart-axis-label { fill: #a4aca5; font-size: 10px; font-family: inherit; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #62ca95; stroke: #fff; stroke-width: 2; opacity: 0; }
.chart-dot:hover, .chart-dot:focus, .chart-dot.last { opacity: 1; }
.chart-dot:focus { outline: none; stroke: #278355; stroke-width: 3; }
.chart-footnote { padding: 8px 23px 20px; color: #a3aaa4; font-size: .56rem; line-height: 1.6; margin: 0; min-height: 43px; }
.soft-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #a3b3a6; background: #f5f8f4; border-radius: 9px; }
.soft-icon svg { width: 16px; height: 16px; }
.reception-panel .panel-heading { padding-bottom: 18px; }
.reception-total { display: flex; flex-direction: column; padding: 0 24px 6px; }
.reception-total > strong { font-size: 2.2rem; font-weight: 550; letter-spacing: -.055em; line-height: 1.2; }
.reception-total > span { font-size: .6rem; color: #a0a79f; margin-top: 8px; }
.bar-canvas { height: 196px; padding: 0 16px; }
.bar-canvas .chart-empty { min-height: 170px; }
.reception-bar { fill: #a7e1be; transition: fill .15s; }
.reception-bar:hover, .reception-bar:focus { fill: #5cc78f; outline: none; }
.reception-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .58rem; color: #939e95; padding: 15px 24px 22px; }
.reception-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.reception-footer > span:last-child { font-weight: 600; color: #657a69; }
.lower-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.2fr) minmax(0,.9fr); gap: 14px; margin-bottom: 15px; align-items: stretch; }
.device-status-panel .panel-heading, .sample-panel .panel-heading { padding-bottom: 13px; }
.status-empty { min-height: 260px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.status-empty p { color: #a1aaa2; font-size: .74rem; max-width: 220px; }
.selected-header { padding: 3px 23px 0; }
.selected-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.selected-title-row h3 { margin: 0; overflow-wrap: anywhere; font-size: .82rem; }
.selected-header .mono { margin: 7px 0 0; font-size: .54rem; overflow-wrap: anywhere; }
.selected-location { font-size: .58rem; color: #a2aaa4; margin: 5px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 4px 6px; color: #4b976b; background: #e6f8ec; font-size: .5rem; font-weight: 550; white-space: nowrap; }
.badge:before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.inactive { background: #f1f2ef; color: #a1a299; }
.coverage-gauge { margin: 10px 23px 0; min-height: 115px; }
.coverage-gauge svg { display: block; width: 100%; height: 130px; }
.gauge-background { stroke: #edf0ec; fill: none; stroke-width: 8; stroke-linecap: round; }
.gauge-progress { stroke: var(--green); fill: none; stroke-width: 8; stroke-linecap: round; }
.gauge-number { fill: #303a33; font-size: 32px; font-weight: 550; letter-spacing: -1px; font-family: inherit; text-anchor: middle; }
.gauge-caption { fill: #a1aaa2; font-size: 10px; font-family: inherit; text-anchor: middle; }
.coverage-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding: 0 23px; }
.coverage-field { display: flex; align-items: center; gap: 5px; color: #b0b7b0; font-size: .53rem; }
.coverage-field:before { content: ""; display: block; width: 5px; height: 5px; background: #e0e5df; border-radius: 50%; }
.coverage-field.present { color: #6b8372; }
.coverage-field.present:before { background: #74cf9a; }
.coverage-explanation { color: #a5ada6; font-size: .5rem; line-height: 1.7; padding: 0 23px; margin: 13px 0; }
.device-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 23px 22px; padding-top: 15px; border-top: 1px dashed #e5ebe4; }
.device-actions .button, .device-actions .text-button { font-size: .57rem; }
.devices-panel .panel-heading { padding-bottom: 16px; }
.search-input { display: block; width: calc(100% - 44px); margin: 0 22px 9px; font-size: .65rem; padding: 10px 11px; border: 0; background: #f6f8f6; border-radius: 8px; }
.device-list { max-height: 213px; overflow-y: auto; padding: 0 13px 8px; min-height: 141px; }
.device-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; margin: 2px 0; padding: 11px 10px; color: var(--ink); }
.device-item:hover { background: #f7faf6; }
.device-item.selected { background: #f0f7f0; }
.device-item-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.device-item-name { font-size: .7rem; font-weight: 550; overflow-wrap: anywhere; }
.device-item-id { display: block; font-size: .52rem; color: #a0aaa0; margin-top: 6px; overflow-wrap: anywhere; }
.device-item-location { display: block; font-size: .52rem; color: #a0aaa0; margin-top: 5px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #f0f2ef; padding: 15px 23px; }
.device-pagination { padding: 12px 22px; }
.page-button { width: 28px; height: 28px; border: 1px solid #eaf0e9; color: #669073; border-radius: 7px; background: #fff; }
.page-button:hover:not(:disabled) { background: #edf8f0; }
.page-description { color: #9da69e; font-size: .59rem; }
.context-stat { margin: 0 23px; padding: 15px 0; border-bottom: 1px dashed #e5ebe4; position: relative; }
.context-stat > span { color: #9da69e; font-size: .63rem; display: block; padding-right: 40px; }
.context-stat > strong { position: absolute; top: 12px; right: 0; font-size: 1.25rem; font-weight: 550; letter-spacing: -.035em; }
.context-stat > small { display: block; margin-top: 8px; font-size: .52rem; color: #adb5ad; line-height: 1.6; }
.sample-summary { padding: 20px 23px 15px; }
.sample-summary-label { font-size: .48rem; letter-spacing: .1em; color: #b0b7b0; }
.sample-summary p { color: #98a499; font-size: .63rem; line-height: 1.75; margin: 10px 0 0; }
.history-panel { margin-bottom: 16px; }
.table-zone { color: #a0aaa1; font-size: .58rem; white-space: nowrap; }
.filter-form { display: grid; grid-template-columns: minmax(180px,240px) minmax(180px,240px) auto auto 1fr; align-items: end; gap: 11px; padding: 0 23px 19px; }
.filter-form label { font-size: .6rem; margin: 0 0 7px; color: #8e9a8f; font-weight: 450; }
.filter-form input { border-color: #edf1ed; font-size: .64rem; padding: 9px 10px; min-height: 33px; border-radius: 8px; }
.filter-form .button { font-size: .62rem; min-height: 33px; }
.filter-form .text-button { font-size: .6rem; min-height: 33px; }
.filter-note { color: #adb5ad; font-size: .52rem; line-height: 1.6; margin: 0; align-self: end; padding-left: 8px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .67rem; }
th { color: #a3aca3; font-size: .6rem; font-weight: 450; padding: 12px 23px 16px; white-space: nowrap; border-bottom: 1px dashed #e4ebe3; }
th > span { display: block; font-size: .48rem; margin-top: 4px; color: #b5bdb5; }
td { padding: 16px 23px; border-bottom: 1px dashed #e8ede7; white-space: nowrap; vertical-align: top; font-size: .66rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfefb; }
.cell-time { display: block; margin-top: 4px; font-size: .53rem; color: #a6afa5; }
.cell-unit { display: block; margin-top: 4px; font-size: .52rem; color: #a5afa4; }
.table-empty { text-align: center; padding: 35px 23px; color: #acb5aa; font-size: .73rem; white-space: normal; line-height: 1.7; }
details { max-width: 240px; white-space: normal; }
summary { cursor: pointer; font-size: .6rem; color: #6e9b78; }
details pre { font-size: .57rem; line-height: 1.65; padding: 10px; border-radius: 7px; background: #f4f8f2; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 240px; min-width: 130px; margin-bottom: 0; }
.quick-guide { display: flex; align-items: center; gap: 20px; padding: 18px 23px; border-radius: 16px; margin-bottom: 10px; background: #ecf1eb; }
.guide-heading { font-size: .63rem; font-weight: 550; color: #7d907f; white-space: nowrap; }
.quick-guide ol { display: flex; align-items: center; gap: 18px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.quick-guide li { display: flex; align-items: center; gap: 6px; color: #95a292; font-size: .57rem; }
.quick-guide li > span { width: 17px; height: 17px; border: 1px solid #cad9c7; border-radius: 50%; display: grid; place-items: center; font-size: .5rem; }
.quick-guide > a { font-size: .58rem; color: #6b926e; margin-left: auto; white-space: nowrap; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .53rem; color: #b0b9ad; padding: 18px 2px 0; }
/* Forms and dialogs */
.dialog { color: var(--ink); padding: 0; border: 0; border-radius: 23px; width: 445px; max-width: calc(100vw - 32px); max-height: calc(100vh - 42px); box-shadow: 0 25px 100px #213b2d2b; }
.dialog::backdrop { background: #243c324d; backdrop-filter: blur(3px); }
.dialog-content { padding: 30px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 7px; }
.dialog-heading .eyebrow { margin-bottom: 0; }
.dialog h2 { font-size: 1.35rem; color: #303c33; margin: 11px 0; font-weight: 550; }
.dialog p { font-size: .78rem; }
.dialog .field-help { font-size: .67rem; }
.dialog form > .button { margin-top: 23px; }
.success-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 50%; color: #5ca578; background: #e5f8eb; font-size: 1.3rem; }
.secret-warning { font-size: .73rem; line-height: 1.6; color: #8d7c4b; background: #faf7e9; border-radius: 11px; padding: 12px 14px; margin: 22px 0; }
.secret-value { resize: none; background: #f5f8f2; font-size: .76rem; line-height: 1.65; overflow-wrap: anywhere; }
.secret-buttons { margin-top: 21px; align-items: stretch; }
.secret-buttons .button { flex: 1; }
.dialog .subtle-link { font-size: .68rem; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); border-radius: 12px; color: #fff; background: #2d4835; padding: 13px 20px; box-shadow: 0 7px 25px #203e2a1a; text-align: center; font-size: .76rem; line-height: 1.55; }
.is-loading:before { content: ""; width: 11px; height: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.refresh-button.is-loading svg { display: none; }
.summary-grid[aria-busy=true] strong { color: #bac5b9; }
.device-list[aria-busy=true] { opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .5; transform: translateY(-3px); } }
@media (min-width: 1700px) {
  .app-layout { grid-template-columns: 250px minmax(0,1fr); }
  .sidebar { padding: 35px 20px 25px; }
  .main-content { padding: 42px 32px 24px; }
  .summary-card { padding: 26px 25px 23px; }
  .summary-label { font-size: .83rem; }
  .summary-card strong { font-size: 2.2rem; margin: 28px 0 17px; }
  .summary-caption { font-size: .64rem; }
  .chart-canvas { height: 258px; }
  .bar-canvas { height: 239px; }
  .panel-heading h2 { font-size: 1rem; }
  .nav-link { font-size: .78rem; padding: 14px; }
  .dashboard-brand { font-size: 1.4rem; }
}
@media (max-width: 1250px) {
  .app-layout { grid-template-columns: 192px minmax(0,1fr); }
  .sidebar { padding: 29px 11px 17px; }
  .dashboard-brand { font-size: 1.13rem; gap: 7px; padding: 0 7px; }
  .brand-icon { width: 26px; height: 26px; }
  .dashboard-brand .brand-sub { font-size: .3rem; }
  .nav-link { font-size: .64rem; gap: 9px; padding: 12px 10px; }
  .nav-link svg { width: 17px; height: 17px; }
  .main-content { padding: 33px 19px 22px; }
  .page-header { gap: 15px; }
  .page-header h1 { font-size: 1.85rem; }
  .header-controls { gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 490px; }
  .header-controls > .button { font-size: .6rem; padding: 10px 12px; }
  .select-control { padding: 8px 11px; }
  .select-control select { font-size: .61rem; }
  .chip-control select { max-width: 115px; }
  .summary-card { padding: 20px 15px 17px; }
  .summary-label { font-size: .65rem; min-height: 26px; line-height: 1.5; }
  .summary-card strong { font-size: 1.65rem; margin: 15px 0 12px; }
  .summary-caption { font-size: .52rem; }
  .analytics-grid { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
  .panel-heading { padding: 21px 18px 15px; }
  .panel-heading h2 { font-size: .77rem; }
  .chart-heading { gap: 8px; }
  .chart-controls { max-width: 110px; }
  .chart-controls select { max-width: 105px; font-size: .56rem; }
  .chart-stat { padding: 0 18px 8px; }
  .chart-value strong { font-size: 1.8rem; }
  .chart-stat > p { font-size: .53rem; max-width: 125px; }
  .chart-footnote { padding: 8px 18px 19px; font-size: .52rem; }
  .reception-total { padding-left: 19px; }
  .reception-footer { padding: 15px 19px 20px; font-size: .53rem; }
  .lower-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
  .sample-panel { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 8px 0; }
  .sample-panel > .panel-heading { display: none; }
  .context-stat { border: 0; padding: 10px 0; margin: 0 20px; }
  .context-stat > strong { top: 7px; }
  .sample-summary { padding: 12px 20px; border-left: 1px dashed #e4ebe2; }
  .sample-summary p { font-size: .56rem; }
  .filter-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto auto; }
  .filter-note { grid-column: 1/-1; padding-left: 0; font-size: .51rem; }
  .quick-guide { gap: 15px; padding: 17px 19px; }
  .guide-heading { font-size: .58rem; }
  .quick-guide ol { gap: 10px; }
  .quick-guide li { font-size: .52rem; }
}
@media (max-width: 950px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; margin: 12px 12px 0; border-radius: 19px; padding: 19px 22px; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .dashboard-brand { padding: 0; font-size: 1.3rem; }
  .dashboard-brand .brand-sub { font-size: .35rem; }
  .brand-icon { width: 29px; height: 29px; }
  .nav-section-label { display: none; }
  .side-nav { flex-direction: row; order: 3; width: 100%; gap: 7px; border-top: 1px solid #f0f2ef; padding-top: 11px; margin-top: 2px; justify-content: space-between; }
  .nav-link { font-size: .67rem; padding: 8px 10px; gap: 7px; }
  .sidebar-bottom { padding: 0; margin: 0; display: flex; align-items: center; gap: 17px; }
  .sidebar-bottom > .nav-link, .account-card { display: none; }
  .sidebar-bottom .button { width: auto; min-height: 31px; padding: 8px 11px; font-size: .6rem; }
  .main-content { padding: 28px 20px 20px; }
  .page-header h1 { font-size: 1.9rem; }
  .header-controls { max-width: 455px; }
  .summary-label { font-size: .65rem; }
  .summary-card strong { font-size: 1.65rem; }
  .auth-screen { grid-template-columns: 40% 1fr; gap: 10px; padding: 10px; }
  .auth-story { padding: 33px 28px; }
  .auth-story h2 { font-size: 2rem; }
  .auth-content { padding: 40px 29px; }
  .auth-story-content p { font-size: .8rem; }
}
@media (max-width: 680px) {
  .sidebar { padding: 17px 16px 11px; gap: 10px; margin: 10px 10px 0; border-radius: 19px; }
  .side-nav { overflow-x: auto; gap: 5px; margin-top: 5px; padding-top: 9px; padding-bottom: 2px; }
  .nav-link { font-size: .61rem; padding: 8px; gap: 6px; }
  .nav-link svg { width: 15px; height: 15px; }
  .side-nav .nav-link:last-child { display: none; }
  .dashboard-brand { font-size: 1.2rem; }
  .dashboard-brand .brand-sub { font-size: .3rem; }
  .brand-icon { width: 26px; height: 26px; }
  .sidebar-bottom .button { font-size: .57rem; }
  .main-content { padding: 24px 14px 18px; }
  .page-header { display: block; margin-bottom: 23px; }
  .page-header h1 { font-size: 1.9rem; margin-bottom: 7px; }
  .page-header p { font-size: .68rem; }
  .header-controls { max-width: none; justify-content: flex-start; margin-top: 20px; gap: 7px; }
  .select-control { padding: 8px 10px; min-height: 35px; flex: 1; }
  .select-control select { font-size: .62rem; width: 100%; max-width: none; }
  .period-control { min-width: 155px; }
  .chip-control { min-width: 145px; }
  .refresh-button { min-width: 34px; width: 34px; height: 34px; }
  .header-controls > .button { font-size: .6rem; min-height: 34px; padding: 10px 13px; }
  .metrics-context { align-items: flex-start; gap: 9px; font-size: .5rem; margin-bottom: 12px; }
  .metrics-context > span:last-child { text-align: right; max-width: 145px; line-height: 1.6; }
  .metrics-context > span:first-child { line-height: 1.6; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
  .summary-card { padding: 19px 18px 17px; border-radius: 19px; }
  .summary-card:first-child { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 20px; }
  .summary-card:first-child .summary-label { min-height: 0; }
  .summary-card:first-child strong { grid-column: 2; grid-row: 1/3; margin: 0; font-size: 2rem; }
  .summary-card:first-child .summary-caption { grid-column: 1; }
  .summary-label { font-size: .67rem; min-height: 0; }
  .summary-card strong { font-size: 1.85rem; margin: 17px 0 13px; }
  .summary-caption { font-size: .55rem; }
  .analytics-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .panel { border-radius: 20px; }
  .panel-heading { padding: 21px 20px 16px; }
  .panel-heading h2 { font-size: .85rem; }
  .panel-heading p { font-size: .57rem; }
  .chart-heading { gap: 10px; }
  .chart-controls select { font-size: .58rem; }
  .chart-stat { padding: 0 20px 10px; }
  .chart-value strong { font-size: 2rem; }
  .chart-stat-label { font-size: .57rem; }
  .chart-canvas { height: 205px; padding: 0 9px 0 5px; }
  .chart-axis-label { font-size: 9px; }
  .chart-footnote { padding: 8px 20px 18px; font-size: .53rem; }
  .reception-total { padding: 0 21px 5px; }
  .reception-total > strong { font-size: 2rem; }
  .bar-canvas { height: 175px; }
  .reception-footer { padding: 12px 21px 19px; font-size: .56rem; }
  .lower-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .sample-panel { display: block; grid-column: auto; padding: 0; }
  .sample-panel > .panel-heading { display: flex; }
  .context-stat { padding: 15px 0; margin: 0 22px; border-bottom: 1px dashed #e5ebe4; }
  .context-stat > strong { top: 12px; }
  .sample-summary { border: 0; padding: 20px 22px 23px; }
  .sample-summary p { font-size: .63rem; }
  .coverage-gauge { margin-top: 10px; max-width: 260px; margin-left: auto; margin-right: auto; }
  .coverage-gauge svg { height: 145px; }
  .coverage-fields { padding: 0 30px; font-size: .6rem; }
  .coverage-field { font-size: .6rem; }
  .selected-header { padding: 3px 22px 0; }
  .selected-title-row h3 { font-size: .86rem; }
  .selected-header .mono { font-size: .58rem; }
  .selected-location { font-size: .6rem; }
  .coverage-explanation { padding: 0 30px; font-size: .53rem; }
  .device-actions { margin: 17px 23px 23px; }
  .device-actions .button, .device-actions .text-button { font-size: .64rem; }
  .device-list { max-height: 225px; min-height: 125px; }
  .device-item { padding: 13px 10px; }
  .device-item-name { font-size: .73rem; }
  .device-item-id, .device-item-location { font-size: .56rem; }
  .search-input { font-size: .67rem; }
  .table-zone { display: none; }
  .filter-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 0 20px 18px; gap: 12px; }
  .filter-form input { font-size: .66rem; min-height: 36px; }
  .filter-form .button, .filter-form .text-button { justify-self: start; font-size: .64rem; }
  .filter-note { font-size: .53rem; }
  th { padding: 12px 20px 15px; font-size: .57rem; }
  td { padding: 16px 20px; font-size: .64rem; }
  .quick-guide { display: block; padding: 20px; margin-bottom: 0; }
  .guide-heading { display: block; font-size: .65rem; margin-bottom: 13px; }
  .quick-guide ol { gap: 11px 15px; }
  .quick-guide li { font-size: .56rem; }
  .quick-guide > a { display: inline-block; margin-top: 16px; font-size: .58rem; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 7px; font-size: .5rem; }
  .auth-screen { display: flex; flex-direction: column; min-height: 100vh; padding: 10px; gap: 10px; }
  .auth-story { padding: 25px 25px 28px; border-radius: 21px; }
  .auth-story-content { padding: 30px 0 0; }
  .auth-story-content .eyebrow, .auth-story-content p, .story-tags, .story-footer { display: none; }
  .auth-story h2 { margin: 0; font-size: 1.65rem; line-height: 1.25; }
  .auth-story h2 br { display: none; }
  .auth-story .brand { font-size: 1.3rem; }
  .auth-story .brand-mark { width: 36px; height: 36px; font-size: 1.75rem; }
  .auth-content { padding: 35px 25px 40px; border-radius: 21px; }
  .auth-form-wrap { max-width: 420px; }
  .auth-form-wrap h1 { font-size: 1.75rem; }
  .auth-form-wrap form { margin-top: 24px; }
  .dialog-content { padding: 25px; }
  .dialog h2 { font-size: 1.25rem; }
  .secret-buttons .button { font-size: .69rem; padding: 11px; }
  .pending-screen { padding: 22px 15px; }
  .pending-card { padding: 29px 25px; border-radius: 21px; }
  .pending-card h1 { font-size: 1.7rem; }
  .pending-card p, .setup-list { font-size: .78rem; }
  .pending-card > .brand { margin-bottom: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Separate administrative views share data and keep their own page layout. */
.main-content[data-view="resumen"] .lower-grid { grid-template-columns: minmax(270px,.85fr) minmax(0,1.5fr); }
.main-content[data-view="resumen"] .sample-panel { grid-column: auto; display: block; padding: 0; }
.main-content[data-view="resumen"] .sample-panel > .panel-heading { display: flex; }
.main-content[data-view="resumen"] .sample-summary { border: 0; }
.main-content[data-view="resumen"] .device-actions { display: none; }
.main-content[data-view="dispositivos"] .lower-grid { grid-template-columns: minmax(0,1.3fr) minmax(280px,.85fr); align-items: start; }
.main-content[data-view="dispositivos"] .devices-panel { order: 0; }
.main-content[data-view="dispositivos"] .device-status-panel { order: 1; min-height: 260px; }
.main-content[data-view="dispositivos"] .device-list { max-height: 420px; min-height: 200px; }
.main-content[data-view="dispositivos"] :is(#coverage-gauge,#coverage-fields,.coverage-explanation) { display: none; }
.main-content[data-view="dispositivos"] .selected-header { padding-top: 13px; padding-bottom: 20px; }
.main-content[data-view="dispositivos"] .selected-title-row h3 { font-size: 1.05rem; }
.main-content[data-view="dispositivos"] .selected-location { margin-top: 12px; }
.main-content[data-view="dispositivos"] .device-actions { margin-top: 20px; padding-top: 20px; }
.main-content[data-view="historial"] .history-panel { margin-top: 4px; }
.guide-view { display: grid; gap: 15px; }
.guide-intro { padding: 30px; }
.guide-kicker { display: block; color: #90ad98; font-size: .6rem; font-weight: 550; letter-spacing: .12em; margin-bottom: 15px; }
.guide-intro h2 { color: #343f36; font-size: 1.6rem; font-weight: 500; margin-bottom: 12px; }
.guide-intro p { max-width: 640px; color: #98a199; font-size: .82rem; margin: 0; }
.guide-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.guide-steps > li { padding: 27px 23px; }
.guide-step-number { display: block; color: #9ccbae; font-size: 1.8rem; font-weight: 450; letter-spacing: -.045em; margin-bottom: 26px; }
.guide-steps h3 { font-size: .85rem; margin-bottom: 13px; }
.guide-steps p { font-size: .68rem; line-height: 1.8; color: #9ca69c; margin: 0 0 12px; }
.guide-steps a { font-size: .65rem; color: #6c9d7b; display: inline-block; margin-top: 10px; line-height: 1.7; }
.guide-steps code { color: #7c9481; font-size: .62rem; overflow-wrap: anywhere; }
.guide-request { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 30px; padding: 30px; }
.guide-request h2 { font-size: 1.1rem; color: #4d6151; margin-bottom: 17px; }
.guide-request p { color: #9ba69b; font-size: .75rem; line-height: 1.8; max-width: 420px; }
.guide-request pre { border-radius: 14px; padding: 23px; background: #f6f9f4; color: #6e8d72; font-size: .65rem; line-height: 1.8; overflow-x: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .guide-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-step-number { margin-bottom: 20px; }
  .main-content[data-view="resumen"] .lower-grid { grid-template-columns: minmax(250px,1fr) minmax(0,1.2fr); }
}
@media (max-width: 680px) {
  .main-content[data-view="resumen"] .lower-grid, .main-content[data-view="dispositivos"] .lower-grid { grid-template-columns: 1fr; }
  .main-content[data-view="dispositivos"] .device-list { max-height: 300px; }
  .main-content[data-view="dispositivos"] .device-status-panel { min-height: 220px; }
  .guide-intro { padding: 25px 22px; }
  .guide-intro h2 { font-size: 1.4rem; }
  .guide-intro p { font-size: .75rem; }
  .guide-steps { gap: 12px; grid-template-columns: 1fr; }
  .guide-steps > li { padding: 24px 23px; }
  .guide-step-number { font-size: 1.6rem; margin-bottom: 18px; }
  .guide-steps h3 { font-size: .88rem; }
  .guide-steps p { font-size: .73rem; }
  .guide-request { grid-template-columns: 1fr; padding: 25px 22px; gap: 16px; }
  .guide-request h2 { font-size: 1rem; }
  .guide-request p { font-size: .72rem; }
  .guide-request pre { font-size: .61rem; padding: 19px; }
}
