:root{--ink:#202123;--muted:#6b6d72;--line:#e9eaec;--accent:#00649c;--accent-hover:#004f7c;--success:#18713e;--success-bg:#eaf7ef;--success-border:#b8dfc6;--danger:#b4232c;--danger-bg:#fff0f1;--danger-border:#f0bfc4;--accent-ink:#005d91;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}*{box-sizing:border-box}html,body{min-height:100%;color:var(--ink);background:#fff;margin:0}body{font:14px var(--font);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:0 0;border:0}button:disabled{cursor:default;opacity:.45}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px}h1,h2,h3,p{margin:0}h1{letter-spacing:-.8px;font-size:26px;font-weight:750;line-height:1.2}h2{font-size:15px;font-weight:700;line-height:1.4}h3{font-size:14px;font-weight:650}small{display:block}svg{flex-shrink:0}fieldset{border:0;min-width:0;margin:0;padding:0}input,select{height:34px;color:var(--ink);background:#fff;border:1px solid #dedfe3;border-radius:9px;min-width:0;padding:0 10px}input{width:100%}input:focus,select:focus{border-color:var(--accent-ink);outline:none;box-shadow:0 0 0 2px #00649c26}input::placeholder{color:#6b777f}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:100;background:#fff;padding:12px;position:fixed;top:8px;left:8px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.button{background:var(--accent);color:#fff;white-space:nowrap;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:0 14px;font-size:13px;font-weight:650;display:inline-flex}.button:hover{background:var(--accent-hover)}.button.secondary{color:#35444d;background:#fff;border-color:#ccd5db}.button.secondary:hover{background:#f7f9fa}.icon-button{color:#52636e;border-radius:9px;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.icon-button:hover{color:var(--accent-ink);background:#eff6f9}.icon-button.bordered{border:1px solid var(--line)}.tiny-dot{background:#7d8990;border-radius:50%;flex-shrink:0;width:5px;height:5px;display:inline-block}.align-right{text-align:right}.app-shell{min-height:100svh;padding-left:216px}.sidebar{border-right:1px solid var(--line);background:#f9f9f9;flex-direction:column;width:216px;padding:0 12px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-brand{flex-shrink:0;align-items:center;gap:10px;height:80px;padding:0 12px;display:flex}.brand{letter-spacing:-.6px;align-items:center;gap:7px;font-size:17px;font-weight:800;display:inline-flex}.brand-accent{background:var(--accent);border-radius:3px;width:6px;height:18px}.demo-label{color:#6b6d72;letter-spacing:.5px;border:1px solid #dedfe2;border-radius:5px;padding:2px 4px;font-size:8px}.sidebar-content{flex-direction:column;flex:1;min-height:0;display:flex}.main-nav{flex-direction:column;gap:4px;display:flex}.main-nav a{color:#66686d;border-radius:8px;align-items:center;gap:11px;height:38px;padding:0 12px;font-size:13px;font-weight:500;display:flex}.main-nav a:hover{color:var(--ink);background:#efeff0}.main-nav a.active{color:var(--accent-ink);background:#e8f2f8;font-weight:650}.sidebar-footer{border-top:1px solid #e6e6e8;align-items:center;gap:5px;margin-top:auto;padding:12px 0;display:flex}.account-link{border-radius:9px;flex:1;align-items:center;gap:9px;min-width:0;padding:7px;font-size:12px;font-weight:550;display:flex}.account-link:hover,.account-link.active{background:#eceef0}.account-avatar{color:#51616d;background:#fff;border:1px solid #dce1e5;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:29px;height:29px;font-size:10px;font-weight:650;display:inline-flex}.account-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.logout-form fieldset{display:contents}.logout-button{color:#73767b}.mobile-menu{display:none}.main-content{width:100%;min-width:0;padding:32px}.page-heading{justify-content:space-between;align-items:center;gap:15px;min-height:36px;margin-bottom:28px;display:flex}.device-toolbar{justify-content:space-between;align-items:center;gap:16px;min-height:34px;margin-bottom:12px;display:flex}.toolbar-filters,.toolbar-info{align-items:center;gap:12px;display:flex}.search-field{width:220px;height:34px;color:var(--muted);border:1px solid #dedfe3;border-radius:9px;align-items:center;gap:7px;padding:0 10px;display:flex}.search-field:focus-within{border-color:var(--accent-ink)}.search-field input{box-shadow:none;border:0;border-radius:0;height:30px;padding:0;font-size:12px}.toolbar-filters select{width:151px;font-size:12px}.device-count{color:#5b6972;white-space:nowrap;font-size:12px}.device-count strong{color:var(--ink);font-weight:700}.count-separator{color:#b4bec4;padding:0 5px}.connection-status{color:#4e5a65;white-space:nowrap;background:#f4f5f6;border:1px solid #dce1e5;border-radius:7px;align-items:center;gap:8px;height:30px;padding:0 10px;font-size:12px;font-weight:650;display:inline-flex}.live-dot{background:currentColor;border-radius:50%;flex-shrink:0;width:7px;height:7px;position:relative}.connection-status.connected{border-color:var(--success-border);background:var(--success-bg);color:var(--success)}.connection-status.connected .live-dot{box-shadow:0 0 0 3px #18713e1f}.connection-status.connected .live-dot:after{content:"";border:1px solid var(--success);border-radius:50%;animation:2.4s ease-out infinite live-pulse;position:absolute;inset:-3px}.connection-status.interrupted,.connection-status.inactive{color:var(--danger);background:var(--danger-bg);border-color:var(--danger-border)}.connection-status.waiting .live-dot{background:#75808a}@keyframes live-pulse{0%{opacity:.7;transform:scale(1)}80%,to{opacity:0;transform:scale(1.65)}}.refresh-button{color:#485a65;border:1px solid #dedfe3;border-radius:8px;align-items:center;gap:6px;height:34px;padding:0 10px;font-size:12px;display:inline-flex}.refresh-button:hover{color:var(--accent-ink)}.table-scroll{border:1px solid #e3e4e7;border-radius:12px;width:100%;overflow:hidden}.device-table thead{background:#f4f7f9}.device-table thead th{color:#465663;height:36px;font-size:12px;font-weight:650}.device-table tbody tr:last-child td{border-bottom:0}.device-table,.member-table{border-collapse:collapse;text-align:left;width:100%}.device-table th,.member-table th{color:#637078;border-bottom:1px solid var(--line);height:34px;padding:8px 12px;font-size:11px;font-weight:600}.device-table td,.member-table td{border-bottom:1px solid var(--line);height:44px;padding:8px 12px;font-size:13px}.device-table th:first-child,.device-table td:first-child{padding-left:18px}.member-table th:first-child,.member-table td:first-child{padding-left:0}.device-table th:last-child,.device-table td:last-child{padding-right:18px}.member-table th:last-child,.member-table td:last-child{padding-right:0}.device-table tbody tr:hover,.device-table tbody tr:focus-within{background:#f0f7fb}.member-table tbody tr:hover{background:#fbfdfe}.device-row.online{background:#fcfefc}.device-row.online td:first-child{box-shadow:inset 3px 0 #78b690}.device-identity{align-items:center;gap:10px;display:flex}.device-symbol{color:#657785;background:#f7f9fb;border:1px solid #e3e7eb;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;width:27px;height:27px;display:inline-flex}.device-row.online .device-symbol{color:var(--success);background:var(--success-bg);border-color:#d2e9da}.device-name{letter-spacing:-.15px;font-size:13px;font-weight:700}.sort-button{font-size:inherit;font-weight:inherit;color:inherit;align-items:center;gap:7px;padding:0;display:inline-flex}.rotated{transform:rotate(180deg)}.address-link,.device-open{color:var(--accent-ink);align-items:center;gap:5px;font-size:12px;display:inline-flex}.address-link:hover,.device-open:hover{text-underline-offset:3px;text-decoration:underline}.address-link svg{color:#6f8898}.device-open{color:#4c5157;border:1px solid #e1e3e6;border-radius:7px;padding:4px 9px;font-weight:550}.device-open:hover{color:var(--accent-ink);background:#f2f8fa;border-color:#8bb8d3;text-decoration:none}.status-badge{color:#515e69;white-space:nowrap;background:#f3f5f7;border:1px solid #e1e5e9;border-radius:6px;align-items:center;gap:7px;padding:4px 8px;font-size:12px;font-weight:550;line-height:16px;display:inline-flex}.status-badge .tiny-dot{background:currentColor;width:6px;height:6px}.status-badge.online{color:var(--success);border-color:var(--success-border);background:var(--success-bg)}.status-badge.online .tiny-dot{box-shadow:0 0 0 2px #18713e1f}.status-badge.offline{color:var(--danger);border-color:var(--danger-border);background:var(--danger-bg)}.seen-column{color:#53626f;font-variant-numeric:tabular-nums}.device-table th.seen-column{color:#465663}.pagination{color:#637078;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px;font-size:12px;display:flex}.pagination>span{margin-right:5px}.empty-state{border-bottom:1px solid var(--line);justify-content:center;align-items:center;gap:18px;min-height:180px;display:flex}.empty-state h2{color:#637078;font-size:14px;font-weight:500}.notice,.inline-alert{color:#28586f;background:#f1f8fb;border:1px solid #d8eaf2;border-radius:9px;align-items:center;gap:12px;margin-bottom:14px;padding:9px 12px;font-size:12px;line-height:1.5;display:flex}.notice-error,.inline-alert{color:#485b67;background:#fff;border-color:#ccd5db}.inline-alert>button{color:var(--accent-ink);margin-left:auto;font-weight:600}.settings-grid{grid-template-columns:310px minmax(0,1fr);align-items:start;gap:24px;display:grid}.settings-grid.equal{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.panel{border:1px solid var(--line);background:#fff;border-radius:12px;min-width:0;padding:18px}.panel h2{margin-bottom:18px}.panel-heading{justify-content:space-between;align-items:center;display:flex}.count-badge{color:#6a7780;margin-left:4px;font-size:12px;font-weight:500}.stack-form fieldset{flex-direction:column;gap:14px;display:flex}.stack-form label{color:#45555f;flex-direction:column;gap:6px;font-size:12px;font-weight:550;display:flex}.stack-form input{font-size:13px;font-weight:400}.stack-form .button{align-self:flex-start;margin-top:2px}.field-hint{color:#66757d;margin-top:-9px;font-size:11px}.editor-list{border-top:1px solid var(--line)}.device-editor{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:10px 0;display:flex}.device-editor:last-child{border-bottom:0}.device-editor>div:first-child{min-width:85px}.device-editor strong{font-size:13px;font-weight:650}.device-editor small{color:#687780;margin-top:3px;font-size:10px}.device-url-form{flex-wrap:wrap;flex:1;gap:6px;display:flex}.device-url-form input{flex:1;min-width:100px;height:30px;font-size:12px}.device-url-form .form-error{width:100%}.device-editor fieldset{display:contents}.form-error{color:#8a3a32;margin-top:7px;font-size:12px;line-height:1.5}.compact-empty{color:var(--muted);padding:25px 0;font-size:13px}.member-table td{font-size:12px}.member-table strong{font-weight:650}.danger-panel{justify-content:space-between;align-items:center;gap:20px;margin-top:18px;display:flex}.danger-panel h2{margin:0;font-size:13px}.delete-account-form fieldset{align-items:center;gap:8px;display:flex}.delete-account-form input{width:220px;font-size:12px}.narrow-panel{width:100%;max-width:440px;margin:20px auto}.narrow-panel h1{margin-bottom:18px;font-size:23px}.narrow-panel p{color:var(--muted);margin-bottom:18px;font-size:13px;line-height:1.6}.standalone-state{max-width:600px;margin:15vh auto;padding:30px}.standalone-state p{color:var(--muted);margin:15px 0 22px;line-height:1.6}.auth-layout{background:#fff;place-items:center;min-height:100svh;padding:32px 24px;display:grid}.auth-form-container{width:100%;max-width:330px}.auth-logo-link{justify-content:center;width:fit-content;margin:0 auto 14px;display:flex}.auth-logo{width:190px;height:auto;display:block}.auth-form-container h1,.auth-form-container h2{text-align:center;letter-spacing:-.7px;margin-bottom:25px;font-size:25px;font-weight:750;line-height:1.3}.auth-form-container .stack-form fieldset{gap:16px}.auth-form-container .stack-form label{font-size:13px}.auth-form-container input:not([type=checkbox]){height:40px;font-size:16px}.auth-options{justify-content:space-between;align-items:center;gap:12px;display:flex}.auth-form-container .checkbox-label{color:#5d6c75;flex-direction:row;align-items:center;gap:7px;font-size:12px;font-weight:400}.checkbox-label input{appearance:auto;width:14px;height:14px;accent-color:var(--accent-ink);margin:0}.auth-options>a,.back-link{color:var(--accent-ink);font-size:12px}.auth-submit{justify-content:center;width:100%;height:40px;font-size:14px}.auth-form-container .field-hint{margin-top:0;margin-bottom:18px;font-size:12px;line-height:1.6}.back-link{align-items:center;gap:6px;margin-bottom:22px;display:inline-flex}.spinning{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (min-width:1700px){.main-content{padding:36px 44px}}@media (max-width:1250px){.toolbar-info{gap:10px}.settings-grid{grid-template-columns:260px minmax(0,1fr);gap:18px}}@media (min-width:761px) and (max-width:1050px){.main-content{padding:28px 24px}.device-toolbar{flex-wrap:wrap}.toolbar-info{margin-left:auto}.seen-column{display:none}.settings-grid{grid-template-columns:1fr}}@media (max-width:760px){.app-shell{padding-left:0}.sidebar{border-right:0;border-bottom:1px solid var(--line);background:#fff;width:100%;padding:0;position:relative}.sidebar-brand{height:56px;padding:0 16px}.brand{font-size:16px}.mobile-menu{margin-left:auto;display:inline-flex}.sidebar-content{z-index:20;background:#fafafa;border:1px solid #e3e4e7;border-radius:12px;padding:8px;display:none;position:absolute;top:62px;left:12px;right:12px;box-shadow:0 8px 24px #0000000d}.sidebar-content.is-open{display:flex}.sidebar-footer{margin-top:8px;padding:8px 0 0}.main-content{padding:22px 16px}h1{font-size:24px}.page-heading{margin-bottom:16px}.page-heading .button{padding:0 9px;font-size:11px}.device-toolbar{flex-wrap:wrap;gap:10px}.toolbar-filters{gap:8px;width:100%}.search-field{flex:1;width:auto;min-width:0}.toolbar-filters select{width:133px}.toolbar-info{justify-content:space-between;gap:8px;width:100%}.connection-status{padding:0 8px;font-size:11px}.refresh-button{flex-shrink:0;justify-content:center;width:34px;padding:0}.refresh-button>span,.device-symbol{display:none}.count-separator{padding:0 2px}.device-table td,.device-table th{padding-left:8px;padding-right:8px}.device-table th:first-child,.device-table td:first-child{padding-left:12px}.device-table th:last-child,.device-table td:last-child{padding-right:12px}.device-table td{height:44px}.device-name{font-size:13px}.address-column,.seen-column{display:none}.status-badge{font-size:11px}.settings-grid,.settings-grid.equal{grid-template-columns:1fr;gap:16px}.panel{padding:16px}.device-editor{gap:8px}.device-editor>div:first-child{min-width:70px}.device-url-form input{font-size:12px}.member-table{overflow-wrap:anywhere}.member-table td{font-size:11px}.danger-panel{flex-direction:column;align-items:stretch;gap:14px}.delete-account-form fieldset{flex-wrap:wrap}.delete-account-form input{flex:1;width:auto;min-width:150px}.auth-options>a{font-size:11px}.stack-form input,.search-field input{font-size:16px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
