@charset "UTF-8";
:root{font-family:"Segoe UI","Malgun Gothic",sans-serif;font-size:14px;color:#242831;background:#f7f8fa;font-synthesis:none;--line:#e2e5ea;--muted:#707782;--accent:#345dce;--soft:#f3f5f8;--ink:#242831}
*{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:not-allowed;opacity:.45}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:25px;letter-spacing:-.7px;font-weight:650}h2{font-size:15px;font-weight:650;letter-spacing:-.25px}h3{font-size:14px;font-weight:600}p{line-height:1.75}a{color:var(--accent)}.muted{color:var(--muted)}.small{font-size:12px}.mono{font:12px ui-monospace,monospace;overflow-wrap:anywhere}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{border:0;background:none;text-decoration:none;color:var(--ink);padding:0;white-space:nowrap}.wordmark{font-size:22px;font-weight:750;letter-spacing:-1.2px}.brand-dot{color:var(--accent);margin-left:2px}.global-header{height:68px;display:flex;align-items:center;gap:48px;padding:0 38px;border-bottom:1px solid var(--line);background:#fff}.global-header nav{display:flex;height:100%;gap:28px}.global-header nav>button{display:flex;align-items:center;gap:8px;background:none;border:0;border-bottom:2px solid transparent;padding:2px 0 0;color:var(--muted);font-size:14px}.global-header nav>button.active{border-bottom-color:var(--ink);color:var(--ink);font-weight:650}.nav-count{font-size:11px;border-radius:4px;background:#edf1fb;color:var(--accent);padding:2px 5px}.account{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:12px}.account small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;background:transparent;border-radius:4px;color:var(--muted)}.icon-button:hover{background:var(--soft);color:var(--ink)}.content{max-width:1320px;padding:38px 40px 60px;margin:0 auto;min-height:calc(100vh - 126px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{font-size:13px;color:var(--muted);margin-top:8px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d8dde5;border-radius:5px;padding:9px 14px;min-height:37px;background:#fff;color:var(--ink);font-size:13px;font-weight:550;text-decoration:none;white-space:nowrap}.btn:hover{background:#f4f6f8}.btn.primary{background:#2a303c;border-color:#2a303c;color:#fff}.btn.primary:hover{background:#111827}.btn.compact{font-size:12px;padding:6px 10px;min-height:30px}.btn .icon{width:15px;height:15px}.btn.danger{color:#b33636;border-color:#e8cccc}.btn.full{width:100%}.text-button,.table-link{border:0;background:none;color:var(--accent);font-size:13px;padding:3px 0}.table-link{color:var(--ink);font-weight:600;font-size:14px;text-align:left}.table-link:hover,.text-button:hover{text-decoration:underline;text-underline-offset:3px}.spaced{margin-left:15px}.panel{border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden;min-width:0}.panel-bar{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.panel-bar>div>span{display:block;margin-top:5px}.panel-body{padding:22px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:12px;color:#727a85;font-weight:550;background:#fbfcfd;padding:13px 20px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:18px 20px;border-bottom:1px solid #edf0f3;font-variant-numeric:tabular-nums;line-height:1.55}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfe}.cell-note{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px}.application-note{max-width:300px;white-space:pre-wrap;overflow-wrap:anywhere}.align-right{text-align:right;white-space:nowrap}.table-empty{text-align:center;padding:40px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border-radius:4px;background:#f0f2f5;color:#68717d;font-size:11px;font-weight:500;white-space:nowrap}.badge.ok{background:#eff7f2;color:#377651}.badge.error{background:#fcf0f0;color:#b13e3e}.badge.ok:before,.badge.error:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.empty{text-align:center;padding:64px 25px}.empty h3{font-size:15px;font-weight:550}.empty p{font-size:13px;color:var(--muted);margin:10px auto 0;max-width:520px;word-break:keep-all}.empty .btn{margin-top:22px}.footer{max-width:1320px;margin:auto;padding:0 40px 25px;font-size:11px;color:#9097a0;display:flex;justify-content:space-between;gap:15px}.space-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.back-link{display:flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:var(--muted);font-size:12px;margin-bottom:20px}.back-link .icon{width:14px;height:14px}.space-heading h1{display:flex;align-items:center;gap:10px}.space-heading p{font-size:12px;color:var(--muted);margin-top:9px}.space-heading p span{margin-left:12px}.space-heading p span:first-child{margin-left:0}.space-switch{display:grid;gap:7px;font-size:11px;color:var(--muted);min-width:180px}.space-tabs{display:flex;gap:28px;margin:27px 0 28px;border-bottom:1px solid #d9dfe7;overflow-x:auto}.space-tabs button{border:0;border-bottom:2px solid transparent;padding:0 2px 13px;background:none;color:var(--muted);white-space:nowrap;font-size:13px}.space-tabs button.active{border-bottom-color:var(--accent);color:var(--accent);font-weight:650}.space-tabs button span{font-size:11px;margin-left:3px;color:#818997}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 15px}.readings{display:grid;grid-template-columns:1fr 1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:6px;margin-bottom:24px}.reading{padding:23px 26px;min-width:0}.reading+.reading{border-left:1px solid var(--line)}.reading>span{font-size:12px;color:var(--muted)}.reading>strong{display:block;font-size:42px;font-weight:550;letter-spacing:-1.6px;line-height:1.25;margin:13px 0 11px;font-variant-numeric:tabular-nums}.reading>strong>small{font-size:20px;color:#89909a;font-weight:400;letter-spacing:0;margin-left:6px}.reading p{font-size:11px;color:var(--muted);line-height:1.6}.status-reading>strong{letter-spacing:0;min-height:53px;display:flex;align-items:center}.status-reading .badge{font-size:16px;background:none;padding:0;color:var(--ink)}.status-reading .badge:before{width:6px;height:6px;background:#448865}.status-reading .badge.error:before{background:#b13e3e}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.chart-body{padding:24px 20px 4px;min-height:245px}.chart-body svg{display:block;width:100%;height:230px}.chart-foot{font-size:11px;color:#89909a;padding:8px 22px 19px}.segmented{display:flex;border:1px solid var(--line);border-radius:4px;overflow:hidden}.segmented button{border:0;background:#fff;padding:6px 11px;color:var(--muted);font-size:11px}.segmented button[aria-pressed=true]{background:var(--soft);color:var(--ink);font-weight:600}.details{margin:20px 0 0;display:grid;gap:16px;font-size:12px}.details>div{display:flex;justify-content:space-between;align-items:start;gap:18px}.details dt{color:var(--muted);flex-shrink:0}.details dd{margin:0;text-align:right;overflow-wrap:anywhere}.notice{font-size:12px;line-height:1.7;padding:13px 16px;border:1px solid #e5dfcf;border-radius:4px;background:#fbf9f2;color:#776533;margin-bottom:20px}.notice.error{color:#a44646;background:#fff7f7;border-color:#ecdcdc}.inline-label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}select{padding:8px 32px 8px 10px;border:1px solid #d8dde5;border-radius:4px;background:#fff;color:var(--ink);font-size:12px;min-height:35px;max-width:100%}.toolbar{display:flex;align-items:center;gap:20px;margin-bottom:18px;flex-wrap:wrap}.spaced-top{margin-top:23px}.filter-tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.filter-tabs button{border:1px solid transparent;border-radius:4px;padding:8px 12px;background:none;color:var(--muted);font-size:13px}.filter-tabs button[aria-pressed=true]{background:#fff;color:var(--ink);border-color:var(--line);font-weight:600}.filter-tabs span{margin-left:6px;font-size:11px;color:#969da7}.disclosure{border:1px solid var(--line);border-radius:5px;background:#fff;padding:17px 20px;font-size:13px}.disclosure summary{cursor:pointer;font-weight:550;line-height:1.5}.disclosure[open]>summary{margin-bottom:20px}.disclosure .disclosure{padding:14px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-form{max-width:600px}.settings-grid p{font-size:12px}.form{display:grid;gap:18px}.form label{display:grid;gap:8px;font-size:12px;font-weight:550;position:relative}.form input,.form textarea,.form select{width:100%;border:1px solid #d5dbe3;background:#fff;padding:10px 11px;border-radius:4px;color:var(--ink);min-height:40px;font-size:13px}.form input::placeholder,.form textarea::placeholder{color:#9ba1a9}.form textarea{resize:vertical;min-height:85px;line-height:1.7}.form small{font-size:11px;color:var(--muted);font-weight:400;line-height:1.6}.form .btn{justify-self:start}.form-error{color:#b33535;font-size:12px;line-height:1.7}.form-note{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 18px}.optional{color:#969da7;font-size:10px;font-weight:400;position:absolute;left:auto;right:0;top:1px}.danger-section{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.danger-section p{color:var(--muted);font-size:11px;margin-bottom:12px}.danger-text{color:#b33535}.check-list article{padding:18px 0;border-bottom:1px solid var(--line)}.check-list article>div{display:flex;justify-content:space-between;gap:10px}.check-list article p{font-size:12px;color:var(--muted);margin:9px 0 12px}.check-list summary{font-size:12px;cursor:pointer;color:var(--accent)}.check-list .form{max-width:580px;margin-top:16px}.note-form{max-width:580px;margin-top:25px}.journal{margin-top:28px;border-top:1px solid var(--line);max-height:600px;overflow:auto}.journal article{display:grid;grid-template-columns:170px 1fr;padding:17px 0;gap:20px;border-bottom:1px solid var(--line);font-size:12px}.journal time{color:var(--muted);font-size:11px}.journal p{color:var(--muted);white-space:pre-wrap;margin-top:5px}.auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:64px 24px}.auth>.brand{margin-bottom:46px}.auth-card{width:100%;max-width:400px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:32px}.auth-card h1{font-size:23px}.auth-card>p{font-size:13px;color:var(--muted);margin:12px 0 28px}.auth-card .form .btn{width:100%;margin-top:4px;min-height:42px}.auth-switch{border-top:1px solid var(--line);padding-top:22px;margin-top:24px;font-size:12px;color:var(--muted);text-align:center}.auth-switch button{margin-left:8px;font-size:12px}.auth-card .auth-note{font-size:11px;text-align:center;margin:22px 0 0}.success-mark{display:grid;place-items:center;width:40px;height:40px;background:#f0f7f2;color:#377651;border-radius:50%;margin-bottom:20px}.modal-backdrop{position:fixed;inset:0;background:#141b2b59;z-index:30;display:flex;align-items:center;justify-content:center;padding:24px}.modal-backdrop dialog{display:block;position:relative;margin:0;inset:auto;border:1px solid #d8dde5;border-radius:7px;width:520px;max-width:100%;max-height:90vh;padding:0;overflow-y:auto;color:var(--ink);background:#fff;box-shadow:0 16px 64px #0002}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 24px;border-bottom:1px solid var(--line);gap:12px}.dialog-heading h2{font-size:17px}.dialog-body{padding:24px}.modal-description{font-size:13px;color:var(--muted);margin-bottom:22px}.modal-actions{display:flex;gap:10px;margin-top:26px;justify-content:flex-end}.application{display:grid;gap:7px;font-size:13px;background:var(--soft);padding:16px;margin-bottom:22px;border-radius:4px}.application span{font-size:12px;color:var(--muted)}.application p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.form fieldset{border:1px solid var(--line);border-radius:4px;padding:14px;margin:0}.form legend{font-size:12px;padding:0 6px}.form legend small{margin-left:8px}.form label.checkbox{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:400;line-height:1.6;padding:6px 0}.form .checkbox input{width:15px;height:15px;min-height:0;margin:2px 0 0;accent-color:var(--accent);flex-shrink:0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:60;background:#252c38;color:#fff;border-radius:5px;box-shadow:0 4px 16px #0002;padding:13px 20px;max-width:min(560px,90vw);font-size:13px;line-height:1.6}.toast.error{background:#8b3434}.loading,.boot{min-height:50vh;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:20px;color:var(--muted);font-size:13px}
@media(max-width:1050px){.overview-grid{grid-template-columns:minmax(0,1fr) 260px}.global-header{padding:0 26px;gap:34px}.content{padding:30px 26px 50px}.footer{padding-left:26px;padding-right:26px}.reading{padding:21px}.reading>strong{font-size:38px}td,th{padding-left:16px;padding-right:16px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){.global-header{height:60px;padding:0 18px;gap:25px}.wordmark{font-size:20px}.global-header nav{gap:18px}.global-header nav>button{font-size:12px}.account{gap:0}.account>span{display:none}.content{padding:26px 18px 42px;min-height:calc(100vh - 113px)}.page-heading{align-items:flex-start;gap:12px;margin-bottom:20px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px;max-width:250px}.page-heading>.actions{flex-shrink:0}.btn{font-size:12px;padding:8px 11px;min-height:36px}.panel-bar{padding:16px}.panel-bar>.small{max-width:180px;font-size:11px}.panel-body{padding:18px}.space-heading{align-items:flex-start;gap:15px}.space-heading h1{font-size:22px}.space-switch{min-width:0;max-width:130px;margin-top:32px}.space-switch>span{display:none}.space-heading p{font-size:11px}.space-tabs{gap:23px;margin:24px 0}.space-tabs button{font-size:12px}.back-link{margin-bottom:15px}.section-heading .inline-label{max-width:160px;flex-wrap:wrap}.readings{grid-template-columns:1fr 1fr}.reading{padding:20px 18px}.reading>strong{font-size:38px}.reading>strong>small{font-size:17px}.reading p{font-size:10px}.status-reading{grid-column:1/-1;border-top:1px solid var(--line);border-left:0!important;display:flex;gap:15px;align-items:center;flex-wrap:wrap;padding:15px 18px}.status-reading>strong{min-height:0;margin:0}.status-reading .badge{font-size:13px}.status-reading p{margin-left:auto;max-width:100%;overflow-wrap:anywhere}.overview-grid{grid-template-columns:1fr}.chart-body{padding:15px 5px 0;min-height:205px}.chart-body svg{height:205px}.chart-foot{font-size:10px;padding:8px 16px 17px}.panel-bar h2{font-size:14px}.chart .panel-bar>div>.small{font-size:10px}.details{gap:15px}.table-wrap table{min-width:560px}.table-wrap td,.table-wrap th{font-size:12px}.align-right .spaced{margin-left:10px}.footer{padding:0 18px 22px;font-size:10px}.filter-tabs{gap:2px}.filter-tabs button{padding:7px 8px;font-size:12px}.empty{padding:45px 18px}.empty p{font-size:12px}.modal-backdrop{padding:16px}.dialog-heading{padding:15px 18px}.dialog-body{padding:20px 18px}.dialog-heading h2{font-size:16px}.modal-backdrop dialog{max-height:92vh}.auth{padding:40px 20px}.auth>.brand{margin-bottom:30px}.auth-card{padding:27px 23px}.auth-card>p{font-size:12px}.disclosure{padding:15px}.journal article{grid-template-columns:1fr;gap:7px}.global-header .nav-count{font-size:10px;padding:1px 4px}.form .optional{position:static}.space-switch select{width:100%}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,color .12s}}
@media(max-width:760px){.table-wrap .spaces-table{min-width:0;display:block}.spaces-table thead{display:none}.spaces-table tbody{display:block}.spaces-table tr{display:flex;flex-wrap:wrap;padding:18px;gap:14px;align-items:center;border-bottom:1px solid var(--line)}.spaces-table tr:last-child{border-bottom:0}.spaces-table td{border:0;padding:0;font-size:12px}.spaces-table td:first-child{width:100%;padding-bottom:2px}.spaces-table td:first-child button{font-size:15px}.spaces-table td[data-label]:before{content:attr(data-label) " ";color:var(--muted);font-size:11px}.spaces-table .align-right{margin-left:auto}.spaces-table .cell-note{white-space:normal}.space-heading>div{min-width:0}.space-heading h1{overflow-wrap:anywhere}.space-switch{flex-shrink:0;max-width:110px}.space-switch select{font-size:11px}}

/* Shared space UI. Roles affect available actions, never the page layout. */
:root { color:#27332c; background:#f5f6f3; --ink:#27332c; --muted:#68746c; --accent:#395d49; --line:#dfe4dd; --soft:#edf1eb; }
h1 { font-size:25px; letter-spacing:-.6px; font-weight:650; }
h2 { font-size:14px; font-weight:600; letter-spacing:-.2px; }
.global-header { height:62px; padding:0 36px; }
.wordmark { font-size:20px; font-weight:700; letter-spacing:-.9px; }
.content { padding:32px 36px 52px; max-width:1320px; }
.panel, .readings, .auth-card, .disclosure { border-radius:7px; }
.btn { border-radius:5px; }
.panel-bar { padding:16px 20px; }
.text-button { display:inline-flex; align-items:center; gap:5px; color:var(--accent); font-size:12px; }
.text-button .icon { width:13px; height:13px; }
.badge { padding:0; background:none; color:var(--muted); font-size:12px; font-weight:400; }
.badge.ok { background:none; color:#355d4b; }
.badge.error { background:none; color:#a0443b; }
.badge.ok:before, .badge.error:before { display:none; }
.nav-count { background:var(--soft); color:var(--ink); border-radius:2px; }
.space-heading h1 { font-size:25px; font-weight:600; }
.space-heading p { color:var(--muted); }
.back-link { margin-bottom:15px; }
.space-tabs { margin:24px 0; gap:30px; }
.space-tabs button { padding-bottom:13px; }
.space-tabs button.active { color:var(--ink); border-bottom-color:var(--ink); font-weight:600; }
.btn.primary { background:#3c5e48; border-color:#3c5e48; }
.btn.primary:hover { background:#2b4735; }
th { background:#fafbfa; font-size:11px; font-weight:500; }
tbody tr:hover { background:#fafbfb; }
.readings { grid-template-columns:1fr 1fr; margin-bottom:24px; }
.reading { padding:23px; }
.reading>strong { font-size:34px; font-weight:500; margin:10px 0; letter-spacing:-1px; }
.reading>strong>small { font-size:17px; }
.spaces-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.space-card { background:#fff; border:1px solid var(--line); border-radius:7px; overflow:hidden; min-width:0; }
.space-open { display:flex; align-items:center; gap:20px; padding:26px; background:none; border:0; width:100%; text-align:left; color:var(--ink); }
.space-open>span { display:grid; gap:9px; flex:1; min-width:0; }
.space-card strong { font-weight:600; font-size:18px; }
.space-card small { color:var(--muted); font-size:12px; }
.space-open>.icon { color:var(--muted); }
.space-open:hover { background:#f8faf7; }
.space-card-tools { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding:12px 26px; font-size:11px; color:var(--muted); }
.sensor-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; margin-bottom:28px; }
.sensor-card { background:#fff; border:1px solid var(--line); border-radius:7px; padding:24px; }
.sensor-card>.section-heading { margin-bottom:22px; align-items:baseline; }
.sensor-card .table-link { font-size:16px; }
.sensor-values { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.sensor-values>div { display:grid; gap:8px; min-width:0; }
.sensor-values span { font-size:12px; color:var(--muted); }
.sensor-values strong { font-size:36px; font-weight:550; font-variant-numeric:tabular-nums; letter-spacing:-1px; }
.sensor-values small { font-size:16px; color:var(--muted); margin-left:5px; }
.sensor-value-note { font-size:11px; color:var(--muted); line-height:1.7; }
.sensor-value-note.stale { color:#986527; }
.sensor-meta { display:flex; gap:8px 24px; flex-wrap:wrap; color:var(--muted); font-size:11px; border-top:1px solid var(--line); padding-top:16px; margin:20px 0 12px; }
.sensor-error { color:#a0443b; font-size:12px; margin-bottom:12px; }
.auth { padding-top:72px; }
.auth>.brand { margin-bottom:36px; }
.auth-card { border-color:var(--line); padding:32px; }
.auth-card h1 { font-size:22px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:760px) {
  .global-header { height:60px; padding:0 18px; gap:24px; }
  .global-header nav { gap:18px; }
  .wordmark { font-size:19px; }
  .content { padding:24px 18px 42px; }
  .space-heading h1 { font-size:23px; flex-wrap:wrap; gap:7px; }
  .space-tabs { gap:24px; margin:22px 0; }
  .space-tabs button { min-height:38px; }
  .space-switch { margin-top:28px; }
  .panel-bar { padding:16px; }
  .spaces-grid, .sensor-grid { grid-template-columns:1fr; }
  .space-open { padding:23px 20px; }
  .space-card-tools { padding:12px 20px; }
  .readings { margin-bottom:20px; }
  .reading { padding:20px 16px; }
  .reading>strong { font-size:32px; }
  .sensor-card { padding:20px; }
  .sensor-values { gap:14px; }
  .sensor-values strong { font-size:32px; }
  .sensor-value-note { font-size:10px; }
  .sensor-card .text-button { min-height:44px; }
  .auth { padding-top:40px; }
  .auth-card { padding:27px 23px; }
  .space-heading .back-link, .space-tabs button { min-height:44px; }
}
