:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f8f4; color: #202c2b; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { transition: background-color .15s, color .15s, border-color .15s; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #92c5ac; outline-offset: 3px; }
[hidden] { display: none !important; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: #167455; transform: rotate(-7deg); }
.brand-mark svg { transform: rotate(7deg); }
.avatar { display: inline-flex; align-items: center; justify-content: center; height: 32px; width: 32px; font-size: 12px; font-weight: 600; border-radius: 50%; color: #466656; background: #eaf0e6; border: 3px solid #f6f8f1; }
.nav-active { border-bottom: 2px solid #167455; color: #167455; padding-top: 2px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 650; color: #74817d; }
.panel { background: white; border: 1px solid #e2e7e1; border-radius: 16px; box-shadow: 0 2px 3px #20382902; }
.stat-card { background: white; padding: 18px 21px; border: 1px solid #e2e7e1; border-radius: 13px; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; color: #778780; background: #f5f7f2; border-radius: 8px; }
.stat-value { font-size: 34px; line-height: 1.2; letter-spacing: -1px; font-weight: 600; margin-top: 8px; }
.stat-note { color: #74817d; font-size: 11px; margin-top: 6px; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; font-size: 13px; font-weight: 550; padding: 11px 17px; min-height: 42px; }
.button-primary { border: 1px solid #167455; color: white; background: #167455; box-shadow: 0 2px 3px #16745515; }
.button-primary:hover { background: #105f45; border-color: #105f45; }
.button-secondary { background: white; border: 1px solid #dce3da; color: #3b5046; }
.button-secondary:hover { background: #f1f6ed; }
.section-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; width: 35px; height: 35px; background: #eef5ed; color: #167455; }
.field-label { display: block; font-size: 12px; font-weight: 550; margin-bottom: 8px; }
.input-shell { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 13px; border: 1px solid #dfe5dd; border-radius: 8px; background: #fff; }
.input-shell:focus-within { border-color: #167455; box-shadow: 0 0 0 3px #1674550d; }
.input-shell input { min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: #202c2b; font-size: 12px; height: 100%; }
.textarea-shell { display: flex; align-items: stretch; min-height: 88px; padding: 10px 13px; border: 1px solid #dfe5dd; border-radius: 8px; background: #fff; }
.textarea-shell:focus-within { border-color: #167455; box-shadow: 0 0 0 3px #1674550d; }
.textarea-shell textarea { min-width: 0; width: 100%; resize: vertical; background: transparent; border: 0; outline: none; color: #202c2b; font-size: 12px; line-height: 1.5; }
.file-input-shell { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 10px; border: 1px solid #dfe5dd; border-radius: 8px; background: #fff; }
.file-input-shell:focus-within { border-color: #167455; box-shadow: 0 0 0 3px #1674550d; }
.file-input-shell input[type="file"] { min-width: 0; width: 100%; color: #53655b; font-size: 11px; }
.file-input-shell input[type="file"]::file-selector-button { border: 1px solid #dce5d9; border-radius: 6px; background: #f3f7f0; color: #35614a; padding: 7px 9px; margin-right: 7px; cursor: pointer; font-size: 11px; }
.file-input-shell input[type="file"]::file-selector-button:hover { background: #e7f1e7; }
.file-input-icon { color: #668871; flex-shrink: 0; }
.file-input-hint { display: none; color: #8c978e; font-size: 10px; white-space: nowrap; }
input::placeholder { color: #99a39c; opacity: 1; }
.search-input { height: 36px; background: #fafbf8; }
.search-input input { font-size: 11px; }
.duration-input { width: 57px; height: 34px; text-align: center; font-size: 12px; border: 1px solid #dfe5dd; border-radius: 6px; }
.input-error { border-color: #bd6a57; }
.field-error { font-size: 11px; color: #a24737; margin-top: 6px; }
.error-banner { padding: 12px 15px; border: 1px solid #f0d2c7; border-radius: 9px; background: #fdf3ee; color: #a24737; font-size: 12px; }
.success-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eaf5ee; border: 1px solid #c9e2d1; color: #216647; font-size: 13px; padding: 12px 17px; border-radius: 10px; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: inline-flex; flex-shrink: 0; width: 34px; height: 20px; border-radius: 20px; background: #d9e1d7; padding: 3px; transition: background .2s; }
.switch-track:before { content: ''; width: 14px; height: 14px; background: white; border-radius: 50%; box-shadow: 0 1px 3px #0002; transition: transform .2s; }
.switch-input:checked + .switch-track { background: #167455; }
.switch-input:checked + .switch-track:before { transform: translateX(14px); }
.switch-input:focus-visible + .switch-track { outline: 3px solid #92c5ac; outline-offset: 3px; }
.count-badge { background: #f0f3ec; color: #758271; border-radius: 5px; padding: 3px 7px; font-size: 10px; font-weight: 600; }
.table-heading { background: #fafbf8; color: #89948c; font-size: 9px; letter-spacing: .9px; border-top: 1px solid #edf0e9; border-bottom: 1px solid #edf0e9; }
.table-heading th { padding: 12px 15px; font-weight: 550; }
.table-heading th:first-child, .link-row td:first-child { padding-left: 24px; }
.link-row { border-bottom: 1px solid #eef0eb; }
.link-row:hover { background: #fcfdfb; }
.link-row td { padding: 18px 15px; }
.link-row td:last-child { padding-right: 24px; }
.link-symbol { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #648771; background: #f0f5ec; border-radius: 8px; flex-shrink: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid transparent; border-radius: 6px; color: #94a098; flex-shrink: 0; }
.icon-button:hover { background: #edf4ea; color: #167455; border-color: #e2eadf; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; border-radius: 5px; padding: 4px 8px; }
.badge-green { background: #ebf4ec; color: #427856; }
.badge-gray { background: #f1f3ef; color: #899389; }
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.analytics-button { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; border: 1px solid #e2e8df; border-radius: 6px; padding: 6px 9px; color: #647264; }
.analytics-button:hover { background: #edf4ea; color: #167455; }
.table-footer { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; align-items: center; font-size: 10px; padding: 16px 24px; color: #899389; }
.pagination-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; border: 1px solid #e2e8df; border-radius: 5px; }
.pagination-button:hover { background: #edf4ea; }
.empty-state { text-align: center; padding: 48px 20px 52px; border-top: 1px solid #eef0eb; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; height: 66px; width: 66px; border-radius: 20px; background: #edf3e8; color: #62836d; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); color: white; background: #203a2e; font-size: 13px; text-align: center; max-width: calc(100vw - 30px); padding: 13px 21px; border-radius: 10px; box-shadow: 0 8px 24px #203a2e25; z-index: 50; }
.segmented-control { display: flex; padding: 3px; gap: 3px; background: #f2f5ee; border: 1px solid #e9eee4; border-radius: 8px; }
.segmented-control a { border-radius: 5px; padding: 6px 13px; font-size: 11px; color: #84917f; }
.segmented-control a.selected { color: #315e44; background: white; box-shadow: 0 1px 3px #25452b14; font-weight: 600; }
.chart-container { display: flex; height: 200px; gap: 12px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; align-items: end; width: 20px; font-size: 10px; color: #8b9786; }
.chart-plot { flex: 1; position: relative; min-width: 0; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid span { border-bottom: 1px dashed #e4e9de; width: 100%; }
.chart-bars { display: flex; position: absolute; inset: 0; align-items: end; gap: 5px; }
.chart-bar-slot { height: 100%; flex: 1; display: flex; align-items: end; min-width: 0; }
.chart-bar { position: relative; width: 100%; min-height: 2px; background: #8bb69a; border-radius: 4px 4px 0 0; transition: background .15s; }
.chart-bar:hover, .chart-bar:focus { background: #167455; }
.chart-bar.bar-zero { background: #dde9dd; }
.chart-tooltip { pointer-events: none; display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #203a2e; color: white; padding: 7px 9px; border-radius: 6px; white-space: nowrap; font-size: 10px; text-align: center; z-index: 5; }
.chart-bar:hover .chart-tooltip, .chart-bar:focus .chart-tooltip { display: block; }
.chart-empty { pointer-events: none; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-track { height: 4px; background: #f0f4ec; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: #94bca0; border-radius: 10px; }
.device-stack { height: 20px; display: flex; gap: 2px; border-radius: 5px; overflow: hidden; background: #f0f3ec; }
.device-color-1 { background: #357958; }
.device-color-2 { background: #90bba0; }
.device-color-3 { background: #c7d6a1; }
.device-color-4 { background: #d8dfd4; }
.device-dot { width: 8px; height: 8px; border-radius: 50%; }
.mini-empty { min-height: 225px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #93a08d; gap: 12px; }
.mini-empty p { font-size: 14px; color: #5f725e; }
.mini-empty span { font-size: 12px; text-align: center; }
.public-header { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 35px; padding-bottom: 6px; }
.home-header { max-width: 1240px; margin: 0 auto; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-admin-link { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.home-splash { min-height: calc(100vh - 154px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); align-items: center; gap: clamp(30px, 7vw, 100px); padding: 34px 0 70px; }
.home-copy h1 { font-size: clamp(42px, 5.3vw, 74px); line-height: 1.02; letter-spacing: -3px; font-weight: 650; margin: 0; }
.home-copy h1 span { color: #167455; }
.home-copy > p { max-width: 500px; color: #74817d; font-size: 15px; line-height: 1.8; margin-top: 23px; }
.home-note { display: inline-flex; align-items: center; gap: 7px; color: #74817d; font-size: 11px; }
.home-visual { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.home-orbit { position: absolute; border: 1px solid #bdd8c080; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-20deg); }
.home-orbit-one { width: min(520px, 100%); height: 260px; }
.home-orbit-two { width: 320px; height: min(520px, 100%); transform: translate(-50%, -50%) rotate(28deg); }
.home-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #8fbc9d; }
.home-dot-one { left: 14%; top: 26%; }
.home-dot-two { right: 13%; bottom: 25%; width: 7px; height: 7px; background: #c1d49c; }
.home-link-card { position: relative; width: min(410px, 90%); padding: 24px; border: 1px solid #dce8d8; border-radius: 20px; background: #fff; box-shadow: 0 22px 55px #34604416, 0 3px 8px #3460440b; transform: rotate(-3deg); }
.home-card-label { color: #8a988d; font-size: 9px; letter-spacing: 1.4px; font-weight: 650; }
.home-card-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; color: #397050; background: #edf6ed; font-size: 9px; }
.home-card-status span { width: 5px; height: 5px; border-radius: 50%; background: #5c9b70; }
.home-link-row { display: flex; align-items: center; gap: 11px; color: #167455; font-size: 23px; letter-spacing: -.7px; margin-top: 26px; }
.home-link-row strong { font-weight: 650; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; }
.home-card-destination { display: flex; align-items: center; gap: 7px; color: #87958a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 41px; margin-top: 9px; }
.home-card-footer { display: flex; justify-content: space-between; gap: 12px; color: #74817d; border-top: 1px solid #eef1eb; padding-top: 17px; margin-top: 24px; font-size: 10px; }
.home-card-footer span { display: inline-flex; align-items: center; gap: 5px; }
.home-footer { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; padding: 0 32px 28px; color: #89958c; font-size: 11px; }
.sponsor-card { position: relative; overflow: hidden; border: 1px solid #dce8d8; border-radius: 18px; background: #e8f0df; padding: 48px 24px 30px; }
.sponsor-label { position: absolute; top: 15px; left: 20px; font-size: 8px; color: #7b9073; letter-spacing: 1.6px; }
.sponsor-art { position: relative; width: 220px; height: 145px; margin: 0 auto 10px; }
.art-orbit { border: 1px solid #afc7a640; border-radius: 50%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit-one { width: 240px; height: 115px; }
.orbit-two { width: 160px; height: 170px; transform: translate(-50%, -50%) rotate(35deg); }
.art-center { position: absolute; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 23px; top: 32px; left: 70px; transform: rotate(-10deg); background: #d4e5c4; color: #4e795a; box-shadow: 0 10px 25px #52733a0c; }
.art-dot { width: 9px; height: 9px; border-radius: 50%; position: absolute; background: #9aba89; }
.dot-one { left: 30px; top: 87px; }
.dot-two { right: 28px; top: 38px; width: 6px; height: 6px; background: #b3c79b; }
@media (max-width: 640px) {
  .home-header { padding: 21px 20px; }
  .home-admin-link { font-size: 0; gap: 0; width: 37px; padding: 8px; }
  .home-splash { min-height: auto; display: flex; flex-direction: column; align-items: stretch; padding: 35px 0 45px; gap: 28px; }
  .home-copy h1 { font-size: 47px; letter-spacing: -2px; }
  .home-copy > p { font-size: 14px; line-height: 1.7; }
  .home-visual { min-height: 330px; }
  .home-link-card { padding: 19px; }
  .home-link-row { font-size: 20px; margin-top: 20px; }
  .home-card-footer { flex-direction: column; gap: 8px; }
  .home-footer { padding: 0 20px 22px; flex-direction: column; gap: 7px; }
  .stat-card { padding: 15px; }
  .stat-icon { width: 24px; height: 24px; }
  .chart-bars { gap: 3px; }
  .chart-container { height: 160px; }
  .table-footer { padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
