:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252527;
  background: #f5f5f7;
  font-size: 13px;
  line-height: 1.45;
  --accent: #007aff;
  --muted: #727277;
  --border: #dedee2;
  --sidebar-width: 288px;
  --section-gap: 20px;
  --row-padding: 10px;
  --description-gap: 2px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #007aff80; outline-offset: 3px; }
button {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid #d1d1d5;
  border-radius: 6px;
  background: #fff;
  color: #303033;
  box-shadow: 0 1px 2px #00000008;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: #f5f5f7; }
button:active { background: #e9e9ed; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: #0070eb; color: #fff; }
button.primary:hover { background: #006ee6; }
button.danger { color: #c42b31; }
a { color: #006bdd; text-decoration: none; }
h2, h3, p { margin: 0; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted, .field-note { color: var(--muted); }
.small { font-size: 12px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
aside { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 20px; background: #eaeaec; border-right: 1px solid #d9d9de; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
nav { display: grid; }
nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 10px; color: inherit; border-radius: 6px; line-height: normal; }
nav a:hover { background: #dedee2; }
nav a[aria-current="page"] { background: var(--accent); color: #fff; }
.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #ffffff33; border-radius: 6px; color: #fff; flex: none; }
.nav-icon img { display: block; }
.gray { background: #8b8b92; }
.blue { background: #1689ed; }
.purple { background: #9256d9; }
.sidebar-exit { width: 100%; margin-top: 20px; padding: 10px; color: #006bdd; background: none; border: 0; box-shadow: none; text-align: left; line-height: normal; }
[hidden] { display: none !important; }
h1 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
label { display: grid; gap: 6px; margin-bottom: 18px; }
input, select { min-height: 34px; width: 100%; min-width: 0; padding: 6px 10px; border: 1px solid #cfcfd5; border-radius: 6px; background: #fff; color: inherit; }
.full { width: 100%; }
.login { max-width: 360px; margin: 16vh auto 0; padding: 28px; }
.intro { margin: 12px 0 20px; line-height: 1.6; }
.error { color: #c42b31; margin-top: 12px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 12px 10px 28px; }
.brand svg { width: 30px; height: 30px; stroke: #55555b; stroke-width: 1.5; fill: none; }
.brand strong { font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; color: #fff; font-size: 18px; flex: none; }
.blue { background: #1689ed; }.purple { background: #9256d9; }.gray { background: #8b8b92; }
.sidebar-exit { margin-top: 15px; padding: 10px; width: 100%; border: 0; background: transparent; box-shadow: none; color: #006bdd; text-align: left; }
.service-link { display: block; padding: 10px; font-size: 11px; color: var(--muted); }
main { margin-left: var(--sidebar-width); min-height: 100vh; }
.content { max-width: 950px; margin: 0 auto; padding: 32px 28px 60px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
header p { margin-top: 5px; }
.settings-page { display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.padded { padding: 20px; line-height: 1.6; }.padded button { margin-top: 12px; }
.device-picker { display: flex; align-items: center; gap: 14px; }.device-picker label { margin: 0; color: var(--muted); }.device-picker select { max-width: 270px; }
.overview { padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.overview h2 { font-size: 24px; margin-top: 14px; margin-bottom: 5px; }.overview #seen { margin-top: 16px; }
.badge { color: #267544; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }.badge::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }.badge.inactive { color: var(--muted); }.badge.warning { color: #926219; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.watch-case { width: 194px; height: 214px; flex: none; border: 12px solid #353638; border-radius: 20px; padding: 5px; background: #171819; box-shadow: 0 8px 20px #0002; }
.watch-screen, .face-preview { color: #171819; background: #f0f0e8; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; height: 100%; font-family: Arial, sans-serif; }
.watch-screen strong, .face-preview strong { font-size: 39px; letter-spacing: -1px; }.watch-screen span, .face-preview span { font-size: 13px; }.watch-screen hr, .face-preview hr { width: 76%; border: 0; border-top: 1px solid currentColor; margin: 6px 0; }.dark { background: #171819; color: #f0f0e8; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.metric { display: grid; gap: 10px; padding: 20px; }.metric > span { color: var(--muted); font-size: 12px; }.metric strong { font-size: 28px; font-weight: 500; letter-spacing: -.7px; }.metric small { color: var(--muted); font-size: 11px; }
.group-title { font-size: 14px; padding: 8px 10px 0; }.row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; }.row + .row { border-top: 1px solid #ededf0; }.row > :last-child { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.note { font-size: 12px; color: var(--muted); line-height: 1.6; }.chart-panel { padding: 20px; }#battery-chart { width: 100%; display: block; }#battery-chart path { fill: none; stroke: #007aff; stroke-width: 2; }#battery-chart line { stroke: #e8e8ed; }#battery-chart text { fill: #727277; font-size: 10px; }
.faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.face-card { padding: 26px; text-align: center; }.face-preview { width: 200px; height: 200px; margin: 0 auto 24px; border: 1px solid #dedee2; }.face-card h2 { margin-bottom: 8px; }.face-card button { margin-top: 20px; }
.command { padding: 14px; display: flex; justify-content: space-between; gap: 15px; }.command + .command { border-top: 1px solid var(--border); }.command small { display: block; color: var(--muted); margin-top: 4px; }.command-status { color: var(--muted); font-size: 12px; }.empty { padding: 30px; text-align: center; color: var(--muted); }
#toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-width) / 2); transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 28px #0002; z-index: 10; }
@media(max-width:1100px) { :root { --sidebar-width: 220px; }.content { padding: 25px 20px; }.overview { padding: 20px; }.overview h2 { font-size: 21px; } }
@media(max-width:760px) { aside { position: static; width: 100%; padding: 10px 12px; }.brand { padding: 5px 10px 15px; }nav { grid-template-columns: repeat(2, 1fr); }nav a { padding: 8px; }.service-link, .sidebar-exit { display: inline-block; width: auto; margin: 4px 0 0; }main { margin: 0; }.content { padding: 22px 16px; }.overview { flex-direction: column-reverse; align-items: stretch; }.watch-case { align-self: center; }.metrics { grid-template-columns: 1fr; gap: 10px; }.metric { grid-template-columns: 1fr auto; gap: 8px; padding: 14px; }.metric small { grid-column: 1 / -1; }.metric strong { grid-row: 1 / 3; grid-column: 2; }.faces { grid-template-columns: 1fr; }button, input, select { min-height: 44px; }input, select { font-size: 16px; }#toast { left: 16px; right: 16px; transform: none; }.row { flex-wrap: wrap; }header { align-items: start; } }
