:root{
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;font-size:15px;font-synthesis:none;
 color-scheme:dark;--text:#f8f8ef;--secondary:#d1d2c9;--muted:#a9aca2;--faint:#8d9488;--line:rgba(249,250,232,.15);
 --shell:rgba(37,40,35,.60);--side:rgba(39,42,36,.66);--surface:rgba(242,245,220,.075);--surface-hover:rgba(249,250,229,.13);
 --field:rgba(22,26,22,.40);--modal:rgba(48,52,44,.95);--accent:#f1f3d6;--accent-text:#30352b;--green:#b9d5ae;--amber:#f0cf90;--danger:#f2b0a4;
 --shadow:0 24px 70px rgba(0,0,0,.19);--inner:inset 0 1px 0 rgba(255,255,244,.19);--radius:28px;--spring:cubic-bezier(.22,1,.36,1);--side-width:244px;
}
:root[data-theme="light"]{color-scheme:light;--text:#292e27;--secondary:#535c4d;--muted:#6c7465;--faint:#7d8774;--line:rgba(52,62,41,.15);--shell:rgba(244,244,233,.64);--side:rgba(237,240,224,.78);--surface:rgba(255,255,245,.40);--surface-hover:rgba(255,255,249,.68);--field:rgba(255,255,246,.62);--modal:rgba(242,245,232,.96);--accent:#303c2c;--accent-text:#f7f8e8;--green:#477346;--amber:#9a671e;--danger:#a24d40;--shadow:0 24px 70px rgba(28,32,17,.14);--inner:inset 0 1px 0 rgba(255,255,255,.75)}
*{box-sizing:border-box}html{min-width:0;scrollbar-gutter:stable;scrollbar-color:#92998c60 transparent}body{margin:0;min-width:0;color:var(--text);background:#34362f;line-height:1.45}button,input,select,textarea{font:inherit}button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{color:inherit;background:none;border:0;cursor:pointer}button{transition:transform .3s var(--spring),background-color .25s,box-shadow .25s,color .2s,border-color .25s}button:hover{background-color:var(--surface-hover)}button:active:not(:disabled){transform:scale(.96)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}svg.icon{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;pointer-events:none}h1,h2,h3,p{margin:0}button .icon{pointer-events:none}
.wallpaper{position:fixed;inset:0;z-index:-3;background:#564b3d url('/assets/architecture.png') center center/cover no-repeat}.wallpaper-shade{position:fixed;inset:0;z-index:-2;background:linear-gradient(110deg,rgba(13,17,14,.25),rgba(23,26,22,.33));transition:background-color .35s}html[data-theme="light"] .wallpaper-shade{background:rgba(223,221,202,.18)}
.glass{background:var(--shell);border:1px solid var(--line);box-shadow:var(--shadow),var(--inner);backdrop-filter:blur(25px) saturate(1.15);-webkit-backdrop-filter:blur(25px) saturate(1.15)}.surface{background:var(--surface);border:1px solid var(--line);box-shadow:var(--inner);border-radius:var(--radius)}
.window{display:grid;grid-template-columns:var(--side-width) minmax(0,1fr);align-items:start;gap:18px;padding:22px;width:100%;min-height:100dvh;transition:grid-template-columns .38s var(--spring);animation:arrive .65s var(--spring) both}.sidebar{position:sticky;top:22px;min-width:0;height:calc(100dvh - 44px);max-height:1000px;background:var(--side);border-radius:30px;display:flex;flex-direction:column;padding:19px 13px 12px;z-index:30}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;min-height:64px;margin-bottom:24px}.brand{display:flex;align-items:center;gap:12px;min-width:0;padding:0 7px}.brand-mark{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:var(--accent);color:var(--accent-text);font-size:39px;font-weight:600;line-height:1;letter-spacing:-2px;padding-bottom:6px;box-shadow:inset 0 1px 1px #ffffff50}.brand-word{font-size:24px;font-weight:650;letter-spacing:-.6px;white-space:nowrap}.brand-caption{display:block;font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:1px}.sidebar-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;flex:1;min-height:0}.nav-label{display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:10px;letter-spacing:.5px;color:var(--muted);padding:0 12px;margin-bottom:10px;white-space:nowrap;min-height:20px}.nav-label.category-label,.nav-label.location-label{margin-top:26px}.nav-item{width:100%;display:flex;align-items:center;gap:11px;min-height:46px;padding:11px 12px;margin:4px 0;border-radius:16px;font-size:13px;text-align:left;position:relative;color:var(--secondary);white-space:nowrap}.nav-item .icon{width:21px;height:21px;color:var(--secondary)}.nav-item.active{background:var(--accent);color:var(--accent-text);box-shadow:0 3px 10px #11111110}.nav-item.active .icon{color:inherit}.nav-count{margin-left:auto;font-size:11px;opacity:.65;min-width:13px;text-align:right}.sidebar-bottom{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.connection{display:flex;align-items:center;gap:7px;padding:0 12px 14px;font-size:10px;color:var(--muted);white-space:nowrap}.connection-dot{width:6px;height:6px;background:var(--green);border-radius:50%;flex-shrink:0;box-shadow:0 0 0 4px #91b0790b}.profile-button{width:100%;display:flex;align-items:center;gap:10px;border-radius:17px;padding:9px 7px;min-height:52px;text-align:left}.avatar{width:35px;height:35px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#d4b996,#82927a);color:#253428;font-size:13px;font-weight:600;box-shadow:inset 0 1px 2px #ffffff70}.profile-copy{min-width:0;flex:1}.profile-copy strong{display:block;font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis}.profile-copy small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.profile-arrow .icon{width:15px;height:15px;color:var(--muted)}.sidebar-scrim,.icon-button.mobile-close{display:none}.main-pane{border-radius:34px;min-width:0;min-height:calc(100dvh - 44px);position:relative}.toolbar{display:flex;align-items:center;gap:14px;padding:23px 31px;min-height:95px;border-bottom:1px solid var(--line)}.icon-button{width:42px;height:42px;border:1px solid transparent;border-radius:50%;display:inline-grid;place-items:center;flex-shrink:0;color:var(--secondary)}.sidebar-toggle{background:var(--surface);border-color:var(--line)}.toolbar-title{font-size:19px;font-weight:550;display:flex;align-items:center;gap:16px;white-space:nowrap}.toolbar-title>span{font-size:12px;font-weight:400;color:var(--muted);padding-left:16px;border-left:1px solid var(--line)}.toolbar-spacer{flex:1}.search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--field);height:44px;border-radius:50px;padding:0 16px;min-width:0;width:clamp(170px,19vw,290px);transition:box-shadow .25s}.search:focus-within{box-shadow:0 0 0 3px var(--line)}.search .icon{width:17px;height:17px;color:var(--muted)}.search input{border:0;outline:0;background:none;min-width:0;flex:1;width:100%;font-size:12px;color:var(--text)}.search input::placeholder{color:var(--muted)}.search kbd{font-size:10px;font-family:inherit;color:var(--muted);white-space:nowrap}.theme-picker{display:flex;flex-shrink:0;gap:3px;padding:4px;border-radius:50px;border:1px solid var(--line);background:var(--field)}.theme-picker button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}.theme-picker .icon{width:17px;height:17px}.theme-picker button.active{background:var(--accent);color:var(--accent-text);box-shadow:0 2px 5px #0000000b}
.content{padding:30px clamp(22px,2.6vw,46px) 18px;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:500;letter-spacing:1.5px;color:var(--muted);margin-bottom:10px}h1{font-size:clamp(31px,3.2vw,50px);line-height:1.12;letter-spacing:-1.8px;font-weight:550}.page-heading p{font-size:13px;color:var(--secondary);margin-top:13px}.heading-actions{display:flex;align-items:center;gap:10px}.button{min-height:44px;padding:11px 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:50px;font-size:12px;font-weight:500;white-space:nowrap;border:1px solid var(--line)}.button .icon{width:17px;height:17px}.button.primary{background:var(--accent);color:var(--accent-text);border-color:transparent;box-shadow:inset 0 1px 0 #ffffff40,0 4px 13px #0000000b}.button.primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00000020}.button.secondary{background:var(--surface);color:var(--text)}.button.soft{background:var(--surface-hover);color:var(--text)}.button.wide{width:100%}.operation-anchor{position:relative}.popover{background:var(--modal);backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 50px #00000030,var(--inner);padding:7px;z-index:40;animation:popover-in .26s var(--spring);transform-origin:top right}.operation-menu{position:absolute;top:54px;right:0;width:258px}.menu-item{width:100%;display:flex;align-items:center;gap:13px;border-radius:15px;padding:13px;text-align:left;font-size:13px}.menu-item small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.menu-item .icon{width:20px;height:20px}.menu-divider{height:1px;background:var(--line);margin:6px 11px}
.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.summary-card{min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:25px;padding:22px 24px;box-shadow:var(--inner);display:flex;align-items:center;gap:19px;position:relative;overflow:hidden}.summary-icon{width:47px;height:47px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--field);color:var(--secondary)}.summary-icon .icon{width:21px;height:21px}.summary-icon.amber{color:var(--amber)}.summary-icon.green{color:var(--green)}.summary-label{font-size:11px;color:var(--secondary);margin-bottom:7px}.summary-value{font-size:32px;letter-spacing:-1px;line-height:1.1;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-value small{font-size:10px;color:var(--muted);letter-spacing:0;font-weight:400;margin-left:7px}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:30px}.action-tile{position:relative;display:flex;align-items:center;gap:13px;text-align:left;padding:19px 18px;border-radius:24px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--inner);min-height:96px;min-width:0}.action-tile:hover{transform:translateY(-3px);background:var(--surface-hover);box-shadow:0 8px 23px #00000010,var(--inner)}.action-tile:first-child{background:var(--accent);color:var(--accent-text);border-color:transparent}.tile-icon{width:41px;height:41px;flex-shrink:0;display:grid;place-items:center;border-radius:14px;background:var(--field);border:1px solid var(--line)}.action-tile:first-child .tile-icon{background:#343a2b10;border-color:#343a2b15}.tile-copy{min-width:0}.tile-copy strong{display:block;font-size:13px;font-weight:550;overflow-wrap:anywhere}.tile-copy small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.action-tile:first-child small{color:inherit;opacity:.7}.tile-arrow{margin-left:auto;align-self:flex-start;opacity:.55}.tile-arrow .icon{width:14px;height:14px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:18px;align-items:start}.inventory-panel{min-width:0;padding:25px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.panel-heading .eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:6px}h2{font-size:20px;line-height:1.3;letter-spacing:-.5px;font-weight:550}.panel-tools{display:flex;align-items:center;gap:4px;flex-shrink:0}.panel-tools>.icon-button{width:35px;height:35px}.panel-tools>.icon-button .icon{width:17px;height:17px}.view-switch{display:flex;padding:3px;gap:3px;border:1px solid var(--line);background:var(--field);border-radius:50px}.view-switch button{width:32px;height:30px;border-radius:50px;display:grid;place-items:center;color:var(--muted)}.view-switch button.active{color:var(--accent-text);background:var(--accent)}.view-switch .icon{width:16px;height:16px}.filter-bar{display:flex;flex-direction:column;gap:15px;margin-bottom:21px;min-width:0}.segments{display:flex;flex-wrap:wrap;gap:6px}.segment{font-size:11px;border:1px solid var(--line);padding:9px 14px;min-height:36px;border-radius:50px;white-space:nowrap;color:var(--secondary)}.segment.active{background:var(--accent);color:var(--accent-text);border-color:transparent}.filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.location-select{display:flex;align-items:center;gap:8px;min-width:0;max-width:65%;position:relative;color:var(--secondary)}.location-select select{appearance:none;padding:8px 24px 8px 0;background:none;color:var(--secondary);font-size:11px;border:0;max-width:100%;min-width:0;cursor:pointer}.location-select select option{background:var(--modal);color:var(--text)}.location-select .icon{width:15px;height:15px}.location-select>span:last-child{position:absolute;right:0;pointer-events:none}.location-select>span:last-child .icon{width:12px;height:12px}.filter-button{display:flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid var(--line);border-radius:50px;font-size:10px;color:var(--secondary);white-space:nowrap}.filter-button .icon{width:13px;height:13px}.filter-button.active{background:#d4b27820;border-color:var(--amber);color:var(--amber)}.collection{min-height:240px;min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:12px}.product-card{min-width:0;position:relative;text-align:left;padding:20px;border-radius:24px;border:1px solid var(--line);background:var(--field);animation:arrive .4s var(--spring) both;box-shadow:var(--inner);display:flex;flex-direction:column;align-items:flex-start}.product-card:hover{transform:translateY(-3px);background:var(--surface-hover);box-shadow:0 9px 25px #00000012,var(--inner)}.product-icon{width:44px;height:47px;flex-shrink:0;display:grid;place-items:center;border-radius:14px;background:#a2b3a320;color:#c4d3ba;border:1px solid #d4e3ca18}.product-icon .icon{width:27px;height:27px;stroke-width:1.3}.product-icon.pack{background:#bfa58024;color:#dac4a0;border-color:#dac4a020}.product-icon.finished{background:#c0ce8b20;color:#d7dda9;border-color:#d7dda918}html[data-theme="light"] .product-icon{color:#607455;background:#74896518;border-color:#74896520}html[data-theme="light"] .product-icon.pack{color:#917549;background:#bfa58025;border-color:#a9865220}html[data-theme="light"] .product-icon.finished{color:#697f38;background:#94a85c20;border-color:#94a85c25}.product-card .product-icon{width:52px;height:56px;border-radius:17px;margin-bottom:20px}.product-card .product-icon .icon{width:32px;height:32px}.item-name{font-size:13px;font-weight:500;line-height:1.45;color:var(--text);overflow-wrap:anywhere}.item-sku{font-size:10px;letter-spacing:.5px;color:var(--muted);margin-top:5px;font-variant-numeric:tabular-nums}.product-card .item-name{min-height:38px}.product-card .item-sku{margin-bottom:20px}.qty{font-size:14px;font-weight:500;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.qty small{font-size:11px;margin-left:5px;color:var(--muted);font-weight:400}.product-card .qty{font-size:25px;letter-spacing:-.7px;margin-top:auto;margin-bottom:11px}.product-card .qty small{font-size:12px;letter-spacing:0}.status{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--green);white-space:nowrap}.status:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.status.low{color:var(--amber)}.status.empty{color:var(--muted)}.category-text{font-size:10px;color:var(--secondary)}.table-wrap{max-width:100%;overflow:auto;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}th{padding:11px 9px;border-bottom:1px solid var(--line);font-size:10px;font-weight:400;color:var(--muted)}th:first-child{width:44%;padding-left:0}th:nth-child(2){width:18%}th:nth-child(3){width:20%}th:last-child{width:18%;text-align:right;padding-right:0}td{font-size:11px;color:var(--secondary);padding:16px 9px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}td:first-child{padding-left:0}td:last-child{text-align:right;padding-right:0}tbody tr{cursor:pointer;transition:background-color .2s;animation:arrive .4s var(--spring) both}tbody tr:hover{background:var(--surface)}tbody tr:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.item-cell{display:flex;align-items:center;gap:12px;min-width:0}.item-cell>div:last-child{min-width:0}.item-cell .product-icon{width:34px;height:38px;border-radius:11px}.item-cell .product-icon .icon{width:22px;height:22px}.content-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:21px;font-size:10px;color:var(--muted)}.empty-state{padding:45px 16px 48px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:300px}.empty-state>.icon{width:57px;height:57px;stroke-width:1.2;color:var(--secondary);margin-bottom:22px}.empty-state h3{font-size:22px;letter-spacing:-.7px;font-weight:500;margin-bottom:10px}.empty-state p{font-size:12px;max-width:300px;line-height:1.7;color:var(--muted);margin-bottom:23px}.empty-state .button{font-size:12px}.loading{min-height:300px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:12px}.spinner{width:15px;height:15px;border:2px solid var(--line);border-top-color:var(--secondary);border-radius:50%;animation:spin .8s linear infinite}.context-panels{display:flex;flex-direction:column;gap:18px;min-width:0}.storage-panel,.activity-panel{padding:23px 21px;min-width:0}.context-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.context-title h2{font-size:15px;letter-spacing:-.3px}.context-title .small-icon{background:var(--field);width:29px;height:29px}.small-icon{height:29px;width:29px;border-radius:50%;display:inline-grid;place-items:center;color:var(--secondary);flex-shrink:0}.small-icon .icon{width:15px;height:15px}.storage-place{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 0;border-radius:12px}.storage-place+.storage-place{border-top:1px solid var(--line);border-radius:0}.storage-place .storage-icon{width:38px;height:41px;border:1px solid var(--line);background:var(--field);border-radius:13px;display:grid;place-items:center;flex-shrink:0}.storage-place .storage-icon .icon{width:19px;height:19px}.storage-place strong{display:block;font-size:12px;line-height:1.45;font-weight:500;overflow-wrap:anywhere}.storage-place small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.storage-place>.icon{width:14px;height:14px;margin-left:auto;opacity:.6}.context-note{font-size:11px;color:var(--muted);line-height:1.7;padding-top:15px;border-top:1px solid var(--line);margin-top:12px}.context-note .icon{width:18px;height:18px;color:var(--secondary);margin-bottom:12px}.activity-row{display:flex;align-items:center;gap:9px;text-align:left;border-radius:14px;padding:9px 0;width:100%;min-width:0}.activity-row strong{display:block;font-size:11px;font-weight:500}.activity-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.activity-row .doc-icon{width:32px;height:34px;border-radius:11px}.activity-row .doc-icon .icon{width:17px;height:17px}.activity-empty{min-height:120px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;color:var(--muted);font-size:11px;line-height:1.7}.activity-empty>.icon{width:26px;height:26px;stroke-width:1.3;margin-bottom:13px}.text-button{padding:10px 0 0;font-size:11px;color:var(--secondary);display:flex;align-items:center;gap:7px;min-height:36px;border-radius:7px}.text-button .icon{width:14px;height:14px}.statusbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:10px;padding:22px 4px 3px}#status-path{display:flex;align-items:center;gap:10px}#status-path span{opacity:.5}.doc-icon{width:38px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;border:1px solid var(--line);background:#a6b88c20;color:var(--green)}.doc-icon.issue{color:var(--danger);background:#b68d7420}.doc-icon.transfer{color:var(--secondary);background:var(--surface)}.doc-icon.inventory{color:var(--amber);background:#c6a97820}.doc-icon .icon{width:20px;height:20px}.doc-list th:first-child{width:37%}.doc-list th:nth-child(2){width:29%}.doc-list th:nth-child(3){width:17%}.doc-list th:last-child{width:17%}.doc-list td:last-child{font-size:10px}.badge{display:inline-flex;padding:4px 7px;border-radius:50px;font-size:9px;background:#a6b88c15;color:var(--green);border:1px solid #a6b88c15}
/* Dialogs are solid enough to read, while the surrounding glass remains visible. */
dialog{padding:0;color:var(--text);border:1px solid var(--line);box-shadow:0 35px 100px #00000040,var(--inner);background:var(--modal);max-width:calc(100% - 28px);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}dialog::backdrop{background:#14191170;animation:backdrop-in .25s}dialog[open]{animation:sheet-in .42s var(--spring)}dialog.closing{animation:sheet-out .18s ease-in forwards}dialog.closing::backdrop{animation:backdrop-out .18s ease-in forwards}.sheet{width:600px;border-radius:30px}.sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:29px 30px 23px;border-bottom:1px solid var(--line)}.sheet-header h2{font-size:23px;letter-spacing:-.7px;font-weight:500}.sheet-header p{font-size:12px;color:var(--muted);margin-top:8px}.sheet-header .icon-button{width:35px;height:35px;background:var(--surface);margin-top:-4px}.sheet-body{padding:25px 30px}.sheet-footer{padding:20px 30px 24px;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 15px}.form-field{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:12px;color:var(--secondary)}.form-field.full{grid-column:1/-1}.input{border:1px solid var(--line);border-radius:14px;background:var(--field);padding:13px 14px;font-size:14px;color:var(--text);min-width:0;width:100%;transition:border-color .2s,box-shadow .2s}.input::placeholder{color:var(--muted)}.input option{color:var(--text);background:var(--modal)}.form-field small{font-size:11px;color:var(--muted);line-height:1.6}.form-label{display:flex;justify-content:space-between;font-size:12px;color:var(--secondary);margin:26px 0 13px}.line-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 26px;gap:9px;align-items:center;margin-bottom:13px}.line-row .input{padding:12px;font-size:12px}.line-hint{font-size:10px;color:var(--muted);grid-column:1/-1}.add-line{font-size:12px;color:var(--text);display:flex;align-items:center;gap:8px;padding:10px 0 18px;min-height:40px}.add-line .icon{width:16px;height:16px}.form-note{color:var(--secondary);background:var(--surface);padding:15px 17px;border:1px solid var(--line);border-radius:17px;font-size:12px;line-height:1.7;margin:0 0 22px}.form-error{color:var(--danger);background:#b05b4420;border:1px solid #c8837130;border-radius:13px;font-size:12px;padding:13px;line-height:1.6;margin-top:17px}.inspector{position:fixed;inset:18px 18px 18px auto;margin:0;width:420px;border-radius:29px;max-height:none;height:calc(100dvh - 36px)}.inspector[open]{animation:inspector-in .5s var(--spring)}.inspector.closing{animation:inspector-out .18s ease-in forwards}.inspector-top{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.inspector-hero{padding:18px 29px 28px;text-align:center}.inspector-hero .product-icon{width:86px;height:94px;border-radius:25px;margin:0 auto 23px}.inspector-hero .product-icon .icon{width:51px;height:51px}.inspector-hero h2{font-size:26px;line-height:1.25;letter-spacing:-.9px;margin-bottom:10px}.inspector-hero .item-sku{font-size:12px}.inspector-body{padding:0 29px 28px}.detail-label{font-size:10px;letter-spacing:1px;color:var(--muted);margin:20px 0 9px}.detail-total{font-size:40px;font-weight:500;letter-spacing:-1.5px;margin:5px 0 22px}.detail-total small{font-size:17px;color:var(--muted);font-weight:400;letter-spacing:0}.location-stock{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--secondary)}.location-stock>span:first-child{display:flex;align-items:center;gap:9px}.location-stock .icon{width:17px;height:17px}.location-stock strong{font-weight:500;color:var(--text);white-space:nowrap}.detail-actions{display:flex;gap:10px;margin:25px 0 12px}.detail-actions .button{flex:1}.timeline{padding:4px 0}.timeline-item{display:flex;align-items:center;gap:11px;padding:10px 0;width:100%;text-align:left;border-radius:13px}.timeline-title{font-size:11px;color:var(--secondary)}.timeline-sub{font-size:10px;color:var(--muted);margin-top:5px}.timeline-qty{margin-left:auto;font-size:11px;color:var(--text);white-space:nowrap}.document-lines{table-layout:auto}.document-lines th,.document-lines td{width:auto!important;padding:13px 3px;font-size:12px}.document-lines th:first-child{width:50%!important}.document-lines tr{cursor:default}.doc-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px;font-size:13px;color:var(--text)}.doc-meta small{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.document-note{margin-top:22px;color:var(--secondary);font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px) scale(.97);opacity:0;pointer-events:none;z-index:100;background:var(--modal);color:var(--text);border:1px solid var(--line);border-radius:50px;padding:15px 23px;box-shadow:0 8px 35px #00000030;display:flex;align-items:center;gap:11px;font-size:12px;max-width:calc(100% - 28px);transition:opacity .25s,transform .4s var(--spring)}.toast.show{opacity:1;transform:translate(-50%,0) scale(1)}.toast .icon{color:var(--green);width:18px;height:18px}.toast.error .icon{color:var(--danger)}
.app-booting .window{visibility:hidden}.signed-out .window{display:none}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:100%;max-width:430px;padding:39px;border-radius:34px;animation:sheet-in .6s var(--spring)}.auth-card>.brand-mark{margin-bottom:34px;width:54px;height:54px;font-size:47px;border-radius:19px}.auth-card h1{font-size:43px;letter-spacing:-1.8px;font-weight:500}.auth-card>p{font-size:13px;color:var(--secondary);margin:18px 0 27px}.auth-card .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:16px}.auth-card .form-field{margin:17px 0}.auth-card .input{height:47px}.auth-card .button{height:47px;margin-top:13px}.auth-theme{width:max-content;margin:29px auto 0}
/* The rail remains useful: all sections, account and labels stay accessible. */
@media(min-width:768px){.window.sidebar-compact{--side-width:76px}.sidebar-compact .sidebar{padding:18px 10px 12px;border-radius:27px}.sidebar-compact .brand{padding:0;justify-content:center;width:100%}.sidebar-compact .brand-mark{width:43px;height:43px}.sidebar-compact .brand-word,.sidebar-compact .nav-item>span,.sidebar-compact .nav-label>span,.sidebar-compact .connection,.sidebar-compact .profile-copy,.sidebar-compact .profile-arrow{display:none}.sidebar-compact .sidebar-heading{margin-bottom:20px}.sidebar-compact .nav-label{font-size:0;padding:0;margin:11px 8px 9px;min-height:1px;border-top:1px solid var(--line)}.sidebar-compact .nav-label:first-child{display:none}.sidebar-compact .location-label{border:0;justify-content:center;margin:13px 0 4px}.sidebar-compact .location-label .small-icon{width:29px;height:29px}.sidebar-compact .nav-item{padding:0;justify-content:center;width:54px;height:48px;min-height:48px;margin:5px 0;border-radius:17px}.sidebar-compact .profile-button{padding:7px;justify-content:center}.sidebar-compact .avatar{width:37px;height:37px}.sidebar-compact .sidebar-bottom{margin-top:12px;padding-top:12px}}
@media(min-width:1800px){.window{padding:28px;gap:22px;--side-width:260px}.sidebar{top:28px;height:calc(100dvh - 56px)}.main-pane{min-height:calc(100dvh - 56px)}.content{padding:36px 48px 22px}.toolbar{padding:25px 43px}.workspace-grid{grid-template-columns:minmax(0,1fr) 315px;gap:22px}.summary-card{padding:27px 29px}.summary-value{font-size:39px}.summary-label{font-size:13px}.action-tile{padding:25px;min-height:110px}.tile-copy strong{font-size:15px}.tile-copy small{font-size:11px}.inventory-panel{padding:30px}.grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:17px}.product-card{padding:25px}.product-card .item-name{font-size:15px}.nav-item{font-size:14px}.context-title h2{font-size:17px}.storage-panel,.activity-panel{padding:27px}.storage-place strong{font-size:14px}.toolbar-title{font-size:21px}}
@media(max-width:1399px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.context-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.summary-card{padding:21px 19px;gap:14px}.summary-value small{display:none}.tile-arrow{display:none}.content{padding:27px 26px 18px}.toolbar{padding:20px 25px}.toolbar-title>span{display:none}.tile-copy strong{font-size:12px}.tile-copy small{font-size:10px}.action-tile{padding:17px 14px;gap:10px}.tile-icon{width:36px;height:38px;border-radius:12px}}
@media(max-width:1099px){.window{padding:15px;gap:13px}.sidebar{top:15px;height:calc(100dvh - 30px)}.main-pane{min-height:calc(100dvh - 30px);border-radius:29px}.toolbar{gap:10px;padding:17px 22px;min-height:79px}.content{padding:23px 22px 17px}.search{width:185px}.search kbd{display:none}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:19px}.page-heading p{font-size:12px}.heading-actions{padding:0}.summary{gap:11px}.summary-icon{width:38px;height:38px}.summary-card{padding:18px 15px;gap:11px}.summary-label{font-size:10px}.summary-value{font-size:28px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:23px}.action-tile{min-height:83px;padding:17px 19px;gap:15px;border-radius:21px}.tile-copy strong{font-size:14px}.tile-copy small{font-size:11px}.tile-arrow{display:block}.inventory-panel{padding:22px}.grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr))}}
@media(max-width:767px){html{scrollbar-gutter:auto}.window{grid-template-columns:minmax(0,1fr);padding:10px;gap:0}.sidebar{position:fixed;inset:10px auto 10px 10px;top:10px;width:min(280px,calc(100% - 60px));height:calc(100dvh - 20px);max-height:none;transform:translateX(calc(-100% - 25px));visibility:hidden;transition:transform .4s var(--spring),visibility .4s;z-index:60;background:var(--modal);padding:18px 13px 12px}.window.sidebar-mobile-open .sidebar{transform:translateX(0);visibility:visible}.sidebar-scroll{overflow:auto}.sidebar-heading{margin-bottom:23px}.icon-button.mobile-close{display:inline-grid;width:33px;height:33px}.mobile-close .icon{width:18px;height:18px}.sidebar-mobile-open .sidebar-scrim{display:block;position:fixed;inset:0;border-radius:0;background:#11160d60;z-index:55;animation:backdrop-in .25s}.main-pane{min-height:calc(100dvh - 20px);border-radius:27px}.toolbar{padding:15px 17px;min-height:76px;gap:9px;flex-wrap:wrap}.toolbar-title{font-size:20px}.toolbar-spacer{flex:1}.toolbar .theme-picker{margin-left:auto;order:3}.toolbar .search{order:5;width:100%;height:42px;margin-top:5px;padding:0 14px}.toolbar .search input{font-size:14px}.sidebar-toggle{width:39px;height:39px}.theme-picker button{width:31px;height:31px}.content{padding:24px 18px 15px}.eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:10px}h1{font-size:35px;letter-spacing:-1.2px}.page-heading{margin-bottom:22px;gap:19px}.page-heading p{margin-top:11px;font-size:12px}.heading-actions{width:100%;gap:8px}.heading-actions>.button{flex:1}.heading-actions>.operation-anchor{flex:1}.heading-actions>.operation-anchor>.button{width:100%}.button{min-height:44px;font-size:12px;padding:10px 14px}.summary{gap:8px;margin-bottom:15px}.summary-card{padding:16px 13px;border-radius:20px;display:block}.summary-icon{display:none}.summary-label{font-size:9px;line-height:1.4;min-height:26px;margin-bottom:7px}.summary-value{font-size:28px}.quick-actions{gap:9px;margin-bottom:22px}.action-tile{min-height:98px;padding:15px;gap:10px;border-radius:21px;align-items:flex-start;flex-direction:column}.tile-icon{width:30px;height:30px;border-radius:10px}.tile-icon .icon{width:17px;height:17px}.tile-copy strong{font-size:13px}.tile-copy small{font-size:9px;margin-top:4px}.tile-arrow{position:absolute;top:16px;right:15px}.tile-arrow .icon{width:13px;height:13px}.inventory-panel{padding:19px 15px;border-radius:24px}.panel-heading{gap:8px;margin-bottom:21px}.panel-heading .eyebrow{font-size:8px;letter-spacing:1px}.panel-heading h2{font-size:17px}.panel-tools{gap:0}.panel-tools>.icon-button{width:29px;height:32px}.panel-tools>.icon-button .icon{width:15px;height:15px}.panel-tools #refresh{display:none}.view-switch{padding:2px;gap:1px}.view-switch button{width:28px;height:28px}.view-switch .icon{width:14px;height:14px}.segments{gap:5px}.segment{font-size:10px;padding:8px 11px;min-height:34px}.filter-bar{gap:12px;margin-bottom:17px}.filter-row{gap:8px;align-items:center}.location-select{flex:1;max-width:100%;gap:6px}.location-select select{font-size:10px;flex:1;width:100%}.location-select .icon{width:13px;height:13px}.filter-button{padding:7px 9px;min-height:33px}.filter-button span{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:15px 13px;border-radius:21px}.product-card .product-icon{width:42px;height:46px;border-radius:13px;margin-bottom:17px}.product-card .product-icon .icon{width:27px;height:27px}.product-card .item-name{font-size:11px;min-height:32px}.product-card .item-sku{font-size:9px;margin-bottom:18px}.product-card .qty{font-size:23px;margin-bottom:9px}.product-card .qty small{font-size:10px}.product-card .status{font-size:9px;white-space:normal;line-height:1.4}.context-panels{grid-template-columns:minmax(0,1fr);gap:14px}.workspace-grid{gap:15px}.storage-panel,.activity-panel{padding:23px;border-radius:24px}.context-title h2{font-size:16px}.storage-place strong{font-size:13px}.storage-place small{font-size:11px}.context-note{font-size:11px}.activity-empty{min-height:90px}.activity-row strong{font-size:12px}.statusbar{padding:20px 2px 2px;font-size:9px}#status-path{gap:7px}.content-footer{font-size:9px;padding-top:19px}.empty-state{min-height:280px;padding:35px 9px 30px}.empty-state h3{font-size:21px;max-width:230px}.empty-state p{font-size:11px}.stock-table th:nth-child(2),.stock-table td:nth-child(2),.stock-table th:nth-child(3),.stock-table td:nth-child(3){display:none}.stock-table th:first-child{width:72%}.stock-table th:last-child{width:28%}.stock-table .item-name{font-size:11px}.stock-table .item-sku{font-size:9px}.stock-table .item-cell{gap:8px}.stock-table td{padding:14px 3px}.stock-table .qty{font-size:12px}.stock-table .qty small{font-size:9px}.stock-table .product-icon{width:30px;height:33px}.doc-list th:first-child{width:65%}.doc-list th:last-child{width:35%}.doc-list th:nth-child(2),.doc-list td:nth-child(2),.doc-list th:nth-child(3),.doc-list td:nth-child(3){display:none}.doc-list td{padding:15px 2px}.doc-list .item-name{font-size:11px}.doc-list .item-cell{gap:8px}.doc-list .doc-icon{width:31px;height:35px}.doc-list td:last-child{font-size:9px}.sheet{max-width:calc(100% - 16px);max-height:calc(100dvh - 20px);border-radius:25px}.sheet-header{padding:23px 21px 19px}.sheet-header h2{font-size:21px}.sheet-header p{font-size:11px}.sheet-body{padding:22px 21px}.sheet-footer{padding:18px 21px 21px}.form-grid{gap:18px 11px}.input{font-size:16px;padding:12px}.form-field{font-size:11px}.form-field small{font-size:10px}.line-row{grid-template-columns:minmax(0,1fr) 74px 24px;gap:6px}.line-row .input{font-size:13px;padding:11px 8px}.line-hint{font-size:10px}.form-note{font-size:11px;padding:13px}.inspector{inset:8px;margin:0;width:calc(100% - 16px);height:calc(100dvh - 16px);max-width:none;border-radius:25px}.inspector-body{padding:0 22px 24px}.inspector-hero{padding:12px 23px 22px}.inspector-hero h2{font-size:24px}.document-lines th,.document-lines td{font-size:10px}.doc-meta{font-size:12px}.toast{bottom:20px;padding:14px 18px;font-size:11px}.auth-screen{padding:15px}.auth-card{padding:31px 26px;border-radius:30px}.auth-card h1{font-size:39px}.auth-card .input{font-size:16px}.auth-card .eyebrow{font-size:8px}.auth-card>.brand-mark{margin-bottom:28px}}
@media(max-width:374px){.content{padding:22px 13px 13px}.toolbar{padding:13px}.inventory-panel{padding:18px 12px}.summary-card{padding:14px 10px}.summary-label{font-size:8px}.summary-value{font-size:25px}.tile-copy strong{font-size:12px}.tile-copy small{font-size:8px}.action-tile{padding:14px 12px}.panel-heading h2{font-size:15px}.panel-tools #export{display:none}.segment{font-size:9px;padding:8px 10px}.product-card{padding:14px 11px}.product-card .qty{font-size:21px}.form-grid{grid-template-columns:minmax(0,1fr)}.form-field.full{grid-column:auto}.sheet-header,.sheet-body,.sheet-footer{padding-left:17px;padding-right:17px}}
@media(prefers-reduced-transparency:reduce){:root{--shell:#33392e;--side:#30362b;--surface:#404736;--modal:#363c30}:root[data-theme="light"]{--shell:#e9edde;--side:#e1e6d3;--surface:#f1f4e8;--modal:#f0f3e6}.glass{backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){.glass{background:var(--modal)}}
@keyframes arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes popover-in{from{opacity:0;transform:translateY(-5px) scale(.94)}to{opacity:1;transform:none}}@keyframes sheet-in{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}@keyframes sheet-out{to{opacity:0;transform:translateY(12px) scale(.98)}}@keyframes inspector-in{from{opacity:0;transform:translateX(60px)}to{opacity:1;transform:none}}@keyframes inspector-out{to{opacity:0;transform:translateX(35px)}}@keyframes backdrop-in{from{opacity:0}to{opacity:1}}@keyframes backdrop-out{to{opacity:0}}@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:767px){body.menu-open{overflow:hidden}}
.nav-item>span:not(.nav-count){min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Keep form controls at native iPhone text size to avoid focus zoom. */
@media(max-width:767px){.toolbar .search input,.line-row .input,.location-select select{font-size:16px}.product-card .item-name{font-size:13px;min-height:38px}.product-card .item-sku{font-size:10px}.product-card .status{font-size:10px}.stock-table .item-name,.doc-list .item-name{font-size:12px}.document-lines th,.document-lines td{font-size:12px}.location-select select{text-overflow:ellipsis}}
@media(max-width:374px){.document-lines th,.document-lines td{font-size:11px}.product-card .item-name{font-size:12px}}
