:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color-scheme:light;--bg:#fff;--surface:#f7f9fc;--raised:#fff;--head:#edf2f8;--row:#f7f9fc;--line:#dbe3ee;--text:#24354d;--muted:#7c8ba2;--blue:#2563eb;--blue-soft:#edf3ff;--cyan:#12bdd3;--green:#299b78;--shadow:rgba(23,45,80,.07)}
html[data-theme=dark]{color-scheme:dark;--bg:#111822;--surface:#151e2b;--raised:#192434;--head:#1d2a3b;--row:#151f2d;--line:#2a384c;--text:#dde6f4;--muted:#8c9db6;--blue:#73a2ff;--blue-soft:#1c3153;--cyan:#32d1e4;--green:#5accaa;--shadow:rgba(0,0,0,.2)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:12px}button,input,select{font:inherit}button,a,select,input{outline-offset:4px}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}svg{width:16px;height:16px;display:block;flex-shrink:0}button{color:inherit}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.header{height:63px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 24px;border-top:3px solid var(--text);border-bottom:1px solid var(--line);background:var(--bg);gap:20px}.brand{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:750;letter-spacing:.35px;white-space:nowrap}.brand b{color:var(--muted);padding:0 3px}.brand strong{color:var(--blue);font-weight:700}.brand-mark{height:29px;width:29px;border-radius:7px;background:var(--text);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;position:relative}.brand-mark span{font-size:13px;position:absolute;right:1px;top:0;color:var(--cyan)}.page-tab{height:60px;border-bottom:3px solid var(--cyan);padding:0 27px;display:flex;align-items:center;gap:9px;color:var(--text)}.page-tab h1{font-size:11px;letter-spacing:1.1px;font-weight:750;margin:0}.page-tab svg{color:var(--blue)}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.local-badge{display:flex;align-items:center;gap:5px;letter-spacing:1px;font-size:9px;color:var(--muted)}i{height:5px;width:5px;display:inline-block;border-radius:50%;background:var(--muted)}.local-badge i{background:var(--green)}.divider{width:1px;height:20px;background:var(--line)}.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;width:32px;height:32px;border:0;border-radius:5px;background:transparent;flex-shrink:0}.icon-button:hover:not(:disabled){background:var(--head)}.account-button{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;font-size:11px}.account-button>span:last-child svg{width:12px}.avatar{width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted)}.avatar svg{width:14px}main{height:calc(100dvh - 63px);display:flex;flex-direction:column;min-height:260px}.toolbar{min-height:62px;padding:12px 24px;display:flex;gap:14px;align-items:center;justify-content:space-between;background:var(--surface);border-bottom:1px solid var(--line)}.toolbar-start,.toolbar-end{display:flex;align-items:center;gap:8px}.toolbar-start{gap:14px}.count-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:5px;padding:6px 8px;font-size:10px;background:var(--raised);white-space:nowrap}.count-badge svg{width:13px;color:var(--muted)}.count-badge b{font-weight:650}.toolbar-line,.footer-line{height:18px;width:1px;background:var(--line)}.connection-label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}.connection-label.connected{color:var(--green)}.connection-label.connected i{background:var(--green)}.search{display:flex;align-items:center;gap:8px;height:33px;background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:0 10px;width:clamp(200px,24vw,390px);color:var(--muted)}.search:focus-within{border-color:var(--blue)}.search input{border:0;background:transparent;outline:none;color:var(--text);width:100%;font-size:11px}.search input::placeholder{color:var(--muted)}kbd{font:10px inherit;border:1px solid var(--line);border-radius:3px;padding:1px 5px}.select-wrap{display:flex;align-items:center;gap:6px;border:1px solid var(--line);height:33px;border-radius:5px;padding:0 9px;background:var(--bg);color:var(--muted)}select{background:transparent;border:0;color:var(--text);font-size:10px;cursor:pointer}.select-wrap svg{width:13px}.bordered{border:1px solid var(--line);background:var(--bg);height:33px;width:33px}.button{height:34px;display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;background:var(--bg);padding:0 12px;font-size:11px;font-weight:600;white-space:nowrap}.export-button svg{width:14px}.csv-label{font-size:8px;background:var(--head);color:var(--muted);padding:2px 3px;border-radius:2px}.viewbar{display:flex;align-items:center;gap:16px;min-height:43px;padding:0 24px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}.view-tab{height:43px;display:flex;align-items:center;gap:7px;border-bottom:2px solid var(--blue);font-weight:600;color:var(--blue)}.view-tab svg{width:14px}.view-tab>span:last-child{background:var(--blue-soft);padding:2px 5px;border-radius:3px;font-size:9px}.view-mode{margin-left:auto;font-size:9px;display:flex;align-items:center;gap:6px;letter-spacing:.7px}.view-mode svg{width:12px}#notice{padding:10px 24px;background:var(--blue-soft);border-bottom:1px solid var(--line);color:var(--text);font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:16px}#notice.error{color:#b74e42;background:#fff3ef}html[data-theme=dark] #notice.error{color:#ffb6a9;background:#38211f}#notice button{background:transparent;border:0;text-decoration:underline;font-weight:600;white-space:nowrap}.table-region{flex:1;min-height:0;overflow:auto;position:relative;scrollbar-color:#b9c7db var(--surface);scrollbar-width:thin}table{border-collapse:separate;border-spacing:0;width:100%;min-width:1980px;table-layout:fixed;text-align:left}thead th{position:sticky;top:0;z-index:3;height:40px;background:var(--head);font-size:9px;letter-spacing:.2px;white-space:nowrap;font-weight:700;color:var(--muted);border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:0 15px;width:145px}thead th.product-col{width:340px;z-index:5}thead th:nth-child(2){width:160px}thead th:nth-child(3){width:120px}thead th:nth-child(8){width:165px}.product-col{position:sticky;left:0;box-shadow:5px 0 12px -8px #18345660}.sort{background:transparent;border:0;display:flex;align-items:center;gap:10px;padding:0;font:inherit;letter-spacing:inherit;white-space:nowrap;text-align:left}.sort svg{width:11px;opacity:.7}.numeric{text-align:right}.numeric .sort{justify-content:flex-end;width:100%}tbody td{padding:0 15px;height:56px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;background:var(--bg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tbody tr:nth-child(even) td{background:var(--row)}tbody tr:hover td{background:var(--blue-soft)}tbody td.product-col{z-index:1}.product-cell{display:flex;align-items:center;gap:10px}.product-icon{height:32px;width:32px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);display:grid;place-items:center;flex-shrink:0}.product-text{overflow:hidden}.product-name{font-weight:650;display:block;overflow:hidden;text-overflow:ellipsis;line-height:17px}.product-sub{font-size:9px;color:var(--muted);display:block}.mono{font-family:"Cascadia Code",Consolas,monospace;font-size:10px}.status-pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:3px 7px;border-radius:4px;background:#eaf6f0;color:#258260}.status-pill i{background:currentColor;width:4px;height:4px}.status-pill.inactive{background:var(--head);color:var(--muted)}.status-pill.deleted{background:#ffede8;color:#aa5844}html[data-theme=dark] .status-pill{background:#19372e;color:#6bdbb6}html[data-theme=dark] .status-pill.deleted{background:#392a24;color:#e8a18b}.empty-state{min-height:440px;position:sticky;left:0;width:100%;height:calc(100% - 40px);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 24px 36px;background:radial-gradient(ellipse at 50% 28%,var(--surface),transparent 48%)}.connection-art{height:130px;width:280px;position:relative;display:flex;align-items:center;justify-content:center;gap:23px;margin-bottom:22px}.art-grid{position:absolute;inset:0;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:22px 22px;mask-image:radial-gradient(ellipse,#0007,transparent 70%)}.art-olist,.art-drive{position:relative;display:flex;align-items:center;justify-content:center;border-radius:16px;height:65px;box-shadow:0 5px 18px var(--shadow);transform:rotate(-7deg)}.art-olist{background:var(--raised);border:1px solid var(--line);width:87px;color:#2259df;font-size:29px;font-weight:750;letter-spacing:-2px}.art-olist>span{font-size:9px;align-self:flex-start;margin-top:18px;letter-spacing:0}.art-drive{background:#2563eb;color:#fff;transform:rotate(7deg);font-size:30px;font-weight:800;width:65px}.art-link{color:var(--muted);position:relative}.art-link svg{width:20px;height:20px}.connection-art>i{position:absolute;background:var(--cyan);height:6px;width:6px;top:17px;right:58px}.connection-art>i:last-child{top:auto;bottom:11px;left:36px;background:var(--blue);height:4px;width:4px}.eyebrow{color:var(--muted);font-size:9px;font-weight:650;letter-spacing:1.7px}.empty-state h2{font-size:26px;letter-spacing:-.7px;margin:13px 0 10px;font-weight:650}.empty-state p{text-align:center;color:var(--muted);font-size:12px;line-height:1.85;margin:0 0 21px}.primary{background:#2563eb;border-color:#2563eb;color:white;height:40px;padding:0 18px;gap:11px;box-shadow:0 3px 8px #2563eb20}.primary>span:last-child svg{width:15px;margin-left:9px}.connect-hint{display:flex;align-items:center;gap:5px;margin-top:13px;font-size:9px;color:var(--muted)}.connect-hint svg{width:11px;height:11px}.setup{width:min(420px,100%);margin-top:30px;border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:10px}.setup summary{display:flex;justify-content:center;gap:8px;align-items:center;cursor:pointer;list-style:none}.setup summary svg{width:12px}.setup p{font-size:10px;text-align:left;line-height:1.7;margin:14px 0 7px}.callback{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:5px;padding:2px 5px 2px 10px;background:var(--raised);color:var(--text);gap:5px}.callback code{font-size:10px;overflow-wrap:anywhere}.footer{min-height:43px;padding:7px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);background:var(--surface);font-size:10px;color:var(--muted)}.footer-status{display:flex;align-items:center;gap:7px}.footer-status i{height:4px;width:4px}.footer-status.ready i{background:var(--green)}.pagination{display:flex;align-items:center;gap:13px}.pagination label{display:flex;align-items:center;gap:6px}.pagination select{border:1px solid var(--line);padding:3px 5px;border-radius:3px;background:var(--bg)}.small{height:23px;width:23px;border:1px solid var(--line);border-radius:4px;background:var(--bg)}.small svg{height:12px;width:12px}#page-label{font-variant-numeric:tabular-nums;min-width:25px;text-align:center}dialog{border:1px solid var(--line);border-radius:12px;padding:30px;background:var(--bg);color:var(--text);max-width:420px;box-shadow:0 16px 60px #0003}dialog::backdrop{background:#0d172a70;backdrop-filter:blur(3px)}dialog h2{font-size:21px;margin:12px 0}dialog p{color:var(--muted);font-size:12px;line-height:1.8}.dialog-close{position:absolute;top:8px;right:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}.danger{color:#b74e42}.spinning svg{animation:spin 1.1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1100px){.connection-label,.toolbar-line,.csv-label{display:none}.header{padding:0 16px}.toolbar,.viewbar,.footer{padding-left:16px;padding-right:16px}.brand{font-size:10px;gap:7px}.toolbar-start{gap:6px}}@media(max-width:760px){.header{height:58px;gap:8px;grid-template-columns:1fr auto auto;padding:0 12px}.brand{font-size:9px;letter-spacing:0;white-space:normal;max-width:170px}.brand-mark{flex-shrink:0}.brand b{padding:0}.page-tab{padding:0 6px;height:55px;gap:5px}.page-tab h1{font-size:9px}.page-tab svg{width:12px}.local-badge,.divider,#account-label,.account-button>span:last-child{display:none}.header-actions{gap:2px}main{height:calc(100dvh - 58px)}.toolbar{flex-wrap:wrap;padding:10px 12px;gap:8px}.toolbar-start{order:2}.toolbar-end{display:grid;grid-template-columns:1fr 33px 33px;width:100%;gap:6px}.search{width:100%;grid-column:1}.select-wrap{grid-row:2;grid-column:1/4;width:max-content}.export-button{width:33px;overflow:hidden;font-size:0;padding:0;gap:0}.export-button svg{width:15px}.viewbar{padding:0 12px;gap:10px}#sync-label{font-size:9px}.view-mode{display:none}.footer{padding:8px 12px;gap:7px;flex-wrap:wrap}.footer-status{font-size:9px}.pagination{gap:7px}.pagination label{font-size:9px}.footer-line{display:none}thead th.product-col{width:260px}.empty-state{min-height:430px;padding:24px 14px}.empty-state h2{font-size:23px}.connection-art{height:100px;margin-bottom:15px}.setup{margin-top:23px}.empty-state p{font-size:11px}#notice{padding:10px 12px}.page-tab .tab-icon{display:none}}@media(prefers-reduced-motion:reduce){.spinning svg{animation:none}}
.drawer{position:fixed;top:0;right:0;bottom:0;left:auto;margin:0;height:100dvh;max-height:none;width:min(380px,100vw);max-width:none;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--bg);box-shadow:-16px 0 50px #0003}.drawer[open]{animation:drawer-in .22s ease-out}.drawer.closing{animation:drawer-out .2s ease-in forwards}.drawer::backdrop{background:#0d172a50;backdrop-filter:blur(2px)}@keyframes drawer-in{from{transform:translateX(100%)}}@keyframes drawer-out{to{transform:translateX(100%)}}.drawer-body{height:100%;display:flex;flex-direction:column;padding:0 18px;overflow-y:auto}.drawer-head{display:flex;align-items:center;justify-content:space-between;min-height:63px;margin:0 -18px;padding:0 10px 0 18px;border-bottom:1px solid var(--line)}.drawer-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:750;letter-spacing:.6px}.drawer-head h2 svg{width:14px;color:var(--muted)}.drawer-intro{margin:16px 0 6px;color:var(--muted);font-size:11px;line-height:1.7}.integration-list{list-style:none;margin:0;padding:0}.integration{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.integration-logo{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;flex-shrink:0;color:#fff;font-size:14px;font-weight:800;line-height:1}.olist-logo{background:#2259df}.integration-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.integration-info b{font-size:12px;color:var(--blue)}.integration-status{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);min-width:0}.integration-status i{flex-shrink:0}.integration-status span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.integration-status.error span{white-space:normal;line-height:1.5}.integration-status.ok{color:var(--green)}.integration-status.ok i{background:var(--green)}.integration-status.error{color:#b74e42}.integration-status.error i{background:currentColor}html[data-theme=dark] .integration-status.error{color:#ffb6a9}.integration-action{height:30px;display:inline-flex;align-items:center;flex-shrink:0;padding:0 12px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.4px;white-space:nowrap}.integration-action:hover{color:var(--text);border-color:var(--muted)}.integration-action.danger{color:#b74e42}@media(prefers-reduced-motion:reduce){.drawer[open],.drawer.closing{animation:none}}
.integration-error{flex-basis:100%;margin:0 0 0 34px;padding:8px 10px;border-radius:5px;background:#fbeceb;color:#b74e42;font-size:10px;line-height:1.6}html[data-theme=dark] .integration-error{background:#38211f;color:#ffb6a9}
