@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{color:#1a202c;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f8f9fa;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.55}.shell{width:min(1440px,100% - 32px);margin:0 auto;padding:28px 0 48px}.topbar{background:#fff;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:20px;padding:16px 20px;display:flex;box-shadow:0 1px 3px #0000000f}.eyebrow{color:#2563eb;letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;font-size:12px;font-weight:700}h1,h2,p{margin-top:0}h1{max-width:780px;margin-bottom:0;font-size:clamp(28px,4vw,46px);line-height:1.05}h2{margin-bottom:6px;font-size:19px}code,.mono{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;margin-top:16px;padding:18px;box-shadow:0 1px 3px #0000000f}.upload-panel,.auth-panel,.controls-panel,.section-header,.split{justify-content:space-between;align-items:center;gap:18px;display:flex}.actions{flex-wrap:wrap;gap:10px;display:flex}.inline-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.top-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.login-shell{background:#f8f9fa;place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;gap:16px;width:min(480px,100%);padding:32px;display:grid;box-shadow:0 4px 24px #00000014}.login-card h1{font-size:34px}.team-choice,.settings-tabs,.recent-import-grid{flex-wrap:wrap;gap:10px;display:flex}.team-badge{color:#64748b;background:#f8f9fa;border:1px solid #e2e8f0;border-radius:8px;gap:4px;padding:6px 12px;font-size:12px;font-weight:600;display:grid}.team-badge strong{color:#1a202c}.icon-only{padding:0 12px}.single-lookup,.entry-panel{background:#f7fbf8;border-color:#c9ded5;justify-content:space-between;align-items:center;gap:18px;display:flex}.single-lookup-actions,.entry-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.single-lookup-actions input{min-width:260px}.entry-panel{flex-direction:column;align-items:stretch}.entry-grid{grid-template-columns:minmax(280px,1.2fr) minmax(260px,.9fr) auto;align-items:stretch;gap:14px;display:grid}.ean-entry{color:#465752;gap:6px;font-size:13px;font-weight:800;display:grid}.ean-entry textarea{background:#fff;flex:none;width:100%;min-height:96px}.compact-dropzone{min-height:96px}.entry-actions{flex-direction:column;align-content:center;align-items:stretch}.mini-stats{color:#66736f;gap:4px;font-size:12px;display:grid}.link-button{color:inherit;text-decoration:none}.dropzone{color:#17473f;cursor:pointer;background:#eff8f5;border:1px dashed #74a69c;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:12px;min-height:96px;font-weight:700;display:flex}.dropzone input{display:none}.stats{grid-template-columns:repeat(3,1fr);gap:10px;min-width:420px;display:grid}.stats.compact{min-width:0;margin:14px 0}.stats.compact .stat{min-height:72px}.stat{background:#fbfcfb;border:1px solid #e2e8e3;border-radius:8px;min-height:86px;padding:14px}.stat span{color:#5c6b66;margin-bottom:10px;font-size:13px;display:block}.stat strong{font-size:24px}.badge,.alert,.primary,.secondary{align-items:center;gap:8px;display:inline-flex}.badge{border-radius:999px;flex:none;padding:9px 12px;font-size:13px;font-weight:700}.badge.ok{color:#176a34;background:#e4f6e9}.badge.warn{color:#8a5700;background:#fff2d8}.badge.neutral{color:#53606a;background:#eef1f4}.alert{color:#92400e;background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;width:100%;margin-top:12px;padding:12px 14px}.alert.danger{color:#991b1b;background:#fef2f2;border-color:#fca5a5}.muted{color:#63716c}textarea{resize:vertical;border:1px solid #dce4dc;border-radius:8px;flex:1;min-height:96px;padding:12px}.primary,.secondary{border-radius:8px;justify-content:center;min-height:42px;padding:0 16px;font-weight:600}.primary{color:#fff;background:#2563eb;transition:background .15s}.primary:hover:not(:disabled){background:#1d4ed8}.secondary{color:#334155;background:#fff;border:1px solid #e2e8f0;transition:background .15s}.secondary:hover:not(:disabled){background:#f1f5f9}.table-wrap{border:1px solid #e3e9e3;border-radius:8px;max-height:620px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{z-index:1;color:#4a5a55;text-align:left;background:#f1f5f1;position:sticky;top:0}th,td{vertical-align:top;border-bottom:1px solid #e7ece7;padding:9px 10px}td input[type=text],td input:not([type]){width:150px}input{border:1px solid #d7dfd7;border-radius:6px;padding:7px 8px}select{background:#fff;border:1px solid #d7dfd7;border-radius:8px;min-height:42px;padding:0 12px}.margin-control{align-items:center;gap:10px;font-weight:800;display:inline-flex}.margin-control input{width:92px}input.invalid{background:#fff4f3;border-color:#bd453b}.row-muted{color:#78827e}dl{grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 0;display:grid}dt{color:#66736f;font-size:12px}dd{margin:2px 0 0;font-weight:800}.warning{color:#805900;margin-top:12px;font-size:13px}.history-link{color:#35534c;white-space:nowrap;border:1px solid #d5e0d5;border-radius:999px;align-items:center;min-height:30px;padding:0 10px;font-size:12px;font-weight:800;text-decoration:none;display:inline-flex}.history-link.active{color:#176a55;background:#e4f6ef;border-color:#8fc8b7}.history-search{justify-content:space-between;align-items:center;gap:18px;display:flex}.history-layout{grid-template-columns:minmax(280px,.75fr) minmax(400px,1.25fr);align-items:start;gap:16px;display:grid}.history-search-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.history-search-actions input{min-width:260px}.empty-history{text-align:center;justify-items:center;display:grid}.status-pill{border-left:4px solid #0000;border-radius:4px;align-items:center;padding:4px 10px;font-size:12px;font-weight:600;display:inline-flex}.status-pill.healthy{color:#166534;background:#f0fdf4;border-left-color:#16a34a}.status-pill.below_margin{color:#92400e;background:#fffbeb;border-left-color:#d97706}.status-pill.missing_cost,.status-pill.no_market_data{color:#475569;background:#f8fafc;border-left-color:#94a3b8}.history-timeline{gap:12px;margin-top:12px;display:grid}.import-list{scrollbar-width:thin;scrollbar-color:#b2cfc8 transparent;gap:6px;max-height:420px;margin-top:10px;padding-right:4px;display:grid;overflow-y:auto}.import-list::-webkit-scrollbar{width:4px}.import-list::-webkit-scrollbar-thumb{background:#b2cfc8;border-radius:4px}.import-items-grid{gap:10px;margin-top:12px;display:grid}.import-row{color:#203431;text-align:left;background:#fbfcfb;border:1px solid #e3e9e3;border-radius:8px;gap:4px;width:100%;padding:12px;display:grid}.import-row.active{background:#eff8f5;border-color:#8fc8b7}.import-row span,.history-card-title small{color:#66736f;font-size:12px}.history-card{background:#fbfcfb;border:1px solid #dfe7df;border-radius:8px;padding:14px}.history-card-title{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;display:flex}.history-card-title span:first-child{gap:3px;display:grid}.offer-list{border-top:1px solid #e3e9e3;margin-top:12px;padding-top:10px}.results-table td:first-child{min-width:260px}.results-table td:first-child small{color:#66736f;max-width:420px;display:block}.offer-detail-heading{margin:12px 0 8px;font-size:13px}.offer-detail-list{gap:8px;margin-top:8px;display:grid}.results-panel{overflow:hidden}.result-card-list{gap:12px;display:grid}.result-card{background:#fbfcfb;border:1px solid #dfe7df;border-radius:8px;gap:14px;padding:14px;display:grid}.result-card-head,.product-title,.offer-drawer summary,.offer-card header,.source-strip,.cost-action{align-items:center;gap:12px;display:flex}.result-card-head,.offer-drawer summary,.offer-card header,.cost-action{justify-content:space-between}.product-title{min-width:0}.product-title div{gap:3px;min-width:0;display:grid}.product-title small,.metric small,.cost-action span{color:#66736f}.price-decision-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.metric{background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-width:0;padding:12px;box-shadow:0 1px 2px #0000000a}.metric span,.metric small{display:block}.metric span{color:#64748b;font-size:12px}.metric strong{color:#1a202c;margin:5px 0 3px;font-size:20px;display:block}.metric.strong{background:#f0f7ff;border-color:#bfdbfe}.source-strip{flex-wrap:wrap}.source-strip span{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:4px;align-items:center;gap:6px;min-height:26px;padding:0 8px;font-size:12px;display:inline-flex}.source-strip span.source-ok{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.source-strip span.source-absent{color:#991b1b;background:#fef2f2;border-color:#fecaca}.source-strip strong{color:#1e293b;font-weight:600}.cost-action{background:#fffbeb;border:1px solid #e2e8f0;border-left:4px solid #d97706;border-radius:8px;flex-wrap:wrap;padding:12px}.cost-action div{gap:3px;min-width:min(360px,100%);display:grid}.cost-action input{width:130px}.offer-drawer{border-top:1px solid #e7ece7;padding-top:10px}.offer-drawer summary{cursor:pointer;font-weight:800}.offer-drawer summary span{color:#66736f;font-size:12px;font-weight:700}.offer-sections{gap:12px;margin-top:12px;display:grid}.offer-card-section h3{margin:0 0 8px;font-size:14px}.offer-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.offer-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;gap:8px;min-width:0;padding:12px;transition:box-shadow .15s;display:grid;box-shadow:0 1px 3px #00000014}.offer-card:hover{box-shadow:0 2px 8px #0000001f}.offer-card p{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:38px;margin:0;display:-webkit-box;overflow:hidden}.offer-card header a{color:#163f3a;border:1px solid #d5e0d5;border-radius:8px;flex:none;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.offer-card dl{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.offer-card dd{overflow-wrap:anywhere;font-size:12px}.offer-detail{background:#fff;border:1px solid #e3e9e3;border-radius:8px;grid-template-columns:minmax(220px,1fr) minmax(320px,1.3fr) auto;align-items:center;gap:12px;padding:10px;display:grid}.offer-detail span,.offer-detail small{color:#687771;display:block}.offer-detail-metrics{grid-template-columns:repeat(3,minmax(90px,1fr));gap:6px 10px;font-size:12px;display:grid}.muted-offer{color:#6f7a76;background:#f7f8f7}.offer-open{color:#163f3a;border:1px solid #d5e0d5;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.offer-list h3{color:#465752;margin:0 0 8px;font-size:13px}.offer-row{justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.offer-row+.offer-row{border-top:1px solid #edf1ed}.offer-row div{min-width:0}.offer-row strong,.offer-row span,.offer-row small{display:block}.offer-row span{color:#22332f;text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.offer-row small{color:#687771}.offer-row a{color:#163f3a;border:1px solid #d5e0d5;border-radius:8px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.admin-login{align-items:center;gap:12px;display:flex}.admin-login input{min-width:260px}.settings-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:14px 0;display:grid}.settings-grid label,.diagnostic-ean{color:#465752;gap:6px;font-size:13px;font-weight:800;display:grid}.settings-grid input,.settings-grid select,.diagnostic-ean input{width:100%}.check-row{color:#203431;grid-template-columns:auto 1fr;align-items:center;min-height:42px}.integration-list{gap:10px;margin-top:12px;display:grid}.integration-row{background:#fbfcfb;border:1px solid #e3e9e3;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.integration-row span,.integration-row small{color:#66736f;display:block}.diagnostic-ean{max-width:360px;margin-top:14px}.diagnostic-output{color:#dff7ee;background:#102522;border:1px solid #e3e9e3;border-radius:8px;margin:12px 0 0;padding:12px;font-size:12px;overflow:auto}.help-page{gap:16px;max-width:1080px;line-height:1.58;display:grid}.help-heading{border-bottom:1px solid #e3e9e3;padding-bottom:14px}.help-heading h2{margin-bottom:8px;font-size:26px}.help-section{background:#fbfcfb;border:1px solid #e3e9e3;border-radius:8px;padding:14px 16px}.help-section h3{color:#152823;margin:0 0 8px;font-size:17px}.help-section p{color:#42534e;margin-bottom:10px}.help-section p:last-child{margin-bottom:0}.help-section ul,.help-section ol{color:#42534e;gap:7px;margin:10px 0 0;padding-left:22px;display:grid}.help-section li::marker{color:#227064;font-weight:800}.help-section code{color:#163f3a;background:#f2f7f4;border:1px solid #dce6dc;border-radius:5px;padding:1px 5px}.spin{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=900px){.topbar,.top-actions,.single-lookup,.single-lookup-actions,.offer-detail,.result-card-head,.product-title,.cost-action,.admin-login,.history-layout,.history-search,.history-search-actions,.upload-panel,.auth-panel,.controls-panel,.section-header,.split{flex-direction:column;align-items:stretch}.stats{grid-template-columns:1fr;min-width:0}dl{grid-template-columns:repeat(2,1fr)}.integration-row{flex-direction:column;align-items:stretch}.history-layout,.offer-detail-metrics,.entry-grid,.price-decision-grid,.offer-card-grid{grid-template-columns:1fr}.entry-actions{align-content:stretch}.cost-action input{width:100%}}
