:root{font-family:"Source Sans 3","Noto Sans HK","Microsoft JhengHei",system-ui,sans-serif;color:#142d31;background:#f3f6f5;font-synthesis:none;--teal:#075957;--deep:#073e42;--line:#d4dfdc;--muted:#496360;--paper:#fff;--warning:#8b470d}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:7px;color:inherit;background:var(--paper);padding:.58rem .88rem;min-height:40px}button:hover{background:#eaf4f1}button.primary{color:white;background:var(--teal);border-color:var(--teal);font-weight:650}button.primary:hover{background:#094b49}button:disabled{opacity:.55;cursor:wait}button.danger{color:#933328}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2f9381;outline-offset:3px}::selection{background:#b4e3d7}a{color:var(--teal)}
.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100dvh}.rail{background:var(--deep);color:#f7fffd;display:flex;flex-direction:column;padding:22px 15px;min-height:100%}.brand{display:flex;align-items:center;gap:11px;font-weight:720;letter-spacing:-.02em;font-size:19px;padding:0 5px}.mark{width:34px;height:34px;border:1px solid #a3d8cf;border-radius:7px;display:grid;place-items:center;color:#c8f0e7;font-size:12px;letter-spacing:0}.rail .nav{margin-top:37px;display:grid;gap:4px}.rail button{display:flex;align-items:center;text-align:left;border:0;background:transparent;color:#d3e9e5;font-weight:550;padding:11px 13px}.rail button:hover,.rail button[aria-current=page]{background:#236460;color:white}.rail button[aria-current=page]{box-shadow:inset 0 0 0 1px #49817a}.rail footer{margin-top:auto;padding:24px 12px 3px;color:#b1d8d0;font-size:13px}.main{min-width:0}.top{min-height:66px;background:white;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 28px}.top select{max-width:260px}.top-actions{display:flex;align-items:center;gap:8px}.top small{color:var(--muted);white-space:nowrap}.content{max-width:1430px;margin:auto;padding:32px 30px 55px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:28px}.page-head h1{font-size:clamp(27px,3.1vw,42px);margin:0;letter-spacing:-.035em;line-height:1.15}.page-head p{color:var(--muted);margin:10px 0 0;line-height:1.55}.actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.band{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;background:#e2eeeb;border:1px solid #c6ded7;border-radius:8px;margin-bottom:17px;color:#23534f}.metrics{display:flex;border-block:1px solid var(--line);margin-bottom:24px;padding:14px 0;gap:25px;flex-wrap:wrap}.metric{min-width:90px}.metric b{font-size:25px;display:block;font-variant-numeric:tabular-nums}.metric small,.sub{font-size:13px;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}.toolbar input{max-width:340px}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th,td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#e7eeec;white-space:nowrap;color:#35514e;font-size:13px}tr:last-child td{border-bottom:0}td .sub{display:block;margin-top:4px}td button{min-height:34px;font-size:13px;padding:5px 8px}.mono{font-family:"IBM Plex Mono",Consolas,monospace;font-variant-numeric:tabular-nums}.tag{font-size:12px;font-weight:650;white-space:nowrap;border-radius:5px;padding:4px 8px;display:inline-block;color:#375550;background:#e8efed}.tag.online,.tag.accepted,.tag.active{background:#d6ede4;color:#165844}.tag.offline,.tag.failed{background:#f9e5e1;color:#8b3125}.tag.retry,.tag.review,.tag.pending{background:#faecd6;color:#79420c}.empty{padding:34px 17px;line-height:1.55;color:var(--muted)}h2{margin:28px 0 12px;font-size:20px;letter-spacing:-.02em}h2:first-child{margin-top:0}.login{min-height:100dvh;display:grid;grid-template-columns:minmax(280px,42%) 1fr}.login-banner{background:var(--deep);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(24px,5vw,72px)}.login-banner h1{font-size:clamp(34px,5vw,65px);letter-spacing:-.035em;line-height:1.1;max-width:12ch;margin-bottom:16px}.login-banner p{color:#c8e6e0}.login-main{display:grid;align-content:center;justify-items:center;padding:25px}.login-main form{width:min(100%,390px);display:grid;gap:15px}.login-main h2{margin:0 0 8px;font-size:31px}.login-main .actions{justify-content:flex-end}.field{display:grid;gap:6px;margin-bottom:12px;font-size:14px;font-weight:600}.field small{font-weight:400;color:var(--muted)}input,select,textarea{width:100%;border:1px solid #a9bfba;border-radius:6px;min-height:40px;padding:8px 10px;color:#142d31;background:white}input[type=checkbox]{width:18px;min-height:18px;justify-self:start}textarea{resize:vertical;min-height:94px}.inline-field{width:auto;min-width:135px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.full{grid-column:1/-1}.form-error{color:#922f26;font-size:14px;margin:0;min-height:1.3em}.form-error:empty{display:none}.dialog-content{padding:23px}.dialog-content h2{margin:0 0 18px}.dialog-content .actions{justify-content:flex-end;margin-top:18px}dialog{padding:0;width:min(690px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:12px;color:inherit;background:white}dialog::backdrop{background:#092f34a8}.preview{background:#edf3f1;padding:12px;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.45 Consolas,monospace}.detail{margin-top:18px}.section-stack>*+*{margin-top:20px}#notice{position:fixed;bottom:18px;right:18px;max-width:min(460px,calc(100% - 36px));background:#123d39;color:white;padding:12px 16px;border-radius:7px;z-index:3}#notice:empty{display:none}summary{cursor:pointer}.grant-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}.grant-row .field{margin:0}.grant-row+.grant-row{margin-top:8px}
@media(max-width:850px){.shell{grid-template-columns:175px minmax(0,1fr)}.content{padding:24px 17px}.top{padding:10px 16px}.top small{display:none}th,td{padding:11px 10px}.brand{font-size:16px}.mark{width:28px;height:28px}.page-head{flex-wrap:wrap}}
@media(max-width:620px){.shell{display:block}.rail{padding:12px}.rail .nav{display:flex;overflow:auto;gap:4px;margin-top:12px}.rail button{white-space:nowrap;padding:7px 9px}.rail footer{display:none}.top select{max-width:47vw}.content{padding:22px 12px}.login{display:block}.login-banner{padding:22px}.login-banner h1{font-size:32px;margin:24px 0 0}.login-main{padding:30px 17px}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none}.form-grid{display:block}.metrics{gap:13px}.page-head{gap:12px;margin-bottom:19px}}

