:root {
    --bg: #f6f7f8;
    --paper: #fff;
    --ink: #25313d;
    --muted: #596773;
    --line: #dce1e5;
    --primary: #315d72;
    --danger: #9c352e;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled, input:disabled { cursor: default; opacity: .5; }
a { color: var(--primary); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 27px; font-weight: 600; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex-shrink: 0; cursor: pointer; }
input, button, a, select, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid #6a93aa; }
input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -70px; left: 15px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.initial { min-height: 100vh; display: grid; place-content: center; gap: 12px; text-align: center; }
.brand { color: var(--ink); font-size: 18px; font-weight: 600; text-decoration: none; display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 500; font-size: 13px; background: white; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--primary); color: white; }
.primary:hover:not(:disabled) { background: #264b5d; }
.secondary { border-color: #cbd3d9; color: #344956; }
.secondary:hover:not(:disabled) { background: #f2f5f7; }
.full { width: 100%; }
.small { font-size: 12px; padding: 7px 11px; min-height: 36px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 0; min-height: 34px; color: var(--primary); font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.text-button .icon { width: 16px; height: 16px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 0; border-radius: 4px; }
.icon-button:hover { background: #edf1f4; }
.muted { color: var(--muted); }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 200px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: white; padding: 25px 18px 0; z-index: 20; }
.main-nav { display: grid; gap: 5px; margin-top: 32px; }
.nav-item { display: flex; align-items: center; gap: 10px; border-radius: 4px; padding: 11px 12px; color: #485762; text-decoration: none; }
.nav-item.active { background: #eaf0f4; color: #254d63; font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.side-action { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; color: var(--muted); min-height: 40px; padding: 7px 0; font-size: 12px; text-align: left; }
.side-action .icon { width: 17px; height: 17px; }
.account { display: flex; align-items: center; gap: 10px; padding: 17px 0; margin-top: 15px; border-top: 1px solid var(--line); }
.account > span { flex: 1; min-width: 0; }
.account strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.account small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.main-shell { margin-left: 200px; min-height: 100vh; }
.topbar { height: 62px; padding: 0 30px; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.app-label { color: var(--muted); font-size: 13px; }
.mobile-brand { display: none; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.fleet-status { color: var(--muted); font-size: 12px; }
.content { max-width: 1280px; margin: auto; padding: 28px 30px 45px; }
.demo-banner { background: #f0f3f5; border-bottom: 1px solid var(--line); padding: 8px 30px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.demo-banner button { border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; background: transparent; }
.network-banner { background: #fff1dc; color: #755320; padding: 10px 30px; font-size: 13px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.filters { display: flex; align-items: center; gap: 18px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.filter-field { min-width: 0; }
.field-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.machines-filter { flex: 1.1; border-right: 1px solid var(--line); padding-right: 18px; }
.period-filter { flex: 1; }
#machine-filter { position: relative; }
#machine-filter summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13px; }
summary::-webkit-details-marker { display: none; }
#machine-filter summary .icon:last-child { margin-left: auto; width: 15px; height: 15px; }
.select-wrap { display: flex; align-items: center; gap: 8px; }
.select-wrap select { border: 0; background: transparent; width: 100%; min-height: 28px; font-size: 13px; }
.filter-submit { min-width: 130px; }
.filter-context { font-size: 12px; color: var(--muted); margin: 10px 0 23px; }
.custom-dates { display: flex; gap: 10px; }
.custom-dates .field { margin: 0; font-size: 12px; }
.custom-dates input { width: 145px; padding: 6px; min-height: 34px; font-size: 13px; }
.filters:has(.custom-dates:not([hidden])) { flex-wrap: wrap; }
.filter-popover { position: absolute; top: 40px; left: -10px; width: 420px; background: white; border: 1px solid #cbd3d9; border-radius: 5px; box-shadow: 0 6px 20px #25313d18; padding: 14px; z-index: 25; }
.check-all { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.check-all span { margin-left: auto; color: var(--muted); }
.machine-options { max-height: 260px; overflow: auto; }
.machine-option { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #edf0f2; cursor: pointer; }
.machine-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.machine-name strong { font-size: 13px; font-weight: 500; }
.connection { color: #67737c; font-size: 11px; }
.connection.online { color: #3b6653; }
.popover-footer { display: flex; justify-content: end; }
.section-label { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-label h2 { font-size: 15px; }
.section-label > span { display: flex; gap: 5px; align-items: center; font-size: 11px; color: var(--muted); }
.section-label .icon { width: 13px; height: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 5px; padding: 16px; }
.stat-top { color: var(--muted); font-size: 12px; }
.stat-icon { display: none; }
.stat-number { display: block; font-size: 27px; font-weight: 600; margin: 10px 0 6px; line-height: 1.3; overflow-wrap: anywhere; }
.stat-number small { font-weight: 400; font-size: 16px; color: var(--muted); }
.stat-note { display: block; color: var(--muted); font-size: 11px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 5px; padding: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.soft-badge { display: inline-flex; gap: 5px; align-items: center; background: #f2f4f6; border: 1px solid #e1e6e9; padding: 4px 7px; border-radius: 3px; font-size: 11px; color: #52606b; white-space: nowrap; }
.soft-badge .icon { width: 12px; height: 12px; }
.overview-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-bottom: 20px; }
.trend-chart { width: 100%; height: 200px; display: block; }
.trend-chart text { font-family: inherit; font-size: 11px; fill: #626e78; }
.chart-footnote { color: var(--muted); font-size: 11px; margin-top: 8px; }
.daily-detail { font-size: 12px; color: var(--primary); margin-top: 8px; }
.daily-detail .table-scroll { max-height: 270px; margin-top: 10px; }
.water-row { display: flex; align-items: center; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.water-symbol { color: #52757d; }
.water-symbol.water-2 { color: #9b714c; }
.water-row > div { flex: 1; }
.water-row strong { font-size: 14px; font-weight: 600; }
.water-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.water-note { color: var(--muted); font-size: 11px; margin-top: 14px; display: flex; gap: 6px; align-items: center; }
.water-note .icon { width: 13px; height: 13px; }
.presentation-panel { margin-bottom: 20px; }
.segmented { display: inline-flex; border: 1px solid #cbd3d9; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.segmented button { border: 0; background: white; color: var(--muted); font-size: 12px; padding: 8px 11px; min-height: 36px; }
.segmented button + button { border-left: 1px solid #cbd3d9; }
.segmented .active { background: #eaf0f4; color: #284f63; }
.presentation-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 10px 0 20px; align-items: center; }
.donut-wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.donut { width: 172px; height: 172px; border-radius: 50%; display: grid; place-items: center; }
.donut-center { width: 126px; height: 126px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.donut-center span { font-size: 24px; font-weight: 600; max-width: 120px; overflow-wrap: anywhere; line-height: 1.2; text-align: center; }
.donut-center small { font-size: 11px; color: var(--muted); margin-top: 5px; }
.donut-caption { font-size: 11px; color: var(--muted); text-align: center; }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.legend-grid h3 { font-size: 13px; margin-bottom: 13px; }
.legend-row { display: grid; grid-template-columns: 8px 1fr auto auto; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 12px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 1px; background: var(--color); flex-shrink: 0; }
.legend-value { color: var(--muted); font-size: 11px; }
.legend-row strong { text-align: right; font-size: 11px; min-width: 33px; font-weight: 600; }
.legend-track { grid-column: 2 / -1; height: 3px; background: #eef1f3; overflow: hidden; }
.legend-track i { display: block; height: 100%; }
.coverage-note { display: flex; gap: 8px; padding: 12px; border: 1px solid #e1e6e9; background: #f7f9fa; font-size: 12px; color: var(--muted); }
.coverage-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.presentation-details { margin-top: 10px; }
.presentation-details summary { display: flex; align-items: center; gap: 7px; list-style: none; font-size: 12px; color: var(--primary); min-height: 34px; }
.presentation-details summary .icon { width: 13px; height: 13px; }
.grand-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.grand-panel p { color: var(--muted); font-size: 12px; margin-top: 6px; max-width: 330px; }
.grand-values { display: flex; gap: 28px; flex-shrink: 0; }
.grand-values small { color: var(--muted); font-size: 12px; display: block; }
.grand-values strong { font-size: 21px; font-weight: 600; display: block; margin-top: 5px; }
.table-scroll { width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th { background: #f5f7f8; color: #53616d; font-weight: 500; font-size: 12px; white-space: nowrap; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e6eaed; }
th small { display: block; font-size: 11px; font-weight: 400; }
td .legend-dot { margin-right: 7px; }
tfoot td { font-weight: 600; background: #f7f9fa; }
.table-machine { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.table-machine .icon { width: 14px; height: 14px; }
.water-tag { display: inline-block; font-size: 11px; padding: 3px 6px; margin-right: 10px; background: #eaf1ef; color: #42645b; border-radius: 3px; }
.water-tag.amber { color: #866342; background: #f7efe6; }
.amount-cell { font-weight: 500; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.events-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.updated-at { color: var(--muted); font-size: 11px; text-align: right; margin-top: 13px; }
.undated-panel { margin-bottom: 20px; }
.undated-panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.undated-panel summary > span { display: inline-flex; align-items: center; gap: 7px; }
.undated-panel summary > span:last-child { color: var(--muted); font-size: 12px; }
.undated-panel p, .undated-presentations { margin-top: 15px; font-size: 12px; color: var(--muted); }
.undated-presentations { display: grid; gap: 6px; }
.mobile-nav { display: none; }
.empty-panel { padding: 55px 20px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 5px; }
.empty-panel > .icon { width: 32px; height: 32px; color: var(--muted); margin-bottom: 14px; }
.empty-panel p { color: var(--muted); margin: 12px auto 20px; font-size: 13px; max-width: 430px; }
.empty-inline { padding: 28px 12px; font-size: 13px; color: var(--muted); text-align: center; }
.empty-inline .icon { display: block; margin: 0 auto 8px; }
.chart-empty { min-height: 190px; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.loading-panel { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 270px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid #d5dfe5; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner, .info-banner, .warning-banner { display: flex; gap: 10px; align-items: center; padding: 13px 15px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; }
.error-banner { background: #fff0ed; color: #923b30; }
.info-banner { background: #eef3f6; color: #4c6576; }
.warning-banner { background: #fff5e5; color: #7f602e; }
.error-banner > span, .warning-banner > span { flex: 1; }
.inline-note { display: flex; gap: 7px; align-items: center; color: #6d624d; font-size: 12px; margin-bottom: 18px; }
.inline-note .icon { width: 15px; height: 15px; }
.form-error { color: var(--danger); font-size: 13px; line-height: 1.6; }
.form-error:not(:empty) { margin: 12px 0; }
.config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.config-panel .panel-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.config-group + .config-group { margin-top: 27px; }
.config-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.config-group-title .icon { width: 16px; height: 16px; color: var(--muted); }
.config-group-title > span { margin-left: auto; font-size: 11px; color: var(--muted); }
.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prices-grid h4 { padding: 8px 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid #e8ecef; }
.setting-choice { display: flex; gap: 9px; align-items: center; cursor: pointer; flex: 1; }
.setting-choice strong { font-size: 13px; font-weight: 400; }
.included .setting-choice strong { font-weight: 600; }
.setting-choice small { display: block; max-width: 270px; font-size: 11px; color: var(--muted); margin-top: 5px; }
.numeric-wrap { display: flex; position: relative; align-items: center; gap: 7px; }
.numeric-wrap input { width: 65px; padding: 7px; border: 1px solid #cbd3d9; border-radius: 4px; text-align: center; background: white; font-size: 15px; min-height: 36px; }
.numeric-wrap > span { color: var(--muted); font-size: 11px; min-width: 28px; }
.numeric-wrap > small { position: absolute; right: 36px; top: 36px; color: var(--muted); font-size: 10px; }
.prices-grid .numeric-wrap input { width: 54px; }
.prices-grid .numeric-wrap > span { min-width: 7px; }
.prices-grid .numeric-wrap > small { right: 12px; }
.prices-grid .setting-choice strong { font-size: 12px; }
.switch-label { display: flex; align-items: center; gap: 9px; position: relative; cursor: pointer; }
.switch-label > span { color: var(--muted); font-size: 11px; }
.switch-label input { position: absolute; opacity: 0; right: 0; width: 36px; height: 24px; margin: 0; }
.switch-label i { display: block; width: 36px; height: 22px; padding: 3px; border-radius: 15px; background: #adb9c1; pointer-events: none; }
.switch-label i::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; }
.switch-label input:checked + i { background: var(--primary); }
.switch-label input:checked + i::before { transform: translateX(14px); }
.switch-label input:disabled + i { opacity: .4; }
.switch-label input:focus-visible + i { outline: 2px solid #6a93aa; outline-offset: 3px; }
.config-aside { position: sticky; top: 20px; }
.config-summary > p { color: var(--muted); font-size: 12px; margin-top: 10px; }
.summary-count { display: flex; align-items: center; gap: 10px; padding: 20px 0; }
.summary-count strong { font-size: 28px; font-weight: 600; }
.summary-count span { color: var(--muted); font-size: 12px; }
.summary-footnote:empty { display: none; }
.reset-summary { margin: 0 0 15px; }
.reset-summary .icon { width: 14px; height: 14px; }
.quiet-card { display: flex; gap: 8px; padding: 15px 0; color: var(--muted); font-size: 12px; }
.quiet-card .icon { width: 16px; height: 16px; }
.reset-panel { margin-top: 20px; }
.reset-panel p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.check-reset { display: flex; gap: 9px; align-items: center; cursor: pointer; font-size: 13px; margin-top: 18px; }
.requests-panel { margin-top: 24px; }
.requests-note { color: var(--muted); font-size: 12px; padding-top: 14px; }
.status-pill { display: inline-flex; white-space: nowrap; font-size: 12px; padding: 4px 7px; border-radius: 3px; background: #edf1f4; color: #52626e; }
.status-pill.applied { background: #eaf3ec; color: #3b6449; }
.status-pill.needs_attention, .status-pill.rejected { background: #fff0ed; color: #923b30; }
.job-description { min-width: 180px; max-width: 360px; font-size: 12px; }
.field { display: block; font-size: 13px; margin-bottom: 18px; }
.field input { display: block; width: 100%; margin-top: 6px; border: 1px solid #cbd3d9; border-radius: 4px; padding: 10px 12px; background: white; font-size: 15px; min-height: 43px; }
.field input::placeholder { color: #85939d; }
.optional { font-size: 12px; color: var(--muted); }
dialog { width: calc(100% - 28px); max-width: 570px; max-height: calc(100dvh - 40px); padding: 24px; color: var(--ink); border: 1px solid #bdc8cf; border-radius: 6px; box-shadow: 0 12px 50px #25313d25; }
dialog::backdrop { background: #26374266; }
.modal-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-heading h2 { font-size: 20px; }
.modal-intro, .modal-note { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.modal-note { margin-top: 18px; margin-bottom: 0; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-subtitle { margin-bottom: 12px; }
.schedule-options { padding: 0; border: 0; margin: 0 0 22px; }
.schedule-options legend { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.radio-card { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: #8ca8ba; background: #f4f7f9; }
.radio-card strong { font-weight: 500; font-size: 13px; display: block; }
.radio-card small { font-size: 12px; color: var(--muted); }
.schedule-date { margin: 15px 0; }
.scheduler-dialog .machine-options { max-height: 220px; }
.review-box { padding: 13px; background: #f4f7f9; border: 1px solid #e2e7eb; margin-top: 18px; }
.review-box > span { font-size: 12px; font-weight: 600; }
.review-box p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 6px; }
.reset-confirm { display: flex; gap: 9px; align-items: start; font-size: 12px; margin-top: 16px; color: #756037; }
.reset-confirm input { margin-top: 2px; }
.submission-summary { padding: 5px 0 20px; }
.submission-summary h3 { font-size: 17px; }
.submission-summary p { color: var(--muted); font-size: 13px; margin-top: 10px; }
.submission-results > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.submission-results strong { font-size: 13px; font-weight: 500; }
.submission-results span { font-size: 12px; color: var(--muted); }
.setup-progress { display: flex; gap: 6px; margin: 8px 0 22px; }
.setup-progress span { flex: 1; height: 3px; background: #dfe6ea; }
.setup-progress .active { background: #6b8da1; }
.setup-step-icon { color: #617e90; margin: 15px 0; }
.setup-step-icon .icon { width: 30px; height: 30px; }
.setup-step h3 { font-size: 19px; margin-bottom: 12px; }
.setup-step > p { font-size: 13px; line-height: 1.8; color: #4e606c; }
.setup-step a { overflow-wrap: anywhere; }
.setup-tip { display: flex; gap: 8px; padding: 12px; background: #f3f5f7; margin: 20px 0; color: var(--muted); font-size: 12px; }
.setup-tip .icon { width: 15px; height: 15px; margin-top: 2px; }
.already-code { display: block; margin: 14px auto 0; }
#claim-form { margin-top: 20px; }
#claim-form [name='pairing-code'] { text-transform: uppercase; font-family: ui-monospace, monospace; font-size: 16px; }
.help-block h3 { margin-top: 20px; }
.help-block p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 8px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(550px, calc(100vw - 30px)); padding: 13px 18px; background: #2d414e; color: white; font-size: 13px; border-radius: 5px; }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 35px 20px; }
.login-card { width: 100%; max-width: 395px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.login-card > .brand { font-size: 20px; }
.login-card h1 { font-size: 23px; margin-top: 25px; }
.login-card > .muted { font-size: 13px; margin: 8px 0 25px; }
.login-card > .text-button { margin-top: 10px; }
.setup-notice { font-size: 12px; color: var(--muted); margin-top: 13px; }
.login-links { display: flex; flex-direction: column; align-items: flex-start; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.login-links .text-button, .login-links .demo-link { font-size: .875rem; color: var(--muted); min-height: 34px; }
.demo-link { display: inline-flex; align-items: center; padding: 6px 0; text-decoration: none; }
.demo-link:hover { text-decoration: underline; }
@media (max-width: 1150px) {
    .content { padding: 25px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-number { font-size: 25px; }
    .overview-grid { grid-template-columns: 1.5fr 1fr; gap: 15px; }
    .presentation-layout { grid-template-columns: 175px 1fr; gap: 20px; }
    .legend-grid { gap: 18px; }
    .legend-value { display: none; }
    .legend-row { grid-template-columns: 7px 1fr auto; }
    .grand-panel { flex-direction: column; align-items: stretch; gap: 18px; }
    .grand-panel p { max-width: none; }
    .grand-values { justify-content: space-between; }
    .config-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 15px; }
    .prices-grid { grid-template-columns: 1fr; gap: 18px; }
    .prices-grid .numeric-wrap input { width: 65px; }
    .prices-grid .numeric-wrap > span { min-width: 28px; }
    .prices-grid .numeric-wrap > small { right: 36px; }
}
@media (max-width: 960px) {
    .sidebar { width: 180px; padding-inline: 14px; }
    .sidebar > .brand { font-size: 17px; }
    .main-shell { margin-left: 180px; }
    .content { padding: 24px 20px; }
    .topbar { padding: 0 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .overview-grid { grid-template-columns: 1fr; }
    .water-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .water-panel .panel-heading, .water-note { grid-column: 1 / -1; margin: 0; }
    .water-row { padding: 10px 0; }
    .presentation-panel > .panel-heading { flex-wrap: wrap; }
    .config-layout { grid-template-columns: 1fr; }
    .config-aside { position: static; }
    .prices-grid { grid-template-columns: 1fr 1fr; }
    .config-summary .summary-count { padding: 14px 0; }
    .config-summary .full { width: auto; }
    .quiet-card { padding-bottom: 0; }
}
@media (max-width: 720px) {
    .sidebar { display: none; }
    .main-shell { margin-left: 0; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
    .topbar { padding: 0 15px; gap: 10px; height: 60px; }
    .mobile-brand { display: block; font-size: 15px; font-weight: 600; }
    .app-label, .fleet-status { display: none; }
    .topbar .button { font-size: 11px; padding: 7px 9px; }
    .content { padding: 22px 15px 30px; }
    .demo-banner, .network-banner { padding: 8px 15px; font-size: 11px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading p { font-size: 12px; }
    .page-heading .text-button { font-size: 12px; }
    .filters { gap: 13px; flex-wrap: wrap; padding: 14px; }
    .machines-filter { flex: 1.1; padding-right: 12px; }
    .period-filter { flex: 1; }
    #machine-filter summary, .select-wrap select { font-size: 12px; }
    .filter-submit { width: 100%; }
    .filter-popover { width: min(420px, calc(100vw - 30px)); left: -15px; }
    .filter-context { font-size: 11px; line-height: 1.7; margin-bottom: 21px; }
    .section-label > span { font-size: 10px; max-width: 180px; text-align: right; }
    .stat-card { padding: 13px; }
    .stat-number { font-size: 24px; }
    .stat-note { font-size: 11px; }
    .panel { padding: 17px 14px; }
    .panel-heading h2 { font-size: 16px; }
    .panel-heading .soft-badge { display: none; }
    .trend-chart { height: 170px; }
    .water-panel { display: block; }
    .water-panel .panel-heading { margin-bottom: 10px; }
    .water-row { padding: 14px 0; }
    .water-note { margin-top: 13px; }
    .presentation-layout { grid-template-columns: 1fr; gap: 22px; }
    .legend-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .legend-row { font-size: 12px; }
    .grand-values { gap: 12px; }
    .grand-values strong { font-size: 18px; }
    .grand-values small { font-size: 11px; }
    .events-table { min-width: 510px; }
    .table-footer { flex-direction: column; align-items: start; font-size: 11px; gap: 6px; }
    .updated-at { font-size: 10px; }
    .undated-panel summary { font-size: 12px; align-items: start; }
    .undated-panel summary > span:last-child { font-size: 11px; }
    .mobile-nav { display: flex; position: fixed; inset: auto 0 0; background: white; border-top: 1px solid #ccd6dd; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); min-height: 60px; z-index: 20; }
    .mobile-nav a, .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; text-decoration: none; color: #62717c; font-size: 11px; min-height: 47px; border-radius: 4px; }
    .mobile-nav .active { color: #264f64; background: #edf3f6; font-weight: 600; }
    .mobile-nav .icon { width: 18px; height: 18px; }
    .toast { bottom: calc(77px + env(safe-area-inset-bottom)); }
    .prices-grid { grid-template-columns: 1fr; }
    .config-group-title > span { font-size: 10px; }
    .setting-choice strong { font-size: 12px; }
    .setting-choice small { max-width: 185px; }
    .numeric-wrap input, .field input { font-size: 16px; }
    .switch-label > span { font-size: 10px; }
    .info-banner { font-size: 12px; align-items: start; }
    .requests-panel .panel-heading { flex-wrap: wrap; }
    .requests-panel table { min-width: 560px; }
    .custom-dates { width: 100%; }
    .custom-dates .field { flex: 1; }
    .custom-dates input { width: 100%; }
    dialog { padding: 20px 17px; max-height: calc(100dvh - 30px); }
    .modal-heading h2 { font-size: 18px; }
    .machine-name strong { font-size: 12px; }
    .connection { font-size: 10px; max-width: 95px; text-align: right; }
    .modal-footer .button { font-size: 12px; padding: 9px 12px; }
    .submission-results > div { gap: 14px; }
    .submission-results span { max-width: 45%; text-align: right; }
    .login-card { padding: 25px; }
}
@media (max-width: 360px) {
    .content { padding-inline: 12px; }
    .topbar { padding-inline: 12px; }
    .topbar .button { font-size: 10px; padding-inline: 7px; }
    .mobile-brand { font-size: 14px; }
    .stat-number { font-size: 22px; }
    .stat-card { padding: 11px; }
    .stat-note { font-size: 10px; }
    .legend-grid { gap: 12px; }
    .legend-row { font-size: 11px; }
    .grand-values strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
