:root {
	/* Obsession Outlet brand: plum primary, clean white surfaces, Abril Fatface / Poppins / Lato */
	--bg: #f8f6f8;
	--surface: #ffffff;
	--ink: #242424;
	--ink-2: #555555;
	--ink-3: #848484;
	--line: #e8e8e8;
	--accent: #95588a;
	--accent-ink: #ffffff;
	--accent-soft: #f4ebf2;
	--warn: #9a5b0c;
	--warn-soft: #fbf0dc;
	--error: #a3322a;
	--error-soft: #fbe7e4;
	--ok: #1f7a4d;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(36, 36, 36, .04), 0 8px 24px rgba(149, 88, 138, .08);
	--serif: "Abril Fatface", Georgia, serif;
	--head: "Poppins", "Lato", system-ui, sans-serif;
	--sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #171416; --surface: #211d20; --ink: #f2eef1; --ink-2: #c4bbc1; --ink-3: #8f868c; --line: #3a3338;
		--accent: #c48ab8; --accent-ink: #1d1220; --accent-soft: #3a2636; --warn: #e5b46a; --warn-soft: #362a17;
		--error: #f08b80; --error-soft: #3a1f1c; --ok: #74c99c;
		--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
	}
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.wce { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* Top bar */
.wce-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.wce-mark { font-family: var(--serif); font-size: 20px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.wce-mark img { height: 42px; width: auto; display: block; }
.wce-top__right { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.wce-top__right a { color: var(--ink-2); text-decoration: none; }
.wce-top__right a:hover { color: var(--ink); }
.wce-top__user { color: var(--ink-3); }

/* Hero / search */
.wce-app { max-width: 880px; margin: 0 auto; padding: 0 16px 80px; }
.wce-hero { padding: 9vh 0 40px; text-align: center; transition: padding .3s ease; }
.wce-hero.is-compact { padding: 3vh 0 24px; }
.wce-hero.is-compact .wce-wordmark { font-size: 40px; }
.wce-hero__brand { margin-bottom: 28px; }
.wce-wordmark { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(44px, 9vw, 76px); letter-spacing: -.03em; line-height: 1; margin: 0; transition: font-size .3s ease; }
.wce-eyebrow { margin: 12px 0 0; text-transform: uppercase; letter-spacing: .28em; font: 600 12px var(--head); color: var(--accent); }
.wce-search { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wce-search__box { position: relative; width: 100%; max-width: 640px; }
.wce-search__box input {
	width: 100%; height: 58px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
	padding: 0 24px 0 54px; font: 17px var(--sans); color: var(--ink); box-shadow: var(--shadow); outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.wce-search__box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.wce-search__icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.wce-select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 12px; font: 14px var(--sans); }
.wce-hint { color: var(--ink-3); font-size: 14px; margin: 4px 0 0; max-width: 520px; }
.wce-chip { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 500; }
.wce-chip--warn { background: var(--warn-soft); color: var(--warn); }

/* Buttons */
.wce-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px var(--head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.wce-btn:hover { background: var(--bg); }
.wce-btn:active { transform: translateY(1px); }
.wce-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wce-btn--primary:hover { background: var(--accent); filter: brightness(.92); }
.wce-btn--lg { height: 48px; padding: 0 30px; font-size: 15px; border-radius: 12px; }
.wce-btn[disabled] { opacity: .55; cursor: progress; }
.wce-link { background: none; border: 0; color: var(--accent); font: 500 14px var(--sans); cursor: pointer; padding: 0; }

/* Cards & alerts */
.wce-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.wce-alert { border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0; text-align: left; }
.wce-alert--error { background: var(--error-soft); color: var(--error); }
.wce-alert--warn { background: var(--warn-soft); color: var(--warn); }
.wce-muted { color: var(--ink-3); }

/* Login */
.wce-login { min-height: calc(100vh - 70px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px 10vh; text-align: center; }
.wce-login__card { width: 100%; max-width: 380px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.wce-login__card h2 { margin: 0 0 4px; font: 600 20px var(--head); }
.wce-login__card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.wce-login__card input[type=text], .wce-login__card input[type=password] { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: 15px var(--sans); outline: none; }
.wce-login__card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wce-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.wce-login__card .wce-btn { height: 46px; margin-top: 4px; }
.wce-login__forgot { font-size: 13px; text-align: center; }

/* Active job */
.wce-job { margin-bottom: 40px; }
.wce-job__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.wce-job__kw { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 600; margin: 0 0 4px; }
.wce-job__title { font: 600 22px/1.3 var(--head); margin: 0; letter-spacing: -.01em; }
.wce-pct { font: 600 28px var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.wce-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 22px; }
.wce-bar__fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.wce-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.wce-step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ink-3); align-items: start; }
.wce-step__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; }
.wce-step--done { color: var(--ink-2); }
.wce-step--done .wce-step__dot { background: var(--accent); border-color: var(--accent); }
.wce-step--done .wce-step__dot::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.wce-step--active { color: var(--ink); font-weight: 500; }
.wce-step--active .wce-step__dot { border-color: var(--accent); border-top-color: transparent; animation: wce-spin .9s linear infinite; }
.wce-step--failed { color: var(--error); font-weight: 500; }
.wce-step--failed .wce-step__dot { border-color: var(--error); background: var(--error-soft); }
.wce-step--skipped { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line); }
.wce-step__note { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
@keyframes wce-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wce-step--active .wce-step__dot { animation: none; border-top-color: var(--accent); } }

.wce-result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.wce-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wce-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.wce-metric { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.wce-metric b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.wce-metric span { font-size: 12px; color: var(--ink-3); }
.wce-details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.wce-details summary { cursor: pointer; padding: 12px 0; font-weight: 500; font-size: 14px; }
.wce-details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.wce-details ol, .wce-details ul { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.wce-details li { margin: 4px 0; }
.wce-details p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.wce-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.wce-tags span { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12.5px; color: var(--ink-2); }
.wce-log { font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); max-height: 260px; overflow: auto; margin: 0 0 14px; white-space: pre-wrap; }

/* History */
.wce-history__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.wce-history__head h2 { font: 600 16px var(--head); margin: 0; }
.wce-history__list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wce-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.wce-row:first-child { border-top: 0; }
.wce-row__title { font-weight: 500; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.wce-row__meta { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 0; }
.wce-row__actions { display: flex; gap: 12px; align-items: center; font-size: 13.5px; white-space: nowrap; }
.wce-row__actions a, .wce-row__actions button { color: var(--accent); text-decoration: none; }
.wce-badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; text-transform: capitalize; }
.wce-badge--done { background: var(--accent-soft); color: var(--ok); }
.wce-badge--running, .wce-badge--queued { background: var(--warn-soft); color: var(--warn); }
.wce-badge--failed { background: var(--error-soft); color: var(--error); }
.wce-empty { padding: 28px 18px; text-align: center; color: var(--ink-3); margin: 0; }

/* Preview modal */
.wce-modal { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.wce-modal::backdrop { background: rgba(20, 19, 17, .45); }
.wce-modal__bar { position: sticky; top: 0; display: flex; justify-content: space-between; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.wce-modal__body { padding: 28px clamp(18px, 5vw, 48px) 48px; font-size: 16.5px; line-height: 1.7; }
.wce-modal__body h1 { font: 400 32px/1.2 var(--serif); margin: 0 0 12px; letter-spacing: -.01em; }
.wce-modal__body h2 { font: 600 22px/1.3 var(--head); margin: 34px 0 10px; }
.wce-modal__body h3 { font: 600 18px/1.35 var(--head); margin: 24px 0 8px; }
.wce-modal__body img { max-width: 100%; height: auto; border-radius: 10px; }
.wce-modal__body figure { margin: 22px 0; }
.wce-modal__body figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.wce-modal__body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wce-modal__body th, .wce-modal__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.wce-modal__body th { background: var(--bg); }
.wce-seo { background: var(--bg); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; margin-bottom: 24px; }
.wce-seo div { margin: 2px 0; }
.wce-seo b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 640px) {
	.wce-top { padding: 14px 16px; }
	.wce-top__user { display: none; }
	.wce-steps { grid-template-columns: 1fr; }
	.wce-row { grid-template-columns: 1fr; }
	.wce-job__head { flex-direction: column-reverse; gap: 6px; }
	.wce-card { padding: 18px; }
}
