:root {
    --bg: #f6f4f7;
    --surface: #ffffff;
    --surface-soft: #f1eef4;
    --surface-purple: #f0edf5;
    --ink: #17141f;
    --ink-soft: #4f4a59;
    --muted: #7f788a;
    --line: #e2dee6;
    --line-strong: #d3cdd9;
    --purple: #675389;
    --purple-dark: #513d72;
    --purple-light: #e7e0f0;
    --green: #23845d;
    --green-bg: #e8f6ef;
    --orange: #b56b29;
    --orange-bg: #fff2e4;
    --red: #b53b45;
    --red-bg: #fdebed;
    --shadow: 0 14px 40px rgba(43, 31, 55, .07);
    --radius: 16px;
    --radius-sm: 11px;
    --sidebar: 254px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { display: inline-block; flex: none; vertical-align: -0.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: var(--sidebar); flex-direction: column; border-right: 1px solid var(--line); background: rgba(251, 250, 251, .97); padding: 23px 18px 18px; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #49385f; font-size: 22px; font-weight: 760; letter-spacing: -.8px; }
.brand-mark { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: white; background: var(--purple); box-shadow: 0 8px 18px rgba(103, 83, 137, .24); }
.brand-dot { color: #a68cc6; }
.autoallegro-brand { gap: 10px; letter-spacing: 0; }
.autoallegro-mark { display: inline-grid; flex: none; place-items: center; overflow: hidden; }
.autoallegro-mark svg { width: 100%; height: 100%; }
.autoallegro-mark svg path { stroke: currentColor; stroke-width: 3.15; stroke-linecap: round; stroke-linejoin: round; }
.autoallegro-wordmark { display: inline-flex; align-items: baseline; font-size: 21px; line-height: 1; letter-spacing: -.75px; }
.autoallegro-wordmark b { color: var(--purple); font-weight: 540; }
.autoallegro-wordmark strong { color: #ff5a00; font-weight: 800; }
.autoallegro-mark-panel { width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(145deg, #ff6a18, #e74600); box-shadow: 0 9px 20px rgba(231, 70, 0, .22); }
.autoallegro-mark-panel svg { width: 29px; height: 29px; }
.autoallegro-mark-panel svg path { stroke-width: 3; }
.autoallegro-brand-panel:hover .autoallegro-mark-panel { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(231, 70, 0, .28); }
.autoallegro-mark-panel { transition: .18s ease; }
.side-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; margin-top: 38px; }
.nav-label { margin: 0 12px 7px; color: #a39da9; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 24px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; border-radius: 10px; padding: 0 12px; color: #625c69; font-size: 14px; font-weight: 570; transition: .18s ease; }
.nav-link:hover { color: var(--purple-dark); background: var(--surface-soft); }
.nav-link.is-active { color: var(--purple-dark); background: var(--purple-light); box-shadow: inset 3px 0 var(--purple); }
.nav-link-primary { margin-top: 6px; color: white; background: var(--purple); }
.nav-link-primary:hover { color: white; background: var(--purple-dark); transform: translateY(-1px); }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 17px; }
.sidebar-foot form { margin: 0; }
.user-chip { display: flex; align-items: center; min-width: 0; gap: 10px; }
.avatar { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 50%; color: var(--purple-dark); background: var(--purple-light); font-weight: 750; }
.user-copy { display: flex; min-width: 0; flex-direction: column; }
.user-copy strong { max-width: 122px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { max-width: 122px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--purple-dark); background: var(--surface-soft); }

.main-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(226, 222, 230, .9); background: rgba(246, 244, 247, .86); padding: 0 38px; backdrop-filter: blur(14px); }
.topbar-title { display: flex; flex-direction: column; }
.topbar-title span { font-weight: 700; letter-spacing: -.2px; }
.topbar-title small { color: var(--muted); font-size: 11px; }
.mobile-menu { display: none; }
.page-wrap { width: min(1420px, 100%); margin: 0 auto; padding: 42px 38px 70px; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 0 19px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-primary { color: white; background: var(--purple); box-shadow: 0 8px 20px rgba(103, 83, 137, .18); }
.button-primary:hover { background: var(--purple-dark); box-shadow: 0 10px 26px rgba(103, 83, 137, .25); }
.button-secondary { border-color: #a99ab9; color: var(--purple-dark); background: white; }
.button-secondary:hover { border-color: var(--purple); background: var(--surface-purple); }
.button-quiet { color: var(--purple-dark); background: var(--surface-purple); }
.button-danger { color: white; background: var(--red); }
.button-wide { width: 100%; }
.button-small { min-height: 37px; padding: 0 14px; font-size: 12px; }
.is-loading .icon { animation: pulse .8s ease infinite alternate; }

.page-heading { margin-bottom: 29px; }
.page-heading h1 { margin: 4px 0 4px; font-size: clamp(28px, 3vw, 38px); font-weight: 720; letter-spacing: -1.25px; line-height: 1.18; }
.page-heading p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.eyebrow { display: block; color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(30, 22, 39, .02); }
.card-accent { position: relative; overflow: hidden; }
.card-accent::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--purple); content: ""; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.35px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.section-icon, .heading-icon { display: inline-grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 12px; color: var(--purple); background: var(--surface-purple); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-size: 12px; font-weight: 700; }
.text-link:hover { color: var(--purple-dark); }

.alert { position: relative; display: flex; align-items: flex-start; gap: 11px; border: 1px solid; border-radius: 12px; margin-bottom: 20px; padding: 13px 46px 13px 14px; font-size: 13px; }
.alert p { margin: 0; }
.alert-success { border-color: #bfdfd0; color: #166544; background: var(--green-bg); }
.alert-error { border-color: #f0bec3; color: #94303a; background: var(--red-bg); }
.alert-close { position: absolute; top: 8px; right: 9px; border: 0; color: inherit; background: transparent; font-size: 22px; cursor: pointer; }

.connection-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-bottom: 5px; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .66); padding: 5px 9px; font-size: 10px; font-weight: 650; }
.connection-pill i { width: 6px; height: 6px; border-radius: 50%; background: #b9b3bd; }
.connection-pill.is-connected { border-color: #c7e4d5; color: #267455; background: #f3fbf7; }
.connection-pill.is-connected i { background: #35a477; box-shadow: 0 0 0 3px rgba(53, 164, 119, .12); }
.connection-pill.is-pending { border-color: #efc98e; color: #89521f; background: #fff7e9; }
.connection-pill.is-pending i { background: #d59045; box-shadow: 0 0 0 3px rgba(213, 144, 69, .12); }

.quick-import { padding: 27px 29px 23px; }
.quick-import-copy { display: flex; align-items: center; gap: 14px; }
.quick-import-copy h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.quick-import-copy p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }
.url-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 22px; }
.url-form input { width: 100%; height: 54px; border: 1px solid var(--line-strong); border-radius: 11px; outline: none; padding: 0 18px 0 47px; background: #fbfafc; transition: .18s ease; }
.url-form input:focus { border-color: #947fb0; background: white; box-shadow: 0 0 0 4px rgba(103, 83, 137, .1); }
.url-form .button { min-height: 54px; }
.url-input-icon { position: absolute; z-index: 2; top: 16px; left: 15px; color: #968ca0; pointer-events: none; }
.quick-trust { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.quick-trust span { display: inline-flex; align-items: center; gap: 5px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat-card { display: flex; min-height: 96px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 17px; }
.stat-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 11px; }
.stat-purple { color: var(--purple); background: var(--surface-purple); }
.stat-green { color: var(--green); background: var(--green-bg); }
.stat-orange { color: var(--orange); background: var(--orange-bg); }
.stat-gray { color: #6e6873; background: #f0eef1; }
.stat-card div { display: flex; flex: 1; flex-direction: column-reverse; }
.stat-card small { color: var(--muted); font-size: 10px; }
.stat-card strong { font-size: 25px; font-weight: 720; line-height: 1; }
.stat-card > a { color: #b3adb8; }
.stat-card > a:hover { color: var(--purple); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 18px; }
.recent-card, .process-card { padding: 22px; }
.offer-list { margin-top: 14px; }
.offer-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; border-top: 1px solid #efecf0; padding: 12px 2px; }
.offer-row:hover .offer-main strong { color: var(--purple); }
.offer-thumb { display: grid; width: 46px; height: 46px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #978e9f; background: #f5f3f6; }
.offer-thumb img { width: 100%; height: 100%; object-fit: contain; background: white; }
.offer-main { display: flex; min-width: 0; flex-direction: column; }
.offer-main strong { overflow: hidden; font-size: 12px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; transition: .18s; }
.offer-main small { color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; color: #6e6873; background: #f0eef1; font-size: 10px; font-weight: 720; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ready { color: #21714f; background: var(--green-bg); }
.status-processing { color: var(--purple); background: var(--purple-light); }
.status-processing i { animation: blink 1s ease infinite; }
.status-failed { color: var(--red); background: var(--red-bg); }
.status-needs_input { color: #96601e; background: #fff2df; }
.status-queued { color: #716b76; background: #efedf0; }
.status-large { padding: 8px 12px; font-size: 11px; }
.row-arrow { color: #b1abb5; }
.mini-process { display: flex; flex-direction: column; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.mini-process li { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.mini-process li:not(:last-child)::after { position: absolute; top: 42px; bottom: -4px; left: 16px; width: 1px; background: var(--line); content: ""; }
.mini-process li > span { z-index: 1; display: grid; width: 33px; height: 33px; flex: none; place-items: center; border-radius: 9px; color: var(--purple); background: var(--surface-purple); }
.mini-process li div { display: flex; flex-direction: column; }
.mini-process b { font-size: 11px; }
.mini-process small { color: var(--muted); font-size: 9px; }
.empty-state { display: flex; min-height: 240px; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; color: var(--purple); background: var(--surface-purple); }
.empty-state h3, .empty-state h2 { margin: 12px 0 3px; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0 0 15px; font-size: 12px; }

.breadcrumbs { display: flex; align-items: center; gap: 8px; margin: -6px 0 23px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--purple); }
.centered-heading { display: flex; align-items: center; gap: 16px; }
.centered-heading h1 { font-size: 30px; }
.import-card { max-width: 980px; margin: 0 auto; padding: 29px; }
.import-card-head { display: flex; align-items: center; gap: 14px; }
.step-number { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 11px; color: white; background: var(--purple); font-size: 12px; font-weight: 800; }
.import-card-head h2 { margin: 0; font-size: 19px; }
.import-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.big-url-field { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-radius: 13px; margin-top: 22px; padding: 6px 6px 6px 16px; background: #fbfafc; transition: .18s; }
.big-url-field:focus-within { border-color: #927ead; background: white; box-shadow: 0 0 0 4px rgba(103, 83, 137, .09); }
.big-url-field > span { color: #8e8497; }
.big-url-field input { min-width: 0; height: 45px; border: 0; outline: 0; background: transparent; }
.big-url-field .button { min-height: 45px; }
.supported-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px 0; color: var(--muted); font-size: 10px; }
.supported-line b { color: var(--ink-soft); }
.supported-line i { color: #c1bcc4; font-style: normal; }
.marketplace-support { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 2px 0; }
.marketplace-support-compact { margin-top: 12px; }
.marketplace-pill { display: inline-flex; min-height: 25px; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #faf9fb; padding: 0 9px; font-size: 9px; }
.marketplace-pill b { font-weight: 760; }
.marketplace-amazon { border-color: #e4d4b8; color: #232f3e; background: #fffaf1; }
.marketplace-amazon b::after { display: inline-block; width: 18px; height: 4px; border-bottom: 2px solid #ff9900; border-radius: 50%; margin-left: -17px; transform: translate(0, 4px) rotate(4deg); content: ""; }
.marketplace-aliexpress { border-color: #f1c9ca; color: #d6292f; background: #fff6f6; }
.marketplace-ebay { border-color: #cad9ee; color: #1769aa; background: #f5f9ff; }
.workflow-preview { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; margin-top: 30px; }
.workflow-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .72); padding: 14px; }
.workflow-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; margin-bottom: 12px; color: var(--purple); background: var(--surface-purple); }
.workflow-card small { color: #9d96a2; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.workflow-card strong { margin-top: 2px; font-size: 11px; }
.workflow-card p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.info-strip { display: flex; max-width: 980px; align-items: flex-start; gap: 13px; border: 1px solid #ded7e7; border-radius: 13px; margin: 28px auto 0; color: var(--purple-dark); background: var(--surface-purple); padding: 15px 18px; }
.info-strip strong { display: block; font-size: 11px; }
.info-strip p { margin: 2px 0 0; color: #6d6278; font-size: 10px; }

.catalog-card { overflow: hidden; }
.catalog-head, .catalog-row { display: grid; grid-template-columns: minmax(260px, 1.7fr) .55fr .62fr .62fr 22px; align-items: center; gap: 16px; padding: 13px 20px; }
.catalog-head { border-bottom: 1px solid var(--line); color: var(--muted); background: #faf9fb; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.catalog-row { border-bottom: 1px solid #efecf0; transition: .16s; }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row:hover { background: #fbfafc; }
.catalog-product { display: flex; min-width: 0; align-items: center; gap: 12px; }
.catalog-product > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.catalog-product strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-product small { color: var(--muted); font-size: 9px; }
.catalog-price { font-size: 12px; font-weight: 700; }
.empty-state-large { min-height: 420px; }

.offer-title-row { align-items: center; }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--purple); font-size: 11px; }
.steps-board { margin-bottom: 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.step-card { position: relative; display: flex; min-height: 77px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .74); padding: 13px; }
.step-card:last-child { grid-column: 1 / -1; }
.step-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 10px; color: #81768b; background: var(--surface-soft); }
.step-card-copy { display: flex; min-width: 0; flex-direction: column; }
.step-card-copy small { color: #9a939f; font-size: 8px; }
.step-card-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.step-active { border-color: #a494b6; background: white; box-shadow: 0 7px 24px rgba(64, 48, 78, .07); }
.step-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 0 0 12px 12px; background: var(--purple); content: ""; }
.step-active .step-icon { color: white; background: var(--purple); }
.step-done .step-icon { color: var(--green); background: var(--green-bg); }
.step-pending { opacity: .76; }
.step-spinner { width: 14px; height: 14px; flex: none; border: 2px solid var(--purple-light); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
.step-expanded { border: 1px solid var(--line-strong); border-radius: 14px; margin-top: 9px; background: rgba(103, 83, 137, .055); padding: 21px 23px; }
.step-expanded-error { border-color: #e9b6bc; background: var(--red-bg); }
.failed-retry-form { margin-top: 14px; }
.step-expanded-warning { border-color: #efc98e; background: #fff7e9; }
.expanded-head { display: flex; align-items: center; gap: 11px; }
.expanded-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: white; background: var(--purple); }
.step-expanded-error .expanded-icon { background: var(--red); }
.step-expanded-warning .expanded-icon { background: var(--orange); }
.expanded-head small { color: var(--purple); font-size: 9px; }
.expanded-head h2 { margin: 0; font-size: 16px; }
.step-expanded > p { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; }
.step-expanded .expanded-note { color: var(--muted); font-size: 10px; }
.processing-line { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.processing-line small { color: var(--muted); font-size: 9px; }
.processing-bar { position: relative; width: 170px; height: 5px; overflow: hidden; border-radius: 999px; background: #dfd9e5; }
.processing-bar i { position: absolute; width: 48%; height: 100%; border-radius: inherit; background: var(--purple); animation: progress 1.6s ease-in-out infinite; }
.expanded-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.expanded-features span { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); background: white; padding: 10px; font-size: 10px; }
.expanded-features .icon { color: var(--green); }

.process-log-card { margin: 0 0 24px; padding: 22px 23px; }
.process-log-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.process-log-head h2 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.3px; }
.process-log-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d8cde5; border-radius: 999px; color: var(--purple); background: var(--surface-purple); padding: 6px 10px; font-size: 9px; font-weight: 750; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(103,83,137,.11); animation: blink 1.2s ease infinite; }
.live-indicator.is-stopped { border-color: var(--line); color: var(--muted); background: #f4f2f5; }
.live-indicator.is-stopped i { background: #aaa3ae; box-shadow: none; animation: none; }
.job-diagnostic { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; margin-top: 16px; padding: 10px 12px; color: var(--ink-soft); background: #f8f7f9; font-size: 10px; }
.job-diagnostic.diagnostic-warning { border-color: #efc98e; color: #89521f; background: #fff7e9; }
.job-diagnostic.diagnostic-error { border-color: #efbcc2; color: var(--red); background: var(--red-bg); }
.job-diagnostic.diagnostic-success { border-color: #bfe0cf; color: var(--green); background: var(--green-bg); }
.worker-last-run { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 8px; }
.worker-last-run b { color: var(--ink-soft); font-weight: 650; }
.job-progress { display: flex; align-items: center; gap: 10px; margin: 16px 0 9px; }
.job-progress > span { display: block; height: 7px; flex: 1; overflow: hidden; border-radius: 999px; background: #e8e4eb; }
.job-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #8d73b0); transition: width .35s ease; }
.job-progress b { width: 34px; color: var(--purple); font-size: 10px; text-align: right; }
.job-log-list { max-height: 300px; overflow-y: auto; margin: 0; padding: 4px 4px 4px 0; list-style: none; scrollbar-width: thin; }
.job-log-list li { position: relative; display: grid; grid-template-columns: 52px 12px 1fr; align-items: start; gap: 9px; padding: 7px 0; }
.job-log-list li:not(:last-child)::after { position: absolute; top: 24px; bottom: -7px; left: 68px; width: 1px; background: var(--line); content: ""; }
.job-log-list time { color: #9a939f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.log-dot { z-index: 1; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; margin-top: 2px; background: #a9a2ad; box-shadow: 0 0 0 1px #c9c4cc; }
.log-success .log-dot { background: var(--green); box-shadow: 0 0 0 1px #79ba9e; }
.log-warning .log-dot { background: var(--orange); box-shadow: 0 0 0 1px #dda56f; }
.log-error .log-dot { background: var(--red); box-shadow: 0 0 0 1px #d9838b; }
.job-log-list div { min-width: 0; }
.job-log-list b { display: block; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.job-log-list p { margin: 1px 0 0; color: var(--ink-soft); font-size: 10px; }
.cron-warning { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #efc98e; border-radius: 11px; margin-top: 14px; color: #7e4b1c; background: #fff7e9; padding: 13px; }
.cron-warning.is-hidden { display: none; }
.cron-warning > span { flex: none; }
.cron-warning strong { display: block; font-size: 11px; }
.cron-warning p { margin: 2px 0 7px; font-size: 9px; }
.cron-warning code { display: block; overflow-x: auto; border: 1px solid #ead7b7; border-radius: 7px; color: #5f3b19; background: #fffdfa; padding: 8px 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; white-space: nowrap; }
.cron-warning small { display: block; margin-top: 7px; color: #9a6d40; font-size: 8px; }
.cron-warning small code { display: inline; border: 0; padding: 0; background: transparent; }
.source-fallback-card { margin: 0 0 24px; padding: 24px; }
.source-fallback-head { display: flex; align-items: flex-start; gap: 13px; }
.source-fallback-head h2 { margin: 2px 0 0; font-size: 18px; }
.source-fallback-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.source-fallback-form { margin-top: 20px; }
.source-fallback-actions { display: flex; justify-content: flex-end; gap: 9px; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr); align-items: start; gap: 18px; }
.editor-card, .media-card, .data-card { padding: 23px; }
.editor-form { margin-top: 20px; }
.allegro-publication-fields { display: flex; flex-direction: column; gap: 14px; border: 1px solid #ddd5e5; border-radius: 13px; background: #f8f6fa; padding: 18px; }
.allegro-fields-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.allegro-fields-heading h3 { margin: 2px 0 0; font-size: 14px; }
.allegro-fields-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.api-source-pill { flex: none; border: 1px solid #f0c2a8; border-radius: 999px; color: #d64c00; background: #fff4ed; padding: 5px 8px; font-size: 8px; font-weight: 750; }
.allegro-api-notice { display: flex; align-items: center; gap: 8px; border: 1px solid #e7b9bf; border-radius: 9px; color: var(--red); background: var(--red-bg); padding: 10px 11px; font-size: 9px; }
.allegro-api-notice a { color: inherit; font-weight: 750; text-decoration: underline; }
.category-picker { display: flex; flex-direction: column; gap: 10px; }
.category-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.category-search-row .button { height: 43px; }
.category-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.category-suggestions:empty { display: none; }
.category-suggestions button { border: 1px solid #d7cce2; border-radius: 8px; color: var(--purple-dark); background: white; padding: 7px 9px; font-size: 9px; text-align: left; cursor: pointer; }
.category-suggestions button:hover { border-color: #9b85b3; background: var(--surface-purple); }
.category-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #cdbddd; border-radius: 9px; color: var(--purple-dark); background: white; padding: 9px 11px; font-size: 9px; font-weight: 650; }
.category-current:empty { display: none; }
.category-current button { flex: none; border: 0; color: var(--purple); background: transparent; font-size: 8px; font-weight: 750; cursor: pointer; }
.category-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.allegro-load-state { border-radius: 8px; color: var(--muted); background: #f0edf3; padding: 8px 10px; font-size: 8px; line-height: 1.45; }
.allegro-load-state.is-success { color: var(--green); background: var(--green-bg); }
.allegro-load-state.is-error { color: var(--red); background: var(--red-bg); }
.allegro-parameters { border-top: 1px solid #e2dce7; padding-top: 14px; }
.allegro-parameters h4 { margin: 0 0 9px; font-size: 11px; }
.allegro-empty-state { border: 1px dashed #d8cfdf; border-radius: 9px; color: var(--muted); background: white; padding: 13px; font-size: 9px; text-align: center; }
.allegro-empty-state.is-error { border-color: #e7b9bf; color: var(--red); background: var(--red-bg); }
.allegro-parameter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.allegro-parameter-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; border: 1px solid #e0d9e5; border-radius: 9px; background: white; padding: 10px; }
.allegro-parameter-field.is-conditionally-hidden { display: none; }
.allegro-parameter-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.allegro-parameter-label > span:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.allegro-parameter-label small { border-radius: 5px; color: var(--red); background: var(--red-bg); padding: 2px 4px; font-size: 7px; white-space: nowrap; }
.allegro-parameter-label small.is-offer { color: var(--purple); background: var(--surface-purple); }
.allegro-parameter-label small.is-hidden { display: none; }
.allegro-parameter-field input, .allegro-parameter-field select, .allegro-parameter-field textarea { width: 100%; min-height: 39px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: #fbfafc; padding: 9px 10px; font-size: 10px; }
.allegro-parameter-field select[multiple] { min-height: 105px; }
.allegro-parameter-field textarea { resize: vertical; }
.allegro-parameter-field > small { color: var(--muted); font-size: 8px; }
.parameter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.allegro-optional-parameters { margin-top: 12px; }
.allegro-optional-parameters summary { width: fit-content; margin-bottom: 9px; color: var(--purple); font-size: 9px; font-weight: 750; cursor: pointer; }
.allegro-options-heading { border-top: 1px solid #e2dce7; padding-top: 14px; }
.allegro-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.allegro-tax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid #e2dce7; padding-top: 14px; }
.allegro-safety-field { border-top: 1px solid #e2dce7; padding-top: 14px; }
.gpsr-check { border: 1px solid #ddd5e5; border-radius: 8px; background: white; padding: 9px 10px; }
.allegro-location-fields { margin-top: -2px; }
.editor-side { display: flex; flex-direction: column; gap: 14px; }
.description-field { display: flex; flex-direction: column; gap: 10px; }
.description-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.description-tabs { display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f7f5f8; padding: 3px; }
.description-tabs button { border: 0; border-radius: 6px; color: var(--muted); background: transparent; padding: 6px 9px; font-size: 9px; font-weight: 700; cursor: pointer; }
.description-tabs button.is-active { color: var(--purple-dark); background: white; box-shadow: 0 1px 4px rgba(48, 35, 60, .1); }
.description-layout-note { display: flex; align-items: center; gap: 6px; margin: -2px 0 0; color: var(--muted); font-size: 9px; }
.description-source.is-hidden, .allegro-preview.is-hidden { display: none; }
.allegro-preview { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; color: #26212c; background: white; }
.allegro-preview-row { display: grid; border-top: 1px solid #eeeaf0; background: white; }
.allegro-preview-row.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.allegro-preview-section { align-self: center; padding: 30px 32px; }
.allegro-preview h1 { margin: 0 0 12px; font-size: 23px; line-height: 1.2; }
.allegro-preview h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.allegro-preview p { margin: 0; color: #514a58; font-size: 12px; line-height: 1.75; }
.allegro-preview p + p, .allegro-preview p + ul, .allegro-preview p + ol { margin-top: 12px; }
.allegro-preview ul, .allegro-preview ol { margin: 0; padding-left: 20px; color: #514a58; font-size: 12px; line-height: 1.75; }
.allegro-preview li + li { margin-top: 5px; }
.allegro-preview-image { display: grid; min-height: 260px; margin: 0; place-items: center; border-top: 1px solid #eeeaf0; border-bottom: 1px solid #eeeaf0; background: #fafafa; }
.allegro-preview-image img { display: block; width: 100%; max-height: 620px; object-fit: contain; background: white; }
.allegro-preview-separator { min-height: 0; padding: 12px 0; border: 0; background: white; }
.allegro-preview-separator img { width: 100%; height: auto; max-height: 68px; object-fit: contain; }
.allegro-preview-side-image { display: grid; min-height: 330px; margin: 0; place-items: center; border-left: 1px solid #eeeaf0; background: #fafafa; }
.allegro-preview-side-image img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; background: white; }
.compact-heading { margin-bottom: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.media-grid figure { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; margin: 0; background: #f7f6f7; }
.media-grid img { width: 100%; height: 100%; object-fit: contain; background: white; }
.media-grid figcaption { position: absolute; bottom: 5px; left: 5px; border-radius: 5px; color: white; background: rgba(47, 35, 60, .78); padding: 2px 5px; font-size: 8px; }
.media-error { display: none; max-width: 120px; color: var(--red); padding: 9px; font-size: 8px; line-height: 1.4; text-align: center; }
.media-grid figure.is-error { border-color: #ecc4c8; background: var(--red-bg); }
.media-grid figure.is-error img { display: none; }
.media-grid figure.is-error .media-error { display: block; }
[data-media-summary].has-media-errors { color: var(--red) !important; }
.media-policy-note { display: flex; align-items: flex-start; gap: 6px; margin: 11px 0 0; color: var(--green); font-size: 8px; line-height: 1.45; }
.media-policy-note .icon { flex: none; }
.media-retry { margin-top: 13px; }
.mini-empty { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.data-card h3 { margin: 0 0 9px; font-size: 12px; }
.data-card h3:not(:first-child) { margin-top: 19px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud span { border-radius: 7px; color: var(--purple-dark); background: var(--surface-purple); padding: 4px 7px; font-size: 9px; }
.attribute-list { margin: 0; }
.attribute-list div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #efecf0; padding: 7px 0; font-size: 9px; }
.attribute-list dt { color: var(--muted); }
.attribute-list dd { margin: 0; text-align: right; }
.publish-card { border: 1px solid #d8d1df; border-radius: 15px; background: #f0eef2; padding: 21px; }
.publish-head { display: flex; align-items: center; gap: 10px; }
.publish-head > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: white; background: var(--purple); }
.publish-head small { color: var(--purple); font-size: 8px; }
.publish-head h2 { margin: 0; font-size: 15px; }
.publish-card > p { margin: 13px 0; color: var(--ink-soft); font-size: 10px; }
.publish-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.publish-settings { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--purple); font-size: 9px; }
.published-state, .security-enabled { display: flex; align-items: center; gap: 10px; border: 1px solid #bfe0cf; border-radius: 10px; margin-top: 15px; color: var(--green); background: var(--green-bg); padding: 12px; }
.published-state.draft-state { border-color: #d8cde5; color: var(--purple); background: var(--surface-purple); }
.published-state div, .security-enabled div { display: flex; flex-direction: column; }
.published-state strong, .security-enabled h3 { margin: 0; font-size: 11px; }
.published-state small, .security-enabled p { margin: 0; font-size: 9px; }

.form-stack { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.field > span:first-child { display: flex; justify-content: space-between; }
.field > span small { color: var(--muted); font-size: 9px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; background: #fbfafc; padding: 11px 12px; font-size: 12px; font-weight: 450; transition: .18s; }
.field input, .field select { height: 43px; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #927ead; background: white; box-shadow: 0 0 0 3px rgba(103, 83, 137, .09); }
.field > small { color: var(--muted); font-size: 9px; font-weight: 450; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.suffix-field { position: relative; display: block !important; }
.suffix-field input { padding-right: 48px; }
.suffix-field b { position: absolute; top: 13px; right: 12px; color: var(--muted); font-size: 10px; }
.password-field { position: relative; display: block !important; }
.password-field input { padding-right: 45px; }
.password-field button { position: absolute; top: 4px; right: 4px; display: grid; width: 35px; height: 35px; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.check-field { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.check-field input { width: 15px; height: 15px; accent-color: var(--purple); }

.settings-tabs { position: sticky; top: 84px; z-index: 20; display: flex; width: fit-content; gap: 4px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 28px; background: rgba(255,255,255,.92); padding: 4px; backdrop-filter: blur(12px); }
.settings-tabs a { display: flex; align-items: center; gap: 6px; border-radius: 8px; padding: 8px 11px; color: var(--muted); font-size: 10px; font-weight: 700; }
.settings-tabs a:hover { color: var(--purple); background: var(--surface-purple); }
.settings-form { display: flex; flex-direction: column; gap: 22px; }
.settings-section { display: grid; grid-template-columns: minmax(210px, .45fr) minmax(0, 1fr); align-items: start; gap: 28px; scroll-margin-top: 145px; }
.settings-copy { display: flex; align-items: flex-start; gap: 12px; padding-top: 4px; }
.settings-copy h2 { margin: 0; font-size: 16px; }
.settings-copy p { max-width: 280px; margin: 3px 0 10px; color: var(--muted); font-size: 10px; }
.settings-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 11px; color: var(--purple); background: var(--surface-purple); }
.replicate-icon { color: white; background: #202023; }
.allegro-icon { color: white; background: #ff5a00; font-size: 23px; font-weight: 800; }
.ebay-icon { color: white; background: #1769aa; font-size: 22px; font-weight: 800; text-transform: lowercase; }
.security-icon { color: var(--green); background: var(--green-bg); }
.settings-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 23px; }
.settings-card .field-row + .field, .settings-card .field + .field, .settings-card .field-row + .field-row { margin-top: 14px; }
.subtle-check { margin-top: 10px; }
.danger-check { color: var(--red); }
.advanced-settings { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.advanced-settings summary { width: fit-content; color: var(--purple); font-size: 10px; font-weight: 700; cursor: pointer; }
.details-body { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.callback-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; margin-top: 16px; color: var(--muted); background: #f8f7f9; padding: 10px 12px; }
.callback-box div { display: flex; min-width: 0; flex-direction: column; }
.callback-box small { font-size: 8px; }
.callback-box code { overflow: hidden; color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-save { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; }
.connection-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 10px 0 42px; }
.security-section { margin-top: 10px; }
.security-prompt { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.security-prompt h3 { margin: 0; font-size: 12px; }
.security-prompt p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.totp-setup h3, .recovery-box h3 { margin: 0; font-size: 13px; }
.totp-setup > p, .recovery-box p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.secret-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed #bdb0ca; border-radius: 10px; color: var(--purple-dark); background: var(--surface-purple); padding: 12px; }
.secret-code code { font-family: ui-monospace, monospace; font-size: 14px; letter-spacing: .08em; word-break: break-all; }
.secret-code button { border: 0; color: var(--purple); background: transparent; cursor: pointer; }
.uri-code { color: var(--muted); font-size: 9px; word-break: break-all; }
.inline-confirm { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 16px; }
.recovery-box { display: flex; align-items: flex-start; gap: 11px; }
.recovery-box > .icon { color: var(--orange); }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.recovery-codes code { border: 1px solid var(--line); border-radius: 6px; background: #f8f7f9; padding: 6px 8px; font-size: 10px; }
.danger-details { margin-top: 18px; }
.danger-details summary { color: var(--red); }

.auth-body { min-height: 100vh; background: white; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(400px, .95fr) minmax(480px, 1.05fr); }
.auth-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; color: white; background: linear-gradient(145deg, #3f2f55 0%, #675389 56%, #7c65a0 100%); padding: 38px 48px; }
.auth-visual::before, .auth-visual::after { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.auth-visual::before { width: 520px; height: 520px; right: -250px; bottom: -180px; }
.auth-visual::after { width: 330px; height: 330px; right: -135px; bottom: -80px; }
.brand-light { z-index: 1; color: white; }
.brand-light .brand-mark { color: var(--purple-dark); background: white; }
.autoallegro-brand-auth { gap: 13px; color: white; }
.autoallegro-mark-auth { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.48); border-radius: 15px; color: white; background: rgba(255,255,255,.13); box-shadow: 0 14px 30px rgba(28, 17, 43, .17); backdrop-filter: blur(8px); }
.autoallegro-mark-auth svg { width: 38px; height: 38px; }
.autoallegro-mark-auth svg path:nth-child(3), .autoallegro-mark-auth svg path:nth-child(4) { stroke: #ffb077; }
.autoallegro-brand-auth .autoallegro-wordmark { font-size: 26px; letter-spacing: -1px; }
.autoallegro-brand-auth .autoallegro-wordmark b { color: #f4ecfb; }
.autoallegro-brand-auth .autoallegro-wordmark strong { color: #ffab70; }
.auth-promo { z-index: 1; display: flex; max-width: 610px; flex: 1; justify-content: center; flex-direction: column; }
.eyebrow-light { color: #ddd0ed; }
.auth-promo h1 { max-width: 600px; margin: 10px 0 15px; font-size: clamp(34px, 4vw, 56px); font-weight: 700; letter-spacing: -2.2px; line-height: 1.03; }
.auth-promo > p { max-width: 520px; margin: 0; color: #e4ddec; font-size: 14px; line-height: 1.7; }
.auth-flow { display: flex; align-items: center; margin-top: 48px; }
.auth-flow-item { display: flex; align-items: center; gap: 8px; color: #eee8f4; font-size: 10px; white-space: nowrap; }
.auth-flow-item b { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.09); font-size: 9px; }
.auth-flow-line { width: 34px; height: 1px; margin: 0 8px; background: rgba(255,255,255,.22); }
.auth-legal { z-index: 1; margin: 0; color: rgba(255,255,255,.56); font-size: 9px; }
.auth-panel { display: grid; place-items: center; padding: 45px; }
.auth-card { width: min(430px, 100%); }
.auth-heading { margin-bottom: 27px; }
.auth-heading h2 { margin: 4px 0 5px; font-size: 28px; letter-spacing: -.8px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; margin-bottom: 14px; color: var(--purple); background: var(--surface-purple); }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch a { color: var(--purple); font-weight: 700; }
.code-input { font-size: 21px !important; letter-spacing: .25em; text-align: center; }

.error-body { display: grid; min-height: 100vh; place-items: center; background: var(--bg); padding: 30px; }
.error-card { width: min(480px, 100%); border: 1px solid var(--line); border-radius: 20px; background: white; padding: 36px; text-align: center; box-shadow: var(--shadow); }
.error-card .brand { margin: 0 auto 25px; }
.error-code { display: block; color: var(--purple-light); font-size: 86px; font-weight: 800; line-height: 1; }
.error-card h1 { margin: -16px 0 7px; font-size: 24px; }
.error-card p { margin: 0 0 20px; color: var(--muted); }
.menu-backdrop { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pulse { to { opacity: .35; } }
@keyframes progress { 0% { left: -50%; } 55%, 100% { left: 105%; } }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-preview { grid-template-columns: repeat(4, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .settings-section { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    :root { --sidebar: 280px; }
    .sidebar { transform: translateX(-101%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(32, 21, 42, .12); }
    .sidebar.is-open { transform: translateX(0); }
    .menu-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(28, 21, 35, .35); }
    .menu-backdrop.is-open { display: block; }
    .main-shell { margin-left: 0; }
    .mobile-menu { display: inline-grid; }
    .topbar { padding: 0 22px; }
    .topbar-title { margin-right: auto; margin-left: 8px; }
    .page-wrap { padding: 32px 22px 60px; }
    .content-grid, .editor-grid { grid-template-columns: 1fr; }
    .process-card { order: -1; }
    .mini-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .mini-process li { align-items: center; flex-direction: column; text-align: center; }
    .mini-process li::after { display: none; }
    .editor-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .publish-card { grid-column: 1 / -1; }
    .settings-section { grid-template-columns: 1fr; gap: 13px; }
    .settings-copy p { max-width: none; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 330px; padding: 28px 35px; }
    .auth-promo { padding: 44px 0; }
    .auth-promo h1 { max-width: 680px; font-size: 38px; }
    .auth-promo > p { max-width: 680px; }
    .auth-flow { margin-top: 26px; }
    .auth-panel { padding: 50px 26px; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .topbar { height: 63px; padding: 0 14px; }
    .topbar-title small, .topbar-cta { display: none; }
    .page-wrap { padding: 25px 14px 48px; }
    .page-heading { margin-bottom: 22px; }
    .page-heading-row { align-items: flex-start; flex-direction: column; }
    .connection-pills { justify-content: flex-start; }
    .page-heading h1 { font-size: 28px; }
    .quick-import { padding: 21px 18px; }
    .quick-import-copy { align-items: flex-start; }
    .url-form { grid-template-columns: 1fr; }
    .url-form input { height: 50px; }
    .url-form .button { min-height: 47px; }
    .stats-grid { gap: 9px; }
    .stat-card { min-height: 85px; padding: 12px; }
    .stat-icon { width: 36px; height: 36px; }
    .stat-card strong { font-size: 21px; }
    .offer-row { grid-template-columns: 43px minmax(0, 1fr) auto; }
    .offer-row .status-badge { grid-column: 2; }
    .offer-row .row-arrow { display: none; }
    .mini-process { grid-template-columns: 1fr; }
    .mini-process li { align-items: center; flex-direction: row; text-align: left; }
    .workflow-preview { grid-template-columns: repeat(2, 1fr); }
    .import-card { padding: 20px 16px; }
    .big-url-field { grid-template-columns: auto 1fr; }
    .big-url-field .button { grid-column: 1 / -1; width: 100%; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .step-card { min-height: 67px; padding: 10px; }
    .step-icon { width: 32px; height: 32px; }
    .expanded-features { grid-template-columns: 1fr; }
    .process-log-card { padding: 17px 15px; }
    .job-log-list li { grid-template-columns: 43px 11px 1fr; gap: 7px; }
    .job-log-list li:not(:last-child)::after { left: 58px; }
    .editor-side { grid-template-columns: 1fr; }
    .allegro-preview-row.has-image { grid-template-columns: 1fr; }
    .allegro-preview-side-image { min-height: 250px; border-top: 1px solid #eeeaf0; border-left: 0; }
    .allegro-preview-section { padding: 23px 20px; }
    .publish-card { grid-column: auto; }
    .field-row, .field-row-3 { grid-template-columns: 1fr; }
    .category-search-row, .category-levels, .allegro-parameter-grid, .allegro-options-grid, .allegro-tax-grid { grid-template-columns: 1fr; }
    .category-search-row .button { width: 100%; }
    .allegro-fields-heading { flex-direction: column; }
    .publish-actions { grid-template-columns: 1fr; }
    .catalog-head { display: none; }
    .catalog-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 14px; }
    .catalog-row > span:nth-child(2), .catalog-row > span:nth-child(3), .catalog-row > span:nth-child(4) { grid-column: 1; margin-left: 58px; }
    .catalog-row > .row-arrow { grid-column: 2; grid-row: 1; }
    .settings-tabs { top: 72px; width: 100%; overflow-x: auto; }
    .settings-tabs a { flex: 1; justify-content: center; white-space: nowrap; }
    .settings-card { padding: 17px; }
    .connection-actions { align-items: stretch; flex-direction: column; }
    .connection-actions .button { width: 100%; }
    .security-prompt, .inline-confirm { display: flex; align-items: stretch; flex-direction: column; }
    .recovery-codes { grid-template-columns: 1fr; }
    .auth-visual { min-height: 270px; padding: 24px; }
    .auth-promo { padding: 38px 0 27px; }
    .auth-promo h1 { font-size: 30px; letter-spacing: -1.3px; }
    .auth-promo > p { font-size: 12px; }
    .auth-flow, .auth-legal { display: none; }
    .auth-panel { padding: 38px 20px; }
    .auth-heading h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