.shell { --rail-ink:#02323b; --rule:#cbd5d7; background:#f7f8f8; color:#10262e; grid-template-columns:clamp(196px,18.1vw,268px) minmax(0,1fr); }
.shell .rail { background:var(--rail-ink); padding:25px 13px; }
.shell .brand { padding-inline:12px 0; font-size:19px; line-height:1.18; white-space:nowrap; }
.shell .brand small { display:block; margin-top:5px; color:#a6c3c8; font-size:13px; font-weight:400; letter-spacing:0; }
.shell .rail .nav { margin-top:42px; gap:7px; }
.shell .rail button { display:grid; gap:3px; padding:12px 15px; min-height:46px; font-size:15px; color:#e4f0f2; }
.shell .rail button[aria-current=page] { background:#256f74; box-shadow:none; }
.shell .rail button small { color:#c1d9dc; font-size:12px; font-weight:400; white-space:normal; }
.top { min-height:68px; background:#f8f9f9; border-color:var(--rule); padding-inline:24px 16px; }
.top-context,.tenant { display:flex; align-items:center; gap:12px; min-width:0; }
.tenant { font-size:14px; white-space:nowrap; }
.tenant select { width:min(19vw,240px); }
.tenant-label,.top-time { font-size:13px; white-space:nowrap; }
.demo-tag { background:#dcebea; color:#225a5d; }
.languages { display:flex; border:1px solid #a7b6b9; border-radius:7px; }
.languages button { min-height:32px; min-width:36px; padding:4px 7px; border:0; background:transparent; border-radius:5px; }
.languages button[aria-pressed=true] { background:#075458; color:#fff; }
.fleet-content { max-width:none; margin:0; padding:0; }
.fleet-layout { display:grid; grid-template-columns:minmax(0,1fr); min-height:calc(100dvh - 68px); }
.fleet-layout.has-selection { grid-template-columns:minmax(0,1.76fr) minmax(300px,1fr); }
.fleet-register { min-width:0; padding:30px 23px 42px; }
.fleet-register .page-head { align-items:center; margin-bottom:30px; }
.fleet-register .page-head h1 { font-size:clamp(27px,2.8vw,40px); }
.fleet-toolbar { gap:14px; margin-bottom:34px; }
.fleet-toolbar input { max-width:355px; min-width:100px; }
.fleet-toolbar label { display:flex; align-items:center; gap:10px; font-size:13px; white-space:nowrap; }
.fleet-toolbar label select { min-width:112px; }
.fleet-table { overflow:auto; }
.fleet-table table { background:transparent; }
.fleet-table th { color:#142930; background:transparent; font-weight:700; }
.fleet-table td,.fleet-table th { padding:10px 8px; border-bottom:1px solid var(--rule); }
.fleet-table tr:last-child td { border-bottom:1px solid var(--rule); }
.fleet-table tr:has(.fleet-row-link):hover { background:#eaf3f2; }
.fleet-table .fleet-selected { background:#d9eeeb; }
.fleet-row-link,.queue-toggle { background:transparent; border:0; padding:4px 0; color:#102b34; font-weight:700; text-align:left; }
.fleet-row-link:hover,.queue-toggle:hover { background:transparent; text-decoration:underline; }
.fleet-heartbeat { white-space:nowrap; font-variant-numeric:tabular-nums; }
.fleet-table .empty { padding:25px 8px; }
.tag.unconfirmed { background:#e4edf9; color:#254d79; }
.tag.fault { background:#f8e8d2; color:#784415; white-space:normal; }
.fleet-panel { min-width:0; background:#fcfdfd; border-left:1px solid var(--rule); padding:30px 22px; }
.fleet-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.fleet-panel-heading h2 { margin:0; font-size:29px; line-height:1.18; overflow-wrap:anywhere; }
.panel-close { min-width:34px; min-height:34px; padding:0; border:0; background:transparent; color:#455d63; font-size:25px; }
.fleet-status { display:flex; flex-wrap:wrap; gap:8px; margin:13px 0 20px; }
.fleet-facts { margin:0; font-size:14px; }
.fleet-facts div { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,1.65fr); gap:8px; padding:4px 0; }
.fleet-facts dd { margin:0; overflow-wrap:anywhere; }
.fleet-facts dt { color:#34535b; }
.fleet-device-actions { margin-top:13px; }
.fleet-device-actions button { font-size:12px; min-height:33px; }
.fleet-panel section { border-top:1px solid var(--rule); margin-top:22px; padding-top:17px; }
.fleet-panel h3 { margin:0 0 13px; font-size:17px; }
.fleet-transfer { display:flex; align-items:center; gap:9px; }
.fleet-transfer span,.fleet-transfer strong { overflow-wrap:anywhere; }
.fleet-transfer span:first-child:not(.transfer-arrow),.fleet-transfer strong { flex:1; border-radius:6px; background:#e9eeef; padding:9px; }
.fleet-transfer strong { background:#deefe5; }
.fleet-note { font-size:13px; line-height:1.5; color:#48636a; }
.fleet-timeline { margin:0; padding:0 0 0 14px; list-style:none; border-left:1px solid #aabbbd; }
.fleet-timeline li { position:relative; margin-bottom:12px; font-size:13px; }
.fleet-timeline li::before { content:''; position:absolute; top:5px; left:-19px; width:8px; height:8px; border-radius:50%; background:#075957; }
.fleet-timeline button { display:grid; gap:4px; width:100%; margin-top:5px; padding:9px 11px; text-align:left; background:#edf1f2; border:0; }
.fleet-timeline button span:not(.tag) { color:#405d64; }
.fleet-timeline .tag { justify-self:start; }

.project-workspace { --handover-green:#224f32; }
.project-workspace button.primary { background:var(--handover-green); border-color:var(--handover-green); }
.project-board { display:grid; grid-template-columns:minmax(150px,23%) minmax(0,1fr); border-block:1px solid var(--rule); background:#fafbf9; }
.project-list { border-right:1px solid var(--rule); padding:19px 12px 20px 0; }
.project-list ul { list-style:none; margin:0; padding:0; }
.project-list li { display:grid; gap:5px; padding:10px 8px; border-bottom:1px solid var(--rule); font-size:14px; }
.project-list li > span { color:#4a6557; font-size:13px; }
.project-list button { justify-self:start; min-height:31px; padding:3px 7px; font-size:12px; }
.project-main { padding:18px 0 22px 19px; min-width:0; }
.project-select,.profile-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.project-select .field { margin:0; min-width:min(100%,210px); }
.handover-cutover { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:9px 11px; border-bottom:2px solid var(--handover-green); color:#244733; font-size:13px; }
.handover-cutover time { font-weight:700; }
.handover-lane { display:grid; grid-template-columns:minmax(100px,24%) minmax(0,1fr); align-items:stretch; margin-top:8px; background:#f0ece1; }
.handover-lane:last-child { background:#e5efe4; }
.handover-lane > div:first-child { display:grid; align-content:center; gap:4px; padding:12px; border-right:1px solid #cbd5ca; font-size:14px; }
.handover-lane > div:first-child span,.handover-track > span { color:#475d50; font-size:13px; }
.handover-track { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px; min-height:73px; }
.handover-track button { display:grid; gap:4px; text-align:left; padding:7px 9px; font-size:13px; border-color:#829b88; }
.handover-track small { color:#475d50; }
.handover-axis { display:flex; justify-content:space-between; margin-left:24%; padding:8px 4px 4px; color:#475d50; font-size:12px; }
.handover-track { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px 0; gap:0; }
.handover-track::after { position:absolute; top:0; bottom:0; left:50%; content:''; border-left:1px dashed #55725c; }
.handover-half { padding:0 10px; min-width:0; font-size:13px; color:#475d50; }
.handover-half.after { grid-column:2; }
.profile-heading { margin-top:22px; margin-bottom:10px; }
.profile-heading h2 { margin:0; }

.event-queue { --queue-accent:#a94308; }
.queue-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.queue-filters button { min-height:37px; padding:5px 10px; font-size:14px; }
.queue-filters button span { margin-left:4px; font-variant-numeric:tabular-nums; }
.queue-filters button[aria-pressed=true],.queue-detail button.primary { background:var(--queue-accent); border-color:var(--queue-accent); color:white; }
.queue-table th { background:#e7ebed; color:#263b46; }
.queue-table td > small { display:block; margin-top:4px; color:#455d63; }
.queue-toggle { display:flex; align-items:center; gap:9px; white-space:nowrap; }
.queue-chevron { width:7px; height:7px; border-right:1px solid currentColor; border-top:1px solid currentColor; transform:rotate(45deg); }
.queue-toggle[aria-expanded=true] .queue-chevron { transform:rotate(135deg); }
.queue-selected,.queue-expansion { background:#f8eee5; }
.queue-route { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,.42fr); gap:15px; align-items:center; margin-bottom:12px; }
.queue-route ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; padding:10px 0 0; list-style:none; border-top:2px solid #b45f2e; }
.queue-route li,.queue-route > div { display:grid; gap:5px; }
.queue-route li { font-size:13px; padding-right:6px; }
.queue-route li time { font-weight:700; }
.queue-route > div { border-left:1px solid var(--rule); padding-left:13px; }
.queue-detail details { margin-top:9px; }
.queue-detail .table-wrap { margin-bottom:12px; }

@media(max-width:1250px){.shell .brand{font-size:16px;padding-inline:5px 0}.fleet-register,.fleet-panel{padding-inline:16px}.fleet-table td,.fleet-table th{font-size:12px;padding-inline:6px}.fleet-table .tag{font-size:11px}.fleet-toolbar{gap:8px}.fleet-toolbar label{gap:5px}}
@media(max-width:1050px){.fleet-layout.has-selection{grid-template-columns:minmax(0,1fr)}.fleet-panel{border-left:0;border-top:1px solid var(--rule)}.top-time{display:none}.fleet-toolbar{margin-bottom:20px}.fleet-layout{min-height:0}}
@media(max-width:700px){.shell{display:block}.shell .rail{padding:12px}.shell .rail .nav{display:flex;overflow:auto;margin-top:12px;gap:4px}.shell .rail button{min-height:38px;padding:7px 9px;white-space:nowrap;font-size:13px}.shell .rail button small{display:none}.top{padding:8px 10px}.top-context,.tenant,.top-actions{gap:6px}.tenant select{width:auto;max-width:42vw}.tenant-label{white-space:normal}.demo-tag{display:none}.fleet-register,.fleet-panel{padding:19px 12px}.fleet-register .page-head{margin-bottom:17px}.fleet-table table{min-width:540px}.project-board{display:block}.project-list{border-right:0;border-bottom:1px solid var(--rule);padding:12px 0}.project-main{padding-left:0}.queue-table table{min-width:660px}}
@media(max-width:700px){.top-actions{flex-shrink:0}.top-actions>button{white-space:nowrap;padding-inline:7px;font-size:12px}.tenant select{max-width:34vw}.fleet-table table{min-width:0}.fleet-table :is(th,td):nth-child(5){display:none}.fleet-table :is(th,td){padding-inline:5px}.handover-track{grid-template-columns:minmax(0,1fr);padding:8px 0}.handover-half.after{grid-column:1}.handover-track::after,.handover-axis{display:none}}
.authenticator-setup p { margin:0 0 14px; line-height:1.5; }
.authenticator-qr { display:block; width:224px; max-width:100%; height:auto; margin:0 auto 14px; image-rendering:pixelated; background:white; }
.authenticator-setup details { margin-bottom:16px; }
.authenticator-setup details .field { margin:9px 0 0; }
.mqtt-guide p { line-height:1.55; }
.mqtt-guide ol { display:grid; gap:14px; padding-inline-start:24px; }
.mqtt-guide li { padding-inline-start:4px; }
.mqtt-guide li p { margin:4px 0 0; }
.mqtt-guide code { display:block; margin-top:6px; padding:7px 9px; border-radius:5px; background:#edf3f1; overflow-wrap:anywhere; }
.mqtt-credentials [hidden] { display:none; }
.mqtt-credentials [data-copy-status]:empty { display:none; }
.mqtt-monitor-toolbar .field { margin-bottom:0; min-width:min(100%,210px); }
.mqtt-topic { overflow-wrap:anywhere; }
