:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b25;
  background: #f6f8f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; gap: 16px; justify-items: center; color: #77837d; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: #126448; font-size: 21px; font-weight: 850; letter-spacing: -.04em; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); background: #fff; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 5vw, 64px); color: #f4f8f5; background: #0b3028; }
.auth-brand::after { position: absolute; right: -160px; bottom: 50px; width: 500px; height: 500px; border: 1px solid #ffffff18; border-radius: 50%; content: ""; box-shadow: 0 0 0 60px #ffffff08, 0 0 0 120px #ffffff05; }
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .1em; font-size: 13px; }
.brand-lockup .brand-mark { background: #2c8a68; }
.brand-copy { position: relative; z-index: 1; max-width: 520px; margin: auto 0; }
.brand-copy .eyebrow { color: #85caaa; }
.brand-copy h2 { margin: 16px 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.04; letter-spacing: -.055em; font-weight: 650; }
.brand-copy p { max-width: 420px; color: #c6d9d0; font-size: 16px; line-height: 1.7; }
.brand-foot { position: relative; z-index: 1; color: #afc7bc; font-size: 12px; }
.auth-side { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(100%, 430px); }
.auth-card h1 { margin: 0; font-size: 34px; letter-spacing: -.045em; font-weight: 680; }
.auth-subtitle { margin: 10px 0 30px; color: #68776f; line-height: 1.6; }
.field { display: grid; gap: 8px; margin: 18px 0; }
.field label { color: #34473d; font-size: 13px; font-weight: 650; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #dce5df; border-radius: 11px; outline: 0; color: #192a23; background: white; }
.field input:focus { border-color: #24795a; box-shadow: 0 0 0 3px #24795a18; }
.field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #dce5df; border-radius: 11px; outline: 0; color: #192a23; background: white; }
.field select:focus { border-color: #24795a; box-shadow: 0 0 0 3px #24795a18; }
.primary-button, .secondary-button, .text-button, .icon-button { border: 0; border-radius: 11px; }
.primary-button { min-height: 48px; width: 100%; padding: 0 18px; color: #fff; background: #126448; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.primary-button:hover { background: #0d543d; }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: .6; }
.text-button { padding: 8px 0; color: #176448; background: transparent; font-size: 13px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.auth-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.form-message { min-height: 22px; margin: 14px 0; color: #a03b31; font-size: 13px; line-height: 1.5; }
.form-message.success { color: #1d714e; }
.security-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid #edf0ee; color: #75827b; font-size: 12px; line-height: 1.65; }
.recovery-card { width: min(100%, 460px); padding: 34px; border: 1px solid #e5ece7; border-radius: 20px; box-shadow: 0 24px 70px #153a2910; }
.recovery-card .brand-lockup { margin-bottom: 32px; color: #18382b; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; border-right: 1px solid #e7ede9; background: #fff; }
.sidebar .brand-lockup { padding: 4px 8px 32px; color: #0b3028; }
.workspace-label { padding: 12px 10px 8px; color: #8b9790; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; margin: 3px 0; padding: 11px 12px; border: 0; border-radius: 10px; color: #58675f; background: transparent; text-align: left; font-size: 13px; font-weight: 630; }
.nav-item.active { color: #125c42; background: #edf6f0; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-bottom { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #edf1ee; }
.profile-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #165c43; background: #e8f2ec; font-weight: 750; }
.profile-meta { min-width: 0; flex: 1; }
.profile-meta strong, .profile-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta strong { color: #24362d; font-size: 12px; }
.profile-meta span { margin-top: 3px; color: #839087; font-size: 10px; }
.icon-button { width: 34px; height: 34px; color: #718078; background: transparent; }
.icon-button:hover { color: #a13c32; background: #fbefed; }
.main-area { min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid #e8eeea; background: #fff; }
.crumb { color: #89958e; font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dfe9e2; border-radius: 99px; color: #41644f; background: #f6faf7; font-size: 11px; font-weight: 650; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #42a66f; }
.content { width: min(100%, 1240px); margin: 0 auto; padding: clamp(24px, 4vw, 48px); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 9px; color: #328160; font-size: 10px; font-weight: 780; letter-spacing: .15em; text-transform: uppercase; }
.page-heading h1 { margin: 0; color: #172b25; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.05em; font-weight: 690; }
.page-heading p { margin: 9px 0 0; color: #75827a; font-size: 13px; }
.secondary-button { min-height: 40px; padding: 0 14px; border: 1px solid #dce6df; color: #2d5d46; background: #fff; font-size: 12px; font-weight: 650; }
.secondary-button:hover { border-color: #92b9a0; background: #f8fbf9; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card, .panel-card { border: 1px solid #e3ebe6; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px #14382605; }
.metric-card { min-height: 122px; padding: 18px 20px; }
.metric-label { color: #7c8981; font-size: 11px; font-weight: 650; }
.metric-value { margin-top: 12px; color: #183a2c; font-size: 32px; font-weight: 720; letter-spacing: -.06em; }
.metric-caption { margin-top: 3px; color: #98a29c; font-size: 10px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0 14px; }
.section-title h2 { margin: 0; color: #23372d; font-size: 17px; letter-spacing: -.025em; }
.section-title span { color: #849088; font-size: 11px; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.company-card { padding: 20px; }
.company-head { display: flex; align-items: flex-start; gap: 12px; }
.company-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #176448; background: #edf6f0; font-weight: 750; }
.company-name { flex: 1; min-width: 0; }
.company-name h3 { margin: 2px 0 5px; color: #21352b; font-size: 14px; }
.company-name span { color: #87938c; font-size: 11px; }
.company-state { padding: 5px 8px; border-radius: 99px; color: #27724f; background: #eef8f1; font-size: 10px; font-weight: 700; }
.company-metrics { display: flex; gap: 22px; margin-top: 22px; padding-top: 15px; border-top: 1px solid #edf1ee; }
.company-metric strong { display: block; color: #2b4336; font-size: 17px; }
.company-metric span { display: block; margin-top: 3px; color: #859188; font-size: 10px; }
.city-list { display: grid; gap: 8px; margin-top: 14px; }
.city-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f7f9f8; }
.city-row strong { color: #34483c; font-size: 12px; }
.city-row span { color: #8b9790; font-size: 10px; }
.empty-state { padding: 18px; border: 1px dashed #d8e3dc; border-radius: 12px; color: #7c8981; background: #fbfcfb; font-size: 12px; line-height: 1.55; }
.panel-card { padding: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 12px; border-bottom: 1px solid #e8eeea; color: #8a958e; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 14px 12px; border-bottom: 1px solid #f0f3f1; color: #3d5045; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.city-status { display: inline-flex; align-items: center; gap: 6px; color: #34714f; font-size: 11px; }
.city-status::before { width: 6px; height: 6px; border-radius: 50%; background: #45a26c; content: ""; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: #10251dc4; backdrop-filter: blur(4px); }
.modal { width: min(100%, 480px); padding: 26px; border: 1px solid #e4ebe6; border-radius: 18px; background: #fff; box-shadow: 0 30px 100px #00150c40; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; color: #1c3428; font-size: 20px; letter-spacing: -.035em; }
.modal-head p { margin: 7px 0 0; color: #7a877f; font-size: 12px; line-height: 1.5; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #718078; background: #f2f5f3; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-actions .primary-button { width: auto; min-width: 130px; }
.notice { margin: 12px 0 0; padding: 11px 13px; border-radius: 10px; color: #9e3d32; background: #fff1ef; font-size: 11px; line-height: 1.5; }
.notice.success { color: #216949; background: #edf7f0; }
.loading-card { min-height: 240px; display: grid; place-content: center; gap: 12px; justify-items: center; color: #829088; }
.spinner { width: 28px; height: 28px; border: 3px solid #e3ece6; border-top-color: #247451; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } .auth-brand { min-height: 220px; padding: 26px; } .brand-copy { margin: 36px 0 14px; } .brand-copy h2 { font-size: 34px; } .brand-copy p, .brand-foot { display: none; } .app-shell { grid-template-columns: 76px minmax(0,1fr); } .sidebar { align-items: center; padding: 20px 8px; } .sidebar .brand-lockup { padding: 4px 0 26px; } .sidebar .brand-lockup span:last-child, .workspace-label, .nav-item span:last-child, .profile-meta, .sidebar-bottom .icon-button { display: none; } .nav-item { justify-content: center; width: 48px; height: 46px; padding: 0; } .nav-icon { font-size: 18px; } .sidebar-bottom { width: 100%; padding: 14px 0 0; } .profile-chip { justify-content: center; } }
@media (max-width: 640px) { .auth-side { padding: 24px; } .auth-card h1 { font-size: 30px; } .app-shell { display: block; padding-bottom: 62px; } .sidebar { position: fixed; z-index: 5; inset: auto 0 0; width: 100%; height: 62px; flex-direction: row; justify-content: center; gap: 8px; padding: 6px 10px; border-top: 1px solid #e5ece7; border-right: 0; } .sidebar .brand-lockup, .sidebar-bottom { display: none; } .workspace-label { display: none; } .nav-item { width: 58px; height: 48px; margin: 0; } .nav-item span:last-child { display: none; } .topbar { height: 58px; padding: 0 18px; } .content { padding: 22px 16px 32px; } .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; } .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; } .metric-card { min-height: 104px; padding: 14px; } .metric-value { font-size: 27px; } .company-grid { grid-template-columns: 1fr; } .company-card { padding: 16px; } .online-pill { padding: 6px 8px; font-size: 10px; } .recovery-card { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
