:root { color-scheme: light; --ink:#17202a; --muted:#6d7680; --line:#dfe5eb; --blue:#1261ff; --bg:#f2f5f8; --ok:#12805c; --warn:#a85d00; --bad:#b42318; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.45 Inter, system-ui, sans-serif; }
main { width:min(1280px, calc(100% - 28px)); margin:30px auto 80px; }
header { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.user-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-wrap:wrap; }
.auth-shell { min-height:calc(100vh - 80px); display:grid; place-items:center; }
.auth-card { width:min(460px,100%); }
.auth-card h1 { font-size:34px; margin:8px 0 10px; }
.auth-card form { margin-top:18px; }
.auth-card form button { margin-top:14px; }
.auth-card label+label { margin-top:12px; }
.auth-details { border-top:1px solid var(--line); padding-top:13px; margin-top:18px; }
.auth-details summary { cursor:pointer; color:var(--blue); font-weight:750; }
h1 { margin:2px 0 0; font-size:clamp(28px,5vw,48px); letter-spacing:-.04em; }
h2 { margin:0 0 18px; font-size:21px; } h3 { margin:24px 0 12px; }
.eyebrow { color:var(--blue); font-weight:800; letter-spacing:.14em; font-size:12px; }
.card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; margin:16px 0; box-shadow:0 8px 30px rgba(18,30,50,.05); }
.mode-banner { display:flex; gap:12px; align-items:flex-start; border:1px solid #f2c46d; background:#fff7e6; color:#704300; border-radius:14px; padding:13px 16px; margin:0 0 16px; }
.mode-banner strong { white-space:nowrap; }
.grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-items:start; }
.compact { grid-template-columns:1fr 2fr auto; align-items:end; }
label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:650; }
input,select,textarea { width:100%; border:1px solid #cbd4de; border-radius:10px; padding:11px 12px; background:#fff; color:var(--ink); font:inherit; }
input:focus,select:focus,textarea:focus { border-color:var(--blue); outline:0; box-shadow:0 0 0 3px rgba(18,97,255,.10); }
label small { color:var(--muted); font-weight:500; }
.warehouse-field { min-width:0; }
.warehouse-search { text-overflow:ellipsis; }
.sku-dropdown { position:relative; margin-top:0; }
.sku-dropdown summary { list-style:none; border:1px solid #cbd4de; border-radius:10px; padding:11px 36px 11px 12px; background:#fff; color:var(--ink); font-weight:500; cursor:pointer; position:relative; }
.sku-dropdown summary::-webkit-details-marker { display:none; }
.sku-dropdown summary::after { content:'⌄'; position:absolute; right:13px; top:8px; font-size:19px; color:var(--muted); }
.sku-dropdown[open] summary { border-color:var(--blue); box-shadow:0 0 0 3px rgba(18,97,255,.10); }
.sku-options { position:absolute; z-index:20; top:calc(100% + 6px); width:min(430px,90vw); max-height:300px; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; padding:7px; box-shadow:0 14px 35px rgba(18,30,50,.16); }
.sku-option { display:flex; grid-template-columns:auto 1fr; align-items:center; gap:9px; padding:9px; border-radius:8px; color:var(--ink); font-size:13px; cursor:pointer; }
.sku-option:hover { background:#f1f6ff; }
.sku-option input { width:16px; height:16px; }
button,.button { border:0; border-radius:10px; padding:11px 16px; background:var(--blue); color:#fff; font-weight:750; cursor:pointer; text-decoration:none; display:inline-block; }
button.secondary,.button.secondary { background:#fff; color:var(--ink); border:1px solid var(--line); }
form>button { margin-top:16px; }
.muted { color:var(--muted); }
.connection-status { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px; margin-bottom:12px; border:1px solid #bde7d5; border-radius:12px; background:#edf9f4; }
.connection-status strong { color:var(--ok); }
#show-account-form { margin-bottom:12px; }
.stack { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; min-width:0; }
.batch-group h3 { margin:18px 0 9px; font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.batch { min-width:0; max-width:100%; border:1px solid var(--line); border-radius:14px; padding:0; background:#fff; overflow:hidden; }
.batch+.batch { margin-top:8px; }
.batch-summary { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:13px 15px; cursor:pointer; list-style:none; }
.batch-summary::-webkit-details-marker { display:none; }
.batch-summary::before { content:'›'; color:var(--muted); font-size:22px; line-height:1; position:absolute; }
.batch[open]>.batch-summary::before { transform:rotate(90deg); }
.batch-title { display:grid; gap:2px; min-width:0; padding-left:18px; }
.batch-title strong,.batch-title small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.batch-title small { color:var(--muted); font-size:12px; font-weight:500; }
.batch-count { color:var(--muted); font-size:12px; white-space:nowrap; }
.batch-body { border-top:1px solid var(--line); padding:4px 15px 15px; }
.task-history { margin-top:20px; border-top:1px solid var(--line); padding-top:14px; }
.task-history>summary { cursor:pointer; font-weight:800; color:var(--muted); }
.history-list { margin-top:10px; }
.batch-head { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.batch-head strong,.batch p { overflow-wrap:anywhere; }
.status { border-radius:99px; padding:5px 10px; background:#edf2f7; font-size:12px; font-weight:800; }
.status.ready { color:var(--ok); background:#e8f7f1; }.status.monitoring { color:var(--warn); background:#fff3dd; }.status.failed_action_needed { color:var(--bad); background:#ffebe8; }
.progress { height:8px; background:#e8edf2; border-radius:8px; overflow:hidden; margin:12px 0 8px; }.progress i { display:block; height:100%; background:var(--blue); }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.issues { background:#fff1ef; border:1px solid #ffc9c2; border-radius:12px; padding:12px; color:var(--bad); margin-top:14px; }
.products { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.product { display:flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:9px; padding:6px 9px; font-size:12px; }
.product input { width:auto; }
.file-picker { border:2px dashed #b9c7d8; border-radius:14px; padding:14px; align-content:center; background:#f8fbff; cursor:pointer; transition:.18s ease; }
.file-picker:hover { border-color:var(--blue); background:#f1f6ff; }
.file-picker input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.file-picker-title { color:var(--ink); font-size:13px; }
.file-picker-button { width:max-content; background:var(--blue); color:#fff; border-radius:9px; padding:9px 13px; font-size:13px; font-weight:800; }
.file-picker-name { color:var(--muted); font-size:12px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.table-wrap { width:100%; max-width:100%; overflow-x:auto; margin-top:12px; }
.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px; margin-top:12px; }
.metric-card { display:grid; gap:3px; border:1px solid var(--line); background:#f8fafc; border-radius:12px; padding:12px; }
.metric-card span { color:var(--muted); font-size:12px; }
.metric-card b { font-size:13px; }
table { width:100%; border-collapse:collapse; font-size:12px; }
th,td { border:1px solid var(--line); padding:7px 8px; text-align:right; white-space:nowrap; }
th:first-child,td:first-child { text-align:left; position:sticky; left:0; background:#fff; }
td small,th small { color:var(--muted); font-weight:500; }
td input.qty { width:72px; padding:6px; text-align:right; }
details { min-width:0; margin-top:12px; }
.cluster-progress th:last-child,.cluster-progress td:last-child { min-width:260px; max-width:440px; text-align:left; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact{grid-template-columns:1fr 1fr}}
@media(max-width:600px){main{margin-top:18px}.grid,.compact{grid-template-columns:1fr}.card{padding:17px}header{align-items:flex-start;flex-direction:column}.user-actions{justify-content:flex-start}.batch-head{align-items:flex-start;flex-direction:column}.batch-summary{grid-template-columns:minmax(0,1fr) auto}.batch-count{display:none}.status{grid-column:2;grid-row:1}.cluster-progress th:last-child,.cluster-progress td:last-child{min-width:220px}}
