:root { color-scheme: light; --flow-ink: #17242c; --flow-muted: #5b6973; --flow-line: #dce3e8; --flow-teal: #087e73; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7f9; color: var(--flow-ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; }
.flow-nav { max-width: 1360px; }
.flow-nav-link { color: #fff; text-decoration: none; font-size: 14px; }
.flow-nav-link:hover { color: #fff; text-decoration: underline; }
.flow-main { max-width: 1320px; margin: 0 auto; padding: 28px 28px 48px; }
.flow-heading, .flow-section-heading, .flow-section-footer, .flow-comparison-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flow-heading { margin-bottom: 24px; }
h1 { font-size: 26px; margin: 3px 0 0; font-weight: 650; }
h2 { font-size: 18px; margin: 0; font-weight: 650; }
.flow-eyebrow { color: var(--flow-muted); font-size: 11px; font-weight: 700; }
.flow-connection { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--flow-muted); }
.flow-connection-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
#refreshCountdown { min-width: 30px; font-variant-numeric: tabular-nums; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; background: #77848d; flex: 0 0 8px; }
.flow-connection[data-state="live"] .flow-dot { background: var(--flow-teal); }
.flow-connection[data-state="error"] .flow-dot { background: #b85716; }
.flow-toolbar { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--flow-line); }
.flow-toolbar label { display: block; color: var(--flow-muted); font-size: 12px; margin-bottom: 6px; }
.flow-device-field { min-width: 0; flex: 1; max-width: 500px; }
.flow-toolbar .form-select { height: 44px; border-color: #c9d3db; border-radius: 6px; }
.flow-auto { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.flow-auto .form-check { margin-bottom: 0; }
.flow-auto .form-check-label { color: var(--flow-ink); font-size: 13px; margin-bottom: 0; }
.flow-toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
.flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; background: #fff; border: 1px solid #c9d3db; color: #334c5f; border-radius: 6px; font-size: 18px; }
.flow-icon:hover:not(:disabled) { background: #e9f0f6; border-color: #718699; }
.flow-icon:disabled { opacity: .4; cursor: not-allowed; }
.flow-icon-light { color: #fff; background: transparent; border-color: #ffffff66; }
.flow-icon-light:hover:not(:disabled) { background: #ffffff20; border-color: #fff; }
.flow-danger { color: #ad303a; }
.flow-muted { color: var(--flow-muted); font-size: 12px; }
.flow-metrics { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr; padding: 24px 0; border-bottom: 1px solid var(--flow-line); margin-bottom: 28px; }
.flow-metric { min-width: 0; padding: 0 20px; border-right: 1px solid var(--flow-line); }
.flow-metric:first-child { padding-left: 0; }
.flow-metric:last-child { border-right: 0; }
.flow-metric-label { display: block; min-height: 36px; font-size: 12px; color: var(--flow-muted); }
.flow-metric-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 50px; }
.flow-metric-number strong { font-size: 32px; font-variant-numeric: tabular-nums; line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
.flow-metric-number > span { color: var(--flow-muted); font-size: 14px; }
.flow-time strong { font-size: 25px; }
.flow-trend strong { font-size: 25px; }
.flow-metric-detail { display: block; color: var(--flow-muted); font-size: 12px; margin-top: 4px; }
.flow-section { margin-top: 28px; }
.flow-section-heading { margin-bottom: 14px; }
.flow-range { width: 175px; min-height: 38px; }
.flow-chart-tool { position: relative; background: #fff; border: 1px solid var(--flow-line); border-radius: 8px; height: 310px; padding: 18px 14px 10px; }
.flow-chart-empty { position: absolute; top: 42%; left: 20px; right: 20px; text-align: center; color: var(--flow-muted); font-size: 14px; z-index: 1; }
.flow-chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--flow-muted); margin-top: 10px; }
.flow-chart-legend > span { display: flex; align-items: center; gap: 5px; }
.flow-actions { display: flex; gap: 14px; align-items: flex-end; }
.flow-actions .btn { min-height: 44px; white-space: nowrap; }
.flow-threshold { width: 100px; }
.flow-threshold label { font-size: 12px; color: var(--flow-muted); margin-bottom: 4px; }
.flow-threshold input { min-width: 0; min-height: 38px; }
.flow-comparison { border-left: 3px solid #738496; background: #eaf0f5; padding: 16px 20px; margin: 18px 0; }
.flow-comparison[data-trend="down"] { border-left-color: var(--flow-teal); background: #e6f4ef; }
.flow-comparison[data-trend="up"] { border-left-color: #b85632; background: #fff0e9; }
.flow-comparison-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.flow-comparison-values > div > span { display: block; color: var(--flow-muted); font-size: 12px; }
.flow-comparison-values strong { display: block; font-size: 23px; margin-top: 4px; overflow-wrap: anywhere; }
.flow-status { font-size: 12px; font-weight: 500; color: var(--flow-muted); }
.flow-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--flow-line); border-bottom: 1px solid var(--flow-line); }
.flow-table { background: #fff; margin: 0; font-size: 13px; min-width: 650px; }
.flow-table th { font-size: 11px; font-weight: 650; color: var(--flow-muted); padding: 11px 14px; background: #eef2f6; border-bottom-color: var(--flow-line); white-space: nowrap; }
.flow-table td { vertical-align: middle; padding: 12px 14px; border-color: #eaf0f3; font-variant-numeric: tabular-nums; }
.flow-table td:first-child { max-width: 250px; overflow-wrap: anywhere; }
.flow-table td small { display: block; color: var(--flow-muted); margin-top: 3px; }
.flow-table .flow-empty { padding: 28px 16px; text-align: left; color: var(--flow-muted); }
.flow-down { color: var(--flow-teal) !important; }
.flow-up { color: #ad4e2e !important; }
.flow-section-footer { padding-top: 10px; }
.flow-modal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; border-top: 1px solid var(--flow-line); padding-top: 15px; }
.flow-modal-summary dt { font-weight: 400; color: var(--flow-muted); }
.flow-modal-summary dd { text-align: right; margin: 0; }
.modal-content { border-radius: 8px; }
.alert { margin-top: 16px; margin-bottom: 0; border-radius: 6px; font-size: 13px; }
:focus-visible { outline: 3px solid #5e9edb; outline-offset: 3px; }
@media (max-width: 800px) {
    .flow-main { padding: 22px 16px 36px; }
    .flow-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
    .flow-metric { padding: 0 0 0 16px; }
    .flow-metric:nth-child(odd) { padding-left: 0; padding-right: 14px; }
    .flow-metric:nth-child(even) { border-right: 0; }
    .flow-toolbar { flex-wrap: wrap; gap: 12px; }
    .flow-device-field { flex-basis: 100%; max-width: none; }
    .flow-auto { margin-right: auto; }
    .flow-toolbar-actions { margin-left: 0; }
    .flow-wrap { align-items: flex-start; flex-direction: column; }
    .flow-actions { width: 100%; justify-content: space-between; }
    .flow-comparison-values { gap: 10px; }
    .flow-comparison-title { flex-wrap: wrap; }
    .flow-comparison-values strong { font-size: 20px; }
    .flow-chart-tool { height: 265px; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 420px) {
    .flow-heading { align-items: flex-start; gap: 10px; }
    .flow-connection { margin-top: 6px; max-width: 120px; }
    .flow-nav { padding-left: 16px; padding-right: 12px; }
    .flow-nav-link { font-size: 12px; }
    .flow-range { width: 155px; }
    .flow-section-heading { gap: 10px; }
    .flow-comparison { padding: 14px 12px; }
}
