:root{--device-accent:#0f766e;--device-light:#ecfdf5}html{scroll-padding-bottom:110px}.main{min-width:0}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #0d9488;outline-offset:3px}.device-topline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:-8px 0 18px}.device-status{font-size:13px;display:flex;align-items:center;gap:7px;flex:1;color:#475569}.device-status:before{content:'';width:8px;height:8px;flex:none;border-radius:50%;background:#0d9488}.device-status[data-kind=offline]:before,.device-status[data-kind=error]:before{background:#d97706}.device-status[data-kind=remote]:before{background:#2563eb}.device-topline button,.device-tool-button{background:#fff;border:1px solid #dbe3e9;border-radius:10px;padding:9px 12px;color:#334155;cursor:pointer}.device-start{margin-bottom:18px;padding:18px;background:linear-gradient(120deg,#f0fdfa,#fff);border:1px solid #cce8e2;border-radius:16px}.device-start h2{margin:0 0 5px;font-size:20px}.device-start p{margin:0;color:#52636a;font-size:13px;line-height:1.5}.device-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:15px}.device-shortcuts button{padding:13px 10px;display:flex;gap:9px;align-items:center;justify-content:center;border:1px solid #d5e4df;background:#fff;border-radius:11px;font-weight:650;color:#134e4a;cursor:pointer}.device-shortcuts .device-icon{font-size:20px;font-weight:400}.device-search{margin-top:14px;position:relative}.device-search label{font-size:12px;font-weight:650;color:#475569;display:block;margin-bottom:6px}.device-search input{padding-left:14px;border-color:#cbdad5;background:#fff}.device-results{background:white;border:1px solid #dbe3e9;border-radius:12px;margin-top:6px;max-height:360px;overflow:auto}.device-results[hidden]{display:none}.device-result{display:block;width:100%;border:0;border-bottom:1px solid #edf2f7;padding:12px 14px;background:#fff;text-align:left;cursor:pointer}.device-result:last-child{border-bottom:0}.device-result strong{display:block;font-size:14px}.device-result span{display:block;color:#64748b;font-size:12px;margin-top:4px}.device-results p{padding:12px;margin:0}.device-dialog{border:0;border-radius:20px;padding:24px;width:min(560px,calc(100% - 24px));max-height:88vh;overflow:auto;color:#172e35;box-shadow:0 20px 90px #0f172a44}.device-dialog::backdrop{background:#0f172a88}.device-dialog h2{margin:0;font-size:21px}.device-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.device-dialog-head button{border:1px solid #dbe3e9;background:#fff;border-radius:10px;padding:9px 13px}.device-picks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.device-picks button{padding:18px 13px;border:1px solid #d6e6e1;background:#f7fcfa;text-align:left;border-radius:12px;font-size:15px;font-weight:650;cursor:pointer}.device-picks small{display:block;font-size:12px;font-weight:400;color:#64748b;margin-top:5px;line-height:1.5}.device-dialog p,.device-dialog li{line-height:1.6;font-size:14px;color:#475569}.device-dialog h3{margin:18px 0 6px;font-size:15px}.device-link{display:flex;gap:8px;align-items:center;padding:10px;background:#f1f5f9;border-radius:10px;overflow-wrap:anywhere}.device-link code{flex:1;font-size:13px}.device-link button{padding:9px;border-radius:8px;border:1px solid #cbd5e1;background:white}.device-module-tools{display:grid;grid-template-columns:1fr 170px;gap:10px;margin:14px 0}.device-module-tools label{font-size:12px;color:#475569}.device-module-tools input,.device-module-tools select{margin-top:5px}.device-module-count{grid-column:1/-1;font-size:13px;color:#64748b}.device-load-more{display:block;margin:16px auto;padding:12px 20px;border:1px solid #cbd5e1;border-radius:10px;background:white}.device-extra-fields{border-top:1px solid #e2e8f0;margin-top:8px;padding-top:12px;grid-column:1/-1}.device-extra-fields summary{cursor:pointer;color:#475569;font-weight:650;font-size:14px;min-height:36px}.device-extra-fields>div{display:grid;gap:11px;padding-top:12px}.modal-card>.panel-head{position:sticky;top:-18px;background:white;z-index:2;padding:12px 0;margin-top:-8px}.modal-actions{position:sticky;bottom:-18px;background:white;padding:12px 0;z-index:2;border-top:1px solid #e2e8f0}.modal-card .field label{font-size:13px}.durable-status{max-width:100%;overflow-wrap:anywhere}.device-dialog button{min-height:44px}
@media(max-width:900px){.main{padding:16px 14px calc(96px + env(safe-area-inset-bottom))}.topbar{margin-bottom:12px;flex-wrap:wrap;gap:10px}.topbar h1{font-size:23px;letter-spacing:-.025em}.top-actions{margin-left:auto}.top-actions .sync-badge{display:none}.top-actions #newBtn{min-height:44px;background:#0f766e;border-color:#0f766e}.top-actions button{min-height:44px}.durable-status{font-size:12px;width:100%;padding:0!important;margin:0!important;background:transparent!important}.device-topline{margin:0 0 14px;gap:7px}.device-status{flex-basis:100%;font-size:12px;min-height:25px}.device-topline button{font-size:12px;min-height:42px}.device-start{padding:15px;border-radius:15px}.device-start h2{font-size:19px}.device-shortcuts{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.device-shortcuts button{justify-content:flex-start;min-height:48px;padding:11px 12px;font-size:14px}.device-start p{font-size:12px}.mobile-nav{padding:6px 6px calc(6px + env(safe-area-inset-bottom));gap:3px;box-shadow:0 -5px 24px #0f172a0a;align-items:center}.mobile-nav button{min-height:48px;border-radius:10px;color:#52616b;font-size:11px;font-weight:650;padding:7px 3px}.mobile-nav button.active{background:#e7f5f0;color:#0f766e}.mobile-nav button:before{display:block;font-size:20px;font-weight:400;line-height:1.2;margin-bottom:3px}.mobile-nav button[data-view=dashboard]:before{content:'⌂'}.mobile-nav button[data-view=tasks]:before{content:'✓'}.mobile-nav button[data-view=projects]:before{content:'▦'}.mobile-nav #moreBtn:before{content:'☰'}.mobile-nav .plus{font-size:28px;background:#0f766e;width:48px;height:48px;margin:0 auto;border-radius:14px;color:white;padding:0}.mobile-more{left:12px;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));max-height:65vh;overflow:auto;padding:12px;grid-template-columns:1fr 1fr;border-radius:16px}.mobile-more button{min-height:46px;text-align:left;padding:11px 12px}.modal{padding:0;align-items:end}.modal-card,.import-card{width:100%;border-radius:20px 20px 0 0;max-height:94vh;max-height:94dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.modal-card .panel-head h2{font-size:18px}.modal-actions{bottom:calc(-18px - env(safe-area-inset-bottom));padding-bottom:calc(12px + env(safe-area-inset-bottom));gap:8px}.modal-actions button{min-height:46px}.modal-actions .primary{min-width:110px}.modal-actions .spacer{min-width:0}.modal .field input,.modal .field textarea,.modal .field select,input,textarea,select{font-size:16px;min-height:46px}.modal .field textarea{min-height:95px}.device-module-tools{grid-template-columns:1fr 140px;gap:8px}.device-module-tools select,.device-module-tools input{font-size:16px}.item-title,.management-card h3{overflow-wrap:anywhere}.item-actions button{min-height:42px;font-size:13px}.device-dialog{width:100%;max-width:none;border-radius:20px 20px 0 0;margin:auto 0 0;max-height:90vh;max-height:90dvh;padding:20px 16px calc(24px + env(safe-area-inset-bottom))}.device-picks{gap:8px}.device-picks button{min-height:88px;padding:14px 11px}.toast{bottom:calc(88px + env(safe-area-inset-bottom));left:14px;right:14px;text-align:center}.boot-status{margin:20px 12px!important;padding:22px 18px!important;max-width:100%!important}.boot-status input{width:100%!important;font-size:16px;min-height:48px}.boot-status h2{font-size:23px}.boot-status form button{width:100%;min-height:48px;background:#0f766e;color:#fff;border:0;border-radius:10px;font-weight:650;margin-top:12px}.device-link{flex-wrap:wrap}.device-link code{min-width:180px}}
.device-module-tools[hidden]{display:none}
@media(max-width:380px){.main{padding-left:10px;padding-right:10px}.topbar h1{font-size:20px}.top-actions #newBtn{padding:9px}.device-module-tools{grid-template-columns:1fr}.device-dialog .device-picks{grid-template-columns:1fr 1fr}.device-shortcuts button{font-size:13px}}
