:root{--bg:#f7f8fa;--white:#fff;--line:#e7e9ee;--text:#202633;--muted:#788193;--accent:#2458dd;--accent-hover:#1649ce;--soft:#f0f3f8;--green:#207e56;--green-soft:#eaf7ef;--red:#ba4d48;--shadow:0 3px 10px rgba(26,40,70,.025);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.app{display:flex;min-height:100vh}.sidebar{width:249px;background:#fff;border-right:1px solid var(--line);flex:0 0 249px;display:flex;flex-direction:column;padding:29px 17px 20px;min-height:100vh}.brand{font-size:21px;font-weight:750;letter-spacing:-.8px;display:flex;align-items:center;gap:11px;padding:0 10px 43px}.brand-icon{border-radius:10px;background:#2359dc;color:#fff;font-size:25px;display:grid;place-items:center;width:35px;height:35px;font-weight:400}.brand-accent{color:var(--accent)}.side-label{font-size:10px;letter-spacing:1.2px;color:#98a0ae;font-weight:750;margin:0 12px 13px}.nav-item{display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:11px;padding:13px 13px;width:100%;background:transparent;text-align:left;margin:2px 0;font-size:14px;color:#4f596b}.nav-item .nav-icon{font-size:17px;width:20px;text-align:center;color:#929cab}.nav-item .nav-count{margin-left:auto;border-radius:7px;background:#eef1f6;padding:3px 7px;font-size:12px;font-variant-numeric:tabular-nums}.nav-item:hover{background:#f6f8fd}.nav-item.active{color:#1d53d8;background:#eef3ff;font-weight:650}.nav-item.active .nav-count{background:#dfe8ff}.nav-item.active .nav-icon{color:#2458dd}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:21px 9px 3px}.local-dot{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:#364253}.dot{width:8px;height:8px;border-radius:100%;background:#1da674;box-shadow:0 0 0 3px #e9f8f1}.sidebar-foot p{color:#929baa;line-height:1.5;font-size:11px;margin:10px 0}.workspace{flex:1;min-width:0}.topbar{height:75px;background:var(--white);border-bottom:1px solid var(--line);padding:0 45px;display:flex;align-items:center;justify-content:flex-end}.topbar-actions{display:flex;gap:28px}.light-link{color:#687486;font-size:13px;font-weight:550}.light-link:hover{color:var(--accent)}.mobile-brand{display:none}.main{max-width:1280px;margin:auto;padding:43px 48px 65px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;font-weight:800;color:#8c98aa;letter-spacing:1.35px;margin:0 0 10px}h1{font-size:29px;font-weight:750;letter-spacing:-1px;margin:0 0 8px}.subtitle{font-size:13px;color:var(--muted);margin:0;max-width:650px;line-height:1.55}.primary{background:var(--accent);color:white;border:1px solid var(--accent);font-size:13px;font-weight:660;border-radius:10px;padding:12px 19px;white-space:nowrap;box-shadow:0 5px 12px #2458dd17}.primary:hover{background:var(--accent-hover)}.plus{font-size:20px;font-weight:400;vertical-align:-1px;margin-right:4px}.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:39px}.summary-card{border:1px solid var(--line);background:var(--white);border-radius:12px;padding:20px 22px;min-height:105px;box-shadow:var(--shadow)}.summary-label{color:#7c8797;font-size:12px;font-weight:500}.summary-value{font-size:31px;font-weight:730;letter-spacing:-1px;margin:9px 0 0;font-variant-numeric:tabular-nums;line-height:1}.summary-value.blue{color:var(--accent)}.summary-sub{font-size:11px;color:#a0a9b4;margin:8px 0 0}.shelves{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.shelf-title-row{padding:25px 28px 17px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}.shelf-title-row h2{font-size:17px;letter-spacing:-.3px;margin:0}.hint{font-size:12px;color:#98a1ae}.tools{display:flex;gap:11px;padding:0 28px 20px}.search-wrap{position:relative;flex:1}.search-wrap input{background:#fafbfe;border:1px solid #e3e8f0;border-radius:9px;padding:11px 12px 11px 39px;width:100%;font-size:13px;outline:none;color:var(--text)}.search-wrap input:focus{border-color:#8aacfa;box-shadow:0 0 0 3px #dce6fc70}.search-wrap input::placeholder{color:#a3acba}.search-icon{position:absolute;top:4px;left:13px;font-size:28px;color:#9ea8b8;line-height:33px}.soft-button{border:1px solid var(--line);background:white;color:#687589;border-radius:9px;font-size:12px;padding:0 15px;white-space:nowrap}.soft-button:hover{background:#f7f9fe}.content{border-top:1px solid var(--line)}.loading,.empty{padding:35px 25px;text-align:center;color:var(--muted);font-size:13px}.model-head,.variant-head{display:flex;align-items:center;gap:12px;padding:19px 26px;width:100%;border:0;background:transparent;text-align:left;color:var(--text)}.model-head:hover{background:#fbfcff}.model-block+.model-block{border-top:1px solid var(--line)}.caret{font-size:17px;color:#91a0b0;flex:0 0 15px}.model-head .category-icon{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:10px;background:#f1f4fa;color:#6480aa;font-size:17px}.model-label{font-size:14px;font-weight:660}.model-sub{display:block;font-size:11px;color:#9ba5b5;font-weight:400;margin-top:4px}.count-side{margin-left:auto;text-align:right;display:flex;align-items:center;gap:13px}.model-number{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}.count-caption{font-size:11px;color:#9aa4b1;font-weight:400}.variants{padding:0px 26px 18px 72px}.variant-block{border:1px solid #e8ebf2;border-radius:10px;overflow:hidden;margin-bottom:9px}.variant-head{padding:13px 16px;background:#fdfdff}.variant-head:hover{background:#f8faff}.variant-name{font-weight:650;font-size:13px}.variant-meta{display:block;font-size:11px;color:#9ca6b5;margin-top:3px}.variant-count{margin-left:auto;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}.variant-body{border-top:1px solid var(--line);padding:0px 14px 13px}.table-overflow{overflow-x:auto}.drone-table{width:100%;border-collapse:collapse;min-width:580px}.drone-table th{font-size:10px;letter-spacing:.1px;font-weight:650;text-align:left;color:#9ba5b4;padding:13px 9px;border-bottom:1px solid var(--line);white-space:nowrap}.drone-table td{padding:13px 9px;border-bottom:1px solid #f0f1f5;font-size:12px;vertical-align:top}.drone-table tr:last-child td{border-bottom:0}.serial{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;font-weight:750;letter-spacing:.3px}.description{color:#6e7a8a;max-width:260px;line-height:1.55}.muted{color:#94a0ae}.status{font-size:11px;color:#188057;background:#eaf8f1;border-radius:5px;padding:3px 7px;display:inline-block;white-space:nowrap}.status.sold{background:#eaecf0;color:#9299a5}.row-action{background:none;border:0;padding:4px 5px;color:#4b6dc1;font-size:11px;white-space:nowrap}.row-action:hover{text-decoration:underline}.row-action.danger{color:#ad6664}.row-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.archive-bar{margin-top:8px;padding:10px 9px;width:100%;border:1px dashed #dbe0e9;color:#768393;background:#fafbfc;border-radius:8px;font-size:12px;text-align:left;display:flex;gap:8px;align-items:center}.archive-bar:hover{background:#f2f5fa}.archive-count{margin-left:auto}.archive-list{margin:9px 1px 0;border:1px solid #edf0f3;border-radius:8px;overflow:hidden;background:#f8f9fb}.archive-list .drone-table td{color:#97a0ad}.archive-list .serial{color:#8f97a4}.archive-list .description{color:#98a1ae}.archive-list .drone-table th{background:#f3f5f8}.archive-list .drone-table tr{background:#f9fafb}.archive-empty{font-size:12px;padding:16px 6px;color:#9ba4b2}.footnote{color:#a3adba;text-align:center;font-size:11px;margin:24px}.review-tag{background:#fff5db;color:#9e7522;font-size:10px;border-radius:5px;padding:3px 5px;margin-left:5px;white-space:nowrap}.search-results-header{padding:18px 25px;color:#697689;font-size:13px;background:#fafcff;border-bottom:1px solid var(--line)}.search-result-group{padding:6px 20px 12px}.search-result-group h3{font-size:12px;color:#7d8898;padding:7px}.review-banner{background:#fff9ed;padding:12px 22px;border-bottom:1px solid #f4ead3;color:#9d7321;font-size:12px;line-height:1.6}.review-banner strong{color:#795715}.mini-note{font-size:11px;color:#9aa6b6;margin:9px 0}.modal{border:1px solid var(--line);border-radius:16px;padding:0;width:min(560px,calc(100vw - 30px));max-height:calc(100dvh - 42px);background:white;box-shadow:0 16px 60px #27344840;color:var(--text)}.modal::backdrop{background:#121d31aa;backdrop-filter:blur(2px)}.modal-header{padding:22px 25px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-header h3{font-size:18px;letter-spacing:-.4px;margin:0}.close{background:transparent;border:0;color:#8893a3;font-size:25px;line-height:1}.modal-inner{padding:22px 25px}.field{margin-bottom:14px}.field label{font-size:12px;font-weight:620;color:#616e7e;display:block;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid #dee4ed;border-radius:8px;padding:11px 12px;font-size:13px;outline:0;color:#293143;background:white}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6691ea;box-shadow:0 0 0 3px #eaf0ff}.field textarea{resize:vertical;min-height:70px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid>.field{margin-bottom:0}.form-grid{margin-bottom:14px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:5px}.secondary{border:1px solid #dce1e9;border-radius:9px;padding:11px 18px;background:white;color:#687688;font-weight:600;font-size:12px}.secondary:hover{background:#f5f7fa}.danger-button{border:0;border-radius:9px;padding:11px 18px;background:#a64948;color:white;font-weight:600;font-size:12px}.danger-button:hover{background:#963735}.error{padding:10px 12px;border-radius:8px;color:#9a3131;background:#fff0ef;margin-bottom:13px;display:none;font-size:12px}.help-text{font-size:12px;color:#9aa4b0;margin-top:7px;line-height:1.5}.toast{position:fixed;right:20px;bottom:20px;background:#28354b;color:white;border-radius:10px;padding:14px 18px;font-size:13px;box-shadow:0 8px 25px #27344835;display:none;z-index:20;max-width:380px}.toast.visible{display:block}.toast.error-toast{background:#963b38}.history-event{border-bottom:1px solid var(--line);padding:11px 0}.history-event:last-child{border:0}.history-title{font-weight:650;font-size:13px}.history-date{font-size:11px;color:#9aa4b3;margin-top:3px}.history-detail{font-size:12px;color:#748091;margin-top:6px;overflow-wrap:anywhere;line-height:1.45}
@media (max-width:900px){.sidebar{width:206px;flex-basis:206px}.main{padding:31px 25px}.topbar{padding:0 27px}.variants{padding-left:35px}.page-heading{align-items:flex-start}.summary{gap:10px}.summary-card{padding:16px 14px}}
@media (max-width:680px){.app{display:block}.sidebar{min-height:auto;width:auto;padding:12px 14px;border-right:0;border-bottom:1px solid var(--line);position:static}.sidebar .brand,.side-label,.sidebar-foot{display:none}.sidebar nav{display:flex;gap:6px;overflow:auto}.nav-item{padding:9px;min-width:max-content;font-size:12px}.nav-item .nav-icon{display:none}.topbar{height:48px;padding:0 16px;justify-content:space-between}.topbar-actions{gap:12px}.light-link{font-size:11px}.mobile-brand{display:block;font-size:13px;font-weight:750;color:#2b5ad2}.main{padding:25px 13px 35px}.page-heading{flex-wrap:wrap;gap:14px;margin-bottom:22px}.page-heading h1{font-size:25px}.subtitle{font-size:12px}.summary{gap:7px;margin-bottom:22px}.summary-card{min-height:78px;padding:12px 9px}.summary-label{font-size:10px}.summary-value{font-size:23px;margin-top:6px}.summary-sub{display:none}.shelf-title-row{padding:20px 15px 16px}.shelf-title-row h2{font-size:15px}.hint{font-size:10px;text-align:right}.tools{padding:0 15px 15px;flex-wrap:wrap}.tools .soft-button{min-height:33px}.model-head{padding:16px 15px}.variants{padding:0px 10px 12px 26px}.variant-head{padding:12px 10px}.variant-body{padding:0px 9px 10px}.count-caption{display:none}.model-number{font-size:18px}.modal-inner{padding:15px}.modal-header{padding:18px 15px}.form-grid{grid-template-columns:1fr;gap:0}.form-grid>.field{margin-bottom:14px}}

/* v0.2. Compact counters stay beside category names, rather than on the far right. */
.model-head,.variant-head{justify-content:flex-start;}
.model-head .count-side{margin-left:6px;flex:0 0 auto;text-align:left;gap:6px;border-radius:9px;padding:5px 9px;background:#eaf0ff;}
.model-head .model-number{font-size:16px;line-height:1.1;color:#2551c6;}
.model-head .count-caption{font-size:11px;color:#5875b0;}
.variant-head .variant-count{margin-left:6px;flex:0 0 auto;padding:5px 9px;border-radius:8px;background:#eaf0ff;color:#2551c6;font-size:13px;white-space:nowrap;}
.variant-head .count-caption{font-size:11px;color:#5875b0;}
.theme-toggle{appearance:none;background:transparent;border:1px solid var(--line);border-radius:9px;padding:8px 12px;white-space:nowrap;line-height:1.3;}
.theme-toggle:hover{background:var(--soft);}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
@media (max-width:680px){.model-head .count-caption{display:none}.variant-head .count-caption{display:none}.theme-toggle{font-size:11px;padding:6px 8px}.topbar-actions{align-items:center;gap:7px}.topbar-actions .light-link{font-size:10px;}}

/* Dark graphite theme. Light styling above remains available via the toggle. */
html[data-theme="dark"]{
 color-scheme:dark;
 --bg:#131820;--white:#1c2531;--line:#354253;--text:#e9edf4;--muted:#acb8ca;
 --accent:#96b5ff;--accent-hover:#739cff;--soft:#283545;--green:#8bdfb0;
 --green-soft:#1c3a31;--red:#ffaaa5;--shadow:0 6px 16px #080e1860;
 background:var(--bg);color:var(--text);
}
html[data-theme="dark"] body{background:var(--bg);color:var(--text);}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .shelves,html[data-theme="dark"] .summary-card,html[data-theme="dark"] .modal{background:var(--white);color:var(--text);border-color:var(--line);}
html[data-theme="dark"] .brand-icon{background:#5d82df;color:#fff;}
html[data-theme="dark"] .brand-accent,html[data-theme="dark"] .mobile-brand{color:#9bb9ff;}
html[data-theme="dark"] .side-label,html[data-theme="dark"] .eyebrow{color:#a9b6c8;}
html[data-theme="dark"] .nav-item{color:#c1ccdc;}
html[data-theme="dark"] .nav-item .nav-icon{color:#a6b5ca;}
html[data-theme="dark"] .nav-item .nav-count{background:#334257;color:#dce5f4;}
html[data-theme="dark"] .nav-item:hover{background:#273647;}
html[data-theme="dark"] .nav-item.active{background:#2b3f63;color:#bad1ff;}
html[data-theme="dark"] .nav-item.active .nav-icon{color:#b7ceff;}
html[data-theme="dark"] .nav-item.active .nav-count{background:#395583;color:#eef3ff;}
html[data-theme="dark"] .local-dot{color:#cbd7e6;}
html[data-theme="dark"] .dot{background:#61ca91;box-shadow:0 0 0 3px #254436;}
html[data-theme="dark"] .sidebar-foot p{color:#a3b1c2;}
html[data-theme="dark"] .light-link{color:#c3cfe1;}
html[data-theme="dark"] .light-link:hover{color:#d4e3ff;}
html[data-theme="dark"] .summary-label{color:#b7c3d3;}
html[data-theme="dark"] .summary-sub{color:#a4b1c3;}
html[data-theme="dark"] .summary-value.blue{color:#9bbaff;}
html[data-theme="dark"] .hint,html[data-theme="dark"] .model-sub,html[data-theme="dark"] .variant-meta{color:#9caac0;}
html[data-theme="dark"] .search-wrap input{background:#151e29;border-color:#435267;color:var(--text);}
html[data-theme="dark"] .search-wrap input::placeholder{color:#9eacbd;}
html[data-theme="dark"] .search-icon{color:#a7b4c5;}
html[data-theme="dark"] .search-wrap input:focus{border-color:#739dff;box-shadow:0 0 0 3px #4662a355;}
html[data-theme="dark"] .soft-button,html[data-theme="dark"] .secondary{background:#263343;color:#d0d9e8;border-color:#46566b;}
html[data-theme="dark"] .soft-button:hover,html[data-theme="dark"] .secondary:hover{background:#32435a;}
html[data-theme="dark"] .model-head:hover{background:#253141;}
html[data-theme="dark"] .model-head .category-icon{background:#2e425c;color:#aac8f4;}
html[data-theme="dark"] .caret{color:#aebed5;}
html[data-theme="dark"] .model-head .count-side,html[data-theme="dark"] .variant-head .variant-count{background:#304767;color:#d9e5ff;}
html[data-theme="dark"] .model-head .model-number{color:#dce7ff;}
html[data-theme="dark"] .model-head .count-caption,html[data-theme="dark"] .variant-head .count-caption{color:#b4caef;}
html[data-theme="dark"] .variant-block{border-color:#3c4a5e;background:#1a2431;}
html[data-theme="dark"] .variant-head{background:#212d3a;color:#edf1f8;}
html[data-theme="dark"] .variant-head:hover{background:#2b3b4c;}
html[data-theme="dark"] .drone-table th{color:#b0bed0;border-color:#344456;}
html[data-theme="dark"] .drone-table td{border-color:#303c4e;}
html[data-theme="dark"] .description{color:#b8c5d6;}
html[data-theme="dark"] .muted{color:#a5b1c2;}
html[data-theme="dark"] .status{background:#244a39;color:#a2eec4;}
html[data-theme="dark"] .status.sold{background:#35404d;color:#a7b2c3;}
html[data-theme="dark"] .row-action{color:#a8c2ff;}
html[data-theme="dark"] .row-action.danger{color:#ffada9;}
html[data-theme="dark"] .archive-bar{background:#222e3b;color:#bdcadd;border-color:#526077;}
html[data-theme="dark"] .archive-bar:hover{background:#2d3a4b;}
html[data-theme="dark"] .archive-list{background:#19212c;border-color:#374454;}
html[data-theme="dark"] .archive-list .drone-table th{background:#232d39;color:#94a4b9;}
html[data-theme="dark"] .archive-list .drone-table tr{background:#1b2530;}
html[data-theme="dark"] .archive-list .drone-table td,html[data-theme="dark"] .archive-list .serial,html[data-theme="dark"] .archive-list .description{color:#8e9bad;}
html[data-theme="dark"] .archive-empty,html[data-theme="dark"] .footnote,html[data-theme="dark"] .mini-note{color:#9ba9bb;}
html[data-theme="dark"] .review-tag{background:#4a3b22;color:#f0c77d;}
html[data-theme="dark"] .search-results-header{background:#24303f;color:#c3d0e1;}
html[data-theme="dark"] .search-result-group h3{color:#b3c0d3;}
html[data-theme="dark"] .review-banner{background:#3a3124;color:#efd19c;border-color:#675235;}
html[data-theme="dark"] .review-banner strong{color:#ffe1a6;}
html[data-theme="dark"] .modal{box-shadow:0 18px 70px #050911bb;}
html[data-theme="dark"] .modal::backdrop{background:#050910cc;}
html[data-theme="dark"] .close{color:#d1d9e8;}
html[data-theme="dark"] .field label{color:#d1dbe8;}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea{background:#151e29;color:#ecf1f8;border-color:#526177;}
html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus{border-color:#82a9ff;box-shadow:0 0 0 3px #37558b99;}
html[data-theme="dark"] .error{background:#4b292d;color:#ffbfbd;}
html[data-theme="dark"] .help-text,html[data-theme="dark"] .history-date{color:#b2c0d1;}
html[data-theme="dark"] .history-detail{color:#bfcede;}
html[data-theme="dark"] .toast{background:#314461;color:#fff;box-shadow:0 8px 26px #080e18ae;}
html[data-theme="dark"] .toast.error-toast{background:#71393c;}
html[data-theme="dark"] .primary{background:#416dc8;border-color:#6389e0;color:#fff;box-shadow:0 4px 12px #080e1840;}
html[data-theme="dark"] .primary:hover{background:#5480db;}

html[data-theme="light"]{color-scheme:light;}

/* v0.3: минимальный склад без дашборда и общих итогов */
.topbar{height:58px;padding:0 35px}
.topbar-actions{gap:14px;align-items:center}
.main{max-width:1240px;padding:27px 35px 45px}
.page-heading{margin-bottom:21px}
.page-heading h1{margin:0}
.shelf-title-row{padding:19px 24px 13px}
.tools{padding:0 24px 16px}
.model-head{padding:16px 23px}
.model-head .category-icon{width:30px;height:30px;flex-basis:30px}
.variant-head{padding:12px 15px}
.variants{padding-left:61px}
.utility-menu{position:relative;z-index:5}
.utility-menu>summary{display:block;cursor:pointer;list-style:none;padding:8px 11px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:12px;user-select:none}
.utility-menu>summary::-webkit-details-marker{display:none}
.utility-menu[open]>summary,.utility-menu>summary:hover{background:var(--soft);color:var(--text)}
.utility-panel{position:absolute;right:0;top:calc(100% + 7px);width:215px;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.2);padding:6px;background:var(--white);display:grid;gap:2px}
.utility-panel>a,.utility-panel>button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:11px 12px;font-size:12px;cursor:pointer;border-radius:6px}
.utility-panel>a:hover,.utility-panel>button:hover{background:var(--soft)}
.empty-model-toggle{display:block;width:100%;border:0;border-top:1px solid var(--line);background:transparent;color:var(--muted);text-align:left;padding:15px 25px;font-size:12px}
.empty-model-toggle:hover{color:var(--text);background:var(--soft)}
html[data-theme="dark"] .utility-menu>summary{border-color:#45566d;color:#c4d0e2}
html[data-theme="dark"] .utility-menu[open]>summary,html[data-theme="dark"] .utility-menu>summary:hover,html[data-theme="dark"] .utility-panel>a:hover,html[data-theme="dark"] .utility-panel>button:hover{background:#2b3d51}
html[data-theme="dark"] .utility-panel{background:#202b39;border-color:#435267}
html[data-theme="dark"] .utility-panel>a,html[data-theme="dark"] .utility-panel>button{color:#dce6f5}
html[data-theme="dark"] .empty-model-toggle{border-color:#364659;color:#a6b8d0}
html[data-theme="dark"] .empty-model-toggle:hover{background:#253547;color:#e3ecfb}
@media(max-width:900px){.main{padding:26px 21px}.topbar{padding:0 21px}.variants{padding-left:36px}}
@media(max-width:680px){.topbar{height:48px;padding:0 14px}.main{padding:20px 12px 28px}.page-heading{margin-bottom:16px}.page-heading h1{font-size:25px}.shelf-title-row{padding:17px 14px 13px}.tools{padding:0 14px 15px}.model-head{padding:13px 12px}.variants{padding:0px 9px 10px 24px}.utility-panel{right:0}}


/* v0.4: пошаговые ящики. На экране только один уровень. */
.sidebar{position:sticky;top:0;height:100vh;min-height:100vh;z-index:3}
.sidebar-foot p{display:none}
.nav-item{min-height:52px;font-size:15px;font-weight:600}
.nav-item .nav-count{display:none}
.new-shelves{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
.new-shelves .content{border-top:0}
.main{max-width:1330px;padding:43px 45px 70px}
.page-heading{margin-bottom:30px;align-items:center}
.page-heading h1{font-size:clamp(26px,2.2vw,36px);letter-spacing:-.8px;line-height:1.25;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.title-count{display:inline-flex;align-items:center;font-size:16px;line-height:1.25;color:var(--text);background:var(--soft);padding:8px 12px;border:1px solid var(--line);border-radius:9px;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:0}
.back-button{margin:0 0 20px;background:transparent;color:var(--accent);border:0;padding:9px 0;font-size:15px;font-weight:700;display:inline-flex;gap:10px;align-items:center}
.back-button[hidden]{display:none}
.back-button:hover{text-decoration:underline}
.drawer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.drawer-card{display:flex;flex-direction:column;align-items:flex-start;gap:20px;position:relative;min-height:205px;min-width:0;padding:24px;border:1px solid var(--line);border-radius:17px;background:var(--white);color:var(--text);text-align:left;box-shadow:var(--shadow);transition:background .15s,border-color .15s,transform .15s}
.drawer-card:hover{transform:translateY(-2px);border-color:#839fda;box-shadow:0 9px 24px #080e1822}
.drawer-card:focus-visible,.back-button:focus-visible,.nav-item:focus-visible{outline:3px solid #79a7ff;outline-offset:3px}
.drawer-icon{display:grid;place-items:center;background:var(--soft);color:var(--accent);width:54px;height:54px;font-size:25px;line-height:1;border-radius:13px}
.drawer-info{display:flex;flex-wrap:wrap;align-items:center;gap:9px 12px;min-width:0;padding-right:16px}
.drawer-label{font-size:clamp(18px,1.55vw,23px);font-weight:750;line-height:1.25;letter-spacing:-.35px;overflow-wrap:anywhere}
.drawer-count{background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:6px 10px;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.25}
.drawer-count small{font-size:13px;font-weight:500;color:var(--muted)}
.drawer-arrow{position:absolute;right:20px;top:22px;font-size:29px;color:var(--muted);line-height:1}
.search-trigger{background:transparent;border:0;padding:9px 12px;border-radius:9px;white-space:nowrap;font-size:14px}
.search-trigger:hover,.search-trigger[aria-pressed="true"]{background:var(--soft);color:var(--text)}
.search-panel{margin-bottom:24px}
.search-panel[hidden]{display:none}
.search-panel .search-wrap{max-width:700px}
.search-panel .search-wrap input{font-size:16px;padding:15px 15px 15px 44px}
.search-panel .search-icon{top:8px;left:14px}
.inventory-page{background:var(--white);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}
.inventory-table{min-width:640px}
.inventory-table td{font-size:14px;padding:19px 20px;vertical-align:middle}
.inventory-table th{font-size:11px;padding:17px 20px}
.inventory-table .serial{font-size:15px}
.inventory-table .description{max-width:440px;display:inline-block;overflow-wrap:anywhere;color:var(--text)}
.inventory-table .row-action{font-size:13px;padding:8px 9px;font-weight:650}
.inventory-table .row-actions{flex-wrap:nowrap}
.inventory-table .right{text-align:right}
.drawer-archive-toggle{padding:18px 22px;border-radius:0;margin-top:0;border-left:0;border-right:0;border-bottom:0;border-top:1px solid var(--line);font-size:15px;font-weight:600;gap:11px}
.drawer-archive-toggle strong{font-size:15px;font-weight:750}
.drawer-archive-list{border:0;border-top:1px solid var(--line);margin:0;border-radius:0}
.sold-record td,.sold-record .serial,.sold-record .description{color:var(--muted)!important}
.inventory-page .empty{padding:36px 18px;text-align:left;font-size:15px}
.search-result-group{background:var(--white);border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:12px}
.search-results-header{border:1px solid var(--line);border-radius:10px;background:var(--white)}
html[data-theme="dark"] .drawer-card{background:#1e2835;border-color:#3b495c;box-shadow:none}
html[data-theme="dark"] .drawer-card:hover{background:#263549;border-color:#7299e9;box-shadow:0 12px 26px #080d1766}
html[data-theme="dark"] .drawer-icon,html[data-theme="dark"] .drawer-count,html[data-theme="dark"] .title-count{background:#304563;border-color:#425c82;color:#ebf2ff}
html[data-theme="dark"] .drawer-icon{color:#bdd4ff}
html[data-theme="dark"] .drawer-count small{color:#c8d8ee}
html[data-theme="dark"] .inventory-page{background:#1e2835;border-color:#3b495c}
html[data-theme="dark"] .drawer-archive-toggle{background:#202d3c;border-color:#3b495c;color:#d3e1f4}
html[data-theme="dark"] .drawer-archive-toggle:hover{background:#2c3d51}
html[data-theme="dark"] .search-result-group{background:#1e2835;border-color:#3b495c}
html[data-theme="dark"] .search-results-header{background:#202d3c;border-color:#3b495c}
html[data-theme="dark"] .sold-record td,html[data-theme="dark"] .sold-record .serial,html[data-theme="dark"] .sold-record .description{color:#8e9bad!important}
@media (max-width:1100px){.drawer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:32px 25px 55px}}
@media (max-width:680px){
 .app{display:block}
 .sidebar{position:sticky;top:0;height:auto;min-height:0;padding:10px 12px;z-index:8;border-right:0;border-bottom:1px solid var(--line)}
 .sidebar .brand,.sidebar .side-label,.sidebar .sidebar-foot{display:none}
 .sidebar nav{display:flex;gap:6px;overflow:auto}
 .nav-item{min-height:42px;padding:10px 12px;min-width:max-content;font-size:12px}
 .nav-item .nav-icon{display:none}
 .topbar{height:45px;padding:0 13px}
 .topbar-actions{gap:7px}
 .search-trigger{font-size:12px}
 .main{padding:23px 14px 40px}
 .page-heading{gap:16px;margin-bottom:24px}
 .page-heading h1{font-size:25px}
 .page-heading .primary{padding:10px 12px;font-size:12px}
 .drawer-grid{grid-template-columns:1fr;gap:12px}
 .drawer-card{min-height:124px;padding:17px 18px;gap:16px}
 .drawer-icon{height:35px;width:35px;font-size:19px;border-radius:9px}
 .drawer-label{font-size:20px}
 .drawer-count{font-size:18px}
 .drawer-arrow{top:14px}
 .back-button{margin-bottom:12px}
 .inventory-table{min-width:590px}
 .inventory-table td{padding:15px 12px}
 .inventory-table th{padding:13px 12px}
}

/* v0.5: more explicit batch import feedback. */
.batch-count{margin-top:10px;font-size:14px;line-height:1.4;color:var(--muted);font-weight:600}
.batch-count.batch-ok{color:#8ed4ad}
.batch-count.batch-warning{color:#ffc06f}
button[type=submit]:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.25)}
html[data-theme=light] .batch-count.batch-ok{color:#187d43}
html[data-theme=light] .batch-count.batch-warning{color:#995400}

/* v0.6: журнал движения, версия склада и время изменения. */
.history-label{margin-top:26px}
.last-change{margin-right:auto;color:var(--muted);font-size:12px;font-weight:550;white-space:nowrap}
.last-change[hidden],#add-button[hidden]{display:none!important}
.journal-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:900px}
.journal-field label,.version-filter label{display:block;color:var(--muted);font-size:12px;font-weight:650;margin-bottom:7px}
.journal-field input,.journal-field select,.version-filter input{display:block;width:100%;height:45px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--text);padding:10px 13px;color-scheme:inherit}
.quick-days{display:flex;gap:10px;margin:15px 0 23px;flex-wrap:wrap}
.quick-days button{background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:9px 15px;font-size:13px;font-weight:600}
.quick-days button:hover{border-color:var(--accent)}
.day-overview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.day-overview span{display:inline-flex;gap:10px;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:12px 17px;color:var(--muted);font-size:14px}
.day-overview strong{color:var(--text);font-size:19px}
.day-block{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:20px 23px;margin-bottom:14px}
.day-block>h2{display:flex;gap:13px;align-items:center;flex-wrap:wrap;font-size:21px;margin:0 0 17px}
.day-block>h2 span{font-weight:500;color:var(--muted);font-size:13px}
.day-warehouse{padding:12px 0;border-top:1px solid var(--line)}
.day-warehouse h3{font-size:16px;margin:0 0 13px}
.day-section{margin-bottom:16px}
.day-section-title{color:var(--muted);font-size:12px!important;text-transform:uppercase;letter-spacing:.4px;margin:10px 0!important}
.movement{margin:7px 0;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.movement summary{display:flex;justify-content:space-between;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:14px 15px;font-size:14px}
.movement summary::-webkit-details-marker{display:none}
.movement summary::before{content:'›';color:var(--muted);font-size:21px;margin-right:6px;line-height:0;transform:translateY(-1px)}
.movement[open] summary::before{content:'⌄'}
.movement summary span{margin-right:auto}
.movement summary strong{white-space:nowrap;font-size:15px}
.movement summary:hover,.movement[open] summary{background:var(--soft)}
.movement-list{padding:5px 15px 12px;border-top:1px solid var(--line)}
.movement-record{display:flex;gap:16px;padding:10px 5px;border-bottom:1px solid var(--line);font-size:13px;align-items:baseline}
.movement-record:last-child{border-bottom:0}
.movement-record strong{font-family:ui-monospace,Consolas,monospace;min-width:105px}
.movement-record span{color:var(--muted);overflow-wrap:anywhere}
.journal-hint{font-size:12px;line-height:1.5;color:var(--muted);margin-top:20px}
.version-layout{display:grid;grid-template-columns:minmax(240px,330px) minmax(0,1fr);gap:18px}
.version-history,.version-preview{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:15px}
.version-preview{padding:23px;min-height:330px}
.version-preview h2{font-size:19px;margin:0 0 6px}
.version-filter{display:grid;gap:8px}
.version-filter button{padding:7px 12px;justify-self:start}
.version-scroll{overflow:auto;max-height:540px;margin-top:16px}
.version-entry{width:100%;text-align:left;background:transparent;color:var(--text);border:1px solid transparent;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:5px}
.version-entry strong{font-size:14px}
.version-entry span{font-size:12px;color:var(--muted);line-height:1.5}
.version-entry:hover,.version-entry.active{background:var(--soft);border-color:var(--line)}
.preview-warehouses{display:grid;gap:10px;margin-top:18px}
.preview-warehouses details{border:1px solid var(--line);border-radius:9px}
.preview-warehouses summary{list-style:none;cursor:pointer;padding:13px;display:flex;justify-content:space-between;gap:10px}
.preview-warehouses summary::-webkit-details-marker{display:none}
.preview-warehouses summary strong{white-space:nowrap}
.preview-items{max-height:225px;overflow:auto;padding:12px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:2}
.restore-warning{font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0 12px}
.restore-button{border-color:#b27165;color:#b26e66}
html[data-theme="dark"] .restore-button{border-color:#a77673;color:#e9aba3}
html[data-theme="dark"] .journal-field input,html[data-theme="dark"] .journal-field select,html[data-theme="dark"] .version-filter input{color-scheme:dark}
@media(max-width:1000px){.last-change{white-space:normal;max-width:50%;line-height:1.4}}
@media(max-width:850px){.version-layout{grid-template-columns:1fr}.version-scroll{max-height:230px}}
@media(max-width:680px){.last-change{font-size:10px;max-width:40%}.journal-controls{grid-template-columns:1fr 1fr}.journal-field:nth-child(3){grid-column:1/-1}.day-block{padding:17px 13px}.day-block>h2{font-size:19px}.movement summary{font-size:13px}.movement-record{flex-direction:column;gap:2px}.last-change[hidden]{display:none}}

/* v0.7: cash without merged balances, keep all nearby numbers near labels */
.movement summary{justify-content:flex-start!important;gap:7px!important}
.movement summary .movement-label{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:0!important}
.movement summary .movement-label strong{display:inline!important;margin:0!important}
.preview-warehouses summary{justify-content:flex-start;gap:9px}
.archive-bar{justify-content:flex-start!important}
.drawer-archive-toggle>span:nth-child(2){display:inline-flex;align-items:center;gap:6px}
.cash-nav-label{margin-top:27px}
.cash-page{padding:23px 25px 35px}
.cash-balance{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:25px 26px;margin-bottom:17px}
.cash-balance-label{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.7px;margin-bottom:8px}
.cash-balance-amount{font-size:clamp(30px,3vw,42px);font-weight:790;font-variant-numeric:tabular-nums;letter-spacing:-.7px}
.cash-balance p{font-size:13px;color:var(--muted);max-width:440px;line-height:1.5;margin:10px 0 0}
.cash-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0 26px}
.cash-actions button{border:1px solid var(--line);border-radius:10px;padding:12px 17px;font-weight:700;font-size:14px;background:var(--soft);color:var(--text)}
.cash-actions button:hover{border-color:var(--accent)}
.cash-actions .cash-income{color:var(--green)}
.cash-actions .cash-expense{color:var(--red)}
.cash-list-title{font-size:19px;margin:22px 0 14px}
.cash-day{border:1px solid var(--line);border-radius:12px;margin-bottom:15px;overflow:hidden;background:var(--white)}
.cash-day h3{padding:13px 17px;margin:0;background:var(--soft);font-size:14px;font-weight:700}
.cash-entry{padding:14px 17px;border-top:1px solid var(--line)}
.cash-entry-name{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:9px;font-size:14px;font-weight:600}
.cash-amount{font-weight:780;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cash-amount.positive,.cash-plus{color:var(--green)}
.cash-amount.negative,.cash-minus{color:var(--red)}
.cash-note{color:var(--muted);font-size:12px;margin-top:6px;overflow-wrap:anywhere}
.cash-entry-actions{display:flex;gap:14px;margin-top:9px}
.cash-entry-actions button{padding:3px 0;background:none;border:0;color:var(--muted);font-size:11px;text-decoration:underline}
.cash-entry-actions button:hover{color:var(--text)}
.cash-check{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:650;margin:8px 0 16px;cursor:pointer}
.cash-check input{width:19px;height:19px;flex:0 0 19px;accent-color:var(--accent)}
.sale-cash{margin:15px 0;border:1px solid var(--line);border-radius:10px;padding:14px}
.cash-day-history{border-top:1px solid var(--line);padding-top:14px;margin-top:13px}
.cash-day-history h4{font-size:13px;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:10px;align-items:baseline}
.cash-history-entry{padding:9px 10px;background:var(--soft);border-radius:8px;margin-top:7px}
.cash-history-entry>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;font-size:12px}
.cash-history-entry strong{font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap}
.cash-history-entry small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.cash-version-note{margin:14px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
html[data-theme="dark"] .cash-income,html[data-theme="dark"] .cash-amount.positive,html[data-theme="dark"] .cash-plus{color:#8de3b1}
html[data-theme="dark"] .cash-expense,html[data-theme="dark"] .cash-amount.negative,html[data-theme="dark"] .cash-minus{color:#f2a3a3}
@media(max-width:680px){.cash-page{padding:16px 13px}.cash-balance{padding:20px 17px}.cash-actions{flex-direction:column}.cash-actions button{width:100%}}

.cash-alert{color:var(--red)!important;font-weight:650}

.bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 14px;flex-wrap:wrap}
.bulk-toolbar-left,.bulk-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bulk-mini{border:1px solid var(--line);background:var(--soft);color:var(--text);border-radius:10px;padding:10px 14px;font-size:13px;font-weight:650}
.bulk-mini:hover{border-color:var(--accent)}
.bulk-selected-text{font-size:13px;color:var(--muted)}
.bulk-sell-button[disabled]{opacity:.55;cursor:not-allowed}
.inventory-table .select-col{width:56px;text-align:center}
.bulk-check{width:24px;height:24px;border-radius:8px;border:1px solid var(--line);background:var(--soft);display:inline-grid;place-items:center;padding:0;box-shadow:inset 0 0 0 1px transparent}
.bulk-check:hover{border-color:var(--accent)}
.bulk-check.active{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}
.bulk-check.active::before{content:'✓';color:#fff;font-size:14px;font-weight:800;line-height:1}
.bulk-row-selected{background:color-mix(in srgb, var(--accent) 8%, transparent)}
.bulk-modal-lead{font-size:13px;margin:0 0 14px;line-height:1.55}
.bulk-serials{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.bulk-serial-chip,.bulk-more{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;background:var(--soft);border:1px solid var(--line);color:var(--text)}
.bulk-more{color:var(--muted)}
html[data-theme='dark'] .bulk-mini,html[data-theme='dark'] .bulk-check,html[data-theme='dark'] .bulk-serial-chip,html[data-theme='dark'] .bulk-more{border-color:#42556f;background:#223042;color:#e7eefb}
html[data-theme='dark'] .bulk-row-selected{background:rgba(63,119,255,.12)}
@media(max-width:760px){.bulk-toolbar{align-items:stretch}.bulk-toolbar-left,.bulk-toolbar-right{width:100%}.bulk-toolbar-right{justify-content:space-between}.inventory-table .select-col{width:46px}.bulk-mini,.bulk-sell-button{width:100%;justify-content:center}}


/* v0.9: чистая мобильная шапка и самостоятельные кнопки навигации. */
.last-change .stamp-label{margin-right:8px}

@media (max-width:680px){
 .mobile-brand{display:none!important}
 .sidebar{
   top:0;
   padding:9px 11px 10px;
   z-index:12;
   transition:transform .22s ease, opacity .22s ease;
   will-change:transform;
   box-shadow:0 3px 16px rgba(0,0,0,.08);
 }
 .sidebar.nav-scrolled-away{transform:translateY(calc(-100% - 2px));opacity:0;pointer-events:none}
 .sidebar nav{overflow:visible;gap:8px;min-width:0}
 .sidebar #nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .sidebar nav[aria-label="История склада"]{display:grid;grid-template-columns:1fr;margin-top:8px}
 .sidebar nav[aria-label="Кассы"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px}
 .sidebar .nav-item{
   width:100%;min-width:0;min-height:44px;margin:0;padding:8px 5px;
   border:1px solid var(--line);border-radius:11px;
   background:var(--soft);color:var(--text);
   display:flex;justify-content:center;align-items:center;text-align:center;
   font-size:12px;font-weight:650;line-height:1.25;
   white-space:normal;overflow-wrap:break-word;
 }
 .sidebar .nav-item.active{border-color:var(--accent);background:#e3edff;color:#194aa1}
 html[data-theme="dark"] .sidebar .nav-item{background:#273343;color:#e1eafb;border-color:#46586f}
 html[data-theme="dark"] .sidebar .nav-item.active{background:#304e7d;border-color:#6d9ef3;color:#fff}
 .topbar{min-height:58px;height:auto;padding:7px 12px;gap:8px;align-items:center}
 .topbar-actions{gap:6px;flex:0 0 auto}
 .last-change{flex:1 1 auto;max-width:none!important;min-width:0;margin-right:0!important;white-space:normal;line-height:1.25;display:flex;flex-direction:column;gap:2px}
 .last-change[hidden]{display:none!important}
 .stamp-label{font-size:10px;color:var(--muted);font-weight:550;margin-right:0}
 .stamp-time{font-size:12px;color:var(--text);font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
 .search-trigger{padding:8px 10px;font-size:21px;line-height:1}
 .search-trigger span{display:none}
 .utility-menu>summary{padding:9px 11px;min-width:40px;text-align:center;font-size:16px}
 .utility-menu .more-label{display:none}
 .utility-panel{width:min(235px,calc(100vw - 22px))}
}
@media (prefers-reduced-motion: reduce){.sidebar{transition:none!important}}

/* v1.0: компактные серийники в форме поставки */
.batch-field .batch-top-note{margin:5px 0 12px}
.serial-entry-list{display:grid;gap:9px;max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 4px 0;scrollbar-width:thin}
.serial-entry-row{display:flex;align-items:center;gap:11px;min-height:46px}
.serial-entry-number{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:27px;text-align:right}
.field .serial-entry-input{width:136px;max-width:45%;height:43px;min-width:0;padding:8px 13px;border-radius:10px;font-family:ui-monospace,Consolas,monospace;font-size:18px;font-weight:720;letter-spacing:1.7px;text-transform:uppercase}
.serial-entry-status{width:22px;text-align:center;font-size:19px;font-weight:750;color:var(--green)}
.serial-entry-invalid .serial-entry-status{color:#ed9c67}
.serial-entry-invalid .serial-entry-input{border-color:#d48050!important}
.serial-entry-complete .serial-entry-input{border-color:#6b947a}
.serial-entry-remove{border:1px solid var(--line);background:var(--soft);color:var(--muted);font-size:19px;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;padding:0}
.serial-entry-remove:hover{color:#d37b79;border-color:#d37b79}
html[data-theme="dark"] .serial-entry-remove{background:#263446;color:#a9b8cd;border-color:#40516a}
html[data-theme="dark"] .serial-entry-complete .serial-entry-input{border-color:#48735f}
html[data-theme="dark"] .serial-entry-invalid .serial-entry-input{border-color:#d48050}
@media(max-width:680px){.serial-entry-list{max-height:230px}.field .serial-entry-input{width:144px;max-width:58%;font-size:18px}.serial-entry-row{gap:9px}}
