:root {
  --teal-900: #075c57;
  --teal-800: #0b6f68;
  --teal: #13867d;
  --teal-100: #e5f5f2;
  --teal-50: #f2fbfa;
  --ink: #17222b;
  --muted: #68747d;
  --line: #e4e8ea;
  --surface: #ffffff;
  --canvas: #f6f7f7;
  --danger: #c53b39;
  --danger-bg: #fff1f0;
  --warning: #b66c0b;
  --warning-bg: #fff8e9;
  --success: #08766c;
  --shadow: 0 10px 30px rgba(24, 39, 45, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:has(input:focus-visible) { outline: 3px solid rgba(19, 134, 125, .28); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 250px; flex: 0 0 250px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 22px 22px 26px; border-bottom: 1px solid #eef0f1; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 800; font-size: 20px; }
.brand strong { display: block; letter-spacing: .12em; font-size: 16px; }
.brand small { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.org-mini { padding: 16px 18px; border-bottom: 1px solid #eef0f1; }
.org-mini-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 700; margin-bottom: 7px; }
.org-mini-name { font-weight: 700; font-size: 13px; line-height: 1.35; }
.org-mini-code { color: var(--teal-800); font-size: 11px; margin-top: 4px; }
.nav { padding: 16px 12px; flex: 1; }
.nav-heading { color: #9aa2a8; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; font-weight: 800; padding: 8px 12px 7px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: #526069; padding: 12px; border-radius: 8px; text-align: left; font-weight: 600; font-size: 14px; margin: 2px 0; min-height: 44px; }
.nav-button:hover { background: var(--teal-50); color: var(--teal-900); }
.nav-button.active { color: var(--teal-900); background: var(--teal-100); }
.nav-icon { width: 19px; text-align: center; font-size: 16px; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 15px 17px; }
.user-mini { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #d9eeeb; color: var(--teal-900); border-radius: 50%; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.user-mini-name { font-size: 12px; font-weight: 700; line-height: 1.25; }
.user-mini-role { color: var(--muted); font-size: 10px; margin-top: 2px; }
.logout-button { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 6px 0 0 44px; }
.logout-button:hover { color: var(--danger); }

.main-area { min-width: 0; flex: 1; }
.topbar { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 20px; }
.topbar-context { min-width: 0; }
.topbar-eyebrow { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.topbar-title { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.org-switcher { border: 1px solid var(--line); padding: 8px 12px; border-radius: 7px; background: #fff; font-size: 12px; color: #34434c; max-width: 235px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; color: var(--teal-900); }
.content { padding: 30px 34px 48px; max-width: 1500px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.page-title { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.page-subtitle { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 11px 16px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.button:hover { border-color: #b5c1c4; background: #fafcfc; }
.button-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-primary:hover { background: var(--teal-900); border-color: var(--teal-900); }
.button-quiet { border-color: transparent; background: transparent; }
.button-danger { color: var(--danger); }
.button-sm { padding: 9px 12px; min-height: 38px; }
.button-icon { min-width: 40px; justify-content: center; padding: 9px; }

.grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 19px; box-shadow: var(--shadow); }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--teal-800); background: var(--teal-100); }
.stat-value { font-size: 23px; font-weight: 800; margin-top: 12px; letter-spacing: -.04em; }
.stat-foot { color: var(--muted); font-size: 11px; margin-top: 6px; }
.stat-foot.positive { color: var(--success); }
.two-col { grid-template-columns: 1.2fr .8fr; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.panel-header { min-height: 62px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 14px; font-weight: 800; }
.panel-subtitle { color: var(--muted); font-size: 11px; margin-top: 4px; }
.panel-body { padding: 18px 19px; }
.spacer-16 { height: 16px; }
.spacer-24 { height: 24px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th { padding: 12px 16px; color: #65727b; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; text-align: left; font-weight: 800; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid #eef1f2; font-size: 12px; color: #33414a; vertical-align: middle; }
tbody tr:hover { background: #fbfdfd; }
tbody tr:last-child td { border-bottom: 0; }
.table-primary { color: var(--ink); font-weight: 750; }
.table-secondary { color: var(--muted); font-size: 12px; margin-top: 4px; }
.text-right { text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--teal-100); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-neutral { color: #5c6870; background: #eef1f2; }
.badge-danger { color: var(--danger); background: var(--danger-bg); }
.photo-count { display: inline-flex; color: var(--teal-800); background: var(--teal-50); border: 1px solid #d5ebe7; border-radius: 5px; padding: 3px 6px; font-size: 10px; font-weight: 700; }
.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); font-size: 12px; }
.empty-state-icon { font-size: 28px; color: #aac5c2; margin-bottom: 8px; }

.quick-grid { grid-template-columns: repeat(2, 1fr); }
.quick-action { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 15px; text-align: left; display: flex; gap: 12px; align-items: center; }
.quick-action:hover { border-color: var(--teal); background: var(--teal-50); }
.quick-action-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--teal-900); background: var(--teal-100); flex: 0 0 auto; }
.quick-action-title { display: block; font-size: 12px; font-weight: 800; }
.quick-action-subtitle { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.notice { display: flex; gap: 12px; padding: 13px 15px; border-radius: 8px; background: var(--warning-bg); color: #7c540e; font-size: 12px; line-height: 1.45; border: 1px solid #f2e4be; }
.report-scope-notice { margin-bottom: 16px; }
.notice strong { display: block; color: #6b4707; margin-bottom: 2px; }
.budget-hint { height: 100%; box-sizing: border-box; align-items: flex-start; background: var(--teal-50); border-color: #cfe8e4; color: var(--teal-900); }
.budget-hint strong { color: var(--teal-900); }
.budget-hint-danger { background: #fff4f3; border-color: #f0c8c5; color: #8d302d; }
.budget-hint-danger strong { color: #8d302d; }
.text-danger { color: var(--danger) !important; font-weight: 750; }
.text-success { color: var(--teal-800) !important; font-weight: 750; }
.tag { display: inline-block; padding: 3px 6px; border-radius: 4px; color: var(--teal-900); background: var(--teal-100); font-size: 10px; font-weight: 750; white-space: nowrap; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-card { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.check-card:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.check-card input { margin-top: 2px; accent-color: var(--teal); }
.check-card strong, .check-card small { display: block; }
.check-card strong { color: var(--ink); font-size: 11px; }
.check-card small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.attendant-hero { display: flex; align-items: center; gap: 15px; padding: 20px; background: linear-gradient(105deg, #effaf8, #ffffff); border-color: #cfe8e4; }
.attendant-hero-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: var(--teal); color: #fff; font-size: 22px; flex: 0 0 auto; }
.attendant-hero > div:nth-child(2) { flex: 1; }
.attendant-hero-help { color: var(--teal-800); font-size: 11px; margin-top: 9px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field.compact { flex: 0 1 190px; }
.field label { color: #53616a; font-size: 12px; font-weight: 700; }
.input, .select, .textarea { width: 100%; border: 1px solid #d7dddf; border-radius: 8px; padding: 12px 13px; background: #fff; color: var(--ink); font-size: 14px; min-height: 46px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 134, 125, .12); }
.textarea { min-height: 78px; resize: vertical; }
.input-error { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
.form-section-title { grid-column: span 12; display: flex; align-items: center; gap: 9px; color: var(--teal-900); font-size: 14px; font-weight: 800; padding-top: 7px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.form-section-title small { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: auto; }
.step-number { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 12px; flex: 0 0 auto; }
.input-prefix { position: relative; } .input-prefix span { position: absolute; left: 11px; top: 10px; color: var(--muted); font-size: 12px; } .input-prefix .input { padding-left: 28px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.photo-drop { padding: 18px; border: 1px dashed #bed6d3; border-radius: 9px; background: var(--teal-50); }
.photo-drop-title { color: var(--teal-900); font-size: 14px; font-weight: 800; }
.photo-drop-help { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 5px 0 12px; }
.upload-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--teal); border-radius: 8px; background: #fff; color: var(--teal-900); font-size: 13px; font-weight: 800; cursor: pointer; }
.upload-button:hover { background: var(--teal-100); }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.file-input:focus-visible + .upload-status, .upload-button:has(+ .upload-status + .file-input:focus-visible) { outline: 3px solid rgba(19, 134, 125, .25); outline-offset: 3px; }
.upload-status { color: var(--muted); font-size: 12px; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.photo-preview { width: 65px; height: 65px; border-radius: 6px; border: 1px solid #cddedc; object-fit: cover; background: #fff; }

.org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.org-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 19px; box-shadow: var(--shadow); }
.org-card-top { display: flex; gap: 12px; align-items: flex-start; }
.org-building { width: 40px; height: 40px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-800); border-radius: 8px; font-size: 20px; }
.org-card h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.org-card p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.org-card .edit { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 17px; }
.org-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; gap: 8px; }
.org-meta strong { color: var(--teal-800); }
.org-meta-actions { display: flex; gap: 7px; align-items: center; }

.chart-bars { display: flex; align-items: flex-end; gap: 18px; height: 174px; padding: 18px 8px 2px; border-bottom: 1px solid var(--line); }
.bar-column { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; min-width: 50px; height: 100%; justify-content: flex-end; }
.bar-value { font-size: 10px; color: var(--muted); }
.bar { width: 100%; max-width: 42px; min-height: 5px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #39a69c, #117f78); }
.bar-label { color: var(--muted); font-size: 10px; }
.legend { display: flex; gap: 18px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 5px; }
.report-summary { grid-template-columns: repeat(3, 1fr); }
.report-summary .stat-card { box-shadow: none; }

.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10, 28, 31, .42); z-index: 20; }
.modal { width: min(720px, 100%); max-height: min(880px, calc(100vh - 40px)); overflow: auto; border-radius: 11px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.18); }
.modal.modal-wide { width: min(920px, 100%); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-title { font-size: 20px; line-height: 1.2; font-weight: 800; }
.modal-subtitle { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 6px; }
.modal-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; flex: 0 0 auto; }
.modal-close:hover { background: #f3f6f6; color: var(--ink); }
.modal-body { padding: 24px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px 20px; position: sticky; bottom: 0; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 18px rgba(24,39,45,.05); z-index: 1; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-item { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-item:nth-child(3n) { border-right: 0; }
.detail-label { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.detail-value { font-size: 13px; line-height: 1.35; font-weight: 750; }
.gallery { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gallery img { width: 125px; height: 92px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); }
.review-panel { border: 1px solid #cfe8e4; border-radius: 9px; background: #f7fbfa; padding: 16px; }
.review-panel-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.review-panel-title, .review-audit-title { color: var(--teal-900); font-size: 13px; font-weight: 800; }
.review-panel-subtitle { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.45; }
.review-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 15px 0; }
.review-facts > div { padding: 10px; border: 1px solid #dbece9; border-radius: 7px; background: #fff; }
.review-facts span, .review-audit-grid span, .review-audit-note span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.review-facts strong { display: block; color: var(--ink); font-size: 11px; line-height: 1.3; }
.review-checklist { display: grid; gap: 8px; }
.review-check { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.review-check:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.review-check input { margin-top: 2px; accent-color: var(--teal); flex: 0 0 auto; }
.review-check strong, .review-check small { display: block; }
.review-check strong { color: var(--ink); font-size: 11px; }
.review-check small { color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 3px; }
.review-notes { margin-top: 13px; }
.review-notes textarea { min-height: 68px; resize: vertical; }
.review-audit { padding: 14px 15px; border: 1px solid #cfe8e4; border-radius: 9px; background: var(--teal-50); }
.review-audit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.review-audit-grid strong { color: var(--ink); font-size: 11px; }
.review-audit-note { border-top: 1px solid #cfe8e4; margin-top: 12px; padding-top: 10px; color: var(--ink); font-size: 11px; line-height: 1.45; }
.review-legacy { margin-top: 0; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #eff8f6 0%, #f7f8f8 47%, #eef3f3 100%); }
.auth-wrap { width: min(1080px, 100%); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.auth-brand .brand-mark { width: 42px; height: 42px; font-size: 22px; }
.auth-brand strong { font-size: 22px; letter-spacing: .14em; }
.auth-brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0; margin-top: 3px; }
.auth-heading { text-align: center; margin-bottom: 22px; }
.auth-heading h1 { font-size: 27px; letter-spacing: -.04em; margin: 0; }
.auth-heading p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.auth-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.auth-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 16px 45px rgba(18, 64, 62, .08); }
.auth-panel-title { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.auth-panel-subtitle { color: var(--muted); font-size: 11px; margin-bottom: 17px; }
.org-choice { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; margin: 10px 0; }
.org-choice:hover, .org-choice.selected { border-color: var(--teal); background: var(--teal-50); }
.org-choice.selected { box-shadow: 0 0 0 2px rgba(19,134,125,.12); }
.org-choice .org-building { width: 34px; height: 34px; font-size: 17px; }
.org-choice-name { font-size: 12px; font-weight: 800; }
.org-choice-meta { color: var(--muted); font-size: 10px; margin-top: 4px; }
.checkmark { margin-left: auto; color: var(--teal); font-weight: 900; opacity: 0; }
.org-choice.selected .checkmark { opacity: 1; }
.role-list { display: grid; gap: 10px; }
.role-choice { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 13px; text-align: left; display: flex; gap: 11px; align-items: flex-start; }
.role-choice:hover, .role-choice.selected { border-color: var(--teal); background: var(--teal-50); }
.role-choice.selected { box-shadow: 0 0 0 2px rgba(19,134,125,.1); }
.role-choice-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--teal-900); background: var(--teal-100); flex: 0 0 auto; }
.role-choice strong { font-size: 12px; display: block; }
.role-choice span { color: var(--muted); font-size: 10px; display: block; line-height: 1.35; margin-top: 3px; }
.role-choice .checkmark { margin-left: auto; opacity: 0; color: var(--teal); font-size: 15px; font-weight: 900; }
.role-choice.selected .checkmark { opacity: 1; }
.auth-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 14px; min-height: 43px; }
.auth-submit span { font-size: 16px; }
.demo-access { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.demo-buttons { display: flex; gap: 7px; flex-wrap: wrap; }
.demo-buttons .button { flex: 1; justify-content: center; min-width: 105px; }
.auth-note { display: flex; gap: 8px; padding: 11px 12px; background: #f8fafb; border-radius: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 14px; }
.posto-access-pill { display: inline-flex; align-items: center; color: var(--teal-900); background: var(--teal-100); border: 1px solid #cfe8e4; border-radius: 999px; padding: 6px 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; margin-bottom: 11px; }
.posto-auth-wrap { width: min(540px, 100%); }
.posto-login-card { width: 100%; }
.posto-auth-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.posto-station-panel { display: flex; flex-direction: column; }
.posto-station-card { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #cfe8e4; border-radius: 9px; background: var(--teal-50); padding: 16px; margin-top: 5px; }
.posto-station-card > div { flex: 1; min-width: 0; }
.posto-station-card .badge { margin-left: auto; }
.posto-station-name { font-size: 14px; font-weight: 800; color: var(--teal-900); line-height: 1.3; }
.posto-station-address { color: #4c6368; font-size: 11px; line-height: 1.4; margin-top: 5px; }
.posto-station-code { color: var(--muted); font-size: 10px; margin-top: 6px; }
.posto-security-note { display: flex; gap: 8px; padding: 12px; border-radius: 7px; background: #f8fafb; color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: auto; }
.posto-back-link { text-align: center; color: var(--muted); font-size: 11px; margin-top: 18px; }
.posto-back-link a:hover { color: var(--teal-900); }
.posto-app-shell .topbar-eyebrow { color: var(--teal-800); }

#toast-region { position: fixed; top: 84px; right: 25px; z-index: 50; display: grid; gap: 8px; width: min(350px, calc(100% - 32px)); }
.toast { background: #203139; color: #fff; border-radius: 7px; padding: 12px 14px; box-shadow: 0 10px 25px rgba(0,0,0,.2); font-size: 12px; animation: toast-in .2s ease-out; }
.toast.success { background: #0b756c; } .toast.error { background: #ae3d3d; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .content { padding: 25px 24px 40px; }
  .topbar { padding: 0 24px; }
}
@media (max-width: 780px) {
  .sidebar { position: fixed; left: -270px; top: 0; bottom: 0; z-index: 30; transition: left .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.1); }
  .sidebar.open { left: 0; }
  .mobile-menu { display: block; }
  .topbar { height: 62px; padding: 0 16px; }
  .topbar-actions .org-switcher { display: none; }
  .content { padding: 22px 16px 35px; }
  .page-header { display: block; }
  .header-actions { justify-content: flex-start; margin-top: 16px; }
  .org-grid, .auth-grid, .posto-auth-grid { grid-template-columns: 1fr; }
  .auth-screen { padding: 18px 12px; align-items: start; }
  .auth-wrap { margin: 10px 0; }
  .auth-panel { padding: 17px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .detail-item:nth-child(2n) { border-right: 0; }
  .attendant-hero { align-items: flex-start; flex-wrap: wrap; }
  .attendant-hero > .button { margin-left: 61px; }
  .span-8, .span-6, .span-4, .span-3 { grid-column: span 12; }
  .review-facts, .review-audit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stats-grid, .quick-grid, .report-summary { grid-template-columns: 1fr; }
  .page-title { font-size: 21px; }
  .topbar-title { font-size: 13px; }
  .auth-heading h1 { font-size: 22px; }
  .auth-login-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .org-meta { align-items: flex-start; flex-direction: column; }
  .org-meta-actions { width: 100%; }
  .org-meta-actions .button { flex: 1; justify-content: center; }
  .form-grid { gap: 12px; }
  .form-section-title { flex-wrap: wrap; }
  .form-section-title small { flex-basis: 100%; margin-left: 35px; margin-top: -3px; }
  .review-panel-header { display: block; }
  .review-panel-header .badge { display: inline-flex; margin-top: 10px; }
  .review-facts, .review-audit-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); }
  .modal-body { padding: 17px 15px; }
  .modal-header { padding: 17px 15px; }
  .modal-footer { padding: 13px 15px 16px; }
  .modal-footer .button { flex: 1; justify-content: center; min-height: 48px; font-size: 13px; }
}
