:root {
  --navy: #07366e;
  --navy-dark: #052a57;
  --navy-light: #12467f;
  --blue: #0a4b91;
  --lime: #7fc51d;
  --pink: #ed006d;
  --ink: #10233e;
  --muted: #6c7684;
  --line: #d9dee5;
  --surface: #fff;
  --background: #f4f6f8;
  --shadow: 0 2px 8px rgba(13, 42, 78, .08);
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--background); }
body { margin: 0; min-width: 320px; }
button, a { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; z-index: 20; display: flex; flex-direction: column; color: #fff; background: var(--navy); box-shadow: 2px 0 8px rgba(0,0,0,.06); }
.brand { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); color:#fff; text-decoration:none; font-weight: 800; }
.brand img { width:46px; height:46px; object-fit:contain; border-radius:9px; background:#fff; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(145deg,#82c52a,#00a4c8 58%,#0764c7); font-size: 24px; }
.brand-name { font-size: 18px; }
nav { padding: 16px 0; }
.sidebar > nav { flex:1 1 auto; min-height:0; overflow-y:auto; }
.nav-item, .nav-sub { display: flex; align-items: center; gap: 15px; min-height: 56px; padding: 0 28px; color: rgba(255,255,255,.82); text-decoration: none; border-left: 4px solid transparent; }
.nav-item:hover, .nav-sub:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; font-weight: 750; background: rgba(255,255,255,.06); border-color: #fff; }
.nav-sub { min-height: 48px; padding-left: 66px; font-weight: 700; background: rgba(255,255,255,.04); }
.icon { width: 20px; text-align: center; font-weight: 800; }
.sidebar-bottom { flex:0 0 auto; margin-top: auto; background:var(--navy); }
.release { display: flex; align-items: center; gap: 10px; padding: 18px 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.75); }
.release-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(127,197,29,.18); }
.shell { margin-left: 244px; min-height: 100vh; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; color: var(--navy); font-size: 25px; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.icon-button, .menu-button { position: relative; border: 0; background: transparent; cursor: pointer; }
.icon-button { font-size: 25px; }
.notification-dot { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--pink); font-size: 11px; font-weight: 800; }
.profile { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.profile span:last-child { display: grid; }
.profile small { color: var(--muted); margin-top: 2px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e9f0f8; color: var(--navy); font-weight: 800; }
.menu-button { display: none; font-size: 24px; }
main { padding: 26px 28px 42px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-weight: 750; font-size: 14px; }
.page-intro h2 { margin: 0; font-size: 22px; }
.muted { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; }
.button { min-height: 43px; padding: 0 18px; border: 0; border-radius: 4px; font-weight: 750; cursor: pointer; box-shadow: var(--shadow); }
.button.primary { background: var(--lime); color: #fff; }
.button.secondary { background: #e4e8ed; color: var(--navy); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button.ghost { background: transparent; box-shadow: none; color: var(--navy); }
.wide { width:100%; }
.form-message { min-height:20px; color:#bd2545; font-size:13px; }
.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(145deg,#052a57,#0a4b91); }
.login-page main { padding:32px; }
.login-card { width:min(440px,100%); background:#fff; border-radius:14px; box-shadow:0 24px 70px rgba(0,0,0,.25); }
.login-logo { display:block; width:170px; height:120px; margin:0 auto 16px; object-fit:contain; }
.login-card h1 { margin:0; color:var(--navy); text-align:center; }
.login-card > .muted { text-align:center; }
.login-card .form-field { margin:16px 0; }
.settings-tabs { display:flex; gap:4px; overflow-x:auto; margin-bottom:16px; border-bottom:1px solid var(--line); }
.settings-tabs button { padding:13px 17px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font-weight:750; cursor:pointer; white-space:nowrap; }
.settings-tabs button.active { color:var(--navy); border-color:var(--navy); }
.settings-panel { display:none; padding:22px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.settings-panel.active { display:block; }
.settings-panel h3,.table-panel h3 { margin:0 0 17px; color:var(--navy); }
.settings-form { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:16px; }
.settings-form label,.mapping-layout label { display:grid; gap:7px; color:var(--navy); font-size:13px; font-weight:750; }
.settings-form input,.settings-form select,.mapping-layout select { min-height:43px; padding:9px 12px; border:1px solid #bcc6d1; border-radius:4px; font:inherit; background:#fff; }
.settings-form .button { align-self:end; }
.connection-explainer { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0 22px; }
.connection-explainer article { display:grid; gap:7px; padding:16px; border:1px solid var(--line); border-radius:8px; background:#f8fbfe; }
.connection-explainer strong { color:var(--navy); }
.connection-explainer span,.settings-form small { color:var(--muted); font-size:12px; line-height:1.45; }
.settings-form label small { font-weight:400; }
.form-actions { display:flex; gap:10px; align-items:center; align-self:end; }
.connection-result { margin-top:14px; padding:13px 15px; border-radius:7px; background:#edf5fb; color:var(--navy); }
.connection-result.success { background:#ebf8ef; color:#176833; }
.connection-result.error { background:#fff0f0; color:#9e2525; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; }
.panel-head h3 { margin:0; }
.management-list { border:1px solid var(--line); }
.management-row { width:100%; min-height:64px; display:flex; align-items:center; gap:13px; padding:10px 15px; border:0; border-bottom:1px solid var(--line); background:#fff; text-align:left; cursor:pointer; }
.management-row:last-child { border-bottom:0; }
.management-row:hover { background:#f3f7fb; }
.management-row > span:first-child { display:grid; gap:4px; margin-right:auto; }
.management-row small { color:var(--muted); }
.count-chip,.type-chip { padding:4px 9px; border-radius:999px; background:#eaf1f8; color:var(--navy); font-size:11px; font-weight:750; }
.type-chip { background:#eef6df; color:#4c7613; }
.mapping-layout { display:grid; grid-template-columns:280px 1fr; gap:20px; margin-bottom:18px; }
.mapping-list { max-height:520px; overflow:auto; border:1px solid var(--line); }
.mapping-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; min-height:56px; padding:9px 12px; border-bottom:1px solid var(--line); }
.mapping-row > span { display:grid; }
.mapping-row small { color:var(--muted); }
.required-toggle { display:flex!important; grid-auto-flow:column; align-items:center; font-weight:500!important; }
.import-cards { display:grid; grid-template-columns:repeat(2,minmax(280px,1fr)); gap:16px; margin-bottom:20px; }
.import-card { display:grid; grid-template-columns:1fr auto; gap:18px; padding:20px; background:#fff; border:1px solid var(--line); border-top:4px solid var(--blue); box-shadow:var(--shadow); }
.import-card h3 { margin:8px 0 6px; color:var(--navy); }
.import-card p { margin:0; color:var(--muted); }
.import-card dl { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:0; }
.import-card dl div { padding:10px; background:#f4f6f8; }
.import-card dt { color:var(--muted); font-size:11px; }.import-card dd { margin:4px 0 0; font-weight:700; }
.import-tab-panel,.ione-panel { display:none; }.import-tab-panel.active,.ione-panel.active { display:block; }
.ione-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px; border:1px solid #b8d2ea; border-top:4px solid var(--blue); border-radius:10px 10px 0 0; background:linear-gradient(135deg,#fff,#edf6fd); }
.ione-hero h3 { margin:10px 0 6px; color:var(--navy); font-size:21px; }.ione-hero p { margin:0; color:var(--muted); }
.ione-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:14px 0; }
.ione-summary article,.ione-settings-grid article { display:grid; gap:5px; padding:14px; border:1px solid var(--line); border-radius:7px; background:#fff; box-shadow:var(--shadow); }
.ione-summary span,.ione-settings-grid span { color:var(--muted); font-size:11px; font-weight:750; }.ione-summary strong { color:var(--navy); font-size:24px; }
.ione-tabs { display:flex; gap:4px; overflow-x:auto; border:1px solid var(--line); border-bottom:0; background:#fff; }
.ione-tabs button { padding:12px 16px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font-weight:750; cursor:pointer; }
.ione-tabs button.active { color:var(--navy); border-color:var(--navy); }
.ione-panel { min-height:180px; padding:18px; border:1px solid var(--line); background:#fff; box-shadow:var(--shadow); }
.ione-panel table { width:100%; border-collapse:collapse; font-size:13px; }.ione-panel th,.ione-panel td { padding:11px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.ione-settings-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.retry-list { display:grid; gap:9px; }.retry-list article { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px 16px; padding:12px; border-left:3px solid #f2a019; background:#fff8ed; }
.retry-list article div { display:flex; align-items:center; gap:10px; }.retry-list article p { grid-column:1/2; margin:0; color:var(--muted); font-size:12px; }
.error-state { margin-bottom:16px; padding:14px 16px; border:1px solid #efb6b2; border-radius:7px; color:#9f2018; background:#fff1f0; }
.table-panel { padding:20px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.table-scroll { overflow:auto; }.table-panel table { width:100%; border-collapse:collapse; font-size:13px; }
.table-panel th,.table-panel td { padding:12px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.table-panel tr[data-status="failed"] td:nth-child(3),.table-panel tr[data-status="cooldown"] td:nth-child(3) { color:#bd2545; font-weight:750; }
.account-page { min-height:100vh; display:grid; place-items:center; padding:40px 20px; }
.account-card { width:min(680px,100%); padding:30px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.account-logo { width:150px; height:100px; object-fit:contain; }.back-link { position:absolute; top:22px; left:22px; color:var(--navy); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(130px,1fr)) minmax(220px,1.5fr); gap: 12px; margin-bottom: 18px; }
.metric { display: flex; flex-direction: column; justify-content: center; min-height: 82px; padding: 14px 17px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: var(--shadow); }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { margin-top: 5px; color: var(--navy); font-size: 24px; }
.metric.attention { border-top-color: var(--pink); }
.metric.attention strong { color: var(--pink); }
.metric.import strong { font-size: 15px; }
.creation-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.creation-metrics article { display:flex; align-items:center; justify-content:space-between; min-height:72px; padding:14px 18px; border:1px solid #bfd5ea; border-radius:8px; background:linear-gradient(135deg,#fff,#f1f7fc); box-shadow:var(--shadow); }
.creation-metrics span { color:var(--muted); font-size:13px; font-weight:700; }
.creation-metrics strong { color:var(--navy); font-size:30px; }
.dashboard-tabs { display:flex; gap:4px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.dashboard-tabs button { padding:12px 16px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font-weight:800; cursor:pointer; }
.dashboard-tabs button.active { color:var(--navy); border-color:var(--navy); }
.dashboard-tabs button span { display:inline-grid; place-items:center; min-width:24px; margin-left:5px; padding:2px 7px; border-radius:999px; color:#fff; background:var(--pink); font-size:11px; }
.dashboard-panel { display:none; }.dashboard-panel.active { display:block; }
.uncategorized-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 20px; border:1px solid var(--line); border-bottom:3px solid var(--navy); background:#fff; }
.uncategorized-head h3 { margin:0; color:var(--navy); }
.uncategorized-list { border:1px solid var(--line); border-top:0; background:#fff; }
.uncategorized-row { display:grid; grid-template-columns:minmax(240px,1fr) minmax(220px,320px) auto auto; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--line); }
.uncategorized-row:last-child { border-bottom:0; }
.uncategorized-row > div { display:grid; gap:3px; min-width:0; }
.uncategorized-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.uncategorized-row span,.uncategorized-row small { color:var(--muted); font-size:12px; }
.uncategorized-row select { width:100%; min-height:42px; padding:8px 10px; border:1px solid #bcc6d1; border-radius:4px; background:#fff; }
.status-line { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; color: var(--muted); font-size: 13px; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.board { display: grid; grid-template-columns: repeat(4, minmax(210px,1fr)); gap: 18px; align-items: start; }
.category-card { min-width: 0; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-header { min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 3px solid var(--navy); }
.mail-icon { width: 21px; height: 15px; border: 2px solid var(--lime); position: relative; flex: 0 0 auto; }
.mail-icon::after { content: ""; position: absolute; width: 10px; height: 10px; left: 3px; top: -4px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font-weight: 800; }
.badge { margin-left: auto; min-width: 28px; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--pink); text-align: center; font-size: 12px; font-weight: 800; }
.product-list { margin: 0; padding: 0; list-style: none; }
.product-item { min-height: 66px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.product-item:last-child { border-bottom: 0; }
.product-sku { color: var(--muted); font-size: 12px; }
.product-name { display: -webkit-box; margin-top: 3px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.empty { min-height: 126px; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; }
.scrim { display: none; }
.categorization-intro { align-items: center; }
.queue-count { min-width: 160px; padding: 12px 18px; background: #fff; border-left: 4px solid var(--pink); box-shadow: var(--shadow); }
.queue-count strong, .queue-count span { display: block; }
.queue-count strong { color: var(--pink); font-size: 26px; }
.queue-count span { color: var(--muted); font-size: 12px; }
.categorization-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) 280px auto; gap: 12px; margin-bottom: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.search-field input, .filter-field select, .form-field input, .form-field select, .form-field textarea, .bulk-bar select {
  width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #bcc6d1; border-radius: 4px; background: #fff; color: var(--ink);
}
.search-field input:focus, .filter-field select:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(10,75,145,.13); border-color: var(--blue); }
.filter-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.bulk-bar { position: sticky; top: 82px; z-index: 8; display: grid; grid-template-columns: auto minmax(240px,380px) auto auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 16px; color: var(--navy); background: #eef6df; border: 1px solid #c7dfa2; box-shadow: var(--shadow); }
.bulk-bar[hidden] { display: none; }
.workspace { display: grid; grid-template-columns: minmax(420px,1.05fr) minmax(390px,.95fr); gap: 18px; align-items: start; }
.product-queue, .editor-panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.queue-header { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 3px solid var(--navy); color: var(--muted); font-size: 13px; }
.queue-header label { color: var(--navy); font-weight: 700; }
.categorization-list { min-height: 360px; }
.categorization-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s ease; }
.categorization-row:hover, .categorization-row.active { background: #f1f6fb; }
.categorization-row.active { box-shadow: inset 4px 0 var(--blue); }
.categorization-row > input { width: 18px; height: 18px; accent-color: var(--navy); }
.row-content { min-width: 0; }
.row-top { display: flex; align-items: center; gap: 9px; }
.row-sku { color: var(--navy); font-size: 13px; }
.status-pill { padding: 2px 7px; border-radius: 999px; color: #a24d00; background: #fff0d8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.row-content h3 { margin: 5px 0 3px; overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.row-content p, .source-category { margin: 0; color: var(--muted); font-size: 12px; }
.source-category { margin-top: 4px; color: var(--blue); }
.row-arrow { color: var(--navy); font-size: 28px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; }
.pagination .button { min-height: 36px; padding: 0 13px; }
.editor-panel { position: sticky; top: 90px; max-height: calc(100vh - 112px); overflow-y: auto; }
.editor-placeholder { display: grid; place-items: center; min-height: 480px; padding: 32px; text-align: center; }
.editor-placeholder h3 { margin: 14px 0 0; color: var(--navy); }
.editor-placeholder p { max-width: 310px; color: var(--muted); }
.placeholder-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--navy); background: #eaf1f8; font-size: 30px; }
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 3px solid var(--navy); }
.editor-heading h3 { margin: 3px 0 0; font-size: 18px; }
.sku-label { color: var(--blue); font-size: 12px; font-weight: 800; }
.close-editor { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 26px; }
.source-info { margin: 16px 20px 0; padding: 10px 12px; color: var(--muted); background: #f4f6f8; font-size: 12px; }
.form-field { display: grid; gap: 6px; margin: 15px 20px; font-size: 13px; font-weight: 700; }
.form-field b { color: var(--pink); }
.additional-categories { margin: 18px 20px; padding: 0; border: 0; }
.additional-categories legend { margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 140px; overflow-y: auto; border: 1px solid var(--line); }
.checkbox-grid label { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; font-size: 12px; }
.checkbox-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attribute-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 20px 5px; padding-top: 15px; border-top: 1px solid var(--line); }
.attribute-heading h4 { margin: 0; color: var(--navy); }
.attribute-heading span { color: var(--muted); font-size: 11px; }
.attribute-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.attribute-fields .muted { grid-column: 1/-1; padding: 0 20px 16px; }
.input-with-unit { position: relative; display: flex; align-items: center; }
.input-with-unit > span { position: absolute; right: 10px; color: var(--muted); font-size: 11px; }
.input-with-unit:has(> span) input { padding-right: 36px; }
.editor-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 20px; background: #fff; border-top: 1px solid var(--line); }
#saveMessage { margin-right: auto; color: var(--muted); font-size: 12px; }
.csv-workbench { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin: 22px 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.csv-workbench h3, .export-card h3 { margin: 3px 0 8px; color: var(--navy); }
.csv-columns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.csv-columns code { padding: 5px 8px; border-radius: 5px; color: var(--navy); background: #edf3f8; font: 700 11px/1.2 inherit; }
.upload-zone { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 210px; padding: 22px; border: 2px dashed #aec0d1; border-radius: 10px; color: var(--muted); text-align: center; background: #f8fafc; transition: .2s ease; }
.upload-zone.dragging { border-color: var(--orange); background: #fff8ef; transform: scale(1.01); }
.upload-zone strong { color: var(--navy); font-size: 16px; }
.upload-icon, .export-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: #fff; background: var(--navy); font-size: 25px; }
.table-actions, .row-buttons { display: flex; align-items: center; gap: 8px; }
.clickable-row { cursor: pointer; transition: background .15s ease; }
.clickable-row:hover { background: #f5f8fb; }
.row-action { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--navy); background: #fff; cursor: pointer; text-decoration: none; font-size: 20px; }
.run-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #475569; background: #eef2f6; font-size: 11px; font-weight: 800; }
.run-badge.running, .run-badge.queued { color: #075985; background: #e0f2fe; }
.run-badge.succeeded { color: #257219; background: #eaf7e7; }
.run-badge.failed { color: #b42318; background: #feeceb; }
.run-badge.cooldown { color: #a24d00; background: #fff0d8; }
.mini-progress { width: 160px; max-width: 100%; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 5px; background: #e8edf2; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--navy),var(--blue)); }
.progress-label { font-size: 11px; color: var(--muted); }
.active-import-progress { margin: 20px 0; padding: 20px 22px; border: 1px solid #b8d0e3; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.active-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.active-progress-head h3 { margin: 7px 0 3px; color: var(--navy); }
.active-progress-head p { margin: 0; color: var(--muted); }
.active-progress-head > strong { color: var(--navy); font-size: 30px; }
.large-progress { height: 12px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: #e5edf4; }
.large-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--navy),var(--blue),var(--orange)); transition: width .35s ease; }
.large-progress i.indeterminate { width: 35% !important; animation: import-progress 1.4s ease-in-out infinite; }
.active-progress-stats { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.active-progress-stats article { display: grid; gap: 4px; padding: 10px; border-radius: 6px; background: #f4f7fa; }
.active-progress-stats span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.active-progress-stats strong { overflow: hidden; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.active-import-progress > small { display: block; margin-top: 12px; color: var(--muted); }
@keyframes import-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
.task-dialog { width: min(980px,calc(100vw - 32px)); max-height: 88vh; padding: 0; overflow: auto; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(1,25,50,.28); }
.task-dialog::backdrop { background: rgba(1,20,40,.55); backdrop-filter: blur(2px); }
.task-dialog > section { margin: 0 24px 24px; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head h2 { margin: 2px 0 0; color: var(--navy); }
.close-dialog { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 30px; }
.detail-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 20px 24px; }
.detail-stats div { display: grid; gap: 5px; min-width: 0; padding: 12px; border-radius: 7px; background: #f5f8fb; }
.detail-stats span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.detail-stats strong { overflow: hidden; color: var(--navy); text-overflow: ellipsis; }
.log-stream { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.log-entry { display: grid; grid-template-columns: 135px 70px 1fr; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.log-entry:last-child { border-bottom: 0; }
.log-entry time { color: var(--muted); }
.log-entry p { margin: 3px 0 0; color: var(--ink); }
.log-level { align-self: start; padding: 2px 5px; border-radius: 3px; background: #edf2f6; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.log-entry.error .log-level { color: #b42318; background: #feeceb; }
.log-entry.warning .log-level { color: #a24d00; background: #fff0d8; }
.log-entry.success .log-level { color: #257219; background: #eaf7e7; }
.error-list { display: grid; gap: 8px; }
.error-list article { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; padding: 11px 12px; border-left: 3px solid #d6453d; background: #fff6f5; font-size: 12px; }
.error-list article p { grid-column: 1/-1; margin: 2px 0 0; }
.empty-state, .success-state { padding: 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: 7px; text-align: center; }
.success-state { color: #257219; background: #f4fbf2; }
.export-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.export-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.export-card > div { min-width: 0; }
.export-card p, .export-card ul { color: var(--muted); font-size: 13px; }
.export-card ul { padding-left: 18px; }
.export-card .button { grid-column: 1/-1; }
.export-card > a { grid-column: 1/-1; color: var(--blue); font-size: 12px; font-weight: 700; text-align: center; }
.product-toolbar { display: grid; grid-template-columns: minmax(320px,1fr) repeat(3,minmax(150px,auto)); gap: 10px; margin-bottom: 16px; }
.search-box { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.search-box input { width: 100%; padding: 0; border: 0; outline: 0; }
.product-toolbar select { min-height: 42px; }
.product-table td:first-child strong, .product-table td:first-child small, .product-table td:nth-child(2) small { display: block; }
.product-table td:first-child strong { max-width: 330px; color: var(--ink); }
.product-table small { margin-top: 4px; color: var(--muted); }
.quality-bar { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.quality-bar > span { width: 68px; height: 6px; overflow: hidden; border-radius: 9px; background: #e7edf2; }
.quality-bar i { display: block; height: 100%; background: #d6453d; }
.quality-bar.attention i { background: var(--orange); }.quality-bar.good i { background: var(--green); }
.quality-bar b { color: var(--muted); font-size: 11px; }
.workflow-pill, .relation-pill { display: inline-block; padding: 4px 7px; border-radius: 4px; color: var(--navy); background: #edf3f8; font-size: 10px; font-weight: 800; white-space: nowrap; }
.workflow-pill.published, .workflow-pill.approved { color: #257219; background: #eaf7e7; }
.workflow-pill.enrichment_required, .workflow-pill.media_review { color: #a24d00; background: #fff0d8; }
.workflow-pill.error, .workflow-pill.disabled { color: #b42318; background: #feeceb; }
.product-dialog { width: min(1400px,calc(100vw - 32px)); height: min(900px,calc(100vh - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 12px; box-shadow: 0 25px 90px rgba(1,25,50,.35); }
.product-dialog::backdrop { background: rgba(1,20,40,.58); backdrop-filter: blur(2px); }
.product-dialog-head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; min-height: 84px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.product-dialog-head h2 { margin: 2px 0; color: var(--navy); font-size: 22px; }
.product-dialog-head p { margin: 0; color: var(--muted); font-size: 12px; }
.quality-ring { display: flex; align-items: baseline; justify-content: center; width: 55px; height: 55px; border: 5px solid #d6453d; border-radius: 50%; flex-direction: row; color: #d6453d; }
.quality-ring strong { align-self: center; font-size: 16px; }.quality-ring span { align-self: center; font-size: 9px; }
.quality-ring.attention { color: var(--orange); border-color: var(--orange); }.quality-ring.good { color: var(--green); border-color: var(--green); }
.product-tabs { display: flex; overflow-x: auto; padding: 0 24px; border-bottom: 1px solid var(--line); background: #f7f9fb; }
.product-tabs button { min-height: 48px; padding: 0 17px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.product-tabs button.active { color: var(--navy); border-color: var(--orange); background: #fff; }
.product-tab { display: none; height: calc(100% - 134px); padding: 22px 26px 35px; overflow-y: auto; }
.product-tab.active { display: block; }
.detail-grid, .workflow-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 28px; }
.detail-grid section, .workflow-layout section { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detail-grid h3, .workflow-layout h3 { margin: 0 0 17px; color: var(--navy); }
.detail-grid label, .workflow-layout label, .channel-grid label { display: grid; gap: 6px; margin-bottom: 13px; color: var(--ink); font-size: 12px; font-weight: 700; }
.detail-grid label small { color: var(--muted); text-align: right; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attribute-workbench { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.attribute-workbench label { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.attribute-workbench label > span { color: var(--navy); font-size: 12px; font-weight: 750; }
.attribute-workbench label b { color: #d6453d; }.attribute-workbench label small { color: var(--muted); }
.media-library { display: grid; grid-template-columns: repeat(5,minmax(140px,1fr)); gap: 14px; }
.media-library article { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.media-preview { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; color: var(--muted); background: #f1f4f7; font-size: 32px; }
.media-preview img { width: 100%; height: 100%; object-fit: contain; }.media-library strong,.media-library span,.media-library small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.media-library span,.media-library small { color: var(--muted); font-size: 10px; }
.entity-list { display: grid; gap: 8px; margin: 16px 0; }.entity-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; }.entity-list article div:first-child { display: grid; gap: 4px; }.entity-list span { color: var(--muted); font-size: 11px; }
.configuration-card { margin-top: 15px; padding: 16px; border-left: 4px solid var(--orange); background: #fff8ef; }.configuration-card h3 { margin: 0 0 5px; }.configuration-card div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.configuration-card b { padding: 5px 8px; border-radius: 4px; background: #fff; font-size: 10px; }
.channel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }.channel-grid > article { padding: 17px; border: 1px solid var(--line); border-radius: 8px; }.channel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.channel-head h3 { margin: 0 0 4px; color: var(--navy); }.channel-head span { color: var(--muted); font-size: 10px; }
.switch input { display: none; }.switch i { display: block; width: 38px; height: 21px; padding: 3px; border-radius: 20px; background: #cbd5df; cursor: pointer; }.switch i:before { display: block; width: 15px; height: 15px; border-radius: 50%; background: #fff; content: ""; transition: .2s; }.switch input:checked+i { background: var(--green); }.switch input:checked+i:before { transform: translateX(17px); }
.comment-list { display: grid; gap: 9px; margin-top: 15px; }.comment-list article { padding: 11px 13px; border-radius: 6px; background: #f5f8fb; }.comment-list time { float: right; color: var(--muted); font-size: 10px; }.comment-list p { margin: 7px 0 0; font-size: 12px; }
.quality-metrics { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-bottom: 20px; }.quality-metrics article { display: grid; gap: 7px; padding: 17px; border-top: 4px solid var(--navy); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }.quality-metrics article.green { border-color: var(--green); }.quality-metrics article.orange { border-color: var(--orange); }.quality-metrics article.red { border-color: #d6453d; }.quality-metrics span { color: var(--muted); font-size: 11px; }.quality-metrics strong { color: var(--navy); font-size: 25px; }
.quality-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.distribution-list { display: grid; gap: 12px; padding: 18px; }.distribution-list div { display: grid; grid-template-columns: 150px 1fr 45px; align-items: center; gap: 10px; font-size: 11px; }.distribution-list i { height: 8px; overflow: hidden; border-radius: 6px; background: #edf1f5; }.distribution-list b { display: block; height: 100%; background: var(--navy); }
.channel-summary { display: grid; gap: 8px; padding: 18px; }.channel-summary article { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; }.channel-summary article div { display: grid; gap: 3px; }.channel-summary span,.channel-summary small { color: var(--muted); font-size: 10px; }
.quality-guidance { margin-top: 20px; padding: 22px; border-radius: 8px; color: #fff; background: var(--navy); }.quality-guidance h3 { margin: 0 0 16px; }.quality-guidance > div { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }.quality-guidance article { display: grid; gap: 6px; padding: 12px; border-radius: 6px; background: rgba(255,255,255,.08); }.quality-guidance b { color: var(--orange); font-size: 20px; }.quality-guidance span { font-size: 10px; line-height: 1.4; }
.assortment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.management-list { display: grid; gap: 8px; padding: 16px; }.management-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }.management-list article div { display: grid; gap: 4px; }.management-list span { color: var(--muted); font-size: 10px; }.management-list b { color: var(--navy); font-size: 11px; }
.simple-dialog { width: min(580px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 25px 80px rgba(1,20,40,.3); }.simple-dialog::backdrop { background: rgba(1,20,40,.55); }.dialog-fields { padding: 20px 24px; }.dialog-fields label { display: grid; gap: 6px; margin-bottom: 13px; font-size: 12px; font-weight: 700; }.simple-dialog footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 24px; border-top: 1px solid var(--line); }
@media (min-width: 1650px) { .board { grid-template-columns: repeat(6, minmax(200px,1fr)); } }
@media (max-width: 1250px) { .board { grid-template-columns: repeat(3, minmax(210px,1fr)); } .metrics { grid-template-columns: repeat(3,1fr); } .ione-summary { grid-template-columns:repeat(3,1fr); } .connection-explainer { grid-template-columns:1fr; } }
@media (max-width: 920px) {
  .active-progress-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .settings-form, .mapping-layout, .import-cards, .csv-workbench, .export-cards { grid-template-columns: 1fr; }
  .import-card dl { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(2,20,43,.45); }
  .shell { margin-left: 0; }
  .menu-button { display: block; }
  .topbar { padding: 0 18px; }
  .topbar h1 { margin-right: auto; margin-left: 12px; }
  .profile span:last-child { display: none; }
  .profile { padding-left: 12px; }
  .board { grid-template-columns: repeat(2,minmax(210px,1fr)); }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .creation-metrics,.ione-settings-grid { grid-template-columns:repeat(2,1fr); }
  .uncategorized-row { grid-template-columns:1fr minmax(200px,1fr); }
  .uncategorized-row .button { width:100%; }
  .workspace { grid-template-columns: 1fr; }
  .editor-panel { position: static; max-height: none; }
  .bulk-bar { top: 78px; grid-template-columns: 1fr 1fr; }
  .product-toolbar { grid-template-columns: 1fr 1fr; }
  .detail-grid,.workflow-layout,.quality-layout,.assortment-grid { grid-template-columns: 1fr; }
  .attribute-workbench,.channel-grid { grid-template-columns: repeat(2,1fr); }
  .media-library { grid-template-columns: repeat(3,1fr); }
  .quality-metrics,.quality-guidance > div { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 620px) {
  .active-progress-head { align-items: flex-start; }
  .active-progress-head > strong { font-size: 24px; }
  .active-progress-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  main { padding: 20px 14px 32px; }
  .top-actions { gap: 10px; }
  .icon-button { display: none; }
  .page-intro { align-items: stretch; flex-direction: column; }
  .page-actions { width: 100%; }
  .button { flex: 1; }
  .metrics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .creation-metrics,.ione-summary,.ione-settings-grid { grid-template-columns:1fr; }
  .uncategorized-head,.ione-hero { align-items:stretch; flex-direction:column; }
  .uncategorized-row { grid-template-columns:1fr; }
  .metric { min-width: 165px; scroll-snap-align: start; }
  .metric.import { min-width: 220px; }
  .board { grid-template-columns: 1fr; gap: 14px; }
  .status-line { align-items: flex-start; gap: 8px; flex-direction: column; }
  .categorization-toolbar { grid-template-columns: 1fr; }
  .filter-field { grid-template-columns: 1fr; gap: 5px; }
  .bulk-bar { position: static; grid-template-columns: 1fr; }
  .workspace { display: block; }
  .editor-panel { margin-top: 14px; }
  .queue-header { align-items: flex-start; flex-direction: column; }
  .attribute-fields { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .editor-actions { align-items: stretch; flex-direction: column; }
  .editor-actions .button { width: 100%; }
  .detail-stats { grid-template-columns: repeat(2,1fr); }
  .log-entry { grid-template-columns: 1fr auto; }
  .log-entry > div { grid-column: 1/-1; }
  .table-actions { align-items: stretch; flex-direction: column; }
  .product-toolbar,.attribute-workbench,.channel-grid { grid-template-columns: 1fr; }
  .media-library { grid-template-columns: repeat(2,1fr); }
  .product-dialog { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .product-dialog-head { grid-template-columns: auto 1fr auto; }.product-dialog-head .quality-ring { display: none; }.product-dialog-head .button { grid-column: 2/-1; }
  .two-fields { grid-template-columns: 1fr; }
  .quality-metrics,.quality-guidance > div { grid-template-columns: repeat(2,1fr); }
}
