:root {
  --green-950: #102c21;
  --green-900: #173d2d;
  --green-800: #20523a;
  --green-700: #286744;
  --green-600: #328354;
  --green-500: #55a16e;
  --green-100: #e7f1e9;
  --green-50: #f2f7f2;
  --ink: #1b2b22;
  --muted: #738078;
  --line: #e7ece7;
  --surface: #ffffff;
  --background: #f5f7f4;
  --warning: #b7791f;
  --danger: #b94b45;
  --shadow: 0 12px 38px rgba(22, 49, 33, .07);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--background); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.boot-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot-screen .brand-mark { width: 54px; height: 54px; font-size: 17px; }
.boot-screen p { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #68ad79, #286744); font: 800 13px Manrope, sans-serif; letter-spacing: -.04em; box-shadow: 0 5px 14px rgba(20, 84, 49, .18); }
.brand-copy { display: grid; line-height: 1.1; color: #fff; }
.brand-copy strong { font: 800 15px Manrope, sans-serif; letter-spacing: -.04em; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 248px; padding: 29px 19px 18px; color: #fff; background: var(--green-950); }
.sidebar .brand { padding: 0 9px 37px; }
.sidebar-label { padding: 0 11px; margin-bottom: 12px; color: rgba(255,255,255,.43); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.side-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 13px; border-radius: 10px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: #286744; box-shadow: inset 3px 0 #86c594; }
.nav-icon { width: 19px; text-align: center; color: #a7d6af; font-size: 18px; }
.sidebar-help { display: flex; gap: 10px; margin: auto 2px 20px; padding: 14px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.055); }
.help-icon { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; border: 1px solid rgba(180,220,186,.45); border-radius: 50%; color: #bde3c4; font-size: 11px; }
.sidebar-help strong { font-size: 11px; }
.sidebar-help p { margin: 6px 0 7px; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.45; }
.sidebar-help a { color: #aee0b8; font-size: 10px; font-weight: 700; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; padding: 13px 9px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.46); font-size: 10px; }
.sidebar-dot { width: 7px; height: 7px; border-radius: 50%; background: #7cc78b; box-shadow: 0 0 0 4px rgba(124,199,139,.1); }
.main-column { min-height: 100vh; margin-left: 248px; display: flex; flex-direction: column; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(14px); }
.topbar-context { color: #69766e; font-size: 12px; }
.topbar-context span { padding: 0 8px; color: #b2bcb5; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--green-800); background: #e6f0e7; font-size: 11px; font-weight: 800; }
.avatar-light { width: 37px; height: 37px; background: #edf4ed; }
.user-copy { display: grid; gap: 2px; min-width: 95px; }
.user-copy strong { font-size: 11px; }
.user-copy small { color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: #68756c; background: #fff; font-size: 17px; }
.icon-button:hover { border-color: #c8d9ca; color: var(--green-700); }
.logout-button { margin-left: 8px; font-size: 15px; transform: rotate(45deg); }
.mobile-menu { display: none; }
.main-content { width: 100%; max-width: 1580px; flex: 1; padding: 35px 42px 48px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: var(--green-600); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.page-heading h1 { margin: 0; color: var(--green-950); font: 800 clamp(24px, 3vw, 30px)/1.18 Manrope, sans-serif; letter-spacing: -.055em; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 700; transition: .18s ease; white-space: nowrap; }
.button-primary { color: #fff; background: var(--green-700); box-shadow: 0 5px 12px rgba(40,103,68,.12); }
.button-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.button-secondary { color: var(--green-800); border-color: #dce6dd; background: #fff; }
.button-secondary:hover { border-color: #b9d1bc; background: var(--green-50); }
.button-full { width: 100%; min-height: 47px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { min-width: 0; padding: 17px 18px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 2px 8px rgba(29,59,38,.018); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--green-700); background: var(--green-50); font-size: 16px; }
.metric-value { margin-top: 13px; color: var(--green-950); font: 800 25px/1.1 Manrope, sans-serif; letter-spacing: -.06em; }
.metric-value small { margin-left: 4px; color: #829087; font: 600 11px "DM Sans", sans-serif; letter-spacing: 0; }
.metric-note { margin-top: 7px; color: #8b978f; font-size: 9px; }
.content-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-bottom: 17px; }
.panel { min-width: 0; padding: 20px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 2px 9px rgba(29,59,38,.02); }
.content-grid .panel { margin: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; color: var(--green-950); font: 800 14px Manrope, sans-serif; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.text-link { color: var(--green-700); font-size: 10px; font-weight: 700; white-space: nowrap; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #8b968f; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
td { padding: 13px 12px; border-bottom: 1px solid #f0f3f0; color: #55645a; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; color: #26392d; font-size: 10px; font-weight: 700; }
.cell-sub { display: block; margin-top: 4px; color: #9aa59d; font-size: 9px; }
.cell-muted { color: #929e95; font-size: 9px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 30px; font-size: 9px; font-weight: 700; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-success { color: #27764a; background: #e8f5ec; }
.status-warning { color: #a46b17; background: #fff4dc; }
.status-muted { color: #738078; background: #eef1ee; }
.public-enabled { color: #28734b; font-size: 9px; font-weight: 700; }
.recent-list { display: grid; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f3f0; }
.recent-item:last-child { border-bottom: 0; }
.recent-marker { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #56a16e; box-shadow: 0 0 0 4px #eff7f0; }
.recent-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.recent-copy strong { color: #2d4034; font-size: 10px; }
.recent-copy small, .recent-reading small { color: #96a097; font-size: 9px; }
.recent-reading { display: grid; justify-items: end; gap: 4px; }
.recent-reading strong { color: var(--green-800); font: 800 14px Manrope, sans-serif; }
.compact-panel { padding-bottom: 8px; }
.mini-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-person { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px; border-radius: 10px; background: #fbfcfb; }
.mini-person > div:nth-child(2) { min-width: 0; flex: 1; }
.mini-person strong { display: block; color: #33463a; font-size: 10px; }
.mini-person small { display: block; margin-top: 4px; color: #8d9990; font-size: 9px; }
.mini-person .status-badge { padding: 4px 7px; }
.panel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.search-wrap { display: flex; align-items: center; gap: 8px; width: min(100%, 350px); height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: #8c9990; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search-wrap input::placeholder { color: #a8b1aa; }
.result-count { color: #97a198; font-size: 9px; white-space: nowrap; }
.align-right { text-align: right; }
.table-action { padding: 5px 7px; border: 0; border-radius: 5px; color: var(--green-700); background: transparent; font-size: 9px; font-weight: 700; }
.table-action:hover { background: var(--green-50); }
.table-action-danger { color: #b44c45; }
.actions-cell { min-width: 160px; }
.state-panel { display: grid; justify-items: center; align-content: center; min-height: 195px; padding: 24px; color: var(--muted); text-align: center; }
.state-panel h3 { margin: 11px 0 5px; color: #33473a; font: 800 14px Manrope, sans-serif; }
.state-panel p { max-width: 380px; margin: 0 0 13px; font-size: 10px; line-height: 1.6; }
.state-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #4e8e62; background: #eef6ef; font-size: 21px; }
.state-error .state-icon { color: #b94b45; background: #fff0ef; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid #dce9de; border-top-color: var(--green-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.filters-panel { display: flex; align-items: end; gap: 13px; flex-wrap: wrap; }
.filter-field { display: grid; gap: 6px; min-width: 185px; }
.filter-field label { color: #6e7c72; font-size: 9px; font-weight: 700; }
.filter-field select, .form-field input, .form-field select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #e2e9e2; border-radius: 8px; outline: none; color: #33463a; background: #fff; font-size: 10px; }
.filter-field select:focus, .form-field input:focus, .form-field select:focus { border-color: #80ad89; box-shadow: 0 0 0 3px rgba(85,161,110,.1); }
.chart-panel canvas { display: block; width: 100%; }
.chart-unit { color: #829087; font-size: 10px; }
.chart-footnote { margin-top: 8px; color: #99a49c; font-size: 9px; }
.station-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.station-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .18s ease; }
.station-card:hover { border-color: #b8d1bd; transform: translateY(-2px); box-shadow: var(--shadow); }
.station-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.station-symbol { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--green-700); background: var(--green-50); font-size: 20px; }
.station-card h3 { margin: 15px 0 5px; color: var(--green-950); font: 800 14px Manrope, sans-serif; }
.station-card p { margin: 0 0 15px; color: #8c9990; font-size: 10px; }
.station-card-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid #eef2ee; color: #87948a; font-size: 9px; }
.station-meta { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0; color: #89958d; font-size: 9px; }
.station-meta strong { color: #405348; font-weight: 700; }
.welcome-strip { display: flex; justify-content: space-between; align-items: center; min-height: 142px; padding: 23px 28px; margin-bottom: 17px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 88% 20%, rgba(130,191,137,.33), transparent 23%), linear-gradient(110deg, #1b4e34, #34754b); overflow: hidden; }
.welcome-kicker { color: #bce0c1; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.welcome-strip h2 { margin: 8px 0 6px; font: 800 21px Manrope, sans-serif; letter-spacing: -.04em; }
.welcome-strip p { margin: 0; color: rgba(255,255,255,.72); font-size: 10px; }
.welcome-illustration { margin-right: 6%; font-size: 65px; opacity: .8; filter: saturate(.8); }
.station-detail-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 23px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.station-detail-banner h2 { margin: 11px 0 5px; color: var(--green-950); font: 800 20px Manrope, sans-serif; }
.station-detail-banner p { margin: 0; color: var(--muted); font-size: 10px; }
.station-detail-meta { display: grid; grid-template-columns: auto auto; gap: 7px 20px; color: #8b978f; font-size: 9px; }
.station-detail-meta strong { color: #3e5145; }
.app-footer { display: flex; justify-content: space-between; padding: 16px 42px; border-top: 1px solid var(--line); color: #a1aba3; font-size: 9px; }
/* Login */
.login-page { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 100vh; background: #fff; }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 42px 8%; color: #fff; overflow: hidden; background: radial-gradient(circle at 80% 19%, rgba(126,185,133,.23), transparent 24%), radial-gradient(circle at 9% 91%, rgba(101,155,105,.2), transparent 29%), linear-gradient(145deg, #102e22 0%, #1b4d34 58%, #276443 100%); }
.login-visual::after { position: absolute; right: -180px; bottom: -270px; width: 580px; height: 580px; border: 1px solid rgba(205,238,205,.11); border-radius: 50%; box-shadow: 0 0 0 38px rgba(205,238,205,.035), 0 0 0 78px rgba(205,238,205,.025); content: ""; }
.login-message { position: relative; z-index: 1; max-width: 550px; margin-top: auto; margin-bottom: auto; padding: 70px 0; }
.login-message .eyebrow { color: #abd8b4; }
.login-message h1 { max-width: 540px; margin: 17px 0; font: 800 clamp(33px, 4vw, 52px)/1.12 Manrope, sans-serif; letter-spacing: -.06em; }
.login-message > p:not(.eyebrow) { max-width: 430px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.8; }
.login-decoration { display: flex; align-items: center; gap: 14px; margin-top: 42px; }
.login-decoration span { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #c7ebce; background: rgba(255,255,255,.06); font-size: 19px; }
.login-visual-foot { position: relative; z-index: 1; color: rgba(255,255,255,.48); font-size: 10px; }
.login-form-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 45px; }
.login-form-wrap { width: min(100%, 360px); }
.login-form-wrap h2 { margin: 0; color: var(--green-950); font: 800 27px Manrope, sans-serif; letter-spacing: -.05em; }
.login-subtitle { margin: 8px 0 27px; color: var(--muted); font-size: 11px; }
.form-stack { display: grid; gap: 15px; }
.form-field { display: grid; gap: 7px; color: #56675c; font-size: 10px; font-weight: 700; }
.form-field input { min-height: 45px; font-size: 11px; }
.form-field input::placeholder { color: #a9b3aa; }
.form-field input:disabled { cursor: not-allowed; background: #f2f4f1; color: #8e9990; }
.login-form-wrap .button { margin-top: 4px; }
.login-form-wrap .button:disabled { cursor: not-allowed; opacity: .58; }
.integration-notice { padding: 14px 15px; margin-top: 22px; border: 1px solid #e8dcb9; border-radius: 11px; color: #725a28; background: #fffaf0; }
.integration-notice strong { display: block; font-size: 11px; }
.integration-notice p { margin: 6px 0 0; color: #81734f; font-size: 10px; line-height: 1.6; }
.login-security { margin: 22px 0 0; color: #9aa69d; font-size: 9px; line-height: 1.6; text-align: center; }
.login-footer { margin-top: 50px; color: #a4aea6; font-size: 9px; }
.login-mobile-brand { display: none; }
/* Public */
.public-page { min-height: 100vh; padding: 0 max(22px, calc((100vw - 1080px)/2)); background: #f6f8f5; }
.public-header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-bottom: 1px solid var(--line); }
.public-header .brand-copy { color: var(--green-950); }
.public-header .brand-copy small { color: #89958d; }
.public-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #dfe9df; border-radius: 30px; color: #477653; background: #fff; font-size: 9px; font-weight: 700; }
.public-pill span { width: 6px; height: 6px; border-radius: 50%; background: #65a875; }
.public-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 44px 0 27px; }
.public-hero h1 { margin: 0; color: var(--green-950); font: 800 clamp(24px, 4vw, 36px) Manrope, sans-serif; letter-spacing: -.06em; }
.public-location { margin: 9px 0 7px; color: #67786c; font-size: 11px; }
.public-description { max-width: 590px; margin: 0; color: #8a978d; font-size: 10px; }
.public-status { display: grid; justify-items: end; gap: 8px; }
.public-status small { color: #89958c; font-size: 9px; }
.public-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.public-chart { margin-bottom: 45px; }
.public-footer { padding: 18px 0 28px; color: #9aa59c; font-size: 9px; text-align: center; }
.public-center { min-height: 65vh; display: grid; place-items: center; }
.public-center .state-panel { max-width: 500px; margin: auto; }
/* Modal & notices */
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11,29,20,.53); backdrop-filter: blur(5px); }
.modal { width: min(100%, 560px); max-height: min(90vh, 760px); overflow: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 15px; background: #fff; box-shadow: 0 26px 90px rgba(0,0,0,.2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.modal-header .eyebrow { margin-bottom: 5px; }
.modal-header h2 { margin: 0; color: var(--green-950); font: 800 18px Manrope, sans-serif; letter-spacing: -.04em; }
.modal-body { padding: 21px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { margin: 0; color: #8d9a90; font-size: 9px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.qr-content { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 18px; }
.qr-image-wrap { display: grid; justify-items: center; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.qr-image-wrap img { display: block; width: 160px; height: 160px; object-fit: contain; }
.qr-image-wrap span { color: #8d998f; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.qr-info h3 { margin: 0 0 7px; color: var(--green-950); font: 800 14px Manrope, sans-serif; }
.qr-info p { margin: 0 0 13px; color: #78867c; font-size: 9px; line-height: 1.5; }
.qr-info small { display: block; margin-top: 10px; color: #9aa49c; font-size: 8px; line-height: 1.5; }
.qr-actions { display: flex; gap: 7px; margin-top: 9px; }
.qr-actions .button { min-height: 35px; padding: 0 10px; font-size: 9px; }
.toast-region { position: fixed; z-index: 100; top: 18px; right: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 12px 15px; border: 1px solid #dce8de; border-radius: 10px; color: #285d3c; background: #f1f8f2; box-shadow: var(--shadow); font-size: 10px; animation: toast-in .18s ease-out; }
.toast-error { border-color: #f0d6d3; color: #9c3933; background: #fff5f4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
[hidden] { display: none !important; }
@media (max-width: 1150px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .main-content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding: 0 28px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .station-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 35px rgba(0,0,0,.14); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .mobile-menu { display: grid; margin-right: 12px; }
  .topbar { justify-content: flex-start; padding: 0 20px; }
  .topbar-context { flex: 1; }
  .topbar-user { margin-left: auto; }
  .main-content { padding: 26px 20px 38px; }
  .app-footer { padding: 15px 20px; }
  .content-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { min-height: 100vh; padding: 32px 24px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
  .login-mobile-brand .brand-copy { color: var(--green-950); }
  .login-mobile-brand .brand-copy small { color: #89958d; }
  .login-form-wrap { width: min(100%, 410px); }
  .login-footer { margin-top: 65px; }
}
@media (max-width: 560px) {
  .topbar { min-height: 64px; padding: 0 13px; }
  .topbar-context { font-size: 10px; }
  .user-copy { display: none; }
  .topbar-user { gap: 5px; }
  .logout-button { margin-left: 3px; }
  .main-content { padding: 23px 13px 30px; }
  .page-heading { display: grid; align-items: start; margin-bottom: 20px; }
  .page-heading h1 { font-size: 25px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-grid, .metric-grid-three, .metric-grid-four, .public-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .metric-card { padding: 13px; }
  .metric-value { font-size: 22px; }
  .panel { padding: 15px; margin-bottom: 12px; }
  .content-grid { gap: 12px; margin-bottom: 12px; }
  .mini-people { grid-template-columns: 1fr; }
  .mini-person .status-badge { margin-left: auto; }
  .station-card-grid { grid-template-columns: 1fr; }
  .station-card-grid-page { gap: 10px; }
  .panel-toolbar { align-items: flex-start; flex-direction: column; }
  .search-wrap { width: 100%; }
  .filters-panel { align-items: stretch; flex-direction: column; }
  .filter-field { min-width: 100%; }
  .filters-panel .button { width: 100%; }
  .welcome-strip { min-height: 130px; padding: 18px; }
  .welcome-strip h2 { font-size: 18px; }
  .welcome-illustration { margin-right: 0; font-size: 48px; }
  .station-detail-banner { align-items: flex-start; flex-direction: column; padding: 16px; }
  .station-detail-meta { width: 100%; grid-template-columns: 1fr 1fr; }
  .app-footer { padding: 13px; font-size: 8px; }
  .public-page { padding: 0 15px; }
  .public-hero { align-items: flex-start; flex-direction: column; padding-top: 30px; }
  .public-status { justify-items: start; }
  .public-metrics { margin-bottom: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: end; padding: 8px; }
  .modal { max-height: 92vh; border-radius: 15px 15px 10px 10px; }
  .qr-content { grid-template-columns: 1fr; }
  .qr-image-wrap { width: 190px; margin: auto; }
  .qr-actions .button { flex: 1; }
}

/* Dados de provisionamento exibidos uma única vez após a criação da estação. */
.activation-notice {
  padding: 14px 16px;
  border: 1px solid rgba(39, 125, 84, .22);
  border-radius: 12px;
  background: rgba(39, 125, 84, .07);
  color: var(--text, #24342b);
  margin-bottom: 16px;
}
.activation-notice strong { display: block; margin-bottom: 5px; }
.activation-notice p { margin: 0; color: var(--muted, #68766d); line-height: 1.5; }
.activation-warning { border-color: rgba(184, 129, 36, .3); background: rgba(184, 129, 36, .08); }
.activation-values { display: grid; gap: 12px; }
.activation-values input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .03em; }
