/* E-Commerce Order Manager - front-end portal.
   A standalone document: nothing here depends on the WordPress admin or the site theme. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.eom-body { margin: 0; background: #f2f5f5; color: #1d2327; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.eom a { color: #0a6c74; }
.eom a:hover { color: #07484e; }
.eom p { margin: 0 0 .75em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- controls ---------- */
.eom input[type=text], .eom input[type=email], .eom input[type=password], .eom input[type=search],
.eom input[type=date], .eom input[type=number], .eom select, .eom textarea, .eom .input {
	font: inherit; color: inherit; background: #fff; border: 1px solid #b9c0c4; border-radius: 6px;
	padding: 7px 10px; min-height: 36px; max-width: 100%; margin: 0;
}
.eom textarea { width: 100%; }
.eom input:focus, .eom select:focus, .eom textarea:focus { outline: 2px solid #0a6c74; outline-offset: 0; border-color: #0a6c74; }
.eom input[type=checkbox], .eom input[type=radio] { width: 16px; height: 16px; accent-color: #0a6c74; margin: 0; }
.button, .eom button.button, .eom input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500;
	min-height: 36px; padding: 6px 14px; border-radius: 6px; border: 1px solid #b9c0c4; background: #fff; color: #1d2327;
	cursor: pointer; text-decoration: none; line-height: 1.3; transition: background .12s, border-color .12s;
}
.button:hover { background: #f2f5f5; border-color: #8a9399; color: #1d2327; }
.button:focus-visible { outline: 2px solid #0a6c74; outline-offset: 2px; }
.button[disabled], .button:disabled { opacity: .55; cursor: not-allowed; }
.button-primary, .eom input[type=submit].button-primary { background: #0a6c74; border-color: #0a6c74; color: #fff; }
.button-primary:hover { background: #07565c; border-color: #07565c; color: #fff; }
.button-hero { min-height: 44px; padding: 8px 22px; font-size: 15px; }
.button-small { min-height: 30px; padding: 3px 10px; font-size: 13px; }
.button-link { background: none; border: 0; padding: 0; min-height: 0; color: #0a6c74; text-decoration: underline; cursor: pointer; font: inherit; }

.eom-notice { border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; border: 1px solid; background: #fff; }
.eom-notice-success { border-color: #1a7f46; background: #e2f3e8; }
.eom-notice-error { border-color: #b3261e; background: #fbe8e6; }
.eom-notice-warning { border-color: #8a5300; background: #fcefd3; }
.eom-notice-info { border-color: #0a6c74; background: #e1f1f2; }
.eom-notice code { background: rgba(0,0,0,.07); padding: 1px 6px; border-radius: 4px; user-select: all; }

/* ---------- shell ---------- */
.eom-top { background: #0f2a2e; color: #e6f0f0; position: sticky; top: 0; z-index: 20; }
.eom-top-in { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: 54px; }
.eom-brand { color: #fff !important; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.eom-brand-dot { width: 10px; height: 10px; border-radius: 3px; background: #4fd1c5; transform: rotate(45deg); }
.eom-nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.eom-nav::-webkit-scrollbar { display: none; }
.eom-nav a { color: #b9d1d2; text-decoration: none; padding: 16px 12px; white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 500; }
.eom-nav a:hover { color: #fff; }
.eom-nav a.is-on { color: #fff; border-bottom-color: #4fd1c5; }
.eom-user { display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap; }
.eom-user a { color: #b9d1d2; }
.eom-user-name { color: #fff; }
.eom-main { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; }

/* ---------- sign-in ---------- */
.eom-auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 500px at 15% -10%, #d7ecea 0, transparent 60%), #f2f5f5; }
.eom-login { width: 100%; max-width: 400px; background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 32px 30px 26px; box-shadow: 0 10px 30px rgba(15,42,46,.08); }
.eom-brand-mark { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #0a6c74; font-weight: 650; margin: 0 0 6px; }
.eom-login h1 { margin-bottom: 6px; }
.eom-login form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.eom-login form p { margin: 0; }
.eom-login label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.eom-login .login-remember label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.eom-login input[type=text], .eom-login input[type=password] { width: 100%; min-height: 42px; font-size: 15px; }
.eom-login .login-submit input { width: 100%; min-height: 44px; font-size: 15px; background: #0a6c74; border-color: #0a6c74; color: #fff; border-radius: 6px; cursor: pointer; font-weight: 600; }
.eom-login .login-submit input:hover { background: #07565c; }
.eom-login-help { margin: 16px 0 0; font-size: 13px; text-align: center; }

/* ---------- tables ---------- */
.eom-table, .eom .widefat { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
.eom-table th, .eom-table td, .eom .widefat th, .eom .widefat td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e6e9eb; vertical-align: top; }
.eom-table thead th, .eom .widefat thead th { background: #f7f9f9; font-weight: 600; font-size: 12.5px; color: #4b535a; white-space: nowrap; border-bottom: 1px solid #dcdcde; }
.eom-table thead th a { color: inherit; text-decoration: none; }
.eom-table thead th a.is-on { color: #0a6c74; }
.eom-table tbody tr:hover td, .eom .widefat.striped tbody tr:hover td { background: #fafcfc; }
.eom .widefat.striped tbody tr:nth-child(odd) td { background: #fbfcfc; }
.eom-table .is-right { text-align: right; }
.eom-check-col { width: 34px; }
.eom-none { text-align: center; color: #646970; padding: 28px !important; }
.eom-row-title { font-weight: 650; text-decoration: none; }
.eom-row-actions { font-size: 12px; color: #8a9399; margin-top: 3px; }
.eom-row-actions a { text-decoration: none; }
.eom-row-actions a:hover { text-decoration: underline; }
.eom-listform { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; overflow: hidden; }
.eom-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-bottom: 1px solid #dcdcde; background: #f7f9f9; }
.eom-bulk-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b535a; }
.eom-selcount { margin-left: auto; font-size: 13px; color: #0a6c74; font-weight: 600; }
.eom-pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 12px; border-top: 1px solid #dcdcde; background: #f7f9f9; }
.eom-pager .eom-muted { margin-right: auto; font-size: 13px; }
.eom-pillnavs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.eom-pillnav { text-decoration: none; padding: 5px 13px; border-radius: 999px; background: #fff; border: 1px solid #dcdcde; color: #1d2327 !important; font-size: 13px; }
.eom-pillnav:hover { border-color: #0a6c74; }
.eom-pillnav.is-on { background: #1d2327; border-color: #1d2327; color: #fff !important; }
.eom-count { color: #8a9399; font-variant-numeric: tabular-nums; }
.eom-pillnav.is-on .eom-count { color: #b9c0c4; }
.eom-inline { display: inline; margin: 0; }
details.eom-issues summary { list-style: revert; }
.eom-filters .eom-pill input { display: none; }

@media (max-width: 760px) {
	.eom-top-in { flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px 0; }
	.eom-nav { order: 3; flex-basis: 100%; }
	.eom-nav a { padding: 10px 10px; }
	.eom-main { padding: 16px 12px 50px; }
	/* order rows become cards on phones */
	.eom-table.eom-table thead { display: none; }
	.eom-listform .eom-table, .eom-listform .eom-table tbody, .eom-listform .eom-table tr, .eom-listform .eom-table td { display: block; width: 100%; }
	.eom-listform .eom-table tr { border-bottom: 8px solid #f2f5f5; padding: 8px 4px; position: relative; }
	.eom-listform .eom-table td { border: 0; padding: 4px 12px 4px 46px; text-align: left !important; }
	.eom-listform .eom-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 82px; color: #8a9399; font-size: 12px; margin-right: 6px; }
	.eom-listform .eom-table td.col-order { padding-top: 8px; }
	.eom-listform .eom-table td.col-order::before { display: none; }
	.eom-listform .eom-table td.eom-check-col { position: absolute; left: 4px; top: 10px; width: auto; padding: 4px 8px; }
	.eom-bulk-date { width: 100%; }
}

/* ======== components ======== */
/* E-Commerce Order Manager - admin UI.
   Status colours carry meaning everywhere: teal = delivered, green = paid/received,
   amber = pending/needs a look, rose = returned/problem, slate = neutral/inactive. */

.eom {
	--eom-ink: #1d2327;
	--eom-mute: #646970;
	--eom-line: #dcdcde;
	--eom-wash: #f6f7f7;
	--eom-teal: #0a6c74;
	--eom-teal-bg: #e1f1f2;
	--eom-green: #1a7f46;
	--eom-green-bg: #e2f3e8;
	--eom-amber: #8a5300;
	--eom-amber-bg: #fcefd3;
	--eom-rose: #b3261e;
	--eom-rose-bg: #fbe8e6;
	--eom-slate: #4b535a;
	--eom-slate-bg: #eceff1;
	color: var(--eom-ink);
}
.eom * { box-sizing: border-box; }
.eom h1 { font-size: 26px; font-weight: 650; margin: 0; padding: 0; line-height: 1.2; letter-spacing: -.01em; }
.eom h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.eom-muted { color: var(--eom-mute); }
.eom-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0; }
.eom-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.eom-sub { font-size: 12px; color: var(--eom-mute); margin-top: 2px; }
.eom-hidden { display: none !important; }
.eom-scroll { overflow-x: auto; }

/* ---------- page header ---------- */
.eom-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 18px 0 16px; }
.eom-lede { margin: 6px 0 0; color: var(--eom-mute); font-size: 13.5px; max-width: 70ch; }
.eom-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eom-back { text-decoration: none; font-size: 13px; display: inline-block; margin-bottom: 6px; }

/* ---------- cards ---------- */
.eom-card { background: #fff; border: 1px solid var(--eom-line); border-radius: 6px; padding: 18px 20px; margin: 0 0 16px; }
.eom-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.eom-cols-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.eom-cols > .eom-card { margin-bottom: 0; }
.eom-empty { background: #fff; border: 1px dashed var(--eom-line); border-radius: 6px; padding: 40px; text-align: center; }
.eom-note { background: var(--eom-wash); border-left: 3px solid var(--eom-teal); padding: 8px 12px; margin: 14px 0; font-size: 13px; }

/* ---------- date range ---------- */
.eom-range { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.eom-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eom-chip { text-decoration: none; padding: 5px 12px; border: 1px solid var(--eom-line); border-radius: 999px; background: #fff; color: var(--eom-ink); font-size: 13px; }
.eom-chip:hover { border-color: var(--eom-teal); color: var(--eom-teal); }
.eom-chip.is-on { background: var(--eom-ink); border-color: var(--eom-ink); color: #fff; }
.eom-custom { display: flex; gap: 6px; align-items: center; }
.eom-custom input[type=date] { min-height: 30px; }

/* ---------- KPI strip (one instrument panel, not five cards) ---------- */
.eom-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--eom-line); border: 1px solid var(--eom-line); border-radius: 6px; overflow: hidden; margin: 0 0 18px; }
.eom-kpi { background: #fff; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; position: relative; min-width: 0; }
a.eom-kpi:hover { background: var(--eom-wash); }
a.eom-kpi:focus-visible { outline: 2px solid var(--eom-teal); outline-offset: -2px; }
.eom-kpi-label { font-size: 13px; color: var(--eom-mute); font-weight: 500; }
.eom-kpi-num { font-size: 40px; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.eom-kpi-sub { font-size: 12.5px; color: var(--eom-mute); }
.eom-bar { display: block; height: 4px; background: var(--eom-slate-bg); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.eom-bar i { display: block; height: 100%; background: currentColor; border-radius: 2px; }
.eom-k-delivered { color: var(--eom-teal); }
.eom-k-paid { color: var(--eom-green); }
.eom-k-net { color: var(--eom-green); }
.eom-k-net .eom-kpi-num { font-size: 30px; padding: 5px 0 3px; }
.eom-k-pending { color: var(--eom-amber); }
.eom-k-returned { color: var(--eom-rose); }
.eom-k-net .eom-kpi-label, .eom-k-net .eom-kpi-sub,
.eom-k-delivered .eom-kpi-label, .eom-k-paid .eom-kpi-label, .eom-k-pending .eom-kpi-label, .eom-k-returned .eom-kpi-label,
.eom-k-delivered .eom-kpi-sub, .eom-k-paid .eom-kpi-sub, .eom-k-pending .eom-kpi-sub, .eom-k-returned .eom-kpi-sub { color: var(--eom-mute); }
.eom-strip-sm .eom-kpi { padding: 14px 16px; }
.eom-strip-sm .eom-kpi-num { font-size: 30px; }
.eom-t-good .eom-kpi-num { color: var(--eom-green); }
.eom-t-warn .eom-kpi-num { color: var(--eom-amber); }
.eom-t-bad .eom-kpi-num { color: var(--eom-rose); }
.eom-t-muted .eom-kpi-num { color: var(--eom-slate); }

/* ---------- attention list ---------- */
.eom-todo { list-style: none; margin: 0; padding: 0; }
.eom-todo li { border-top: 1px solid var(--eom-line); }
.eom-todo li:first-child { border-top: 0; }
.eom-todo a { display: block; padding: 11px 0; text-decoration: none; color: inherit; }
.eom-todo a:hover strong { text-decoration: underline; }
.eom-todo strong { font-size: 18px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.eom-todo .is-warn strong { color: var(--eom-rose); }
.eom-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.eom-mini td { padding: 8px 8px 8px 0; border-top: 1px solid var(--eom-line); vertical-align: top; }
.eom-mini tr:first-child td { border-top: 0; }

/* ---------- badges ---------- */
.eom-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap; background: var(--eom-slate-bg); color: var(--eom-slate); }
.eom-b-delivery-delivered { background: var(--eom-teal-bg); color: var(--eom-teal); }
.eom-b-delivery-return { background: var(--eom-rose-bg); color: var(--eom-rose); }
.eom-b-delivery-booked { background: var(--eom-slate-bg); color: var(--eom-slate); }
.eom-b-delivery-cancelled { background: var(--eom-slate-bg); color: var(--eom-mute); text-decoration: line-through; }
.eom-b-payment-paid { background: var(--eom-green-bg); color: var(--eom-green); }
.eom-b-payment-unpaid { background: #fff; color: var(--eom-mute); box-shadow: inset 0 0 0 1px var(--eom-line); }
.eom-b-return-pending { background: var(--eom-amber-bg); color: var(--eom-amber); }
.eom-b-return-received { background: var(--eom-green-bg); color: var(--eom-green); }
.eom-b-issue-unmatched { background: var(--eom-amber-bg); color: var(--eom-amber); }
.eom-b-issue-conflict, .eom-b-issue-invalid { background: var(--eom-rose-bg); color: var(--eom-rose); }
.eom-muted + .eom-badge, .eom-pill { margin-left: 4px; }
.eom-pill { display: inline-flex; align-items: center; background: var(--eom-slate-bg); border-radius: 999px; padding: 3px 10px; font-size: 12px; }

/* ---------- orders list ---------- */
.eom-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--eom-line); border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; }
.eom-filters select, .eom-filters input[type=date], .eom-filters input[type=search] { min-height: 30px; margin: 0; }
.eom-search { flex: 1 1 280px; }
.eom-search input { width: 100%; }
.eom-daterange { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--eom-mute); }
.eom-daterange label { display: inline-flex; align-items: center; gap: 6px; }
.eom-reset { font-size: 13px; }
.eom-bulk-date { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.eom-bulk-date input { min-height: 30px; }

/* ---------- import ---------- */
.eom-upload { display: flex; flex-direction: column; gap: 16px; }
.eom-drop { display: flex; flex-direction: column; gap: 4px; border: 2px dashed #b4b9be; border-radius: 6px; padding: 26px 20px; text-align: center; cursor: pointer; background: var(--eom-wash); transition: border-color .15s, background .15s; }
.eom-drop:hover, .eom-drop.is-drag { border-color: var(--eom-teal); background: var(--eom-teal-bg); }
.eom-drop:focus-within { border-color: var(--eom-teal); box-shadow: 0 0 0 1px var(--eom-teal); }
.eom-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.eom-drop-main { font-weight: 600; }
.eom-drop-name { color: var(--eom-mute); font-size: 13px; word-break: break-all; }
.eom-drop.has-file .eom-drop-name { color: var(--eom-ink); font-weight: 500; }
.eom-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.eom-check input { margin-top: 3px; }
.eom-fieldset { border: 1px solid var(--eom-line); border-radius: 6px; padding: 8px 14px 12px; margin: 0; }
.eom-fieldset legend { padding: 0 6px; font-weight: 600; font-size: 13px; }
.eom-radio { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13px; }
.eom-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.eom-how ul { margin: 0; padding-left: 18px; font-size: 13px; }
.eom-how li { margin-bottom: 8px; }
.eom-preview { border-color: var(--eom-amber); box-shadow: 0 0 0 1px var(--eom-amber) inset; }
.eom-done { border-color: var(--eom-green); box-shadow: 0 0 0 1px var(--eom-green) inset; }
.eom-issues { margin-top: 14px; }
.eom-issues summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }

/* ---------- edit ---------- */
.eom-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 14px; }
.eom-fields label, .eom-notes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.eom-fields label > span, .eom-notes > span { font-weight: 600; }
.eom-fields select, .eom-fields input { width: 100%; max-width: none; }
.eom-notes textarea { width: 100%; }
.eom-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.eom-dl dt { color: var(--eom-mute); }
.eom-dl dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- returns scanner ---------- */
.eom-scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.eom-scan > * { margin: 0; }
.eom-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--eom-line); margin: -4px 0 16px; }
.eom-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font-size: 13.5px; cursor: pointer; color: var(--eom-mute); margin-bottom: -1px; }
.eom-tabs button.is-on { color: var(--eom-ink); border-bottom-color: var(--eom-teal); font-weight: 600; }
.eom-tabs button:focus-visible { outline: 2px solid var(--eom-teal); }
.eom-pane { display: none; }
.eom-pane.is-on { display: block; }
.eom-codebox { display: flex; gap: 8px; }
.eom-codebox input { flex: 1; min-width: 0; font-size: 18px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.eom-codebox .button-hero { padding: 0 20px !important; height: auto; }
#eom-bulk-codes { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-bottom: 8px; }
.eom-reader { width: 100%; max-width: 420px; min-height: 120px; background: #101517; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.eom-reader video { width: 100% !important; border-radius: 6px; }
.eom-cam-msg { min-height: 20px; margin: 0 0 8px; font-size: 13px; }

/* The one loud element: the scan result. */
.eom-result { display: flex; border: 2px dashed var(--eom-line); border-radius: 6px; background: var(--eom-wash); min-height: 250px; transition: background .12s, border-color .12s; }
.eom-result-body { padding: 22px 26px; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.eom-result-idle { color: var(--eom-mute); font-size: 15px; margin: 0; text-align: center; }
.eom-result[data-state=received] { background: var(--eom-green-bg); border: 2px solid var(--eom-green); }
.eom-result[data-state=already] { background: var(--eom-slate-bg); border: 2px solid var(--eom-slate); }
.eom-result[data-state=confirm], .eom-result[data-state=ambiguous] { background: var(--eom-amber-bg); border: 2px solid var(--eom-amber); }
.eom-result[data-state=not_found], .eom-result[data-state=error] { background: var(--eom-rose-bg); border: 2px solid var(--eom-rose); }
.eom-r-status { font-size: 14px; font-weight: 600; margin: 0; }
.eom-result[data-state=received] .eom-r-status { color: var(--eom-green); }
.eom-result[data-state=already] .eom-r-status { color: var(--eom-slate); }
.eom-result[data-state=confirm] .eom-r-status, .eom-result[data-state=ambiguous] .eom-r-status { color: var(--eom-amber); }
.eom-result[data-state=not_found] .eom-r-status, .eom-result[data-state=error] .eom-r-status { color: var(--eom-rose); }
.eom-r-order { font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; margin: 2px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eom-r-cust { font-size: 16px; margin: 0; }
.eom-r-meta { font-size: 13px; color: var(--eom-mute); margin: 2px 0 0; }
.eom-r-msg { font-size: 14px; margin: 10px 0 0; }
.eom-r-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.eom-r-matches { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.eom-feed-head { display: flex; justify-content: space-between; align-items: baseline; }
.eom-feed td { vertical-align: top; }
.eom-feed tr.is-new { animation: eom-flash 1.4s ease-out; }
@keyframes eom-flash { from { background: var(--eom-green-bg); } to { background: transparent; } }
.eom-feed tr.is-undone td { opacity: .5; }

@media (max-width: 960px) {
	.eom-cols, .eom-cols-wide, .eom-scan { grid-template-columns: 1fr; }
	.eom-kpi-num { font-size: 34px; }
	.eom-r-order { font-size: 34px; }
}
@media (max-width: 600px) {
	.eom-fields { grid-template-columns: 1fr; }
	.eom-codebox { flex-direction: column; }
	.eom-dl { grid-template-columns: 1fr; gap: 2px; }
	.eom-dl dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.eom-feed tr.is-new { animation: none; }
	.eom-result, .eom-drop { transition: none; }
}

.eom-stack { flex-direction: column; align-items: stretch; gap: 4px; }
.eom-stack > span { font-weight: 500; }
.eom-fs-help { margin: 4px 0 6px; font-size: 12.5px; }

/* ---------- Shopify ---------- */
.eom-sh-quick-wrap { display: inline-flex; align-items: center; gap: 8px; }
.eom-sh-status { font-size: 12.5px; color: var(--eom-mute); max-width: 360px; }
.eom-sh-status.is-error, .eom-progress.is-error .eom-progress-text { color: var(--eom-rose); }
.eom-tag { display: inline-block; background: var(--eom-teal-bg); color: var(--eom-teal); border-radius: 3px; padding: 0 6px; font-size: 11.5px; font-weight: 500; }
.eom-sync-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 6px; }
.eom-sync-or { color: var(--eom-mute); }
.eom-sync-import { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.eom-progress { margin-top: 14px; }
.eom-progress-bar { height: 6px; background: var(--eom-slate-bg); border-radius: 3px; overflow: hidden; }
.eom-progress-bar i { display: block; height: 100%; width: 100%; background: var(--eom-teal); transform-origin: left; }
.eom-progress.is-busy .eom-progress-bar i { width: 35%; animation: eom-slide 1.2s ease-in-out infinite; }
.eom-progress.is-error .eom-progress-bar i { background: var(--eom-rose); }
@keyframes eom-slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.eom-progress-text { margin: 8px 0 0; font-size: 13px; }
.eom-fields-1 { grid-template-columns: 1fr; }
.eom-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.eom-auth label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.eom-auth label > span { font-weight: 600; }
.eom-auth input { width: 100%; max-width: none; }
.eom-auth-token { grid-template-columns: 1fr; }
.eom-test-result { margin: 12px 0 0; font-size: 13px; }
.eom-test-result.is-ok { color: var(--eom-green); }
.eom-test-result.is-bad { color: var(--eom-rose); }
.eom-how ol { margin: 0 0 6px; padding-left: 18px; font-size: 13px; }
.eom-how ol li { margin-bottom: 8px; }
.eom-h2-gap { margin-top: 18px; }
@media (max-width: 600px) { .eom-auth { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .eom-progress.is-busy .eom-progress-bar i { animation: none; width: 60%; } }
