:root{--ink:#142f35;--muted:#657676;--page:#f6f5ef;--paper:#fff;--line:#dce4df;--teal:#126756;--mint:#dbede2;--sand:#efe6ce;--red:#9b3c32;--radius:22px;font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--teal)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ac8030;outline-offset:4px}button,input,select{min-height:46px}button{border:0}button:disabled{pointer-events:none}[hidden]{display:none!important}.app-shell{max-width:1080px;min-height:100svh;margin:auto;padding:0 38px}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:21px;color:var(--ink);text-decoration:none;letter-spacing:-.7px}.brand strong{font-weight:400}.brand-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:15px;color:white;background:var(--ink);font-size:31px;font-family:Georgia,serif;padding-bottom:7px}.environment{border:1px solid #c2d8c7;border-radius:40px;padding:8px 12px;font-size:11px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;background:#e7efe5;color:#385444;white-space:nowrap}.identity-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.identity-bar strong{color:var(--ink)}.identity-actions{display:flex;align-items:center;gap:8px}.link-button{color:var(--teal);background:transparent;padding:4px 8px;border-radius:9px;font-size:12px;min-height:38px}.notice{padding:15px 18px;background:var(--sand);border:1px solid #d8cda9;border-radius:13px;margin:20px 0 0;font-size:14px;line-height:1.5}.notice.error{background:#f6e3df;color:#742c25;border-color:#e2bab3}main{padding:35px 0 28px;min-height:65vh}main:focus{outline:none}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--teal);margin:0 0 9px}.heading-row{display:flex;gap:12px;align-items:start;justify-content:space-between;margin-bottom:25px}.heading-row h1,h1{font-family:Georgia,"Times New Roman",serif;font-size:43px;letter-spacing:-1.5px;line-height:1.1;font-weight:400;margin:0 0 10px}.subtle{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.hero{background:var(--ink);border-radius:var(--radius);padding:30px;color:white;position:relative;overflow:hidden;margin-bottom:26px}.hero .eyebrow{color:#a8d7b5}.hero h2{font-family:Georgia,serif;font-size:35px;font-weight:400;letter-spacing:-.6px;margin:6px 0 10px}.hero p{color:#cbdbd5;font-size:14px;line-height:1.6;max-width:510px;margin:0 0 20px}.hero .pill{background:#29494c;color:#d5ebe0;border-color:#406162}.hero .btn{background:var(--mint);color:var(--ink)}.hero-layout{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px}.orbit{width:135px;height:135px;border:1px solid #476364;border-radius:50%;display:grid;place-items:center;position:relative}.orbit:before{content:"";position:absolute;inset:17px;border:1px solid #476364;border-radius:50%}.orbit:after{content:"";position:absolute;right:9px;top:22px;width:12px;height:12px;background:#bbd8b9;border:5px solid var(--ink);box-sizing:content-box;border-radius:50%}.orbit span{font-family:Georgia,serif;font-size:68px;line-height:1;padding-bottom:15px;color:#cde4cf}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:28px}.stat{background:var(--paper);padding:20px 22px}.stat strong{display:block;font-size:28px;font-weight:500;letter-spacing:-1px;margin-bottom:5px}.stat span{font-size:12px;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px;gap:10px}.section-title h2{font-size:17px;letter-spacing:-.3px;margin:0}.section-title span{font-size:12px;color:var(--muted)}.card{padding:23px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);min-width:0}.card h2,.card h3{font-size:16px;font-weight:650;margin:12px 0 6px;line-height:1.4;overflow-wrap:anywhere}.card p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 14px}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.tile-icon{display:grid;place-items:center;width:42px;height:42px;background:#eef3eb;border-radius:13px;font-size:22px;color:var(--teal)}.pill{display:inline-block;border:1px solid var(--line);padding:5px 8px;border-radius:20px;font-size:10px;line-height:1.4;font-weight:650;background:#f5f7f2;color:#4d6055}.pill.warn{background:#f7eed7;color:#755b25;border-color:#e7d7b2}.pill.off{background:#f0f1f1;color:#687272}.pill.danger{background:#f7e5e1;color:#8b392e;border-color:#ecc5bd}.btn{background:var(--teal);color:white;min-height:46px;padding:11px 17px;border-radius:12px;font-size:13px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn.secondary{background:#edf3ed;color:var(--ink);border:1px solid #d7e3d9}.btn.quiet{background:transparent;color:var(--teal);border:1px solid var(--line)}.btn.danger{background:#f8e8e3;color:var(--red);border:1px solid #e8c9bf}.btn.full{width:100%}.card .btn{margin-top:4px}.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.empty{padding:36px 26px;border:1px dashed #c5d2c8;border-radius:var(--radius);background:#f0f3ec;text-align:center}.empty h2{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:0 0 10px}.empty p{font-size:14px;color:var(--muted);line-height:1.6;margin:0 auto 15px;max-width:480px}.tagline{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.device-list{display:grid;gap:12px}.device-row{width:100%;display:flex;align-items:center;gap:14px;background:var(--paper);padding:16px 18px;border:1px solid var(--line);border-radius:17px;text-align:left;color:var(--ink)}.device-row:hover,.room-card:hover{border-color:#8bad98}.device-row .device-copy{flex:1;min-width:0}.device-copy strong{font-size:14px;display:block;margin-bottom:5px;overflow-wrap:anywhere}.device-copy small{font-size:12px;color:var(--muted)}.chevron{font-size:23px;color:#789284}.room-card{text-align:left;color:var(--ink);width:100%;min-height:160px}.room-card .room-count{font-size:12px;color:var(--muted)}.room-card h2{font-size:18px;margin:16px 0 7px}.divider{height:1px;background:var(--line);margin:24px 0}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.reading{padding:18px;border:1px solid var(--line);border-radius:16px;background:white;min-width:0}.reading h3{font-size:12px;color:var(--muted);margin:0 0 12px;font-weight:500;overflow-wrap:anywhere}.reading strong{display:block;font-size:28px;letter-spacing:-.6px;font-weight:500;overflow-wrap:anywhere;margin-bottom:12px}.reading small{display:block;font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.details{display:grid;grid-template-columns:130px minmax(0,1fr);gap:11px;font-size:13px;margin:20px 0;line-height:1.5}.details dt{color:var(--muted)}.details dd{margin:0;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:block;font-size:12px;font-weight:650;color:var(--ink);margin-bottom:16px}.field span{display:block;margin-bottom:8px}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #bdccc2;border-radius:11px;padding:12px;background:#fff;color:var(--ink);font-size:16px;min-width:0}.field textarea{resize:vertical;min-height:92px}.form-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 18px}.stack{display:grid;gap:16px}.admin-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.admin-nav .btn{min-height:42px;font-size:12px;padding:9px 13px}.admin-nav .btn[aria-current="page"]{background:var(--ink);color:white}.chat-shell{max-width:750px;margin:auto}.chat-intro{display:flex;align-items:center;gap:14px;padding:18px;background:#e7efe5;border-radius:18px;margin-bottom:20px}.chat-intro .brand-mark{background:var(--teal);flex:none}.chat-intro p{font-size:12px;line-height:1.6;color:#476257;margin:0}.context-strip{padding:13px 16px;background:#f2ead8;border:1px solid #e1d4b9;border-radius:13px;margin-bottom:17px;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;overflow-wrap:anywhere}.messages{display:grid;gap:15px;min-height:110px;margin:20px 0}.message{max-width:92%;padding:17px 19px;background:white;border:1px solid var(--line);border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.message.user{background:#e3ece1;justify-self:end;border-color:#d1dfce}.message strong{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin-bottom:7px}.message small{display:block;font-size:10px;color:var(--muted);margin-top:9px}.chat-compose{padding:18px;border:1px solid var(--line);border-radius:19px;background:white}.chat-compose .field{margin-bottom:12px}.compose-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.compose-footer small{font-size:11px;color:var(--muted);line-height:1.5}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.suggestions .btn{font-size:12px;min-height:40px;padding:9px 12px}.bottom-nav{position:sticky;bottom:18px;display:flex;gap:4px;justify-content:space-around;max-width:520px;margin:14px auto 0;background:#fff;border:1px solid #d3ded5;box-shadow:0 8px 35px #193c2414;padding:7px;border-radius:21px;z-index:10}.nav-item{display:flex;flex:1;flex-direction:column;align-items:center;gap:5px;background:transparent;border-radius:14px;min-height:55px;min-width:0;padding:8px 4px;color:var(--muted);font-size:11px;font-weight:600}.nav-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item[aria-current="page"]{background:#e8f0e5;color:#255d49}.app-footer{text-align:center;font-size:10px;color:#70837b;padding:23px 0 30px;letter-spacing:.09em}.login{max-width:580px;margin:15px auto 25px}.login h1{font-size:49px;line-height:1.13;margin:0 0 18px}.login .hero{margin-top:26px}.login .hero h2{font-size:25px}.test-options{display:grid;gap:10px;margin-top:20px}.test-option{display:flex;align-items:center;justify-content:space-between;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--ink);padding:16px 18px;gap:10px}.test-option strong{display:block;font-size:14px;margin-bottom:6px}.test-option small{font-size:12px;color:var(--muted)}.test-option:hover{border-color:#8bad98}.test-label{font-size:10px;padding:4px 7px;border:1px solid #c9d7c6;border-radius:7px;color:#557051}.loading{padding:70px 20px;text-align:center;color:var(--muted);font-size:14px}.loading-dot{display:block;width:22px;height:22px;border:3px solid #d2dfd0;border-top-color:var(--teal);border-radius:50%;margin:0 auto 20px;animation:spin 1s linear infinite}.skip-link{position:absolute;top:-100px;left:12px;z-index:100;background:white;padding:12px}.skip-link:focus{top:8px}.audit-event{padding:18px 0;border-bottom:1px solid var(--line)}.audit-event:last-child{border:0}.audit-event strong{font-size:13px}.audit-event p{font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere}.raw-data{font-size:12px;line-height:1.6;background:#f1f4ed;border:1px solid var(--line);border-radius:12px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0 0}.small-heading{font-size:13px;margin:15px 0}.test-banner{font-size:11px;line-height:1.6;color:#6c613f;background:#f0ead9;padding:11px 14px;border-radius:10px;margin-top:16px}.wide{grid-column:1/-1}.search-field{margin:0 0 20px}
@keyframes spin{to{transform:rotate(360deg)}}
.check-field{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.6;margin-bottom:14px}.check-field input{width:20px;height:20px;min-height:20px;flex:none;accent-color:var(--teal)}
.tile-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:800px){.home-layout{display:grid;grid-template-columns:1.45fr 1fr;gap:23px;align-items:start}.home-layout .hero{margin:0;height:100%;min-height:270px;display:grid;align-items:center}.home-layout .stats{grid-template-columns:1fr;gap:0;margin:0;height:100%}.home-layout .stat{display:flex;align-items:center;justify-content:space-between;padding:18px 25px;border-bottom:1px solid var(--line)}.home-layout .stat:last-child{border:0}.home-layout .stat strong{margin:0}.home-layout .stat span{font-size:13px}.bottom-nav{bottom:20px}}
@media(max-width:640px){.app-shell{padding:0 20px}.topbar{height:80px}.brand{font-size:19px;gap:9px}.brand-mark{width:37px;height:37px;font-size:28px;border-radius:12px}.environment{font-size:9px;padding:7px 9px}.identity-bar{font-size:11px;gap:4px}.identity-actions{gap:0}.identity-actions .link-button{font-size:11px;padding:3px 6px}main{padding:28px 0 22px}.heading-row h1,h1{font-size:37px}.heading-row{margin-bottom:22px}.hero{padding:25px}.hero h2{font-size:30px}.hero-layout{grid-template-columns:1fr}.orbit{display:none}.stats{gap:1px}.stat{padding:17px 12px}.stat strong{font-size:25px}.stat span{font-size:10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.grid.two{grid-template-columns:1fr}.card{padding:18px;border-radius:18px}.room-card{min-height:151px}.room-card h2{font-size:16px}.device-row{padding:14px 12px;gap:10px}.device-row .tile-icon{width:36px;height:36px;flex:none;font-size:19px}.device-row .pill{max-width:88px;text-align:center}.device-copy strong{font-size:13px}.device-copy small{font-size:11px}.detail-grid{gap:10px}.reading{padding:16px 13px}.reading strong{font-size:24px}.form-grid{grid-template-columns:1fr;gap:0}.bottom-nav{bottom:calc(10px + env(safe-area-inset-bottom));border-radius:19px;margin-bottom:env(safe-area-inset-bottom);padding:6px}.nav-item{font-size:10px;min-height:53px}.app-footer{padding-bottom:26px}.login{margin:10px 0}.login h1{font-size:44px}.login .hero{margin-top:22px}.details{grid-template-columns:100px minmax(0,1fr);font-size:12px}.chat-intro{padding:15px}.context-strip{padding:10px 12px}.message{font-size:13px;padding:15px}.compose-footer{align-items:end}.compose-footer small{max-width:175px}.subtle{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
