@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #203e3c;
  --muted: #718782;
  --line: #e0e9e5;
  --surface: #ffffff;
  --canvas: #f5f8f6;
  --teal: #138d78;
  --teal-dark: #08715f;
  --teal-soft: #e9f5ef;
  --navy: #132e33;
  --shadow: 0 7px 25px rgb(30 65 51 / 3%);
  --radius: 13px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid #54bba1; }
button { color: inherit; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; flex-shrink: 0; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; }
h1 { color: #1c3c35; font-size: clamp(25px, 2.4vw, 32px); font-weight: 650; letter-spacing: -.045em; }
h2 { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 14px; font-weight: 650; letter-spacing: -.015em; }
small { font-size: 11px; }
strong { font-weight: 650; }
code, pre, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .94em; }
code { overflow-wrap: anywhere; }
pre { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 224px; display: flex; flex-direction: column; background: var(--navy); color: #a8bdb8; padding: 30px 17px 20px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 10px 30px; color: white; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-icon, .login-mark { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; color: #a3e2c6; background: #24434a; border: 1px solid #456261; border-radius: 10px; font-size: 19px; font-weight: 700; }
.brand-name { font-size: 20px; font-weight: 650; letter-spacing: -.06em; }
.brand-name span { color: #aed7c5; font-weight: 400; }
.workspace-card { margin: 0 3px 26px; padding: 12px 11px; border: 1px solid #335053; border-radius: 10px; background: #1b383c; display: flex; gap: 10px; align-items: center; }
.workspace-card strong { display: block; color: #ebf4f0; font-size: 11px; font-weight: 550; }
.workspace-card small { display: block; color: #8eaca4; font-size: 10px; margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-button { display: flex; align-items: center; gap: 11px; width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #a6beb5; padding: 11px 13px; text-align: left; font-weight: 450; font-size: 12px; transition: background .15s, color .15s; }
.nav-button:hover { background: #254348; color: #edf8f2; }
.nav-button.active { background: #30504d; color: #d9f4e6; border-color: #45675a; box-shadow: inset 3px 0 #9bd4b5; }
.nav-button .nav-count { margin-left: auto; font-size: 10px; color: #bddfca; }
.nav-label, .sidebar-label { padding: 0 13px; margin: 8px 0 11px; color: #78988d; text-transform: uppercase; font-size: 9px; letter-spacing: .13em; font-weight: 650; }
.sidebar-footer { margin-top: auto; padding: 21px 11px 0; border-top: 1px solid #304b4e; color: #91aca2; font-size: 11px; }
.sidebar-footer strong { color: #c4dacf; display: block; margin-bottom: 4px; font-size: 11px; }
.sidebar-footer .text-button { color: #abd5c1; padding-left: 0; margin-top: 7px; }
.app-main { margin-left: 224px; min-height: 100vh; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 34px; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; color: #91a49b; font-size: 11px; }
.breadcrumbs strong { color: #47695b; font-weight: 550; }
.top-actions { display: flex; align-items: center; gap: 14px; color: #8ba096; font-size: 11px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 50%; background: #e9f1e8; color: #6b8b66; font-weight: 600; font-size: 10px; }
.mobile-brand { display: none; color: #294e42; font-size: 17px; font-weight: 650; letter-spacing: -.04em; }
.content { padding: 32px 34px 48px; max-width: 1700px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 750px; }
.eyebrow { font-size: 9px; font-weight: 650; color: #6d9380; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.heading-actions, .form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dbe5de; background: white; color: #4e715f; border-radius: 7px; min-height: 34px; padding: 8px 13px; line-height: 1.25; font-size: 11px; font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; text-decoration: none; }
.btn:hover { background: #f3f8f4; border-color: #b8d0c2; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn-primary { background: var(--teal); border-color: var(--teal); color: white; box-shadow: 0 3px 7px rgb(20 118 91 / 10%); }
.btn.primary:hover, .btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.secondary { background: #edf4ef; border-color: #d4e6d8; color: #397953; }
.btn.danger { color: #a44a42; border-color: #e8d4cd; }
.btn.danger:hover { background: #fcf3ee; border-color: #d9bcb0; }
.btn.small, .btn-sm { min-height: 29px; padding: 6px 10px; font-size: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; padding: 3px 5px; color: var(--teal); font-size: 11px; font-weight: 550; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: #a65349; }
.icon-button { border: 0; background: transparent; padding: 6px; color: #7c9589; display: inline-flex; justify-content: center; align-items: center; border-radius: 5px; line-height: 1; }
.icon-button:hover { background: #edf5ef; color: #477760; }
.banner, .notice { display: flex; align-items: center; gap: 10px; border: 1px solid #d5e5d9; border-radius: 8px; padding: 12px 15px; background: #f0f7ef; color: #729264; font-size: 11px; margin: 0 0 19px; }
.banner strong, .notice strong { color: #547d47; font-weight: 600; }
.banner.sample { background: #f8f4e8; border-color: #ece3c9; color: #a38c50; }
.banner.sample strong { color: #8c753f; }
.banner .split { margin-left: auto; }
.notice { background: #eef5f5; border-color: #dce8e5; color: #698b83; line-height: 1.65; }
.notice.warning { background: #fff7eb; border-color: #efdfc5; color: #997642; }
.notice.error, .error, .login-error { color: #a45b4c; background: #fff3ee; border: 1px solid #efd9cf; border-radius: 8px; padding: 12px 15px; font-size: 12px; margin-bottom: 16px; }
.notice.good { background: #edf8ef; border-color: #d2e8d8; color: #548b60; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 10px 13px; margin-bottom: 20px; box-shadow: var(--shadow); }
.filter { display: flex; align-items: center; gap: 7px; color: #7a9484; font-size: 11px; }
.filter label { white-space: nowrap; }
.filter select, .filter input { margin: 0; min-height: 30px; padding: 4px 8px; font-size: 11px; min-width: 95px; background: #fbfdfb; border-color: #e3ebe4; }
.filter input[type="date"] { width: 133px; }
.tabs, .subnav, .radio-group { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tabs { padding: 3px; background: #edf3ed; border: 1px solid #e2eae1; border-radius: 7px; }
.tabs button, .subnav button, .chip, .radio-group button { font-size: 10px; font-weight: 550; border: 1px solid transparent; border-radius: 5px; padding: 6px 10px; background: transparent; color: #7b927b; }
.tabs button.active, .subnav button.active, .chip.active, .radio-group button.active { background: white; border-color: #d8e4d8; color: #3d7a51; box-shadow: 0 2px 4px rgb(60 100 70 / 4%); }
.chip { border: 1px solid var(--line); background: white; border-radius: 20px; padding: 6px 12px; }
.chip:hover { background: #f0f6ef; }
.subnav { margin: 0 0 18px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 21px; }
.stat-card { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; min-height: 125px; box-shadow: var(--shadow); overflow: hidden; }
.stat-card.primary { background: #f0f7ed; border-color: #d6e6ce; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #81967f; font-size: 11px; }
.stat-value { color: #28583c; font-size: clamp(25px, 2.1vw, 33px); font-weight: 600; line-height: 1.15; letter-spacing: -.06em; margin: 11px 0 10px; font-variant-numeric: tabular-nums; }
.stat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #8da087; font-size: 10px; }
.stat-foot .positive { color: #609769; }
.stat-foot .negative { color: #b38165; }
.stat-foot small { font-size: 10px; }
.two-col { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; margin-bottom: 20px; overflow: hidden; }
.two-col>.panel, .three-col>.panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 19px 21px; border-bottom: 1px solid #edf2ec; }
.panel-title { font-size: 13px; font-weight: 650; letter-spacing: -.02em; color: #3c654d; }
.panel-subtitle { margin-top: 4px; font-size: 10px; color: #95a68f; line-height: 1.6; }
.panel-body { padding: 21px; }
.panel-body.compact { padding: 15px 20px; }
.panel-body>p + p { margin-top: 9px; }
.chart { min-height: 200px; width: 100%; padding: 12px 10px 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { font-size: 10px; fill: #9bada1; }
.chart-grid { stroke: #e8efea; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-line { fill: none; stroke: #159c7b; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.previous { stroke: #b5c6bd; stroke-dasharray: 5 4; stroke-width: 1.6; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 10px; color: #92a38c; }
.chart-legend span { display: inline-flex; gap: 5px; align-items: center; }
.chart-legend i { height: 2px; width: 16px; display: inline-block; background: #159c7b; border-radius: 3px; }
.chart-legend i.previous { background: #b5c6bd; }
.chart-placeholder { display: grid; place-content: center; min-height: 220px; text-align: center; color: #a1b29e; font-size: 12px; }
.chart-tooltip { padding: 7px 10px; border-radius: 6px; background: #143c30; color: white; font-size: 10px; }
.network-list { display: grid; gap: 14px; }
.network-line { display: flex; align-items: center; gap: 10px; }
.network-line>div:nth-child(2) { min-width: 0; flex: 1; }
.network-line strong { font-size: 11px; }
.network-line small { color: #97a791; font-size: 10px; }
.network-icon { flex-shrink: 0; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dfebe1; border-radius: 8px; background: #f3f8f1; color: #6a9c76; font-size: 10px; font-weight: 700; }
.network-icon.large { width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
.table-wrap { width: 100%; overflow: auto; max-height: 580px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
th { padding: 12px 15px; background: #f9fbf8; border-bottom: 1px solid var(--line); color: #94a68d; font-weight: 550; white-space: nowrap; position: sticky; top: 0; z-index: 1; font-size: 10px; }
td { padding: 13px 15px; border-bottom: 1px solid #edf2eb; color: #6c8b70; vertical-align: middle; }
td strong { color: #4c7456; font-size: 11px; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdf9; }
td.num, th.num, td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td small { display: block; font-size: 9px; color: #a1b09a; margin-top: 3px; }
td .btn { min-height: 27px; padding: 4px 9px; font-size: 10px; }
.pill { display: inline-flex; align-items: center; border-radius: 12px; padding: 3px 8px; border: 1px solid #e0e9df; background: #f3f7f1; color: #7c9975; font-size: 9px; font-weight: 550; white-space: nowrap; line-height: 1.4; }
.pill.good { color: #528b65; background: #eff8ef; border-color: #d6e8d6; }
.pill.warn { color: #b08b4b; background: #fcf8ed; border-color: #eee4ca; }
.pill.bad { color: #b07562; background: #fcf1eb; border-color: #eddbcf; }
.pill.muted { color: #9aab95; background: #f5f8f3; border-color: #e5ece0; }
.good { color: #5b976b; }
.warn { color: #ab8747; }
.bad { color: #ad705f; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.empty { min-height: 180px; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #9caf97; gap: 9px; }
.empty h3 { color: #6f946e; font-size: 14px; font-weight: 550; }
.empty p { font-size: 11px; line-height: 1.7; max-width: 450px; }
.empty .btn { margin-top: 6px; }
.cards-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.connection-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.card-top h3 { color: #476f51; font-size: 13px; }
.card-top small { color: #a0af96; font-size: 10px; }
.card-top .pill { margin-left: auto; }
.connection-card .btn { width: 100%; }
.connection-card .help { min-height: 34px; }
.connection-card dl, .detail-list { margin: 14px 0; display: grid; gap: 7px; font-size: 10px; }
.connection-card dl>div, .detail-list>div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
dt { color: #9aac93; }
dd { margin: 0; color: #6b8a6c; overflow-wrap: anywhere; text-align: right; }

.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: flex; gap: 14px; align-items: flex-start; }
.field-row>.field, .field-row>div { flex: 1; min-width: 0; }
.field-grid, .settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
label, .field-label { display: block; font-size: 11px; font-weight: 550; color: #6b8b67; margin-bottom: 5px; }
input, select, textarea { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dbe6d7; border-radius: 6px; background: white; color: #53784f; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #afbea8; }
input:focus, select:focus, textarea:focus { border-color: #8bbd9a; box-shadow: 0 0 0 3px rgb(113 173 127 / 9%); outline: none; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 14px; height: 14px; accent-color: #3c9b75; margin: 0; flex-shrink: 0; }
input:disabled, select:disabled, textarea:disabled { background: #f4f7f2; color: #9caf93; }
input[type="number"] { font-variant-numeric: tabular-nums; }
textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.inline-check, .checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #7e9a74; font-weight: 450; margin: 5px 0; }
.help { font-size: 10px; color: #98aa8c; line-height: 1.65; margin-top: 5px; }
.form-actions { margin-top: 18px; }
.form-actions.end { justify-content: flex-end; }
.form-error { color: #b07a5c; font-size: 11px; margin-top: 6px; }
.field .unit { color: #9eae92; font-size: 10px; }
.field.required label::after { content: " *"; color: #b69d68; }
.field-group-title { color: #64875b; font-size: 11px; margin: 5px 0 15px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(ellipse at 70% 10%,#dcece1 0,transparent 55%),linear-gradient(130deg,#f2f7ee,#edf5ef); }
.login-card { width: min(420px,100%); border: 1px solid #dce7d7; border-radius: 18px; background: white; padding: 36px; box-shadow: 0 22px 75px rgb(36 83 55 / 9%); }
.login-mark { background: #193a3c; color: #b8e2c7; width: 44px; height: 44px; font-size: 23px; margin-bottom: 18px; }
.login-card h1 { font-size: 26px; margin-bottom: 8px; }
.login-description { font-size: 12px; color: #94a98b; line-height: 1.75; margin-bottom: 27px; }
.login-card .btn { width: 100%; margin-top: 6px; min-height: 40px; }
.login-card .help { margin-top: 18px; text-align: center; }
.login-card .field { margin-bottom: 18px; }
.login-error { font-size: 11px; }
.toast { position: fixed; z-index: 100; bottom: 24px; right: 28px; max-width: min(450px,calc(100vw - 36px)); background: #244b39; color: #e3f4e3; border: 1px solid #41694a; border-radius: 10px; padding: 13px 18px; box-shadow: 0 10px 40px rgb(27 65 36 / 16%); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.toast.error { background: #fff3ec; border-color: #e5c4ae; color: #9c6b48; margin: 0; }
.modal-overlay { position: fixed; z-index: 80; inset: 0; background: rgb(13 37 29 / 35%); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 25px; overflow-y: auto; }
.modal { background: white; width: min(610px,100%); max-height: calc(100dvh - 50px); overflow-y: auto; border: 1px solid #d4e2ce; border-radius: 15px; box-shadow: 0 28px 100px rgb(17 49 27 / 20%); }
.modal.wide { width: min(900px,100%); }
.modal-head { padding: 22px 25px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.modal-head h2 { color: #3b6a43; font-size: 17px; }
.modal-head p { color: #99ad8e; font-size: 11px; margin-top: 3px; }
.modal-head .icon-button { margin-left: auto; }
.modal-body { padding: 25px; }
.modal-footer { padding: 17px 25px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fafcf8; }
.modal-footer .help { margin: 0 auto 0 0; }
.route-key { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; color: #477d50; font-weight: 600; font-family: "SFMono-Regular",Consolas,monospace; font-size: 13px; margin-bottom: 13px; }
.route-key span { padding: 5px 9px; background: #eff6eb; border: 1px solid #dce8d4; border-radius: 6px; }
.route-json { background: #153730; color: #bddbc6; border-radius: 9px; padding: 20px; font-size: 11px; line-height: 1.7; white-space: pre; overflow: auto; max-height: 460px; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 8px 0; border-bottom: 1px solid #edf2e9; font-size: 11px; color: #8b9f7e; }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { color: #53794a; font-weight: 550; font-variant-numeric: tabular-nums; }
.progress-line, .loading { display: flex; align-items: center; gap: 9px; color: #6b9b6c; background: #edf7ed; border: 1px solid #d9ebd6; border-radius: 7px; padding: 11px 14px; font-size: 11px; margin-bottom: 16px; }
.progress-line .text-button { margin-left: auto; }
.bar-row { display: grid; grid-template-columns: minmax(85px,140px) minmax(0,1fr) 55px; gap: 12px; align-items: center; font-size: 11px; padding: 9px 0; }
.bar-row>span:last-child, .bar-row>strong:last-child { text-align: right; font-size: 11px; }
.bar-track { height: 7px; border-radius: 5px; background: #edf3e9; overflow: hidden; }
.bar-fill { height: 100%; background: #71b48b; border-radius: 5px; min-width: 0; }
.bar-fill.secondary { background: #b6cfb9; }
.summary-box { background: #f5f9f1; border: 1px solid #e2ecd9; border-radius: 9px; padding: 15px; color: #819c71; font-size: 11px; line-height: 1.75; }
.summary-box strong { color: #5b884f; }
.scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.scenario-result { background: #eaf6ec; border: 1px solid #cfe6d2; border-radius: 9px; padding: 18px; margin-top: 18px; color: #67976a; font-size: 12px; }
.scenario-result strong { display: block; color: #3c8252; font-size: 26px; font-weight: 600; letter-spacing: -.045em; margin: 4px 0; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.nowrap { white-space: nowrap; }
.positive { color: #669e6b; }
.negative { color: #b48362; }
.source-note { color: #9caf92; font-size: 10px; line-height: 1.8; margin: 15px 0; }
.inline-code { padding: 2px 6px; background: #f0f5eb; border: 1px solid #e2eadb; border-radius: 4px; color: #6c9160; }
.color-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6fa583; margin-right: 6px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #7cb183; box-shadow: 0 0 0 3px #edf5e9; margin-right: 5px; }
.status-dot.warn { background: #c2ac6b; box-shadow: 0 0 0 3px #f7f2e5; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (min-width: 1600px) {
  .content { padding-left: 45px; padding-right: 45px; }
  .stat-card { min-height: 135px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .app-main { margin-left: 200px; }
  .content { padding: 26px 24px 40px; }
  .topbar { padding: 0 24px; }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px; }
  .two-col { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; }
}
@media (max-width: 1000px) {
  .sidebar { width: 175px; }
  .app-main { margin-left: 175px; }
  .brand { margin-left: 6px; gap: 7px; }
  .brand-name { font-size: 18px; }
  .brand-icon { width: 29px; height: 29px; font-size: 17px; }
  .workspace-card { padding: 10px 8px; gap: 7px; }
  .nav-button { padding: 10px 11px; font-size: 11px; }
  .sidebar-footer { padding-left: 8px; padding-right: 8px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .two-col { grid-template-columns: minmax(0,1fr); }
  .three-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-grid, .settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-head { padding: 17px 19px; }
  .panel-body { padding: 19px; }
  .filter { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  body { font-size: 12px; }
  .sidebar { top: auto; width: 100%; height: 62px; padding: 4px 5px max(4px,env(safe-area-inset-bottom)); background: #183a35; border-top: 1px solid #4e7160; box-shadow: 0 -4px 16px rgb(14 45 27 / 9%); }
  .sidebar .brand, .sidebar .workspace-card, .sidebar-footer, .sidebar .nav-label, .sidebar .sidebar-label { display: none; }
  .nav { flex-direction: row; gap: 2px; align-items: stretch; height: 100%; justify-content: space-around; }
  .nav-button { flex: 1; width: auto; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; text-align: center; font-size: 8px; padding: 5px 2px; border-radius: 6px; line-height: 1.35; }
  .nav-button svg { width: 16px; height: 16px; }
  .nav-button.active { box-shadow: none; }
  .nav-count { display: none; }
  .app-main { margin-left: 0; padding-bottom: 67px; }
  .topbar { height: 57px; padding: 0 18px; }
  .breadcrumbs { display: none; }
  .mobile-brand { display: block; }
  .top-actions { gap: 9px; font-size: 10px; }
  .content { padding: 24px 17px 28px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading p { font-size: 11px; margin-top: 6px; }
  .heading-actions { justify-content: flex-end; gap: 5px; max-width: 180px; }
  .heading-actions .btn { padding: 7px 9px; font-size: 10px; min-height: 31px; }
  .eyebrow { font-size: 8px; }
  .banner { padding: 11px 12px; font-size: 10px; align-items: flex-start; }
  .banner .split { flex-shrink: 0; }
  .banner .btn { font-size: 9px; min-height: 27px; padding: 5px 8px; }
  .filters { padding: 10px; gap: 9px; align-items: flex-start; }
  .filter { gap: 5px; font-size: 10px; width: 100%; }
  .filter select { min-width: 90px; flex: 1; }
  .filter input[type="date"] { width: auto; min-width: 115px; flex: 1; }
  .stats-grid { gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 15px; border-radius: 10px; min-height: 112px; }
  .stat-value { margin: 10px 0 8px; font-size: 28px; }
  .stat-label { font-size: 10px; }
  .stat-foot { font-size: 9px; gap: 4px; }
  .two-col, .three-col { gap: 15px; margin-bottom: 15px; }
  .panel { margin-bottom: 15px; border-radius: 11px; }
  .panel-head { padding: 16px; }
  .panel-title { font-size: 12px; }
  .panel-subtitle { font-size: 10px; }
  .panel-body { padding: 16px; }
  .chart { min-height: 170px; padding: 8px 0 0; }
  .chart-axis { font-size: 10px; }
  .chart-legend { gap: 10px; font-size: 9px; }
  .cards-grid { gap: 13px; }
  .connection-card { padding: 16px; }
  .card-top { gap: 9px; }
  .field-grid, .settings-grid { gap: 13px; }
  th, td { padding-left: 12px; padding-right: 12px; }
  .table-wrap { max-height: 490px; }
  .modal-overlay { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); border-radius: 12px; }
  .modal-head { padding: 19px; }
  .modal-body { padding: 19px; }
  .modal-footer { padding: 14px 19px; }
  .toast { bottom: 80px; right: 15px; font-size: 11px; }
  .scenario-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .scenario-result { margin-top: 8px; }
  .route-json { padding: 15px; font-size: 10px; }
}
@media (max-width: 480px) {
  .content { padding-left: 13px; padding-right: 13px; }
  .page-heading { flex-direction: column; gap: 13px; }
  .heading-actions { max-width: none; width: 100%; justify-content: flex-start; }
  .heading-actions .btn { font-size: 10px; }
  .cards-grid, .three-col { grid-template-columns: minmax(0,1fr); }
  .field-grid, .settings-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .field-row { flex-direction: column; gap: 0; }
  .field-row>.field, .field-row>div { width: 100%; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 14px 12px; }
  .stat-value { font-size: 26px; }
  .stat-foot { min-height: 14px; }
  .banner { flex-wrap: wrap; }
  .banner .split { margin-left: 0; }
  .top-actions .small { display: none; }
  .panel-head { align-items: flex-start; }
  .panel-head .btn { font-size: 9px; padding: 6px 8px; min-height: 29px; }
  .bar-row { grid-template-columns: 95px minmax(0,1fr) 43px; gap: 8px; font-size: 10px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .help { flex-basis: 100%; margin-bottom: 5px; }
  .login-card { padding: 27px 24px; }
  .login-card h1 { font-size: 24px; }
  .nav-button { font-size: 7px; }
  .summary-box { padding: 13px; font-size: 10px; }
}
@media print {
  .sidebar, .topbar, .heading-actions, .filters, .btn, .toast { display: none !important; }
  .app-main { margin: 0; padding: 0; }
  .content { padding: 0; max-width: none; }
  body { background: white; }
  .panel, .stat-card, .connection-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { max-height: none; overflow: visible; }
}
