:root { color-scheme: light; font-family: "Segoe UI", system-ui, sans-serif; color: #243a33; background: #f6f7f2; --green: #176d5c; --muted: #64766c; --line: #e0e7df; --amber: #92511b; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; background: white; font-weight: 600; }
button:hover { background: #edf4ed; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select { width: 100%; padding: 12px; border: 1px solid #bacabc; border-radius: 8px; background: white; min-height: 44px; }
label { display: grid; gap: 7px; margin: 18px 0; font-size: 14px; font-weight: 600; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #4388c7; outline-offset: 3px; }
.skip { position: fixed; top: -70px; left: 20px; background: white; padding: 16px; z-index: 3000; }
.skip:focus { top: 8px; }
header { min-height: 88px; padding: 16px 36px; display: flex; align-items: center; gap: 28px; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 38px; font-weight: 750; letter-spacing: -2px; color: #204737; }
.brand span { color: #8dab65; margin-left: -8px; }
.header-note { color: var(--muted); font-size: 13px; }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.quiet { border: 0; background: transparent; color: var(--green); font-size: 13px; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #115345; }
.danger { color: #a33b32; }
main { max-width: 1680px; margin: auto; padding: 32px 36px; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 550; letter-spacing: -1.1px; margin: 10px 0; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin: 0; }
h3 { font-size: 15px; margin: 0; }
p { line-height: 1.6; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #688068; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: #a33b32; font-size: 13px; }
.amber { color: var(--amber); }
.panel { border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; min-width: 0; }
.login-layout { display: grid; grid-template-columns: 1fr 420px; gap: 100px; align-items: center; max-width: 1050px; min-height: 75vh; margin: auto; }
.welcome h1 { font-size: clamp(40px, 4.4vw, 60px); }
.welcome > p:not(.eyebrow) { max-width: 390px; font-size: 16px; color: var(--muted); }
.privacy-note { margin-top: 36px; padding: 20px; background: #eaf0e3; border-radius: 14px; max-width: 390px; font-size: 13px; }
.privacy-note p { margin-bottom: 0; }
.login-card { padding: 32px; box-shadow: 0 8px 32px #243a3305; }
.login-card > button { width: 100%; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading p { margin: 8px 0; }
.connection { padding: 11px 16px; margin-bottom: 20px; border-radius: 10px; background: #eaf2e6; font-size: 12px; color: #386044; }
.connection.offline { background: #fff0dc; color: #835021; }
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px 0; }
.panel-subtitle { margin: 7px 20px 18px; }
.count { font-size: 12px; border-radius: 6px; padding: 4px 8px; background: #eef3e9; }
.device-list { padding: 0 10px; }
.device-card { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border-color: transparent; padding: 14px 10px; margin-bottom: 6px; font-weight: 400; }
.device-card.selected { background: #eff5ec; border-color: #cddfce; }
.avatar { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #d4e5d6; color: #315641; font-weight: 650; }
.device-copy { min-width: 0; display: grid; gap: 4px; }
.device-copy strong { font-size: 13px; overflow-wrap: anywhere; }
.device-copy small { font-size: 11px; color: var(--muted); }
.privacy-foot { text-align: center; border-top: 1px solid var(--line); margin: 18px 20px 0; padding: 18px 0; color: var(--muted); font-size: 10px; }
.map-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; gap: 12px; font-size: 12px; }
#map { height: 460px; background: #edf1e7; z-index: 0; }
.map-notice { font-size: 12px; margin: 0; padding: 12px 18px; background: #f7f6ef; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 15px 18px; font-size: 10px; color: var(--green); }
.map-legend > :last-child { color: var(--muted); }
.detail-panel { padding: 22px; }
.empty-state { color: var(--muted); padding: 20px; font-size: 13px; }
.detail-panel .empty-state { padding: 0; }
.device-title { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; overflow-wrap: anywhere; }
.device-title p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.badge { display: inline-flex; border-radius: 6px; padding: 6px 9px; background: #e8f2e6; color: var(--green); font-size: 11px; font-weight: 650; }
.badge.warning { background: #fff0dc; color: var(--amber); }
.age-heading { font-size: 27px; font-weight: 550; margin: 18px 0 2px; letter-spacing: -.5px; }
.detail-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 8px; margin: 24px 0; font-size: 11px; }
dt { color: var(--muted); } dd { margin: 0; text-align: right; overflow-wrap: anywhere; max-width: 140px; }
.detail-actions { display: grid; gap: 8px; }
.navigation { display: block; text-align: center; min-height: 44px; padding: 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.activity-panel { margin-top: 22px; }
#activity { padding: 12px 20px 20px; }
.event { padding: 13px 0; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid #eef1eb; font-size: 12px; }
.event p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.event time { margin-left: auto; color: var(--muted); font-size: 11px; text-align: right; }
.footer-note { text-align: center; color: var(--muted); font-size: 11px; margin: 25px 0 0; }
dialog { width: min(480px, calc(100% - 28px)); padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: inherit; max-height: 90vh; }
dialog::backdrop { background: #18352966; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-heading .quiet { padding: 5px; min-width: 44px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.enrollment-code { display: block; background: #eef4e9; border-radius: 12px; text-align: center; padding: 20px; font-size: 32px; letter-spacing: 5px; color: #175442; margin: 18px 0; user-select: all; }
.server-address { overflow-wrap: anywhere; display: block; padding: 12px; background: #f1f4ef; border-radius: 8px; user-select: all; font-size: 13px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #204b3d; color: white; padding: 14px 20px; border-radius: 12px; box-shadow: 0 4px 24px #0002; z-index: 3000; max-width: calc(100% - 30px); font-size: 13px; }
@media (max-width: 1180px) { .workspace { grid-template-columns: 220px minmax(0, 1fr); } .detail-panel { grid-column: 1 / -1; } .detail-panel dl { grid-template-columns: repeat(4, 1fr); } .detail-actions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { header { padding: 12px 18px; gap: 8px; min-height: 72px; } .header-note { display: none; } .header-actions { gap: 0; } .header-actions button { padding: 8px; } main { padding: 24px 16px; } .login-layout { display: block; min-height: auto; } .welcome { padding: 10px 6px 25px; } .welcome h1 { font-size: 40px; } .privacy-note { display: none; } .login-card { padding: 24px; } .page-heading { align-items: start; flex-direction: column; gap: 10px; } .page-heading h1 { font-size: 28px; } .page-heading p:not(.eyebrow) { font-size: 12px; } .workspace { display: flex; flex-direction: column; gap: 16px; } .workspace > * { width: 100%; } .family-panel { order: 0; } .map-panel { order: 1; } .detail-panel { order: 2; } .device-list { display: flex; overflow-x: auto; gap: 8px; padding: 0 12px 12px; } .device-card { min-width: 180px; width: auto; flex: 0 0 auto; margin: 0; } .device-copy { max-width: 210px; } .privacy-foot { display: none; } .detail-panel dl { grid-template-columns: 1fr auto; } .detail-actions { grid-template-columns: 1fr; } #map { height: 330px; } .panel-heading { padding: 18px 16px 0; } .activity-panel .panel-heading { align-items: start; flex-direction: column; gap: 6px; } .event time { max-width: 95px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
