:root{--ink:#1e2422;--muted:#777e78;--line:#dedfd9;--paper:#f6f5f1;--main:#fbfaf7;--sidebar:#f1f1ed;--accent:#47756b;--sage:#e6efe8;--red:#a04d41;--amber:#986c32;font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif}h1{font-size:36px;line-height:1.2;letter-spacing:-1.15px;font-weight:650}h2{font-size:18px;line-height:1.4;letter-spacing:-.35px;font-weight:650}h3{font-size:17px}p{line-height:1.65}strong{font-weight:600}button,input,select,textarea{border-radius:9px}input,select,textarea{border:1px solid #d5d9d1;background:#fffefb;color:var(--ink);min-width:0;outline:none}input,select{height:42px;padding:0 12px}textarea{padding:10px 12px;resize:vertical;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #47756b14}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{border:0;padding:11px 16px;white-space:nowrap;font-size:13px}.primary{background:var(--ink);color:#fffefb;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:18px}.primary:hover{background:#354039}.secondary{background:#fffefb;color:var(--ink);font-weight:500;border:1px solid var(--line)}.secondary:hover{background:#f0f2ec}.text-button{background:transparent;color:var(--muted);padding:7px 10px}.text-button:hover{color:var(--ink);background:#edf0e9}.danger-outline{background:#fffefb;border:1px solid #e3d4ca;color:var(--red)}.danger-outline:hover{background:#f8efe7}.brand{font-size:22px;font-weight:700;letter-spacing:-.8px}.app-header{height:66px;border-bottom:1px solid var(--line);background:rgba(251,250,247,.96);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:20}.header-right{display:flex;align-items:center;gap:25px}.live-status{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.live-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#729783}.live-status.reconnecting:before{background:#bf9a61}.sidebar{position:fixed;top:66px;left:0;bottom:0;width:240px;border-right:1px solid var(--line);background:var(--sidebar);padding:27px 17px 20px;overflow-y:auto;display:flex;flex-direction:column;z-index:15}.nav-label{color:var(--muted);font-size:10px;letter-spacing:.6px;font-weight:600;text-transform:uppercase;margin:0 12px 10px}.sidebar nav>.nav-label{margin-top:28px}.sidebar nav>a{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 12px;border-radius:11px;font-size:13px;font-weight:550;color:#68716a;margin-bottom:5px}.sidebar nav>a:hover{background:#e8ebe4}.sidebar nav>a.selected{color:var(--accent);background:#fffefc;box-shadow:0 1px 2px #28352804}.sidebar nav>a>span,.install-link>span{font-size:19px;width:17px;text-align:center;font-weight:400;line-height:1}.sidebar nav>a>small{margin-left:auto;font-size:10px;background:#e5e9e1;color:#748074;padding:2px 7px;border-radius:10px;font-weight:400}.install-link{margin-top:auto;display:flex;align-items:center;gap:12px;background:#f9faf5;border:1px solid var(--line);border-radius:11px;padding:13px 12px;font-size:12px;font-weight:600}.install-link>span{color:var(--accent)}.sidebar-note{font-size:10px;color:var(--muted);line-height:1.7;padding:13px 12px 0}.shell{margin-left:240px;min-height:calc(100vh - 66px);padding:35px 38px 18px;background:var(--main)}.shell>section,.shell>.page-heading,.shell>.notice,.shell>footer{max-width:1100px;margin-left:auto;margin-right:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading .muted{margin-top:10px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:.25px;color:var(--muted);margin-bottom:7px}.muted{color:var(--muted);font-size:13px}.small{font-size:11px;line-height:1.6}.notice{background:#ecf2e8;color:#3c6751;border:1px solid #d5e1cf;border-radius:10px;padding:12px 16px;margin-bottom:20px;font-size:13px}.notice.is-error{background:#fcf3e8;color:var(--red);border-color:#e9d9c2}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.stats>div{background:var(--main);border:1px solid var(--line);border-radius:15px;padding:21px 23px;display:grid;grid-template-columns:1fr auto;gap:13px}.stats span{font-size:13px;font-weight:550}.stats strong{font-size:32px;grid-row:span 2;line-height:1.2}.stats small{font-size:11px;color:var(--muted)}.card{border:1px solid var(--line);border-radius:15px;background:var(--main);margin-bottom:23px;padding:23px;box-shadow:0 1px 2px #24312503}.attention-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.attention-card p{margin-top:8px}.attention-card.needs-attention{border-color:#dfc9a7;background:#fdf8ee}.inline-link{font-size:12px;color:var(--accent);font-weight:600}.inline-link:hover{text-decoration:underline;text-underline-offset:3px}.start-card>div p{margin-top:7px}.start-card form{display:grid;grid-template-columns:minmax(200px,1.6fr) minmax(160px,1fr) auto;gap:13px;align-items:end;margin:21px 0 13px}.field{display:flex;flex-direction:column;gap:8px}.field label,form>label{font-size:12px;font-weight:600}.start-card form button{height:42px}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.section-heading p{margin-top:7px}.heading-actions{display:flex;gap:9px}.count,.file-tag{border:1px solid var(--line);border-radius:6px;padding:5px 9px;font-size:11px;color:var(--muted);white-space:nowrap}.registry-totals{display:flex;gap:0;border-top:1px solid var(--line);padding-top:19px}.registry-totals>div{flex:1;display:flex;flex-direction:column;gap:8px;border-right:1px solid var(--line);padding-left:28px}.registry-totals>div:first-child{padding-left:0}.registry-totals>div:last-child{border:0}.registry-totals strong{font-size:28px;line-height:1.2}.registry-totals span{color:var(--muted);font-size:12px}.registry-toolbar{display:grid;grid-template-columns:1fr 220px;gap:12px;margin-bottom:15px}.registry-device-bar{display:flex;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.registry-device-bar label{font-size:12px;color:var(--muted)}.registry-device-bar select{height:35px;max-width:320px;font-size:12px}.table-wrap{overflow-x:auto;margin:0 -23px}table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}th{background:#f4f5ef;color:var(--muted);font-size:11px;font-weight:500;padding:12px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:17px 14px;border-bottom:1px solid #e4e6df;font-size:12px;vertical-align:top}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}td strong{display:block;font-size:12px;line-height:1.6}td span.small{display:block;margin-top:5px}.tasks-table th:first-child{width:30%}.tasks-table th:nth-child(2){width:14%}.tasks-table th:nth-child(3){width:18%}.tasks-table th:last-child{width:9%}.registry-table th:first-child{width:34%}.registry-table th:nth-child(2){width:26%}.registry-table th:nth-child(3){width:18%}.registry-table th:last-child{width:22%}.uuid{font-family:Consolas,"SFMono-Regular",monospace;font-size:10px;overflow-wrap:anywhere}.badge{display:inline-flex;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:500;line-height:1.4;background:#ebeee7;color:#748074}.badge.running,.badge.preparing{background:#e5efe7;color:#477366}.badge.error{background:#f8e8de;color:var(--red)}.badge.unknown,.badge.draft,.badge.update{background:#f6edda;color:var(--amber)}.badge.success,.badge.ready,.badge.add{background:#e7f0e4;color:#53754a}.badge.archived,.badge.disabled{background:#eeede8;color:#8a8b80}.badge.preserved{background:#e7eee9;color:#47756b}.task-message{font-size:10px;line-height:1.6;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}.row-stop,.row-edit,.row-start{font-size:11px;padding:7px 10px;background:#f9faf4;color:var(--ink);border:1px solid #dbe0d4;border-radius:8px}.row-start{background:#e7eee7;color:#365f50;border-color:#d2dfd3;font-weight:600}.row-actions{display:flex;flex-wrap:wrap;gap:6px}.record-title{display:block;text-align:left;border:0;background:transparent;padding:0;color:var(--ink);white-space:normal;font-size:12px;font-weight:600;line-height:1.65}.record-title:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.record-address{margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}.tags span{font-size:9px;background:#eef0e9;color:#77816f;padding:2px 6px;border-radius:4px}.empty{padding:33px 15px;text-align:center}.empty-symbol{color:var(--accent);font-size:30px;display:block;margin-bottom:10px}.empty p{color:var(--muted);font-size:12px;margin-top:6px}.task-note{padding-top:14px}.pagination{display:flex;justify-content:space-between;align-items:center;padding-top:16px;gap:16px}.pagination>div{display:flex;align-items:center;gap:13px}.pagination button{padding:6px 11px}.device-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:18px 0;gap:16px}.device-row>div{display:flex;flex-direction:column;gap:7px}.device-row strong{font-size:14px}.online{color:var(--accent)}.workbook-box{display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere}.workbook-box strong{font-size:13px}.import-note{margin-top:15px}.file-input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.help-card p{margin:10px 0 17px;max-width:650px}.settings-card>.muted{margin-top:8px}.settings-card form{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;align-items:end;margin:24px 0 4px;max-width:650px}.settings-card label{display:flex;flex-direction:column;gap:9px;font-size:12px}.settings-card input{width:100%}.settings-card form button{justify-self:start;grid-column:span 2;margin-top:6px}.journal-row{display:grid;grid-template-columns:110px 150px 1fr;gap:12px;border-top:1px solid var(--line);padding:14px 0;font-size:11px}.journal-row p{font-size:12px;overflow-wrap:anywhere}.journal-error p{color:var(--red)}footer{display:flex;gap:12px;color:var(--muted);font-size:11px;padding:7px 0 25px}footer a{margin-left:auto}dialog{border:1px solid var(--line);border-radius:20px;padding:31px;max-width:490px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;color:var(--ink);background:var(--main);box-shadow:0 24px 70px #263e2720}dialog::backdrop{background:#25352c66}dialog h2{font-size:24px;letter-spacing:-.6px}dialog .muted{margin-top:12px}dialog .primary{margin:15px 0}.pair-code{font-family:Consolas,monospace;font-size:23px;letter-spacing:1px;text-align:center;padding:20px 10px;margin-top:22px;border:1px dashed #c3d4c1;border-radius:10px;background:#f0f4eb;overflow-wrap:anywhere}#pair-dialog .primary{width:100%}.dialog-close{position:absolute;right:12px;top:12px;background:transparent;color:var(--muted);font-size:24px;padding:2px 9px;line-height:1.2}.subtle-link{display:block;color:var(--accent);font-size:12px;margin-top:18px;text-decoration:underline;text-underline-offset:3px}.record-dialog{max-width:700px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.span-two{grid-column:span 2}.form-grid input,.form-grid textarea,.form-grid select{width:100%}.form-grid .checkbox-label{flex-direction:row;align-items:center;gap:10px;font-weight:400}.checkbox-label input{width:16px;height:16px;accent-color:var(--accent)}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:22px}.dialog-actions .primary{margin:0}.dialog-actions .text-button{margin-right:auto}.conflict-box{background:#f8f0df;border:1px solid #e5d8b9;border-radius:10px;padding:14px;margin-top:15px;font-size:12px;color:#805d2d}.conflict-box .secondary{margin-top:10px;font-size:12px}.record-dialog .notice{margin:17px 0 0}.source-data{font-size:11px;margin-bottom:15px}.source-data summary{cursor:pointer;color:var(--muted)}.source-data p{margin-top:7px;overflow-wrap:anywhere}.import-dialog{max-width:850px}.import-dialog .notice{margin:18px 0 0}.import-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;border:1px solid var(--line);padding:18px;border-radius:12px;margin-top:22px}.import-summary>div{display:flex;flex-direction:column;gap:6px}.import-summary strong{font-size:24px;line-height:1.2}.import-summary span{color:var(--muted);font-size:11px}.import-modes{border:0;padding:0;margin:24px 0 20px}.import-modes legend{font-weight:600;font-size:13px;margin-bottom:11px}.import-modes label{display:flex;gap:11px;padding:10px 0;font-size:12px;cursor:pointer}.import-modes input{height:16px;width:16px;accent-color:var(--accent);margin:3px 0 0}.import-modes label span{display:flex;flex-direction:column;gap:5px}.import-modes small{color:var(--muted);font-size:11px;line-height:1.6}.import-preview-wrap{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:11px}.import-preview th{position:sticky;top:0;border-top:0}.import-preview th:first-child{width:49%}.import-preview th:nth-child(2){width:13%}.import-preview td{padding:12px}.import-preview td:first-child{padding-left:14px}.import-preview th:first-child{padding-left:14px}.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:36px 20px;background-color:#edf1e8;background-image:radial-gradient(ellipse at 15% 15%,transparent 38%,#cbd7c650 38.2%,transparent 38.5%,transparent 43%,#cbd7c650 43.2%,transparent 43.5%,transparent 48%,#cbd7c650 48.2%,transparent 48.5%),radial-gradient(ellipse at 88% 95%,transparent 35%,#cbd7c650 35.2%,transparent 35.5%,transparent 41%,#cbd7c650 41.2%,transparent 41.5%,transparent 47%,#cbd7c650 47.2%,transparent 47.5%)}.login-screen>.brand{margin-bottom:28px;font-size:25px}.login-card{background:var(--main);border:1px solid #dbe1d4;padding:36px;border-radius:24px;width:100%;max-width:440px;box-shadow:0 18px 50px #5365480a}.login-card h1{font-size:30px}.login-card>.muted{margin:14px 0 26px}.login-card label{font-size:12px;font-weight:600}.login-card input{display:block;width:100%;margin:8px 0 15px}.login-card button{width:100%}.error-text{color:var(--red);font-size:12px;margin-top:14px}.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}[hidden]{display:none!important}
.brand{display:inline-flex;align-items:center;gap:9px;line-height:1.2;flex-shrink:0}.brand img{display:block;flex-shrink:0}.login-screen>.brand{gap:11px}.ui-icon{display:block;width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.install-link>.ui-icon{color:var(--accent)}footer{align-items:center}footer>.footer-brand{margin-left:0;font-size:12px;letter-spacing:-.2px;gap:6px}footer>a:not(.brand){margin-left:auto}
.import-changes{margin-top:7px;font-size:10px;color:var(--muted)}.import-changes summary{cursor:pointer;color:var(--accent)}.import-changes p{margin-top:6px;overflow-wrap:anywhere}
@media(min-width:1600px){.shell{padding-top:37px}}
@media(max-width:1200px){.sidebar{width:210px}.shell{margin-left:210px;padding:32px 26px}.registry-table{min-width:790px}.tasks-table{min-width:820px}.stats>div{padding:18px}.stats small{grid-column:span 2}.heading-actions{gap:7px}.heading-actions button{padding:10px 12px;font-size:12px}.start-card form{grid-template-columns:1fr 1fr}.start-card form .wide{grid-column:span 2}.start-card form button{height:42px}.registry-device-bar .small{width:100%}}
@media(max-width:850px){.sidebar{position:sticky;top:66px;bottom:auto;width:100%;height:auto;padding:8px 14px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}.sidebar>.nav-label,.sidebar nav>.nav-label,.sidebar .install-link,.sidebar-note{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px}.sidebar nav>a{white-space:nowrap;margin:0;min-height:37px;font-size:12px;padding:8px 10px;gap:8px}.sidebar nav>a>span{font-size:16px}.sidebar nav>a>small{font-size:9px}.shell{margin-left:0;padding:28px 22px}.app-header{padding:0 22px}.registry-toolbar{grid-template-columns:1fr 190px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.section-heading{align-items:start}}
@media(max-width:600px){h1{font-size:30px}.app-header{height:60px;padding:0 17px}.brand{font-size:21px}.header-right{gap:10px}.live-status{font-size:10px}.sidebar{top:60px;padding:7px 10px}.sidebar nav>a>small{display:none}.shell{padding:24px 16px 10px}.page-heading{align-items:start;gap:12px;margin-bottom:22px}.page-heading .danger-outline{font-size:10px;padding:9px 10px}.page-heading .muted{font-size:12px}.stats{gap:8px}.stats>div{padding:15px 12px;display:flex;flex-direction:column;gap:9px}.stats span{font-size:10px;min-height:25px}.stats strong{font-size:27px}.stats small{display:none}.card{padding:19px 16px;border-radius:14px}.attention-card{align-items:start;flex-direction:column;gap:14px}.start-card form{grid-template-columns:1fr}.start-card form .wide{grid-column:auto}.start-card form button{width:100%;margin-top:2px}.section-heading{gap:12px;flex-wrap:wrap}.section-heading h2{font-size:17px}.section-heading p{font-size:12px}.heading-actions{justify-content:start;width:100%}.registry-toolbar{grid-template-columns:1fr}.registry-toolbar select{width:100%}.registry-device-bar{gap:9px}.registry-device-bar select{max-width:100%;flex:1}.registry-totals>div{padding-left:15px}.registry-totals span{font-size:11px}.registry-totals strong{font-size:26px}.table-wrap{margin:0 -16px}.registry-table,.tasks-table{min-width:0;display:block}.registry-table thead,.tasks-table thead{display:none}.registry-table tbody,.tasks-table tbody{display:block}.registry-table tr,.tasks-table tr{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--line);padding:15px 16px;gap:8px}.registry-table td,.tasks-table td{display:block;border:0;width:auto!important;padding:0!important;min-width:0}.registry-table td:first-child,.tasks-table td:first-child{grid-column:span 2}.registry-table td:nth-child(2),.tasks-table td:nth-child(2),.tasks-table td:nth-child(3){grid-column:span 2}.registry-table td:nth-child(2){padding:2px 0 7px!important}.registry-table td:nth-child(3){align-self:center}.registry-table td:last-child{align-self:end}.registry-table .row-actions{justify-content:flex-end}.tasks-table .device-cell{font-size:10px;color:var(--muted)}.tasks-table .device-cell:before{content:'Устройство · '}.tasks-table td:nth-child(3){padding-top:4px!important}.tasks-table .task-message{font-size:11px}.tasks-table .row-stop{font-size:12px}.registry-table .record-title{font-size:13px}.registry-table .uuid{font-size:10px}.registry-table .tags{margin-top:6px}.pagination{gap:8px}.pagination>div{gap:8px}.registry-summary{font-size:12px}.settings-card form{gap:15px;grid-template-columns:1fr}.settings-card form button{grid-column:auto;justify-self:stretch}.journal-row{grid-template-columns:100px 1fr;gap:8px}.journal-row p{grid-column:span 2}.login-card{padding:28px}.pair-code{font-size:18px}dialog{padding:25px 20px;border-radius:17px;max-height:calc(100dvh - 24px)}dialog h2{font-size:22px}.form-grid{grid-template-columns:1fr;gap:14px}.form-grid .span-two{grid-column:auto}.dialog-actions{gap:7px;flex-wrap:wrap}.dialog-actions button{font-size:12px;padding:10px 12px}.dialog-actions .text-button{margin-right:auto}.import-summary{gap:8px;padding:14px}.import-summary strong{font-size:23px}.import-summary span{font-size:9px}.import-preview{min-width:560px}.import-dialog .dialog-actions{justify-content:space-between}.import-dialog .dialog-actions button{flex:1}.import-dialog #import-retry{flex-basis:100%}footer{font-size:10px;flex-wrap:wrap}footer a{width:100%;margin-left:0}}
