:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #0b0f13; color: #f2f6f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { border-right: 1px solid #252d34; padding: 27px 16px; display: flex; flex-direction: column; gap: 38px; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 9px; }
.brand strong { display: block; font-size: 21px; }
.brand small { display: block; color: #96a5b1; margin-top: 2px; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid #dbe6eb; border-radius: 8px; font-size: 27px; }
nav { display: grid; gap: 7px; }
nav span { color: #aebbc5; padding: 16px 14px; border-radius: 10px; }
nav .active { color: #58dda3; background: #142520; border: 1px solid #25453a; }
.side-note { margin-top: auto; border: 1px solid #263039; border-radius: 12px; padding: 14px; color: #91a0ab; font-size: 13px; line-height: 1.5; }
main { width: min(1160px, 100%); padding: 44px 36px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 35px; }
.eyebrow { color: #5cdda6; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 5px; letter-spacing: -.035em; }
h2 { font-size: 25px; margin: 11px 0; letter-spacing: -.025em; }
h3 { font-size: 18px; margin: 0 0 14px; }
p { color: #aab7c0; line-height: 1.55; }
.top p { margin: 0; }
.pill { white-space: nowrap; border: 1px solid #315748; color: #72e7b1; border-radius: 999px; padding: 9px 13px; font-size: 12px; }
.card { border: 1px solid #263038; background: linear-gradient(145deg, #151b20, #11161a); border-radius: 14px; padding: 27px; box-shadow: 0 10px 35px #0002; }
.auth { max-width: 570px; }
.intro { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.devices-section { margin: 20px 0; }
.devices-section > p { margin: 0 0 16px; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; }
.device { border: 1px solid #263038; background: #141b20; border-radius: 12px; padding: 17px; }
.device h3 { margin: 0 0 4px; }
.device p { margin: 7px 0 0; font-size: 13px; }
.device .state { color: #62dca3; font-size: 13px; font-weight: 700; }
.device .state.offline { color: #ee8d8d; }
.device .state.pending, .device .state.unknown, .device .state.partial, .device .state.stale { color: #e4c484; }
.device form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.device form label { width: 100%; color: #aab7c0; font-size: 13px; }
.device input { display: block; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #35434a; border-radius: 8px; background: #0b1115; color: #f2f6f7; font: inherit; }
.device form button { padding: 9px 12px; font-size: 13px; }
#export-endpoints { margin: 0 0 14px; }
.widget-value { font-size: 22px; font-weight: 700; margin-top: 16px; }
.large { font-size: 42px; font-weight: 700; color: #58dda3; }
.events { min-height: 80px; }
.events p { border-top: 1px solid #253038; margin: 0; padding: 10px 0; font-size: 13px; }
button { cursor: pointer; border: 1px solid #48c88e; background: #5ee0a3; color: #092017; border-radius: 9px; padding: 11px 18px; font: inherit; font-weight: 650; }
button:hover { background: #80ecc0; }
button:disabled { opacity: .5; cursor: not-allowed; }
.device-actions { display: flex; gap: 8px; margin-top: 14px; }
.device-actions button { font-size: 13px; padding: 9px 12px; }
.automation-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.automation .events { margin-top: 16px; }
.automation details { margin-top: 16px; color: #aab7c0; font-size: 13px; }
.automation summary { cursor: pointer; }
.automation pre { padding: 12px; overflow: auto; max-height: 280px; border: 1px solid #263038; border-radius: 8px; background: #0b1115; color: #d6e3e9; }
button.secondary { background: #17352a; color: #7ee7b3; }
button.text-button { border: 0; background: none; color: #9cabb5; padding-left: 0; margin-top: 20px; }
#message { min-height: 24px; color: #e1c48d; }
[hidden] { display: none !important; }
@media (max-width: 760px) { body { display: block; } .sidebar { padding: 15px 18px; gap: 14px; } .sidebar nav { display: none; } .side-note { display: none; } main { padding: 26px 18px; } .top { display: block; } .pill { display: inline-block; margin-top: 20px; } .grid { grid-template-columns: 1fr; } }
.zigbee-map { overflow-x: auto; }
.zigbee-map svg { display: block; width: 100%; min-width: 620px; max-height: 500px; }
.zigbee-map text { fill: #dce9e2; font: 14px system-ui, sans-serif; }
