/* Bright, single light theme (POC). */
:root {
    --bg: #f3f6fc;
    --card: #ffffff;
    --text: #172033;
    --muted: #5d6b82;
    --line: #e1e7f2;
    --accent: #2f6df6;
    --accent-2: #12b5a5;
    --accent-soft: #e8f0ff;
    --accent-ink: #ffffff;
    --warn-bg: #fff6dc;
    --warn: #8a5a00;
    --err-bg: #ffeceb;
    --err: #c2261d;
    --ok: #13905b;
    --ok-bg: #e3f7ee;
    --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 6px 20px rgba(47, 109, 246, .07);
    color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }

.top {
    padding: 14px 16px;
    background: linear-gradient(110deg, #2f6df6 0%, #6a4cf5 55%, #12b5a5 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(47, 109, 246, .25);
}
.top .inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; color: #fff; letter-spacing: .2px; }
.brand span { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.top .tag { font-size: 13px; opacity: .9; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; min-width: 0; box-shadow: var(--shadow); }
.card.hero { border-top: 4px solid var(--accent); }
h1 { font-size: 21px; margin: 0 0 6px; } h2 { font-size: 17px; margin: 0 0 10px; } h3 { font-size: 15px; margin: 14px 0 6px; }
.muted { color: var(--muted); font-weight: normal; } .small { font-size: 13px; }
.head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span2 { grid-column: span 2; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .span2 { grid-column: span 1; } }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
input, textarea, select { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #cfd8e8; border-radius: 8px; background: #fbfcff; color: var(--text); width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,246,.18); background: #fff; }
.hint { font-size: 12.5px; font-weight: normal; color: var(--muted); }

button { font: inherit; font-weight: 700; background: linear-gradient(110deg, var(--accent), #6a4cf5); color: var(--accent-ink); border: 0; border-radius: 9px; padding: 10px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(47,109,246,.3); }
button:hover { filter: brightness(1.06); }
button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
button[disabled] { opacity: .75; cursor: wait; }
.err { color: var(--err); font-weight: normal; font-size: 13px; }

.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.error { background: var(--err-bg); color: var(--err); margin-top: 10px; }
.alert.info { background: var(--accent-soft); color: #1f4fbf; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f7f9fe; }
tbody tr:hover { background: #f8faff; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: #1f4fbf; white-space: nowrap; }
.pill.done { background: var(--ok-bg); color: var(--ok); }
.pill.failed { background: var(--err-bg); color: var(--err); }
.pill.queued { background: #eef1f6; color: var(--muted); }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; background: #eef1f6; color: var(--muted); }
.chip.est { background: var(--warn-bg); color: var(--warn); }

/* ---------- Activity ---------- */
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; flex: none; }
.spinner.lg { width: 22px; height: 22px; border-width: 3px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.activity { border: 1px solid #cfdcfb; background: linear-gradient(180deg, #f4f8ff, #fff); }
.activity .now { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.activity .now .dots::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.bar { position: relative; height: 8px; border-radius: 999px; background: #e3eafa; overflow: hidden; margin: 14px 0 10px; }
.bar > .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #6a4cf5, var(--accent-2)); transition: width .8s ease; }
.bar > .fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 12px; }
.steps li { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; background: #fff; }
.steps li.done { color: var(--ok); border-color: #b6e6cf; background: var(--ok-bg); }
.steps li.done::before { content: '✓'; font-weight: 800; }
.steps li.now { color: #fff; background: var(--accent); border-color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,109,246,.45); } 50% { box-shadow: 0 0 0 7px rgba(47,109,246,0); } }

.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 120px; }
.stat b { display: block; font-size: 19px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.flash b { animation: flash 1s ease; }
@keyframes flash { from { color: var(--accent); } to { color: inherit; } }

.log { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.log li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.log li.warning { color: var(--warn); } .log li.error { color: var(--err); }
.log li.fresh { animation: slidein .5s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-4px); background: var(--accent-soft); } to { opacity: 1; transform: none; } }

details summary { cursor: pointer; color: var(--muted); }
.markdown table { margin: 10px 0; }
.markdown h1, .markdown h2, .markdown h3 { margin-top: 16px; }
code { font-size: 13px; background: #eef2fa; padding: 1px 5px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.cost { margin: 6px 0 12px; }
.cost summary { color: var(--text); }

/* RFQs */
.rfq { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; background: #fbfcff; }
.rfq.sent, .rfq.replied { border-color: #b6e6cf; background: #f6fcf9; }
.rfq.dropped { opacity: .6; }
.rfq.bounced { border-color: #f3c2c2; background: #fff8f8; }
.rfq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rfq-actions select { width: auto; }
a.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border-radius: 9px; padding: 9px 16px; text-decoration: none; }
a.btn.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.pick { display: flex; gap: 8px; align-items: center; font-weight: 400; flex-direction: row; }
.pick input { width: auto; }
a.btn.primary { background: linear-gradient(110deg, var(--accent), #6a4cf5); color: #fff; border: 0; box-shadow: 0 4px 14px rgba(47,109,246,.3); }
.reply { border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: 8px; padding: 10px 12px; }
.reply-text { white-space: pre-wrap; font: 13px/1.5 ui-monospace, monospace; max-height: 320px; overflow: auto; background: #fff; padding: 8px; border-radius: 6px; }

/* Run page tabs */
[x-cloak] { display: none !important; }
.tabbed { scroll-margin-top: 8px; }
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin: 0 0 14px;
    background: rgba(243, 246, 252, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tab { background: transparent; color: var(--muted); box-shadow: none; border-radius: 8px; padding: 8px 14px; white-space: nowrap; font-weight: 600; }
.tab:hover { background: var(--accent-soft); color: #1f4fbf; filter: none; }
.tab.on { background: linear-gradient(110deg, var(--accent), #6a4cf5); color: #fff; box-shadow: 0 3px 10px rgba(47,109,246,.3); }

/* Verification (Phase 3) */
.rfq.verify.confirmed { border-color: #b6e6cf; background: #f6fcf9; }
.rfq.verify.wrong_number, .rfq.verify.denied { border-color: #f3c2c2; background: #fff8f8; }
.clock { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #eef1f6; }
.clock.open { background: var(--ok-bg); }
.clock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.clock.open .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(19,144,91,.2); }
.script { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-top: 6px; }
.script p, .script ol { margin: 6px 0; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
button.small { padding: 5px 10px; font-size: 13px; }

/* Accounts (Phase 4) */
.top .nav a { color: #fff; }
button.linkish { background: none; border: 0; box-shadow: none; padding: 0 0 0 4px; color: #fff; text-decoration: underline; font-weight: 400; font-size: 13px; cursor: pointer; }
.auth { max-width: 460px; margin: 30px auto 0; }

/* Billing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcff; }
.plan.current { border-color: var(--ok); background: var(--ok-bg); }
.plan h3 { margin-top: 0; }
.plan .price { font-size: 20px; font-weight: 800; margin: 4px 0; }
.plan ul { padding-left: 18px; margin: 8px 0; }
td.ok { color: var(--ok); }
.guide { background: #f7f9fe; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.guide h3:first-child { margin-top: 0; }
.warnlist { margin: 6px 0 0; padding-left: 18px; color: var(--warn); }

/* Public pages */
.foot { max-width: 1100px; margin: 0 auto; padding: 0 16px 30px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
.landing h1 { font-size: 28px; line-height: 1.25; }
.landing h1 em { font-style: normal; color: var(--accent); }
.landing .lead { font-size: 16.5px; max-width: 760px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.features .card { margin-bottom: 0; }
.features + .card { margin-top: 16px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 16px; margin-top: 18px; }

/* Saved suppliers */
button.star { background: none; box-shadow: none; border: 0; padding: 0 4px 0 0; color: var(--muted); font-size: 17px; line-height: 1; display: inline; }
button.star.on { color: #e0a100; }
.card.supplier { padding: 14px 18px; }

/* Header admin menu */
.top .inner { flex-wrap: wrap; }
.top .nav { line-height: 1.9; }
details.menu { display: inline-block; position: relative; }
details.menu summary { color: #fff; text-decoration: underline; list-style: none; display: inline; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: ' ▾'; }
.menu-list { position: absolute; right: 0; top: 1.8em; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; display: grid; }
.menu-list a { color: var(--text) !important; text-decoration: none; padding: 7px 10px; border-radius: 6px; }
.menu-list a:hover { background: var(--accent-soft); }
/* Wide admin tables scroll sideways on phones instead of squeezing rows tall. */
table.wide { min-width: 780px; }
table.wide td.rfq-actions { flex-wrap: nowrap; display: table-cell; white-space: nowrap; }
table.wide td.rfq-actions > * { margin-right: 4px; }

/* ---------- Header + menu (v15): active section highlighted ---------- */
.top { padding: 0; }
.top > .inner { padding: 12px 16px; }
.top a { color: #fff; }
.guest-links { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.guest-links a { text-decoration: none; opacity: .92; }
.guest-links a.on, .guest-links a:hover { opacity: 1; text-decoration: underline; }
.guest-links a.cta { background: #fff; color: var(--accent); padding: 6px 12px; border-radius: 999px; font-weight: 700; opacity: 1; }

.mainnav { background: rgba(255, 255, 255, .12); border-top: 1px solid rgba(255, 255, 255, .18); }
.mainnav .inner { max-width: 1100px; margin: 0 auto; padding: 6px 12px; display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.mainnav .inner::-webkit-scrollbar { display: none; }
.mainnav a, .mainnav summary { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; white-space: nowrap; opacity: .88; }
.mainnav a:hover, .mainnav summary:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.mainnav a.on, .mainnav summary.on { background: #fff; color: var(--accent); opacity: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

details.menu { display: inline-block; position: relative; }
details.menu summary { list-style: none; cursor: pointer; display: inline-block; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: ' ▾'; font-size: 11px; }
.user-menu summary { color: #fff; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); text-decoration: none; }
.user-menu summary.on { background: #fff; color: var(--accent); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(23, 32, 51, .18); padding: 6px; min-width: 220px; display: grid; }
.admin-menu .menu-list { left: 0; right: auto; }
.menu-list a, .menu-list .menu-item { color: var(--text) !important; text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: left; }
.menu-list a:hover, .menu-list .menu-item:hover { background: var(--accent-soft); filter: none; }
.menu-list a.on { background: var(--accent-soft); color: #1f4fbf !important; font-weight: 700; }
.menu-list a.on::before { content: '● '; font-size: 9px; vertical-align: 2px; }
.menu-list .menu-item { background: none; border: 0; box-shadow: none; width: 100%; display: block; }
.menu-list form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.menu-head { font-size: 12px; color: var(--muted); padding: 6px 11px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
/* The admin menu lives inside a horizontally scrolling row: let its panel escape the row. */
.mainnav .inner:has(details[open]) { overflow: visible; }

/* Landing (v15) */
.landing-hero { padding: 26px 4px 10px; max-width: 820px; }
.landing-hero h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.18; margin: 6px 0 12px; }
.landing-hero h1 em { font-style: normal; background: linear-gradient(110deg, var(--accent), #6a4cf5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-hero .lead { font-size: 17px; color: #33405a; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0; }
a.btn.big { padding: 12px 20px; font-size: 16px; }
.steps-4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: s; }
.steps-4 li { counter-increment: s; background: #f7f9fe; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.steps-4 li b::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; margin-right: 8px; }
.steps-4 li span { font-size: 14px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { color: var(--text); font-weight: 600; }
.faq p { margin: 8px 0 0; color: #33405a; }
.cta-band { text-align: center; background: linear-gradient(110deg, #eef3ff, #f3efff); }
.cta-band h2 { margin-bottom: 14px; }
/* v16: the tab row must not inherit the header row's space-between/wrap; no underline on menu buttons. */
.mainnav .inner { justify-content: flex-start; flex-wrap: nowrap; }
details.menu summary, .user-menu summary, .mainnav summary { text-decoration: none; }
@media (max-width: 640px) {
    .mainnav a, .mainnav summary { padding: 7px 11px; font-size: 13.5px; }
}

/* Password field with Show/Hide */
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; box-shadow: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 6px; }
.pw-toggle:hover { background: var(--accent-soft); filter: none; }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); }

/* Shared report (v18) */
.doc h1 { font-size: 24px; margin: 4px 0; }
.doc h2 { font-size: 17px; margin-top: 22px; color: #1f4fbf; }
.doc-kicker { text-transform: uppercase; letter-spacing: .07em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0; }
.doc-meta, .doc-muted { color: var(--muted); font-size: 14px; }
.doc-table { margin: 8px 0; }
.doc-foot { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.doc-report h1, .doc-report h2 { font-size: 16px; }
body.shared .top .inner { display: flex; justify-content: space-between; align-items: center; }

/* Run form: "Where to search" */
fieldset.scope { border: 1px solid #dfe5f0; border-radius: 10px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
fieldset.scope legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.inline input { width: auto; margin: 0; }
.scope-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip button.link { background: none; border: 0; box-shadow: none; padding: 0 0 0 4px; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; }

/* Trade-term glossary (partials/glossary) */
abbr.term { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
abbr.term:focus { outline: 2px solid rgba(47,109,246,.35); outline-offset: 1px; border-radius: 3px; }
#term-tip { position: fixed; z-index: 1000; background: #1d2536; color: #fff; font-size: 13px; line-height: 1.45; font-weight: 400; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); pointer-events: none; }
#term-tip b { font-weight: 600; }
.glossary-table td:first-child { font-weight: 600; white-space: nowrap; }

/* AI-written report tables (shortlist) scroll inside the card on phones instead of widening the page. */
.markdown table, .doc-report table { display: block; max-width: 100%; overflow-x: auto; }

/* Supplier contact column */
td.contact-cell { min-width: 170px; max-width: 240px; overflow-wrap: anywhere; }
td.contact-cell > div + div { margin-top: 2px; }
button.link { background: none; border: 0; box-shadow: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Message center */
.badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: #d93a3a; color: #fff; font-size: 11.5px; line-height: 18px; text-align: center; font-weight: 600; }
.threads { list-style: none; margin: 0; padding: 0; }
.threads li { border-top: 1px solid #e6ebf3; }
.threads a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 4px; color: inherit; text-decoration: none; }
.threads a:hover { background: #f6f8fc; }
.threads .who { font-weight: 600; }
.threads .unread .who::before { content: "● "; color: #d93a3a; }
.threads .snippet { grid-column: 1 / -1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { border: 1px solid #e3e8f1; border-radius: 10px; padding: 12px 14px; margin: 12px 0; max-width: 820px; }
.msg.out { background: #f4f7ff; margin-left: auto; }
.msg.in { background: #fff; }
.msg .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg .read { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #dde3ee; font-size: 13.5px; }
.composer textarea { min-height: 140px; }
.draft-for-me { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.draft-for-me label { flex: 1 1 280px; min-width: 0; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Decision tab */
ul.checklist { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
ul.checklist label.inline { align-items: flex-start; }
ul.checklist input { margin-top: 3px; }

/* Supplier reach (2026-09-29): marketplace route steps on RFQ cards, reach summary, help cues. */
.route-box { border: 1px dashed var(--line, #d5dbe5); border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: #fafbfd; }
.route-box .head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.route-box summary { cursor: pointer; }
ol.route-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 10px; }
ol.route-steps li > .small { display: block; margin-top: 3px; }
ol.route-steps textarea { width: 100%; margin-bottom: 6px; }
.reach-summary .chip { margin: 2px 2px 0 0; }
.help { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
    font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1; vertical-align: middle; margin-left: 4px; }
.help:hover, .help:focus { background: var(--accent); color: #fff; }
.help-note { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.help-note a { white-space: nowrap; }
.guide h2 { margin-top: 0; }
.guide h3 { margin: 16px 0 6px; }
.guide li { margin: 4px 0; }
.guide .toc ol { margin: 8px 0 12px; padding-left: 20px; }
.guide .faq dt { font-weight: 600; margin-top: 10px; }
.guide .faq dd { margin: 2px 0 0; }
.guide [id] { scroll-margin-top: 90px; }
.decide-by { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.decide-by .alert { flex-basis: 100%; }
.decide-by input[type=date] { width: auto; }
.more-quotes { margin-top: 14px; }
.more-quotes ul { margin: 6px 0 0; padding-left: 18px; }
.more-quotes li { margin: 4px 0; }
.market-band { margin: 0 0 10px; }
.send-enough { margin: 10px 0; }

/* v27: user management — filters, bulk bar, pager, stacked tables on phones */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: sticky; top: 8px; z-index: 5; }
.bulkbar input[type=text] { flex: 1; min-width: 200px; width: auto; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
a.button { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
a.button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
a.button.small { padding: 5px 10px; font-size: 13px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.two-col.tight { gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 700px) {
    table.stack thead { display: none; }
    table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
    table.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
    table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
    table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; flex: none; }
    table.stack td[colspan] { display: block; text-align: left; }
    .bulkbar { position: static; }
}
/* v28: on phones the Admin menu (last tab in a scrolling row) opened past the right edge and widened the page.
   Keep the row scrolling and pin the open panel across the screen, just under the tab row. */
@media (max-width: 700px) {
    .mainnav .inner:has(details[open]) { overflow-x: auto; }
    .admin-menu .menu-list { position: fixed; left: 12px; right: 12px; top: auto; margin-top: 6px; min-width: 0;
        max-height: calc(100vh - 140px); overflow-y: auto; }
    .user-menu .menu-list { max-width: calc(100vw - 24px); }
}
/* v28: interface language (AppDash #55) */
.lang-pick { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0 10px; }
.lang-pick label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 0; }
.lang-pick select { width: auto; padding: 4px 8px; font-size: 13px; }
.locale-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.locale-notice span { flex: 1 1 260px; }
.locale-notice form { margin: 0; }
/* v29: error pages + Livewire failure notice */
.error-page h1 { margin: 4px 0 10px; }
.error-diagnostic { margin-top: 16px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: #fffaf0; }
.error-diagnostic summary { cursor: pointer; font-weight: 600; }
.error-diagnostic p { margin: 6px 0; overflow-wrap: anywhere; }
.lw-error { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #f1c0c0; border-left: 5px solid #d64545; border-radius: 12px; box-shadow: 0 10px 30px rgba(23, 32, 51, .2); padding: 12px 14px; }
.lw-error b { display: block; margin-bottom: 4px; }
.lw-error p { margin: 0 0 8px; font-size: 14px; }
.lw-error .rfq-actions { margin: 0; }
/* v30: Charts tab (run-charts partial). Reference palette slots 1–3, validated on white (aqua < 3:1 → legend + table view). */
.viz-root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --de: #c9c8c1; --grid: #e1e0d9; --axis: #c3c2b7; --ink2: #52514e; --ink3: #898781; --pin-light: #86b6ef; --pin-dark: #1c5cab; }
.viz { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.viz figcaption h3 { margin: 0 0 2px; font-size: 16px; }
.viz figcaption p { margin: 0 0 10px; }
.viz-kpis { margin-bottom: 18px; }
.viz-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; }
.viz-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 10px; font-size: 13px; color: var(--ink2); }
.viz-legend li { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend .key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key.s1, .seg.s1 { background: var(--s1); } .key.s2, .seg.s2 { background: var(--s2); } .key.s3, .seg.s3 { background: var(--s3); }
.key.muted-key, .seg.muted-seg { background: var(--de); }
.key.dot-light { background: var(--pin-light); border-radius: 50%; } .key.dot-dark { background: var(--pin-dark); border-radius: 50%; }
.viz-rows { display: grid; gap: 8px; }
.viz-row { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 12px; align-items: center; }
.viz-label { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-label small { color: var(--ink3); }
.viz-plot { position: relative; display: flex; align-items: center; min-height: 24px; margin-right: 76px; }
.viz-grid { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--grid); }
.viz-bar { position: relative; display: flex; gap: 2px; height: 16px; min-width: 3px; cursor: default; outline-offset: 3px; }
.viz-bar .seg { display: block; flex-basis: 0; min-width: 0; height: 100%; }
.viz-bar .seg:last-child { border-radius: 0 4px 4px 0; }
.viz-bar:hover .seg, .viz-bar:focus .seg { filter: brightness(1.12); }
.viz-value { position: relative; margin-left: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.viz-value small { font-weight: 400; color: var(--ink3); }
.viz-axis .viz-plot { min-height: 16px; }
.viz-axis .viz-plot span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-axis .viz-plot span:first-child { transform: none; }
/* scatter */
.viz-scatter { position: relative; height: 260px; margin: 8px 12px 30px 40px; border-left: 1px solid var(--axis); border-bottom: 1px solid var(--axis); }
.viz-hgrid { position: absolute; left: 0; right: 0; height: 1px; background: var(--grid); }
.viz-ytick { position: absolute; left: -36px; width: 30px; text-align: right; transform: translateY(50%); font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.viz-xtick { position: absolute; bottom: -22px; transform: translateX(-50%); font-size: 11px; color: var(--ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.viz-gate { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink3); }
.viz-gate-label { position: absolute; right: 2px; transform: translateY(-2px); font-size: 11px; color: var(--ink2); background: rgba(255,255,255,.85); padding: 0 3px; }
.viz-dot { position: absolute; width: 24px; height: 24px; transform: translate(-50%, 50%); display: grid; place-items: center; cursor: default; border-radius: 50%; }
.viz-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--s1); box-shadow: 0 0 0 2px #fff; }
.viz-dot:hover i, .viz-dot:focus i { width: 14px; height: 14px; }
.viz-dot-label { position: absolute; transform: translate(10px, 50%); font-size: 12px; color: var(--text); white-space: nowrap; pointer-events: none; background: rgba(255,255,255,.85); padding: 0 3px; border-radius: 4px; }
.viz-dot-label.left { transform: translate(calc(-100% - 10px), 50%); }
.viz-axis-title { margin: 0 0 6px; }
/* dumbbell */
.viz-link { position: absolute; top: calc(50% - 1px); height: 2px; background: var(--axis); }
.viz-pin { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.viz-pin.light { background: var(--pin-light); } .viz-pin.dark { background: var(--pin-dark); }
.viz-plot .viz-value[style] { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 12px; }
.viz-table { margin-top: 10px; }
.viz-table summary { cursor: pointer; font-size: 13px; color: var(--ink2); }
.viz-table table { margin-top: 8px; font-size: 13px; }
.viz-tip { position: fixed; z-index: 60; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(23, 32, 51, .16); padding: 8px 10px; font-size: 12px; max-width: 280px; }
.viz-tip div { display: flex; gap: 8px; align-items: baseline; }
.viz-tip b { font-size: 13px; font-variant-numeric: tabular-nums; }
.viz-tip span { color: var(--ink2); }
@media (max-width: 600px) {
    .viz { padding: 12px; }
    .viz-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .viz-axis > span:first-child { display: none; }
    .viz-plot { margin-right: 64px; }
    .viz-scatter { height: 220px; margin-left: 34px; }
}
.viz-vgrid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.viz-dot-label { transform: translate(-50%, -12px); }
.viz-dot-label.end { transform: translate(-100%, -12px); }
.viz-dot-label.start { transform: translate(0, -12px); }

/* ---------- v31: RFQ Pilot brand — more colour, logo, illustrations ---------- */
:root {
    --accent: #4f46e5;           /* indigo: links, buttons (6.3:1 on white) */
    --accent-soft: #eef2ff;
    --violet: #7c3aed;
    --pink: #e11d74;
    --coral: #f97352;
    --amber: #f59e0b;
    --teal: #0d9488;
    --accent-2: #14b8a6;
    --bg: #f5f6ff;
    --shadow: 0 1px 2px rgba(30, 27, 75, .05), 0 8px 24px rgba(79, 70, 229, .08);
    --brand-grad: linear-gradient(105deg, #3730a3 0%, #6d28d9 38%, #be185d 72%, #c2410c 100%);
}
body {
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(244, 114, 182, .14), transparent 60%),
        radial-gradient(800px 420px at -10% 0%, rgba(99, 102, 241, .14), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
.top { background: var(--brand-grad); box-shadow: 0 4px 20px rgba(109, 40, 217, .28); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; letter-spacing: 0; }
.brand .logo-mark { flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); border-radius: 9px; }
.top .brand .logo-mark rect { stroke: rgba(255, 255, 255, .55); stroke-width: 3; }
.mainnav { background: rgba(255, 255, 255, .1); }
.mainnav a { display: inline-flex; align-items: center; gap: 6px; }
.mainnav a .ico { opacity: .85; }
.mainnav a.on { color: #4f46e5; }
.mainnav a.on .ico { opacity: 1; color: #db2777; }
.ico { flex: none; vertical-align: -3px; }

button, a.btn.primary { background: linear-gradient(105deg, #4f46e5, #7c3aed 55%, #db2777); box-shadow: 0 6px 18px rgba(124, 58, 237, .28); }
button.tab { background: transparent; }
.tab.on { background: linear-gradient(105deg, #4f46e5, #7c3aed 60%, #db2777); }
.card { border-color: #e4e6f7; }
.card.hero { border-top: 0; position: relative; overflow: hidden; }
.card.hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #4f46e5, #7c3aed, #db2777, #f97352, #f59e0b); }
.card.hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 153, .12), rgba(99, 102, 241, .06) 55%, transparent 70%); pointer-events: none; }
.card.hero > * { position: relative; }
h1 { letter-spacing: -.01em; }
.pill { background: #eef2ff; color: #4338ca; }
.pill.done { background: #dcfce7; color: #15803d; }
.pill.failed { background: #ffe4e6; color: #be123c; }
.stat { border-color: #e4e6f7; border-top: 3px solid #a5b4fc; }
.stats .stat:nth-child(4n+2) { border-top-color: #f9a8d4; }
.stats .stat:nth-child(4n+3) { border-top-color: #5eead4; }
.stats .stat:nth-child(4n+4) { border-top-color: #fcd34d; }
.steps li.now { background: linear-gradient(105deg, #4f46e5, #7c3aed); border-color: transparent; }
.bar > .fill { background: linear-gradient(90deg, #4f46e5, #7c3aed, #db2777, #f97352); }

/* Illustrations */
.art { display: block; max-width: 100%; height: auto; }
.empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 10px 0 4px; }
.empty .art, .empty-art { width: 200px; max-width: 70%; margin: 6px auto 2px; }
.empty p { max-width: 520px; margin: 0 auto; }
.empty-art + p { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.auth-art { margin: -18px -20px 14px; padding: 18px 20px 6px; background: var(--brand-grad); display: grid; place-items: center; }
.auth-art .art { width: 230px; }
.auth .card.hero::before, .auth .card.hero::after { display: none; }

/* Landing */
.landing-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; padding: 34px 0 18px; }
.landing-hero h1 em { background: linear-gradient(105deg, #4f46e5, #c026d3 55%, #f97352); -webkit-background-clip: text; background-clip: text; }
.eyebrow { display: inline-block; color: #6d28d9; background: #f3e8ff; padding: 4px 11px; border-radius: 999px; }
.hero-art { position: relative; }
.hero-art .art { width: 100%; max-width: 500px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(79, 70, 229, .18)); }
.float { position: absolute; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 12px; box-shadow: 0 10px 24px rgba(30, 27, 75, .14); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float .ico { color: #fff; border-radius: 7px; padding: 3px; width: 22px; height: 22px; }
.float.f1 { left: 0; top: 14%; } .float.f1 .ico { background: #f97352; }
.float.f2 { right: 0; top: 46%; animation-delay: -2s; } .float.f2 .ico { background: #0d9488; }
.float.f3 { left: 8%; bottom: 6%; animation-delay: -4s; } .float.f3 .ico { background: #7c3aed; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
a.btn { display: inline-flex; align-items: center; gap: 8px; }
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 4px 0 18px; border-radius: 16px; overflow: hidden; background: var(--brand-grad); color: #fff; box-shadow: 0 10px 30px rgba(109, 40, 217, .25); }
.stat-band div { padding: 16px 18px; border-right: 1px solid rgba(255, 255, 255, .18); }
.stat-band div:last-child { border-right: 0; }
.stat-band b { display: block; font-size: 24px; line-height: 1.15; }
.stat-band span { font-size: 13px; opacity: .92; }
.how .steps-4 li { background: #fff; position: relative; padding-top: 16px; }
.step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-style: normal; background: linear-gradient(135deg, #6366f1, #7c3aed); box-shadow: 0 6px 14px rgba(99, 102, 241, .3); }
.steps-4 li:nth-child(2) .step-ico { background: linear-gradient(135deg, #ec4899, #db2777); box-shadow: 0 6px 14px rgba(219, 39, 119, .3); }
.steps-4 li:nth-child(3) .step-ico { background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 6px 14px rgba(13, 148, 136, .3); }
.steps-4 li:nth-child(4) .step-ico { background: linear-gradient(135deg, #fb923c, #f97352); box-shadow: 0 6px 14px rgba(249, 115, 82, .3); }
.steps-4 li b::before { background: #1e1b4b; }
.feature { position: relative; overflow: hidden; border-top: 4px solid var(--tone); }
.feature h3 { margin-top: 10px; }
.feat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-style: normal; color: var(--tone); background: var(--tone-soft); }
.tone-coral { --tone: #ea580c; --tone-soft: #ffedd5; }
.tone-teal { --tone: #0d9488; --tone-soft: #ccfbf1; }
.tone-violet { --tone: #7c3aed; --tone-soft: #ede9fe; }
.tone-amber { --tone: #b45309; --tone-soft: #fef3c7; }
.pricing .plan { background: #fff; border-top: 4px solid #a5b4fc; }
.pricing .plan:nth-child(3n+2) { border-top-color: #f472b6; box-shadow: 0 10px 26px rgba(219, 39, 119, .12); }
.pricing .plan:nth-child(3n+3) { border-top-color: #2dd4bf; }
/* Most popular plan (AppDash #124) — replaces the nth-child emphasis, which assumed 3 cards. */
.plans { align-items: stretch; }
.plan { position: relative; }
.plan.featured { border: 2px solid #6366f1; box-shadow: 0 12px 30px rgba(99, 102, 241, .18); }
.pricing .plan.featured { border-top-width: 4px; border-top-color: #6366f1; }
.pricing .plan:nth-child(n):not(.featured) { box-shadow: none; }
.plan-badge { position: absolute; top: -11px; right: 12px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed); }
.plan-annual { margin: 0 0 6px; }
@media (min-width: 1000px) { .pricing .plans { grid-template-columns: repeat(4, 1fr); } }
/* Pricing → checkout (AppDash #125): the plan picked on the landing cards, and the card's call to action. */
.plan.chosen { outline: 3px solid #f472b6; outline-offset: 2px; }
.plans .plan { display: flex; flex-direction: column; }
.plan-cta { margin-top: auto; padding-top: 8px; }
.plan-cta.btn { display: block; text-align: center; }
.cta-band { position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; border: 0; text-align: left; padding: 26px 24px; }
.cta-band h2 { color: #fff; font-size: 22px; position: relative; }
.cta-band a.btn.primary { position: relative; background: #fff; color: #4f46e5; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.cta-art { position: absolute; right: -10px; bottom: -30px; width: 260px; opacity: .55; pointer-events: none; }
.foot { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); margin-right: 8px; }
@media (max-width: 860px) {
    .landing-hero { grid-template-columns: 1fr; padding-top: 22px; }
    .hero-art { max-width: 440px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
    .stat-band { grid-template-columns: 1fr 1fr; }
    .stat-band b { font-size: 19px; }
    .stat-band div { padding: 12px 14px; }
    .stat-band div:nth-child(2) { border-right: 0; }
    .stat-band div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .18); }
    .float { font-size: 12px; padding: 6px 9px; }
    .cta-art { width: 180px; opacity: .35; }
}
.card.hero > .hero-deco { position: absolute; right: 18px; top: 16px; width: 150px; opacity: .95; pointer-events: none; }
.card.hero.has-deco > h1, .card.hero.has-deco > h1 + p { margin-right: 170px; }
@media (max-width: 760px) { .hero-deco { display: none; } .card.hero.has-deco > h1, .card.hero.has-deco > h1 + p { margin-right: 0; } }
/* v32: Continue with Google */
a.btn.google-btn { width: 100%; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #c9cdd8; font-weight: 600; padding: 10px 16px; box-shadow: 0 1px 2px rgba(30, 27, 75, .06); }
a.btn.google-btn:hover { background: #f7f8fc; border-color: #a9afc2; }
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 4px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* v33: phones/tablets (AppDash #59) — stacked tables get labels from their headers (layout script), bigger touch targets */
@media (max-width: 700px) {
    table.stack tr { background: #fff; box-shadow: 0 1px 2px rgba(30, 27, 75, .04); }
    /* label column on the left, the cell's own content flowing normally on the right (not flex: a cell may hold several items) */
    table.stack td { display: block; position: relative; padding: 6px 0 6px 38%; min-height: 30px; text-align: left; overflow-wrap: anywhere; }
    table.stack td::before { position: absolute; left: 0; top: 7px; width: 35%; overflow-wrap: anywhere; }
    table.stack td:empty, table.stack td[data-label=""]::before { display: none; }
    table.stack td.stack-title { display: block; text-align: left; font-size: 15px; padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
    table.stack td[data-label=""] { padding-left: 0; }
    table.stack td.stack-title::before { display: none; }
    table.stack td details { text-align: left; }
    table.stack tbody tr:hover { background: #fff; }
}
@media (max-width: 700px) {
    details > summary { padding: 9px 0; min-height: 40px; display: list-item; }
    details.small > summary, .viz-table > summary, details.cost > summary { padding: 9px 0; }
    button.small, a.btn.small, a.button.small { min-height: 40px; }
    button.star { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    button.link { min-height: 36px; }
    .lang-pick select { min-height: 40px; }
    input, select, textarea { font-size: 16px; }   /* iOS zooms into fields under 16px */
}
/* Admin → Usage: the period picker can't push the page wider on tablets */
.rfq-actions select { max-width: 100%; min-width: 0; }
/* Wider tables (Suppliers tab, Outreach log) are cards on tablets too: one card per row, same layout as phones. */
@media (min-width: 701px) and (max-width: 900px) {
    table.stack-md thead { display: none; }
    table.stack-md, table.stack-md tbody, table.stack-md tr { display: block; width: 100%; }
    table.stack-md tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; background: #fff; }
    table.stack-md td { display: block; position: relative; padding: 6px 0 6px 30%; min-height: 30px; border: 0; text-align: left; overflow-wrap: anywhere; }
    table.stack-md td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 27%; color: var(--muted); font-size: 12.5px; font-weight: 600; }
    table.stack-md td:empty, table.stack-md td[data-label=""]::before, table.stack-md td.stack-title::before { display: none; }
    table.stack-md td[data-label=""] { padding-left: 0; }
    table.stack-md td.stack-title { padding: 4px 0 8px; margin-bottom: 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
    table.stack-md tbody tr:hover { background: #fff; }
}
@media (max-width: 700px) { table.stack td { max-width: none; min-width: 0; } }
@media (min-width: 701px) and (max-width: 900px) { table.stack-md td { max-width: none; min-width: 0; } }
@media (max-width: 480px) { .stats { display: grid; grid-template-columns: 1fr 1fr; } .stat { min-width: 0; } }
@media (max-width: 480px) { .card h1 { font-size: 19px; overflow-wrap: anywhere; } .wrap { padding-left: 12px; padding-right: 12px; } }

/* Supplier deep check (Verify tab, testing) */
.deep-check { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #fbfcfe; }
.deep-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.deep-summary { margin: 8px 0; line-height: 1.55; }
.deep-block { margin-top: 10px; }
.deep-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 6px 0 4px; }
.deep-list { list-style: none; margin: 0; padding: 0; }
.deep-list li { padding: 4px 0; border-bottom: 1px dashed #eceff4; overflow-wrap: anywhere; }
.deep-list li:last-child { border-bottom: 0; }
.deep-value { font-variant-numeric: tabular-nums; }
.deep-check a.src { font-size: 12px; margin-left: 4px; }
.deep-check button.link { background: none; border: 0; box-shadow: none; padding: 0 0 0 6px; color: var(--accent, #1f4fbf); cursor: pointer; text-decoration: underline; min-height: 0; }
.deep-spin { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: deep-spin .8s linear infinite; }
@keyframes deep-spin { to { transform: rotate(360deg); } }
.deep-badge { font-size: 11px; padding: 1px 8px; vertical-align: 1px; border: 0; cursor: pointer; min-height: 0; box-shadow: none; }
span.deep-badge { cursor: default; }
/* v38: Admin → Site designs (AppDash #126) */
.design-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.design-cards .card { margin-bottom: 0; }
.swatches { display: flex; gap: 6px; margin: 8px 0 0; }
.swatch { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(15, 23, 42, .15); display: inline-block; }
/* Site designs (AppDash #126): shared motion. The script only adds .reveal below the fold, so nothing is hidden without it. */
@media (prefers-reduced-motion: no-preference) {
    .design .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
    .design .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .design .float, .design .orbit, .design .bar > .fill::after { animation: none !important; }
    .design *, .design *::before, .design *::after { transition-duration: .01ms !important; }
}
/* Designs restyle every <button>; keep the quiet in-text buttons quiet (password Show/Hide, star). */
.design .pw-toggle, .design button.star { background: transparent; box-shadow: none; border: 0; min-height: 0; }
.design button.star { transform: none; }
.design .pw-toggle { color: var(--accent); }
.design .pw-toggle:hover { background: var(--accent-soft); }
.design button.star { color: var(--muted); } .design button.star.on { color: #e0a100; }
