[hidden] { display: none !important; }

:root {
  --bg: #f4f8f7;
  --surface: #fff;
  --surface-2: #edf3f1;
  --surface-3: #e4eeeb;
  --text: #102522;
  --text-2: #536a66;
  --text-3: #758985;
  --line: #d6e1de;
  --line-strong: #b8c9c5;
  --primary: #0b6b60;
  --primary-2: #0e8577;
  --primary-soft: #d8f0e9;
  --accent: #d95d2c;
  --danger: #bd3e3e;
  --warning: #ad6b08;
  --shadow: 0 18px 60px rgba(23, 58, 51, .1);
  --shadow-sm: 0 8px 24px rgba(23, 58, 51, .08);
  --radius: 18px;
  --radius-sm: 11px;
  --font: Inter, "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
}

html[data-theme="dark"] {
  --bg: #101715;
  --surface: #17201e;
  --surface-2: #1d2926;
  --surface-3: #263431;
  --text: #edf7f4;
  --text-2: #adc1bc;
  --text-3: #819993;
  --line: #2d3c38;
  --line-strong: #445650;
  --primary: #4fd1bb;
  --primary-2: #7fe2d1;
  --primary-soft: #173d36;
  --accent: #f28b62;
  --danger: #ff8888;
  --warning: #e9ac51;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; height: 76px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 260px minmax(280px, 620px) 1fr; align-items: center; gap: 26px; border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; width: max-content; }
.brand-logo { display: block; width: 112px; height: auto; filter: drop-shadow(0 6px 15px rgba(11,107,96,.12)); }
.brand-oneliner { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; }
.brand small { display: block; margin: 0; color: var(--text-3); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.site-beta-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 800 7px var(--mono); letter-spacing: .1em; line-height: 1.2; }
.mcp-config-link { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--primary); background: var(--surface); font: 800 10px var(--mono); letter-spacing: .08em; text-decoration: none; }
.mcp-config-link:hover { border-color: var(--line-strong); background: var(--surface-2); }
.header-search { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 2px 10px rgba(34, 70, 62, .03); }
.header-search svg { width: 19px; color: var(--text-3); }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.header-search input::placeholder { color: var(--text-3); }
kbd { padding: 2px 7px; border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 6px; color: var(--text-3); background: var(--surface-2); font: 11px var(--mono); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button, .language-button { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.icon-button:hover, .language-button:hover { border-color: var(--line-strong); color: var(--primary); background: var(--surface-2); }
.icon-button:active, .language-button:active { transform: scale(.97); }
.icon-button svg { width: 19px; height: 19px; }
.language-button { padding: 0 12px; font-size: 12px; font-weight: 700; }

.hero { min-height: 600px; padding: 90px clamp(24px, 7vw, 112px) 84px; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(340px, .72fr); align-items: center; gap: clamp(50px, 8vw, 130px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 13%, transparent), transparent 68%); pointer-events: none; }
.eyebrow { margin: 0 0 16px; display: flex; align-items: center; gap: 9px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span:first-child { width: 24px; height: 1px; background: currentColor; }
.eyebrow b { font: inherit; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 6.1vw, 84px); line-height: .99; letter-spacing: -.065em; font-weight: 700; }
.hero h1 em { color: var(--primary); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lede { max-width: 680px; margin: 28px 0 32px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }
.hero-search { max-width: 720px; min-height: 64px; display: flex; align-items: center; padding: 7px 8px 7px 19px; gap: 12px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-search svg { width: 22px; color: var(--text-3); flex: 0 0 auto; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
.hero-search button, .primary-button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 11px; color: white; background: var(--primary); font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.hero-search button:hover, .primary-button:hover { background: var(--primary-2); }
.hero-search button:active, .primary-button:active { transform: scale(.98); }
.popular-links { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--text-3); font-size: 12px; }
.popular-links span { margin-right: 4px; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 700; }
.popular-links button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; }
.popular-links button:hover { border-color: var(--primary); color: var(--primary); }

.hero-panel { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(1.4deg); }
.hero-panel::before { content: ""; position: absolute; inset: 8px -10px -10px 8px; z-index: -1; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-2); }
.panel-topline { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.live-dot { display: flex; align-items: center; gap: 7px; color: var(--primary); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--primary-soft); }
.equation-row { margin: 32px 0 25px; display: flex; justify-content: center; align-items: center; gap: 19px; color: var(--text); font: 500 clamp(28px, 3vw, 42px) var(--mono); }
.equation-row b { color: var(--primary); }
.mini-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-inputs div { padding: 13px; border-radius: 10px; background: var(--surface-2); }
.mini-inputs small, .example-result small { display: block; margin-bottom: 6px; color: var(--text-3); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mini-inputs strong { font: 500 13px var(--mono); }
.example-result { margin-top: 15px; padding: 19px; border-radius: 13px; color: var(--text); background: var(--primary-soft); }
.example-result strong { display: block; color: var(--primary); font: 500 32px var(--mono); letter-spacing: -.04em; }
.example-result span { color: var(--text-2); font-size: 13px; }
.pipette-note { margin-top: 14px; display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 12px; }
.pipette-note svg { width: 17px; color: var(--primary); }

.trust-strip { margin: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.trust-strip div { min-height: 94px; display: flex; justify-content: center; align-items: center; gap: 12px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { font: 500 22px var(--mono); color: var(--primary); }
.trust-strip span { max-width: 100px; color: var(--text-3); font-size: 11px; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }

.tools-section { padding: 85px clamp(20px, 4vw, 64px) 120px; display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.tool-sidebar { position: sticky; top: 105px; align-self: start; }
.sidebar-heading { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.sidebar-heading span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.sidebar-heading button { border: 0; background: none; color: var(--primary); font-size: 11px; font-weight: 700; cursor: pointer; }
#category-list { display: grid; gap: 5px; }
.category-button { width: 100%; min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-2); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.category-button svg { width: 18px; }
.category-button span { flex: 1; font-size: 13px; font-weight: 600; }
.category-button small { color: var(--text-3); font: 10px var(--mono); }
.category-button:hover, .category-button.active { border-color: var(--line); color: var(--primary); background: var(--surface); }
.sidebar-note { margin-top: 28px; padding: 16px; display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.sidebar-note svg { width: 20px; flex: 0 0 auto; color: var(--primary); }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { margin-bottom: 3px; font-size: 11px; }
.sidebar-note span { color: var(--text-3); font-size: 10px; line-height: 1.45; }
.content-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.content-heading h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.045em; }
.content-heading > p { color: var(--text-3); font: 11px var(--mono); white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { min-height: 210px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tool-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.tool-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.tool-icon svg { width: 21px; height: 21px; }
.card-favorite { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); cursor: pointer; }
.card-favorite svg { width: 16px; }
.card-favorite:hover, .card-favorite.active { color: var(--accent); background: var(--surface-2); }
.card-favorite.active svg { fill: currentColor; }
.tool-card h3 { margin: 18px 0 6px; font-size: 15px; letter-spacing: -.02em; }
.tool-card p { margin: 0; flex: 1; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.card-meta { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.card-meta span:last-child { display: flex; align-items: center; gap: 5px; color: var(--primary); }
.card-meta svg { width: 13px; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty-state svg { width: 35px; color: var(--text-3); }
.empty-state h3 { margin: 18px 0 6px; }
.empty-state p { margin: 0; color: var(--text-3); }

.brand-bridge { margin: 0 clamp(20px, 4vw, 64px) 70px; padding: clamp(30px, 5vw, 65px); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px 70px; border-radius: 26px; color: #eaf8f5; background: #113c37; overflow: hidden; position: relative; }
.brand-bridge::after { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(93, 211, 188, .2), transparent 70%); }
.brand-bridge .eyebrow { color: #76d8c5; }
.brand-bridge h2 { margin: 0; max-width: 600px; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: -.05em; }
.brand-bridge > p { margin: 0; color: #aac8c2; font-size: 14px; line-height: 1.8; }
.bridge-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.bridge-actions a { min-height: 47px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #eaf8f5; text-decoration: none; font-size: 12px; font-weight: 700; }
.bridge-actions .primary-link { border-color: #70d4c0; color: #092b27; background: #70d4c0; }

footer { padding: 35px clamp(20px, 4vw, 64px) 60px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand .brand-logo { width: 104px; }
footer p { max-width: 630px; margin: 0; }
footer > div { display: flex; align-items: center; gap: 12px; }
footer button { padding: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; }
footer button:hover { color: var(--primary); }

.tool-dialog { width: min(1100px, calc(100vw - 32px)); max-height: min(880px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--text); background: var(--surface); box-shadow: 0 40px 130px rgba(0,0,0,.3); overflow: hidden; }
.tool-dialog::backdrop, .info-dialog::backdrop { background: rgba(10, 23, 20, .68); backdrop-filter: blur(5px); }
.dialog-shell { display: flex; flex-direction: column; max-height: inherit; }
.dialog-header { min-height: 100px; padding: 19px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.dialog-identity > div { min-width: 0; }
.dialog-identity p { margin: 0 0 2px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dialog-identity h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.dialog-identity > div > span { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions #favorite-tool.active { color: var(--accent); }
.dialog-actions #favorite-tool.active svg { fill: currentColor; }
.dialog-body { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr); overflow: hidden; }
.calculator-pane, .result-pane { padding: 26px; overflow: auto; }
.result-pane { border-left: 1px solid var(--line); background: var(--surface-2); }
.dialog-footer { min-height: 65px; padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 10px; }
.dialog-footer button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; }
.dialog-footer button:disabled { opacity: .45; cursor: not-allowed; }
.dialog-footer button:not(:disabled):hover { border-color: var(--primary); color: var(--primary); }

.tool-form { display: grid; gap: 18px; }
.form-section { display: grid; gap: 13px; }
.form-section + .form-section { padding-top: 17px; border-top: 1px solid var(--line); }
.form-section-title { margin: 0; color: var(--text-2); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--text-2); font-size: 11px; font-weight: 700; }
.field small { color: var(--text-3); font-size: 9px; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 112px; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) 100px; }
.input-unit input { border-radius: 9px 0 0 9px; }
.input-unit select { border-left: 0; border-radius: 0 9px 9px 0; }
.form-actions { display: flex; gap: 9px; align-items: center; }
.form-actions button { min-height: 46px; padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 700; font-size: 12px; }
.form-actions .calculate-button { flex: 1; border-color: var(--primary); color: white; background: var(--primary); }
.form-actions .calculate-button:hover { background: var(--primary-2); }
.form-help { padding: 13px; display: flex; gap: 9px; border-radius: 10px; color: var(--text-2); background: var(--surface-2); font-size: 10px; line-height: 1.55; }
.form-help svg { width: 16px; flex: 0 0 auto; color: var(--primary); }
.error-message { padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); border-radius: 9px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); font-size: 11px; }

.result-placeholder { min-height: 430px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--text-3); }
.result-placeholder svg { width: 45px; opacity: .45; }
.result-placeholder h3 { margin: 20px 0 6px; color: var(--text-2); font-size: 15px; }
.result-placeholder p { margin: 0; font-size: 11px; }
.result-card { display: grid; gap: 15px; }
.result-kicker { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.result-primary { padding: 20px; border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line)); border-radius: 14px; background: var(--primary-soft); }
.result-primary small { display: block; margin-bottom: 4px; color: var(--text-2); font-size: 10px; }
.result-primary strong { display: block; color: var(--primary); font: 500 clamp(27px, 4vw, 42px) var(--mono); letter-spacing: -.05em; line-height: 1.15; overflow-wrap: anywhere; }
.result-primary span { color: var(--text-2); font-size: 11px; }
.result-list { display: grid; gap: 8px; }
.result-row { min-height: 45px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-radius: 9px; background: var(--surface); }
.result-row span { color: var(--text-3); font-size: 10px; }
.result-row strong { text-align: right; font: 500 12px var(--mono); }
.protocol-block { padding: 15px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: var(--surface); }
.protocol-block h4 { margin: 0 0 8px; font-size: 11px; }
.protocol-block ol, .protocol-block ul { margin: 0; padding-left: 17px; color: var(--text-2); font-size: 10px; line-height: 1.7; }
.warning-block { padding: 12px; display: flex; gap: 9px; border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--line)); border-radius: 9px; color: var(--warning); background: color-mix(in srgb, var(--warning) 7%, transparent); font-size: 10px; }
.warning-block svg { width: 16px; flex: 0 0 auto; }
.result-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.result-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.result-table th, .result-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.result-table th:first-child, .result-table td:first-child { text-align: left; }
.result-table th { color: var(--text-3); background: var(--surface-2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.result-table tr:last-child td { border-bottom: 0; }

.plate-controls, .map-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plate-grid, .freezer-grid { display: grid; gap: 3px; min-width: max-content; padding: 8px; }
.plate-cell, .freezer-cell { min-width: 44px; min-height: 38px; padding: 4px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text-2); font: 8px var(--mono); cursor: pointer; overflow: hidden; }
.plate-cell.control { color: var(--primary); background: var(--primary-soft); }
.plate-cell.sample { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.freezer-cell.filled { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.map-scroll { margin-top: 14px; overflow: auto; }
.print-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.print-label { min-height: 75px; padding: 8px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: 6px; background: white; color: #15201e; font: 9px var(--mono); overflow-wrap: anywhere; }
.timer-list { display: grid; gap: 10px; }
.timer-item { padding: 13px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.timer-item strong { font-size: 12px; }
.timer-item time { grid-row: span 2; font: 500 23px var(--mono); color: var(--primary); }
.timer-item span { color: var(--text-3); font-size: 9px; }
.timer-item.done { border-color: var(--accent); animation: pulse-border 1s ease-in-out infinite alternate; }
@keyframes pulse-border { to { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); } }

.info-dialog { width: min(620px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 19px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.info-dialog > div { padding: 28px; position: relative; }
.info-dialog h2 { margin: 0 40px 18px 0; }
.info-dialog p, .info-dialog li { color: var(--text-2); font-size: 12px; line-height: 1.7; }
.close-info { position: absolute; top: 16px; right: 16px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 11px 16px; border-radius: 10px; color: var(--surface); background: var(--text); box-shadow: var(--shadow-sm); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) auto; gap: 18px; padding-inline: clamp(18px, 3vw, 32px); }
  .header-search { min-width: 0; }
  .brand small { display: none; }
  .hero { grid-template-columns: 1fr .65fr; gap: 45px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-body { grid-template-columns: 1fr 390px; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .header-search { display: none; }
  .hero { padding-top: 64px; grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; transform: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tools-section { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  #category-list { display: flex; overflow: auto; padding-bottom: 5px; }
  .category-button { width: auto; flex: 0 0 auto; }
  .category-button small { display: none; }
  .sidebar-note { display: none; }
  .brand-bridge { grid-template-columns: 1fr; }
  .bridge-actions { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
  .dialog-body { grid-template-columns: 1fr; overflow: auto; }
  .calculator-pane, .result-pane { overflow: visible; }
  .result-pane { border-left: 0; border-top: 1px solid var(--line); }
  .result-placeholder { min-height: 240px; }
}

@media (max-width: 560px) {
  .site-header { height: 68px; gap: 10px; }
  .brand { width: auto; gap: 7px; min-width: 0; }
  .brand-logo { width: 100px; }
  .brand small { display: none; }
  .header-actions { gap: 5px; }
  .language-button { min-width: 40px; padding-inline: 8px; }
  .site-beta-badge { padding: 3px 5px; font-size: 7px; }
  #favorites-button, #theme-button { display: none; }
  .hero { min-height: auto; padding: 52px 18px 62px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-search { padding-left: 14px; }
  .hero-search button { padding: 0 13px; }
  .popular-links span { width: 100%; }
  .hero-panel { padding: 20px; }
  .trust-strip { margin-inline: 18px; }
  .trust-strip div { min-height: 80px; flex-direction: column; gap: 3px; text-align: center; }
  .trust-strip span { max-width: none; }
  .tools-section { padding: 62px 18px 80px; }
  .content-heading { align-items: start; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 180px; }
  .brand-bridge { margin-inline: 18px; }
  .bridge-actions { flex-direction: column; }
  .bridge-actions a { justify-content: center; }
  footer { padding-inline: 18px; }
  .tool-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .dialog-header { min-height: 88px; padding: 14px; }
  .dialog-identity > .tool-icon { display: none; }
  .dialog-identity > div > span { max-width: 230px; }
  .dialog-body { min-height: 0; }
  .calculator-pane, .result-pane { padding: 18px 14px; }
  .dialog-footer { padding: 10px 14px; }
  .dialog-footer span { max-width: 210px; }
  .field-grid, .field-grid.three, .plate-controls, .map-controls { grid-template-columns: 1fr; }
  .print-labels { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; width: 100%; padding: 10mm; }
  .print-labels { grid-template-columns: repeat(4, 1fr); }
  .print-label { border: 1px solid #777; break-inside: avoid; }
}

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

/* Prevent horizontally scrollable category chips from widening the mobile grid. */
.tool-sidebar, .tool-content { min-width: 0; }
@media (max-width: 820px) {
  #category-list { width: 100%; max-width: 100%; }
}
.card-open-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.card-open-button svg { width: 13px; }
.card-open-button:hover { color: var(--primary-2); }

/* Phase 2 workflows */
.footer-actions { display: flex; gap: 8px; }
.protocol-print-header { display: none; }
.workflow-plate { display: grid; gap: 3px; min-width: max-content; padding: 8px; }
.workflow-well { min-width: 43px; min-height: 43px; padding: 4px; display: grid; align-content: center; justify-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text-2); font: 8px var(--mono); overflow: hidden; }
.workflow-well b { max-width: 64px; font-size: 7px; font-weight: 650; text-align: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.workflow-well.sample { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.workflow-well.ntc { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); background: color-mix(in srgb, var(--warning) 11%, var(--surface)); }
.workflow-well.positive { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); }
.workflow-well.compact { min-width: 26px; min-height: 30px; padding: 2px; font-size: 6px; }
.workflow-well.compact b { display: none; }
.curve-chart { padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.curve-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve-chart .chart-axis { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.curve-chart .chart-fit { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.curve-chart circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.heat-legend { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--text-3); font: 9px var(--mono); }
.heat-legend i { height: 9px; border-radius: 999px; background: linear-gradient(90deg,hsl(205 72% 84%),hsl(117 72% 67%),hsl(30 72% 49%)); }
.inline-actions { justify-content: flex-start; margin-top: -3px; }
.status-message { padding: 10px 12px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 10px; }
.inline-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.wrap-code { display: inline-block; max-width: 240px; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .dialog-footer { align-items: flex-start; }
  .dialog-footer > span { display: none; }
  .footer-actions { width: 100%; }
  .footer-actions button { flex: 1; }
}

@media print {
  body.protocol-print-mode { background: white !important; }
  body.protocol-print-mode * { visibility: hidden !important; }
  body.protocol-print-mode #tool-dialog,
  body.protocol-print-mode #tool-dialog .dialog-shell,
  body.protocol-print-mode #tool-dialog .dialog-header,
  body.protocol-print-mode #tool-dialog .dialog-header *,
  body.protocol-print-mode #tool-dialog .result-pane,
  body.protocol-print-mode #tool-dialog .result-pane *,
  body.protocol-print-mode #tool-dialog .dialog-footer,
  body.protocol-print-mode #tool-dialog .dialog-footer > span,
  body.protocol-print-mode #tool-dialog .dialog-footer > span * { visibility: visible !important; }
  body.protocol-print-mode #tool-dialog { display: block; position: static; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: white; }
  body.protocol-print-mode .dialog-shell { display: block; min-height: 0; background: white; box-shadow: none; }
  body.protocol-print-mode .dialog-header { padding: 0 0 5mm; border-bottom: 1px solid #cbd5d2; }
  body.protocol-print-mode .dialog-header .dialog-actions,
  body.protocol-print-mode .dialog-header .tool-icon,
  body.protocol-print-mode .dialog-body .calculator-pane,
  body.protocol-print-mode .footer-actions { display: none !important; }
  body.protocol-print-mode .dialog-body { display: block; min-height: 0; }
  body.protocol-print-mode .result-pane { padding: 6mm 0; border: 0; background: white; overflow: visible; }
  body.protocol-print-mode .protocol-print-header { display: block; margin-bottom: 6mm; color: #132522; }
  body.protocol-print-mode .protocol-print-header b { color: #0b6b60; font-size: 9pt; letter-spacing: .08em; text-transform: uppercase; }
  body.protocol-print-mode .protocol-print-header h1 { margin: 2mm 0 1mm; font-size: 20pt; }
  body.protocol-print-mode .protocol-print-header p,
  body.protocol-print-mode .protocol-print-header small { color: #536a66; font-size: 9pt; }
  body.protocol-print-mode .result-card { color: #132522; }
  body.protocol-print-mode .dialog-footer { min-height: 0; padding: 4mm 0 0; border-top: 1px solid #cbd5d2; color: #536a66; }
  body.protocol-print-mode .result-table-wrap,
  body.protocol-print-mode .protocol-block,
  body.protocol-print-mode .warning-block,
  body.protocol-print-mode .curve-chart { break-inside: avoid; }
  body.protocol-print-mode .map-scroll { overflow: visible; transform-origin: top left; }
  body.protocol-print-mode .workflow-plate { min-width: 0; }
}

/* Lab Agent */
.agent-header-button svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agent-backdrop { position: fixed; z-index: 78; inset: 0; background: color-mix(in srgb, #071916 38%, transparent); backdrop-filter: blur(2px); }
.agent-drawer { position: fixed; z-index: 79; top: 0; right: 0; width: min(460px, 100vw); height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: var(--text); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -24px 0 70px rgba(9, 37, 33, .18); }
.agent-drawer[hidden], .agent-backdrop[hidden] { display: none; }
body.agent-open { overflow: hidden; }
.agent-drawer-header { min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, var(--primary-soft)); }
.agent-drawer-header h2 { margin: 3px 0 0; font-size: 19px; }
.agent-beta { color: var(--primary); font: 700 8px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.agent-drawer-body { min-height: 0; padding: 18px; overflow-y: auto; }
.agent-intro { padding: 15px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); border-radius: 13px; background: var(--primary-soft); }
.agent-intro p { margin: 0 0 8px; color: var(--text); font-size: 11px; line-height: 1.65; }
.agent-intro small, .agent-disclaimer { display: block; color: var(--text-3); font-size: 8px; line-height: 1.55; }
.agent-quick { margin-top: 19px; }
.agent-quick h3 { margin: 0 0 9px; color: var(--text-3); font: 700 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
#agent-workflows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent-workflow { min-height: 86px; padding: 11px; display: grid; align-content: start; gap: 5px; text-align: left; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-raised); cursor: pointer; }
.agent-workflow:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.agent-workflow strong { font-size: 10px; }
.agent-workflow span { color: var(--text-3); font-size: 8px; line-height: 1.5; }
.agent-messages { display: grid; gap: 11px; margin-top: 20px; }
.agent-message { max-width: 92%; padding: 12px 13px; border-radius: 13px 13px 13px 4px; border: 1px solid var(--line); background: var(--surface-raised); }
.agent-message.user { justify-self: end; border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); border-radius: 13px 13px 4px 13px; background: var(--primary-soft); }
.agent-message.loading { opacity: .7; animation: agent-pulse 1s ease-in-out infinite alternate; }
@keyframes agent-pulse { to { opacity: .4; } }
.agent-message-label { display: block; margin-bottom: 5px; color: var(--primary); font: 700 8px var(--mono); text-transform: uppercase; }
.agent-message p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.agent-detail { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.agent-detail strong { color: var(--text); font-size: 9px; }
.agent-detail ul { margin: 6px 0 0; padding-left: 17px; color: var(--text-2); font-size: 8px; line-height: 1.65; }
.agent-detail li.ok { color: var(--primary); }
.agent-detail li.error { color: var(--warning); }
.agent-message-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.agent-secondary { min-height: 31px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--primary); background: var(--surface); font-size: 8px; font-weight: 700; cursor: pointer; }
.agent-secondary:hover { border-color: var(--primary); }
.agent-form { padding: 13px 16px 15px; display: grid; gap: 8px; border-top: 1px solid var(--line); background: var(--surface); }
.agent-profile-option { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 8px; line-height: 1.4; cursor: pointer; }
.agent-profile-option input { accent-color: var(--primary); }
.agent-form textarea { width: 100%; min-height: 88px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: var(--surface-raised); font: 10px/1.55 var(--sans); }
.agent-form textarea:focus { border-color: var(--primary); }
.agent-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-form-row small { max-width: 250px; color: var(--text-3); font: 7px/1.4 var(--mono); overflow-wrap: anywhere; }
.agent-form-row button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; color: white; background: var(--primary); font-size: 9px; font-weight: 800; cursor: pointer; }
.agent-form-row button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 480px) {
  .agent-drawer { width: 100vw; border-left: 0; }
  .agent-drawer-header { min-height: 68px; padding: 12px 14px; }
  .agent-drawer-body { padding: 14px; }
  #agent-workflows { grid-template-columns: 1fr; }
  .agent-workflow { min-height: 70px; }
  .agent-form { padding: 10px 12px 12px; }
}
.agent-register-link { display: inline-flex; margin-top: 8px; padding: 8px 11px; border-radius: 9px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 750; text-decoration: none; }
.agent-register-link:hover { background: var(--primary-2); }

/* Experiment workspace and LIMS/ELN exchange */
.experiment-header-button,
.agent-header-button {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--primary);
  background: var(--surface);
  font: 800 10px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.experiment-header-button span,
.agent-header-button span { white-space: nowrap; }
.experiment-header-button:hover,
.agent-header-button:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.experiment-header-button:active,
.agent-header-button:active { transform: scale(.97); }
.experiment-header-button b { min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; color: #fff; background: var(--primary); font: 800 8px var(--mono); }
.dialog-footer .experiment-add-button:not(:disabled) { border-color: var(--primary); color: #fff; background: var(--primary); }
.dialog-footer .experiment-add-button:not(:disabled):hover { color: #fff; background: var(--primary-2); }
.experiment-dialog {
  --workspace-control-height: 40px;
  --workspace-control-font-size: 10px;
  --workspace-control-line-height: 1.25;
  width: min(920px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 40px 130px rgba(0,0,0,.3);
  overflow: hidden;
}
.experiment-dialog::backdrop { background: rgba(10, 23, 20, .68); backdrop-filter: blur(5px); }
.experiment-shell { max-height: inherit; display: flex; flex-direction: column; }
.experiment-dialog-header { padding: 24px 26px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); }
.experiment-dialog-header h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.experiment-dialog-header p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--text-3); font-size: 11px; }
.experiment-meta-grid { padding: 20px 26px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 14px; border-bottom: 1px solid var(--line); }
.experiment-meta-grid label { display: grid; align-content: start; gap: 6px; color: var(--text-2); font-size: 10px; font-weight: 800; }
.experiment-meta-grid input,
.experiment-meta-grid textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: var(--surface-2); }
.experiment-meta-grid textarea { min-height: 72px; resize: vertical; }
.experiment-meta-grid input:focus,
.experiment-meta-grid textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.experiment-privacy-note { margin: 16px 26px 0; padding: 12px 14px; display: grid; gap: 3px; border-left: 3px solid var(--primary); border-radius: 0 9px 9px 0; color: var(--text-3); background: var(--primary-soft); font-size: 10px; }
.experiment-privacy-note strong { color: var(--primary); }
.experiment-items { min-height: 180px; padding: 18px 26px 24px; display: grid; align-content: start; gap: 10px; overflow: auto; }
.experiment-empty { min-height: 150px; display: grid; place-items: center; text-align: center; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 11px; }
.experiment-item { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.experiment-item > div { min-width: 0; display: grid; gap: 4px; }
.experiment-item span { color: var(--primary); font: 800 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.experiment-item strong { overflow-wrap: anywhere; }
.experiment-item small { color: var(--text-3); font-size: 9px; overflow-wrap: anywhere; white-space: pre-line; }
.experiment-remove { align-self: start; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--danger); background: var(--surface); font-size: 9px; cursor: pointer; }
.experiment-dialog-footer { min-height: 68px; padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.experiment-dialog-footer > div { display: flex; gap: 8px; }
.experiment-dialog-footer button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-weight: 750; cursor: pointer; }
.experiment-dialog-footer .primary-button { color: #fff; border-color: var(--primary); background: var(--primary); }
.experiment-dialog-footer .danger-quiet { color: var(--danger); }
.experiment-dialog-footer button:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 1180px) {
  .experiment-header-button,
  .agent-header-button { width: 42px; padding-inline: 0; }
  .experiment-header-button span,
  .agent-header-button span { display: none; }
}
@media (max-width: 820px) {
  .experiment-header-button,
  .agent-header-button { width: auto; padding-inline: 12px; }
  .experiment-header-button span,
  .agent-header-button span { display: inline; }
}
@media (max-width: 680px) {
  .mcp-config-link,
  .experiment-header-button,
  .agent-header-button { min-width: 38px; width: 38px; padding-inline: 0; }
  .experiment-header-button span,
  .agent-header-button span { display: none; }
  .experiment-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .experiment-dialog-header { padding: 18px 16px; }
  .experiment-meta-grid { padding: 16px; grid-template-columns: 1fr; }
  .experiment-privacy-note { margin-inline: 16px; }
  .experiment-items { padding-inline: 16px; }
  .experiment-dialog-footer { padding: 12px 16px; align-items: stretch; flex-direction: column-reverse; }
  .experiment-dialog-footer > div { display: grid; grid-template-columns: repeat(3, 1fr); }
  .experiment-dialog-footer button { padding-inline: 8px; font-size: 10px; }
}

/* Phase 3A experiment data foundation */
.experiment-body-scroll { min-height: 0; overflow: auto; }
.data-inbox-panel { margin: 18px 26px 0; padding: 18px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.data-inbox-panel header h3 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.025em; }
.data-inbox-panel header p:last-child { margin: 6px 0 0; color: var(--text-3); font-size: 10px; }
.data-inbox-controls { display: grid; grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr); gap: 12px; }
.data-inbox-controls > label:first-child { display: grid; align-content: start; gap: 6px; color: var(--text-2); font-size: 10px; font-weight: 800; }
.data-inbox-controls select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); }
.data-inbox-dropzone { min-height: 70px; padding: 13px 16px; display: grid; align-content: center; justify-items: start; gap: 4px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--text-2); background: var(--surface); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.data-inbox-dropzone:hover, .data-inbox-dropzone:focus-visible, .data-inbox-dropzone.dragging { border-color: var(--primary); background: var(--primary-soft); outline: 0; transform: translateY(-1px); }
.data-inbox-dropzone strong { color: var(--primary); font-size: 11px; }
.data-inbox-dropzone span { color: var(--text-3); font: 700 8px var(--mono); letter-spacing: .04em; }
.data-inbox-status { margin: 0; color: var(--text-3); font-size: 10px; white-space: pre-line; }
.data-inbox-status.error { color: var(--danger); }
.data-inbox-preview { display: grid; gap: 12px; }
.data-inbox-preview[hidden] { display: none; }
.data-inbox-preview-head { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 10px; }
.data-inbox-preview-head strong { overflow-wrap: anywhere; }
.data-inbox-preview-head span { flex: 0 0 auto; color: var(--primary); font: 800 9px var(--mono); }
.data-inbox-mapping { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.data-inbox-map-row { padding: 9px 10px; display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.data-inbox-map-row label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 9px; font-weight: 800; }
.data-inbox-map-row span { color: var(--text-3); text-align: center; }
.data-inbox-map-row select { min-width: 0; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-2); font-size: 9px; }
.data-inbox-table-wrap { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.data-inbox-table-wrap table { width: 100%; border-collapse: collapse; font-size: 9px; }
.data-inbox-table-wrap th, .data-inbox-table-wrap td { max-width: 220px; padding: 8px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.data-inbox-table-wrap th { position: sticky; top: 0; z-index: 1; color: var(--primary); background: var(--surface-2); font: 800 8px var(--mono); }
.data-inbox-actions { display: flex; justify-content: flex-end; gap: 8px; }
.data-inbox-actions button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-weight: 750; cursor: pointer; }
.data-inbox-actions .primary-button { color: #fff; border-color: var(--primary); background: var(--primary); }
.experiment-summary { margin: 16px 26px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.experiment-summary div { padding: 10px 11px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.experiment-summary strong { color: var(--primary); font: 800 16px var(--mono); }
.experiment-summary span { color: var(--text-3); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.experiment-import-item { border-left: 3px solid var(--primary); }

@media (max-width: 680px) {
  .data-inbox-panel { margin-inline: 16px; padding: 14px; }
  .data-inbox-controls, .data-inbox-mapping { grid-template-columns: 1fr; }
  .experiment-summary { margin-inline: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phase 3B Data Inbox, Domain Packs and workflow visualization */
.data-inbox-header,
.workflow-panel > header,
.entity-data-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.data-inbox-header > div:first-child { min-width: 0; }
.domain-pack-shortcuts { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.domain-pack-shortcuts button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--line));
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font: 800 9px var(--mono);
  letter-spacing: .035em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.domain-pack-shortcuts button:hover,
.domain-pack-shortcuts button:focus-visible { transform: translateY(-1px); border-color: var(--primary); outline: 0; }
.import-wizard-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}
.import-wizard-steps li {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 800;
}
.import-wizard-steps li:not(:last-child)::after {
  content: '';
  height: 1px;
  margin-inline: 7px 10px;
  flex: 1 1 auto;
  background: var(--line);
}
.import-wizard-steps b {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-3);
  background: var(--surface);
  font: 800 8px var(--mono);
}
.import-wizard-steps .active { color: var(--primary); }
.import-wizard-steps .active b { color: #fff; border-color: var(--primary); background: var(--primary); }
.import-wizard-steps .active:not(:last-child)::after { background: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.data-inbox-controls { grid-template-columns: minmax(150px, .55fr) minmax(150px, .55fr) minmax(250px, 1.25fr); align-items: stretch; }
.data-inbox-controls > label:not(.data-inbox-dropzone),
.data-inbox-config-row > label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--text-2);
  font-size: 9px;
  font-weight: 800;
}
.data-inbox-controls select,
.data-inbox-config-row select { font-size: 10px; }
.data-inbox-preview-head > div { min-width: 0; display: grid; gap: 3px; }
.data-inbox-preview-head small { color: var(--text-3); font: 700 8px var(--mono); overflow-wrap: anywhere; }
.data-inbox-file-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.data-inbox-file-meta span,
.data-inbox-file-meta b {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  background: var(--surface);
  font: 750 8px var(--mono);
  white-space: nowrap;
}
.data-inbox-file-meta b { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 32%, var(--line)); background: var(--primary-soft); }
.data-inbox-config-row { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(220px, 1fr) auto; align-items: end; gap: 9px; }
.mapping-template-actions { display: flex; gap: 7px; }
.mapping-template-actions button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  background: var(--surface);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.mapping-template-actions button:hover:not(:disabled),
.mapping-template-actions button:focus-visible:not(:disabled) { color: var(--primary); border-color: var(--primary); outline: 0; }
.mapping-template-actions button:disabled { opacity: .42; cursor: not-allowed; }
.data-inbox-map-row label { display: grid; gap: 2px; }
.data-inbox-map-row label small { overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font: 700 7px var(--mono); }
.data-inbox-table-wrap th small { display: block; margin-top: 2px; color: var(--text-3); font-size: 7px; }
.experiment-summary { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
.workflow-panel,
.entity-data-panel {
  margin: 16px 26px 0;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.workflow-panel[hidden],
.entity-data-panel[hidden] { display: none; }
.workflow-panel h3,
.entity-data-panel h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.025em; }
.workflow-panel > header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--line));
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font: 800 8px var(--mono);
}
.workflow-dag {
  min-width: 0;
  padding: 4px 2px 8px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.workflow-layer { min-width: 180px; flex: 1 0 180px; display: grid; align-content: center; gap: 8px; }
.workflow-arrow { flex: 0 0 18px; display: grid; place-items: center; color: var(--text-3); font: 800 17px var(--mono); }
.workflow-node {
  min-height: 126px;
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 35, 50, .04);
}
.workflow-node > span { color: var(--text-3); font: 800 7px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.workflow-node strong { color: var(--text); font-size: 11px; line-height: 1.35; }
.workflow-node small { color: var(--text-3); font-size: 8px; line-height: 1.5; }
.workflow-node b { width: max-content; padding: 4px 6px; border-radius: 999px; color: var(--text-3); background: var(--surface-2); font: 800 7px var(--mono); }
.workflow-node.completed { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: linear-gradient(145deg, var(--primary-soft), var(--surface) 60%); }
.workflow-node.completed b { color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 78%, var(--surface)); }
.entity-data-panel > header { align-items: flex-end; }
.entity-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.entity-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-3);
  background: var(--surface);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.entity-tabs button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.entity-table-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.entity-table-wrap table { width: 100%; border-collapse: collapse; font-size: 9px; }
.entity-table-wrap th,
.entity-table-wrap td { max-width: 260px; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.entity-table-wrap th { position: sticky; top: 0; z-index: 1; color: var(--primary); background: var(--surface-2); font: 800 8px var(--mono); }
.entity-table-wrap tbody tr:hover { background: var(--primary-soft); }

@media (max-width: 900px) {
  .data-inbox-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-inbox-dropzone { grid-column: 1 / -1; }
  .data-inbox-config-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapping-template-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .experiment-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .data-inbox-header,
  .workflow-panel > header,
  .entity-data-panel > header { align-items: stretch; flex-direction: column; }
  .domain-pack-shortcuts { align-self: flex-start; }
  .import-wizard-steps li { gap: 4px; font-size: 8px; }
  .import-wizard-steps li:not(:last-child)::after { margin-inline: 3px 5px; }
  .import-wizard-steps b { width: 20px; height: 20px; flex-basis: 20px; }
  .data-inbox-controls,
  .data-inbox-config-row { grid-template-columns: 1fr; }
  .data-inbox-dropzone,
  .mapping-template-actions { grid-column: auto; }
  .mapping-template-actions { justify-content: stretch; }
  .mapping-template-actions button { flex: 1; }
  .data-inbox-preview-head { align-items: flex-start; flex-direction: column; }
  .experiment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-panel,
  .entity-data-panel { margin-inline: 16px; padding: 14px; }
  .workflow-panel > header > span { align-self: flex-start; }
  .workflow-dag { gap: 5px; }
  .workflow-layer { min-width: 165px; flex-basis: 165px; }
  .workflow-arrow { flex-basis: 12px; font-size: 13px; }
  .workflow-node { min-height: 116px; }
  .entity-data-panel > header { gap: 12px; }
  .entity-tabs { justify-content: flex-start; }
  .entity-tabs button { flex: 1 1 calc(50% - 6px); }
}

/* Phase 3C Connector + AI4S */
.integration-hub { margin: 18px 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, var(--primary-soft)); box-shadow: var(--shadow-sm); }
.integration-hub-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.integration-hub-header h3 { margin: 5px 0 4px; font-size: 18px; }
.integration-hub-header p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--text-3); font-size: 10px; line-height: 1.55; }
.integration-local-badge { flex: 0 0 auto; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 800 8px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.integration-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.integration-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.integration-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.integration-card > header > div { display: flex; align-items: center; gap: 8px; }
.integration-card > header span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--primary); background: var(--primary-soft); font: 800 8px var(--mono); }
.integration-card h4 { margin: 0; font-size: 12px; }
.integration-card > header b { color: var(--text-3); font: 800 7px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.integration-card p { color: var(--text-3); font-size: 9px; line-height: 1.55; }
.integration-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.integration-form-grid label, .export-card > label { display: grid; gap: 5px; color: var(--text-2); font-size: 8px; font-weight: 800; }
.integration-form-grid input, .integration-form-grid select, .export-card select, .mapping-studio-row input, .mapping-studio-row select { min-width: 0; width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-2); font: 700 9px var(--font); }
.integration-wide { grid-column: 1 / -1; }
.integration-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.integration-actions button, .export-button-grid button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); font-size: 9px; font-weight: 800; cursor: pointer; }
.integration-actions .primary-button { color: #fff; border-color: var(--primary); background: var(--primary); }
.integration-status { min-height: 15px; margin: 9px 0 0; font: 700 8px/1.5 var(--mono); }
.integration-status.error { color: var(--danger); }
.mapping-studio-rules { max-height: 260px; overflow: auto; display: grid; gap: 6px; margin-top: 10px; padding-right: 3px; }
.mapping-studio-row { display: grid; grid-template-columns: minmax(70px, .7fr) 12px minmax(96px, 1fr) minmax(76px, .65fr) 22px; align-items: center; gap: 4px; }
.mapping-studio-row code { overflow: hidden; color: var(--text-2); font: 700 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.mapping-studio-row > span { color: var(--text-3); text-align: center; }
.mapping-studio-row label { display: grid; place-items: center; }
.mapping-studio-row label input { width: 13px; height: 13px; }
.mapping-studio-row label span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.export-card { align-content: start; }
.export-button-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.export-button-grid button { min-height: 42px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.write-approval { margin-top: 12px; padding: 12px; border: 1px solid color-mix(in srgb, var(--warning) 42%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--warning) 8%, var(--surface)); }
.write-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.write-plan-head > div { display: grid; gap: 2px; }
.write-plan-head span { color: var(--text-3); font: 800 7px var(--mono); text-transform: uppercase; }
.write-plan-head strong { font-size: 11px; }
.write-plan-head b { padding: 4px 6px; border-radius: 999px; color: var(--warning); background: color-mix(in srgb, var(--warning) 13%, var(--surface)); font: 800 7px var(--mono); }
.write-approval dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.write-approval dl div { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.write-approval dt { color: var(--text-3); font: 800 7px var(--mono); text-transform: uppercase; }
.write-approval dd { overflow: hidden; margin: 3px 0 0; color: var(--text); font: 700 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.approval-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 7px; color: var(--text-2); font-size: 8px; line-height: 1.5; }
.approval-check input { margin-top: 2px; }
.sync-log-list { max-height: 260px; overflow: auto; display: grid; gap: 6px; }
.sync-log-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.sync-log-list article > div { min-width: 0; display: grid; gap: 2px; }
.sync-log-list strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sync-log-list small { color: var(--text-3); font: 700 7px var(--mono); }
.sync-log-list article > b, .sync-log-list article > em { color: var(--text-3); font: 800 7px var(--mono); white-space: nowrap; }
.sync-log-list article > em { color: var(--warning); font-style: normal; }
.sync-status { padding: 4px 6px; border-radius: 999px; color: var(--text-3); background: var(--surface); font: 800 7px var(--mono); }
.sync-status.completed { color: var(--primary); background: var(--primary-soft); }
.sync-status.failed, .sync-status.partial, .sync-status.conflict { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.integration-empty { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 9px; text-align: center; }

/* Keep every editable field in the Experiment workspace on one visual scale. */
.experiment-dialog :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select
) {
  height: var(--workspace-control-height);
  min-height: var(--workspace-control-height);
  padding-top: 0;
  padding-bottom: 0;
  font-family: var(--font);
  font-size: var(--workspace-control-font-size);
  font-weight: 700;
  line-height: var(--workspace-control-line-height);
}
.experiment-dialog textarea {
  font-family: var(--font);
  font-size: var(--workspace-control-font-size);
  line-height: 1.5;
}
.experiment-dialog :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea
):focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

@media (max-width: 900px) {
  .integration-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .integration-hub { margin-inline: 12px; padding: 12px; }
  .integration-hub-header { flex-direction: column; }
  .integration-form-grid { grid-template-columns: 1fr; }
  .integration-wide { grid-column: auto; }
  .mapping-studio-row { grid-template-columns: minmax(72px, .65fr) 10px minmax(100px, 1fr); }
  .mapping-studio-row select, .mapping-studio-row label { grid-column: 3; }
  .export-button-grid { grid-template-columns: 1fr; }
  .write-approval dl { grid-template-columns: 1fr; }
  .sync-log-list article { grid-template-columns: auto minmax(0, 1fr); }
  .sync-log-list article > b, .sync-log-list article > em { grid-column: 2; }
}

/* Bench Experience */
.bench-experience {
  margin: 16px 26px 0;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 66%, transparent), transparent 44%),
    var(--surface-2);
  box-shadow: 0 18px 45px rgba(20, 35, 50, .05);
}
.bench-experience-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.bench-experience-header > div { min-width: 0; }
.bench-experience-header h3 { margin: 3px 0 6px; color: var(--text); font-size: 18px; letter-spacing: -.03em; }
.bench-experience-header p:last-child { max-width: 760px; margin: 0; color: var(--text-3); font-size: 10px; line-height: 1.55; }
.bench-local-badge { flex: 0 0 auto; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--line)); border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 800 8px var(--mono); letter-spacing: .05em; }
.bench-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
.bench-tabs button { min-width: max-content; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-3); background: var(--surface); font-size: 10px; font-weight: 800; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.bench-tabs button:hover, .bench-tabs button:focus-visible { color: var(--primary); border-color: var(--primary); outline: 2px solid color-mix(in srgb, var(--primary) 22%, transparent); outline-offset: 2px; }
.bench-tabs button.active { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 20%, transparent); }
.bench-panel { min-width: 0; display: grid; gap: 12px; }
.bench-panel[hidden] { display: none; }
.bench-today-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bench-today-stats > div { min-width: 0; padding: 12px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.bench-today-stats strong { color: var(--primary); font: 800 20px var(--mono); }
.bench-today-stats span { overflow: hidden; color: var(--text-3); font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bench-step-list { display: grid; gap: 7px; }
.bench-step-row { min-width: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bench-step-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.bench-step-row span { color: var(--text-3); font: 800 7px var(--mono); text-transform: uppercase; }
.bench-step-row strong { overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bench-step-row small { color: var(--text-3); font-size: 8px; }
.bench-step-row button, .bench-actions button, .runner-actions button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-size: 9px; font-weight: 800; cursor: pointer; }
.bench-step-row.running { border-color: color-mix(in srgb, var(--primary) 44%, var(--line)); background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%); }
.bench-step-row.completed { opacity: .72; }
.bench-empty { margin: 0; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--text-3); text-align: center; font-size: 10px; }
.bench-split-grid, .bench-domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bench-card { min-width: 0; padding: 15px; display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.bench-card > header > div { display: flex; align-items: center; gap: 8px; }
.bench-card > header span { width: 31px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--primary); background: var(--primary-soft); font: 800 8px var(--mono); }
.bench-card h4 { margin: 0; color: var(--text); font-size: 13px; letter-spacing: -.02em; }
.bench-card > p { margin: 0; color: var(--text-3); font-size: 9px; line-height: 1.55; }
.bench-card label { min-width: 0; display: grid; gap: 5px; color: var(--text-2); font-size: 9px; font-weight: 800; }
.bench-card input:not([type="checkbox"]):not([type="radio"]), .bench-card select { width: 100%; height: var(--workspace-control-height, 40px); min-height: var(--workspace-control-height, 40px); padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); font-size: var(--workspace-control-font-size, 10px); line-height: normal; }
.bench-card textarea { width: 100%; min-height: 110px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); font: 500 10px/1.55 var(--mono); }
.bench-card input:focus-visible, .bench-card select:focus-visible, .bench-card textarea:focus-visible { border-color: var(--primary); outline: 2px solid color-mix(in srgb, var(--primary) 20%, transparent); outline-offset: 1px; }
.bench-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bench-actions .primary-button, .runner-actions .primary-button { color: #fff; border-color: var(--primary); background: var(--primary); }
.bench-actions button:disabled, .runner-actions button:disabled { opacity: .45; cursor: not-allowed; }
.bench-status { min-height: 16px; margin: 0; color: var(--text-3); font-size: 9px; line-height: 1.5; }
.bench-status.error { color: var(--danger); }
.bench-bulk-results { max-height: 150px; display: grid; gap: 5px; overflow: auto; }
.bench-bulk-results > div { padding: 7px 8px; display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-3); background: var(--surface-2); font-size: 8px; }
.bench-bulk-results strong { color: var(--text); }
.bench-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bench-form-grid.compact { grid-template-columns: 1.4fr .8fr; }
.bench-form-grid .bench-wide { grid-column: 1 / -1; }
.bench-identity-card { max-width: 900px; }
.bench-identity-output { padding: 14px; display: grid; justify-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); border-radius: 12px; background: var(--primary-soft); }
.bench-identity-output[hidden] { display: none; }
.bench-identity-output > strong { font: 800 15px var(--mono); letter-spacing: .04em; }
.bench-identity-output [data-barcode-svg] { width: min(100%, 520px); color: #111; background: #fff; padding: 8px; border-radius: 8px; }
.scituu-barcode { width: 100%; height: 82px; display: block; }
.scituu-barcode text { font: 700 10px var(--mono); letter-spacing: .08em; }
.protocol-runner-card { min-height: 380px; align-content: start; }
.runner-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: var(--text-3); font: 800 8px var(--mono); }
.runner-progress progress { width: 100%; height: 7px; accent-color: var(--primary); }
.protocol-runner-card article { min-height: 230px; padding: 18px; display: grid; align-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, var(--primary-soft), var(--surface) 68%); }
.protocol-runner-card article small { color: var(--primary); font: 800 8px var(--mono); }
.protocol-runner-card article h4 { font-size: 18px; }
.protocol-runner-card article p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.55; }
.runner-metadata { display: flex; flex-wrap: wrap; gap: 6px; }
.runner-metadata span { width: auto; height: auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); background: var(--surface); font: 800 8px var(--mono); }
.runner-timer { color: var(--primary); font: 800 30px var(--mono); }
.runner-timer.finished { color: var(--danger); }
.runner-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.bench-panel-heading h4 { margin: 2px 0; font-size: 14px; }
.domain-pack-card { align-self: stretch; }

@media (max-width: 900px) {
  .bench-today-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench-split-grid, .bench-domain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .bench-experience { margin-inline: 16px; padding: 14px; }
  .bench-experience-header { flex-direction: column; }
  .bench-local-badge { align-self: flex-start; }
  .bench-tabs { margin-inline: -3px; padding-inline: 3px; }
  .bench-tabs button { min-height: 44px; }
  .bench-today-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bench-step-row { align-items: stretch; flex-direction: column; }
  .bench-step-row button { width: 100%; min-height: 44px; }
  .bench-form-grid, .bench-form-grid.compact { grid-template-columns: 1fr; }
  .bench-form-grid .bench-wide { grid-column: auto; }
  .bench-actions { justify-content: stretch; }
  .bench-actions button { flex: 1 1 140px; min-height: 44px; }
  .runner-actions button { flex: 1 1 80px; min-height: 44px; }
  .bench-bulk-results > div { align-items: flex-start; flex-direction: column; }
}

/* Readability, account access and email delivery */
body { font-size: 16px; }
.brand small { font-size: 11px; }
.site-beta-badge { font-size: 10px; }
.mcp-config-link { font-size: 11px; }
.eyebrow { font-size: 12px; }
.popular-links span,
.panel-topline,
.trust-strip span,
.sidebar-heading span,
.sidebar-heading button,
.content-heading > p { font-size: 12px; }
.category-button span { font-size: 14px; }
.category-button small { font-size: 11px; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note span { font-size: 12px; }
.tool-card { min-height: 224px; }
.tool-card h3 { font-size: 17px; }
.tool-card p { font-size: 14px; line-height: 1.65; }
.card-meta { font-size: 11px; }
.brand-bridge > p { font-size: 15px; }
.bridge-actions a { font-size: 13px; }

body > footer {
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(240px, 1fr);
  align-items: center;
  font-size: 13px;
}
body > footer > * { min-height: 44px; display: flex; align-items: center; }
body > footer > p { max-width: 680px; justify-self: center; justify-content: center; text-align: center; line-height: 1.65; }
body > footer > div { justify-self: end; justify-content: flex-end; }

.dialog-identity p { font-size: 11px; }
.dialog-identity > div > span { font-size: 13px; }
.dialog-footer { font-size: 12px; }
.form-section-title { font-size: 12px; }
.field label { font-size: 13px; }
.field small,
.form-help,
.error-message,
.result-placeholder p,
.result-primary span,
.protocol-block ol,
.protocol-block ul,
.warning-block,
.info-dialog p,
.info-dialog li { font-size: 12px; }
.result-kicker,
.result-primary small,
.result-row span,
.protocol-block h4,
.result-table { font-size: 12px; }
.timer-item span { font-size: 11px; }
.toast { font-size: 13px; }

.experiment-dialog {
  --workspace-control-height: 44px;
  --workspace-control-font-size: 13px;
}
.experiment-dialog-header p:last-child,
.experiment-meta-grid label,
.experiment-privacy-note,
.experiment-empty,
.experiment-item small,
.data-inbox-panel header p:last-child,
.data-inbox-controls > label:first-child,
.data-inbox-status,
.data-inbox-preview-head,
.data-inbox-controls > label:not(.data-inbox-dropzone),
.data-inbox-config-row > label { font-size: 12px; }
.experiment-item span,
.experiment-summary span,
.data-inbox-dropzone span,
.data-inbox-preview-head small,
.data-inbox-file-meta span,
.data-inbox-file-meta b,
.import-wizard-steps li,
.import-wizard-steps b,
.domain-pack-shortcuts button { font-size: 10px; }
.data-inbox-dropzone strong { font-size: 13px; }
.data-inbox-controls select,
.data-inbox-config-row select,
.data-inbox-table-wrap,
.data-inbox-table-wrap th { font-size: 12px; }
.integration-card h4 { font-size: 14px; }
.integration-card > header b,
.write-plan-head span,
.write-plan-head b,
.write-approval dt,
.sync-log-list small,
.sync-log-list article > b,
.sync-log-list article > em,
.sync-status { font-size: 10px; }
.integration-card p,
.integration-form-grid label,
.export-card > label,
.integration-status,
.approval-check,
.sync-log-list strong { font-size: 12px; }
.integration-form-grid input,
.integration-form-grid select,
.export-card select,
.mapping-studio-row input,
.mapping-studio-row select,
.mapping-studio-row code,
.write-approval dd { font-size: 12px; }
.integration-actions button,
.export-button-grid button { min-height: 40px; font-size: 12px; }
.write-plan-head strong { font-size: 13px; }

.bench-experience-header p:last-child,
.bench-card > p,
.bench-card label,
.bench-status,
.protocol-runner-card article p { font-size: 12px; }
.bench-local-badge,
.bench-today-stats span,
.bench-step-row span,
.bench-step-row small,
.bench-card > header span,
.runner-progress,
.protocol-runner-card article small,
.runner-metadata span { font-size: 10px; }
.bench-tabs button,
.bench-step-row strong,
.bench-empty,
.bench-card textarea,
.bench-bulk-results > div { font-size: 12px; }
.bench-step-row button,
.bench-actions button,
.runner-actions button { min-height: 44px; font-size: 12px; }
.bench-card input:not([type="checkbox"]):not([type="radio"]),
.bench-card select { font-size: 13px; }
.runner-progress progress { height: 9px; }

.account-header-button {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--primary);
  background: var(--surface);
  font: 800 10px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.account-header-button:hover { border-color: var(--line-strong); color: var(--primary); background: var(--surface-2); transform: translateY(-1px); }
.account-header-button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.account-header-button b { width: 7px; height: 7px; display: none; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.account-header-button.signed-in b { display: block; }

.account-dialog,
.email-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 40px 130px rgba(0,0,0,.3);
  overflow: hidden;
}
.account-dialog::backdrop,
.email-dialog::backdrop { background: rgba(10, 23, 20, .68); backdrop-filter: blur(5px); }
.account-shell,
.email-shell { max-height: inherit; display: flex; flex-direction: column; }
.account-dialog-header,
.email-dialog-header { padding: 24px 26px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); }
.account-dialog-header h2,
.email-dialog-header h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.account-dialog-header p:last-child,
.email-dialog-header p:last-child { max-width: 700px; margin: 8px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.65; }
.account-dialog-body { min-height: 440px; padding: 24px 26px 28px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 20px; overflow: auto; }
.account-auth-card,
.account-benefits { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.account-tabs button { min-height: 42px; border: 0; border-radius: 9px; color: var(--text-3); background: transparent; font-weight: 800; cursor: pointer; }
.account-tabs button.active { color: #fff; background: var(--primary); }
.account-form { display: grid; gap: 13px; }
.account-form label,
.email-form-grid label { display: grid; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 800; }
.account-form input,
.email-form-grid input,
.email-form-grid select,
.email-form-grid textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: var(--surface); font-size: 14px; }
.email-form-grid textarea { min-height: 110px; resize: vertical; }
.account-form input:focus,
.email-form-grid input:focus,
.email-form-grid select:focus,
.email-form-grid textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.account-form button,
.account-token-box button,
.account-member-actions button,
.account-member-actions a,
.email-dialog-footer button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; }
.account-form .primary-button,
.account-member-actions .primary-button,
.email-dialog-footer .primary-button { color: #fff; border-color: var(--primary); background: var(--primary); }
.account-status { min-height: 21px; margin: 12px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.account-status.error { color: var(--danger); }
.account-token-box { margin-top: 16px; padding: 13px; display: grid; gap: 9px; border: 1px solid color-mix(in srgb, var(--primary) 36%, var(--line)); border-radius: 11px; background: var(--primary-soft); }
.account-token-box code { padding: 10px; border-radius: 8px; color: var(--text); background: var(--surface); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.account-signed-in { margin: 0; color: var(--primary); font: 800 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.account-member-card h3 { margin: 10px 0 4px; font-size: 24px; }
.account-member-card > p:not(.account-signed-in):not(.account-status) { margin: 0; color: var(--text-3); }
.account-quota { margin: 20px 0; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 11px; background: var(--surface); }
.account-quota span { color: var(--text-3); font-size: 12px; font-weight: 800; }
.account-quota strong { color: var(--primary); font: 800 13px var(--mono); }
.account-member-actions { display: grid; gap: 9px; }
.account-benefits ul { margin: 0; padding: 0; display: grid; gap: 17px; list-style: none; }
.account-benefits li { display: grid; gap: 4px; }
.account-benefits strong { font-size: 14px; }
.account-benefits li span,
.account-benefits > small { color: var(--text-3); font-size: 12px; line-height: 1.6; }
.account-benefits > small { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.email-dialog { width: min(720px, calc(100vw - 32px)); }
.email-form-grid { padding: 22px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: auto; }
.email-message-field,
.email-safety-note,
.email-form-grid .account-status { grid-column: 1 / -1; }
.email-safety-note { padding: 12px 14px; border-left: 3px solid var(--primary); border-radius: 0 9px 9px 0; color: var(--text-3); background: var(--primary-soft); font-size: 12px; line-height: 1.55; }
.email-dialog-footer { padding: 14px 26px 20px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .account-header-button { width: 42px; padding-inline: 0; }
  .account-header-button span { display: none; }
}
@media (max-width: 820px) {
  body > footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  body > footer > * { justify-self: center; justify-content: center; }
  body > footer > div { justify-self: center; justify-content: center; flex-wrap: wrap; }
  .account-header-button { width: auto; padding-inline: 12px; }
  .account-header-button span { display: inline; }
  .account-dialog-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .account-header-button { min-width: 38px; width: 38px; padding-inline: 0; }
  .account-header-button span { display: none; }
  .experiment-dialog-footer > div { grid-template-columns: repeat(2, 1fr); }
  .experiment-dialog-footer button { min-height: 44px; font-size: 12px; }
}
@media (max-width: 560px) {
  .site-beta-badge { font-size: 9px; }
  footer { padding-bottom: 42px; }
  .account-dialog,
  .email-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .account-dialog-header,
  .email-dialog-header { padding: 18px 16px; }
  .account-dialog-header h2,
  .email-dialog-header h2 { font-size: 25px; }
  .account-dialog-body { padding: 16px; }
  .email-form-grid { padding: 18px 16px; grid-template-columns: 1fr; }
  .email-message-field,
  .email-safety-note,
  .email-form-grid .account-status { grid-column: auto; }
  .email-dialog-footer { padding: 12px 16px 18px; }
  .email-dialog-footer button { flex: 1; }
  .footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* Account discovery */
.account-invitation {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 62px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 16px;
  background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--primary-soft) 72%, var(--surface)));
  box-shadow: 0 18px 45px rgba(15, 46, 40, .06);
}
.account-invitation-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}
.account-invitation-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-invitation .eyebrow { margin-bottom: 6px; }
.account-invitation h2 { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.2; letter-spacing: -.025em; }
.account-invitation > div:nth-child(2) > p:last-child { max-width: 760px; margin: 7px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.6; }
.account-invitation-button {
  min-height: 44px;
  padding: 0 16px 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--primary);
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  font: 800 13px var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.account-invitation-button:hover { transform: translateY(-1px); box-shadow: 0 9px 24px color-mix(in srgb, var(--primary) 24%, transparent); }
.account-invitation-button.signed-in { color: var(--primary); background: var(--surface); }
.account-invitation-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .account-invitation { grid-template-columns: auto minmax(0, 1fr); margin-bottom: 44px; }
  .account-invitation-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 520px) {
  .account-invitation { width: calc(100% - 28px); padding: 18px; grid-template-columns: 1fr; text-align: center; }
  .account-invitation-icon { margin: 0 auto; }
  .account-invitation .eyebrow { justify-content: center; }
}

/* Keep the utility header inside tablet and low-resolution viewports. */
@media (max-width: 820px) {
  .experiment-header-button,
  .agent-header-button,
  .account-header-button { width: 42px; min-width: 42px; padding-inline: 0; }
  .experiment-header-button span,
  .agent-header-button span,
  .account-header-button span { display: none; }
}
@media (max-width: 560px) {
  .experiment-header-button,
  .agent-header-button,
  .account-header-button { width: 38px; min-width: 38px; }
}

/* Final legibility pass for frequently read labels and dense scientific results. */
.mini-inputs small,
.example-result small { font-size: 11px; line-height: 1.35; }
.card-open-button { min-height: 32px; padding-block: 7px; font-size: 12px; letter-spacing: .07em; }
.result-table th { font-size: 11px; line-height: 1.35; }
.plate-cell,
.freezer-cell { font-size: 10px; line-height: 1.25; }
.workflow-well { font-size: 9px; line-height: 1.2; }
.workflow-well b { font-size: 8px; }
.heat-legend { font-size: 11px; }
@media (min-width: 1181px) {
  .experiment-header-button,
  .agent-header-button,
  .account-header-button { font-size: 11px; }
}

/* Guided multi-tool workflows */
.workflow-showcase {
  width: min(1180px, calc(100% - 40px));
  margin: 68px auto 34px;
}
.workflow-showcase-header {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}
.workflow-showcase-header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.workflow-showcase-header > div:first-child > p:last-child {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.7;
}
.workflow-showcase-promise {
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface);
  font: 700 11px var(--mono);
  white-space: nowrap;
}
.workflow-showcase-promise i { width: 18px; height: 1px; background: var(--primary); }
.workflow-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workflow-showcase-card {
  --workflow-accent: var(--primary);
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--workflow-accent) 12%, transparent), transparent 36%),
    var(--surface);
  box-shadow: 0 20px 50px rgba(15, 46, 40, .055);
  overflow: hidden;
}
.workflow-showcase-card.accent-amber { --workflow-accent: #c47722; }
.workflow-showcase-card.accent-blue { --workflow-accent: #3979bf; }
.workflow-showcase-card.accent-violet { --workflow-accent: #7657b4; }
.workflow-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workflow-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--workflow-accent);
  background: color-mix(in srgb, var(--workflow-accent) 12%, var(--surface));
}
.workflow-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workflow-card-number { color: color-mix(in srgb, var(--workflow-accent) 65%, var(--text-3)); font: 600 12px var(--mono); letter-spacing: .12em; }
.workflow-card-audience { margin: 20px 0 0; color: var(--workflow-accent); font: 800 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.workflow-showcase-card h3 { margin: 9px 0 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.14; letter-spacing: -.035em; }
.workflow-card-summary { margin: 12px 0 0; color: var(--text-3); font-size: 15px; line-height: 1.7; }
.workflow-card-steps { margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; }
.workflow-card-steps li {
  min-width: 0;
  min-height: 73px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}
.workflow-card-steps li.visited { border-color: color-mix(in srgb, var(--workflow-accent) 42%, var(--line)); background: color-mix(in srgb, var(--workflow-accent) 8%, var(--surface)); }
.workflow-card-steps span { color: var(--workflow-accent); font: 700 10px var(--mono); }
.workflow-card-steps b { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.workflow-card-outcome { margin-top: 18px; padding: 13px 14px; display: grid; gap: 5px; border-left: 3px solid var(--workflow-accent); border-radius: 0 10px 10px 0; background: var(--surface-2); }
.workflow-card-outcome span { color: var(--text-3); font: 800 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.workflow-card-outcome strong { font-size: 14px; line-height: 1.45; }
.workflow-card-actions { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.workflow-card-actions button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface);
  font: 800 13px var(--font);
  cursor: pointer;
}
.workflow-card-actions .workflow-start-button { border-color: var(--workflow-accent); color: #fff; background: var(--workflow-accent); }
.workflow-watch-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.workflow-watch-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.workflow-card-actions button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.popular-links .popular-workflow-link { border-color: color-mix(in srgb, var(--primary) 44%, var(--line)); color: var(--primary); background: var(--primary-soft); }

.workflow-guide-dialog,
.workflow-video-dialog {
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 40px 130px rgba(0,0,0,.34);
  overflow: hidden;
}
.workflow-guide-dialog { width: min(1120px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 28px)); }
.workflow-guide-dialog::backdrop,
.workflow-video-dialog::backdrop { background: rgba(10, 23, 20, .74); backdrop-filter: blur(5px); }
.workflow-guide-dialog .icon-button,
.workflow-video-dialog .icon-button { min-width: 44px; min-height: 44px; }
.workflow-guide-shell { display: flex; flex-direction: column; max-height: inherit; }
.workflow-guide-header { padding: 21px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.workflow-guide-heading { min-width: 0; display: flex; align-items: center; gap: 16px; }
.workflow-guide-number { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--primary); background: var(--primary-soft); font: 800 13px var(--mono); }
.workflow-guide-heading p { margin: 0 0 3px; color: var(--primary); font: 800 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.workflow-guide-heading h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.workflow-guide-heading > div > span { display: block; margin-top: 5px; color: var(--text-3); font-size: 13px; }
.workflow-guide-progress { height: 4px; background: var(--surface-2); }
.workflow-guide-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .28s ease; }
.workflow-guide-body { min-height: 0; display: grid; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.55fr); overflow: hidden; }
.workflow-step-nav { padding: 16px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid var(--line); background: var(--surface-2); overflow: auto; }
.workflow-step-nav button {
  min-height: 58px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.workflow-step-nav button:hover { border-color: var(--line); background: var(--surface); }
.workflow-step-nav button.active { border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.workflow-step-nav button.visited > span { color: #fff; background: var(--primary); }
.workflow-step-nav button > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--primary); background: var(--surface); font: 800 9px var(--mono); }
.workflow-step-nav b { min-width: 0; font-size: 12px; line-height: 1.35; }
.workflow-step-nav small { color: var(--text-3); font: 700 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.workflow-step-detail { min-width: 0; padding: clamp(24px, 4vw, 46px); overflow: auto; }
.workflow-step-kicker { display: flex; align-items: center; gap: 10px; color: var(--text-3); font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.workflow-step-kicker b { padding: 5px 8px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); }
.workflow-step-detail h3 { max-width: 700px; margin: 17px 0 0; font-size: clamp(27px, 4vw, 46px); line-height: 1.06; letter-spacing: -.045em; }
.workflow-step-detail > p { max-width: 680px; margin: 15px 0 0; color: var(--text-3); font-size: 15px; line-height: 1.75; }
.workflow-step-example { margin-top: 24px; padding: 17px 18px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.workflow-step-example span { color: var(--text-3); font: 800 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.workflow-step-example strong { font: 600 15px/1.5 var(--mono); }
.workflow-step-instruction { margin-top: 14px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 11px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.workflow-step-instruction svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workflow-step-instruction p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.workflow-step-actions { margin-top: 26px; display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; gap: 9px; }
.workflow-step-actions button,
.workflow-guide-footer button,
.workflow-video-shell footer button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  font: 800 13px var(--font);
  cursor: pointer;
}
.workflow-step-actions button:disabled { opacity: .4; cursor: not-allowed; }
.workflow-step-actions .workflow-open-action,
.workflow-guide-footer button,
.workflow-video-shell footer button { border-color: var(--primary); color: #fff; background: var(--primary); }
.workflow-guide-footer { min-height: 64px; padding: 10px 18px 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; line-height: 1.5; }

.workflow-video-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 28px); }
.workflow-video-shell { display: flex; flex-direction: column; max-height: inherit; }
.workflow-video-shell > header { padding: 17px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.workflow-video-shell header p { margin: 0 0 3px; color: var(--primary); font: 800 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.workflow-video-shell header h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.workflow-video-stage { min-height: 0; padding: 18px; display: grid; place-items: center; background: #071714; overflow: auto; }
.workflow-video-stage video { display: block; width: min(100%, 350px); max-height: calc(100dvh - 210px); aspect-ratio: 9 / 16; border-radius: 16px; background: #0a1d19; box-shadow: 0 22px 70px rgba(0,0,0,.35); }
.workflow-video-shell footer { padding: 12px 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--text-3); font-size: 12px; line-height: 1.5; }

@media (max-width: 920px) {
  .workflow-showcase-header { grid-template-columns: 1fr; align-items: start; }
  .workflow-showcase-promise { justify-self: start; }
  .workflow-showcase-grid { grid-template-columns: 1fr; }
  .workflow-card-steps { grid-template-columns: repeat(7, minmax(86px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 720px) {
  .workflow-showcase { width: calc(100% - 28px); margin-top: 50px; }
  .workflow-showcase-promise { width: 100%; justify-content: center; white-space: normal; }
  .workflow-guide-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .workflow-guide-header { padding: 16px; }
  .workflow-guide-number { width: 44px; height: 44px; border-radius: 12px; }
  .workflow-guide-heading > div > span { display: none; }
  .workflow-guide-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .workflow-step-nav { padding: 10px 12px; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .workflow-step-nav button { min-width: 74px; min-height: 56px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .workflow-step-nav button b,
  .workflow-step-nav button small { display: none; }
  .workflow-step-detail { padding: 24px 18px; }
  .workflow-step-detail > p { font-size: 16px; }
  .workflow-step-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-step-actions .workflow-open-action { grid-column: 1 / -1; grid-row: 1; }
  .workflow-guide-footer { padding: 10px 14px; }
  .workflow-guide-footer span { display: none; }
  .workflow-guide-footer button { width: 100%; }
}
@media (max-width: 520px) {
  .workflow-showcase-header h2 { font-size: 31px; }
  .workflow-showcase-card { padding: 20px; }
  .workflow-card-actions { grid-template-columns: 1fr; }
  .workflow-card-actions button { width: 100%; }
  .workflow-showcase-promise { display: grid; grid-template-columns: 1fr; justify-items: center; border-radius: 16px; padding: 12px; }
  .workflow-showcase-promise i { width: 1px; height: 10px; }
  .workflow-video-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .workflow-video-stage { padding: 12px; }
  .workflow-video-stage video { width: auto; height: 100%; max-width: 100%; }
  .workflow-video-shell footer span { display: none; }
  .workflow-video-shell footer button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-guide-progress span,
  .workflow-card-actions button { transition: none; }
  .workflow-card-actions button:hover { transform: none; }
}

/* Phase 4B · Instrument Inbox */
.instrument-inbox {
  margin: 18px 22px 0;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 62%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface) 96%, var(--primary-soft));
  box-shadow: var(--shadow-sm);
}
.instrument-inbox-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.instrument-inbox-header > div { min-width: 0; }
.instrument-inbox-header h3 { margin: 5px 0 4px; font-size: 20px; letter-spacing: -.025em; }
.instrument-inbox-header p:not(.eyebrow) { max-width: 780px; margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.instrument-inbox-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 10px; }
.instrument-card,
.instrument-review-grid > article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
}
.instrument-card > header,
.instrument-review-grid > article > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.instrument-card > header > div { display: flex; align-items: center; gap: 8px; }
.instrument-card > header > div > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--primary); background: var(--primary-soft); font: 800 9px var(--mono); }
.instrument-card h4,
.instrument-review-grid h4 { margin: 0; font-size: 13px; }
.instrument-card > header b,
.instrument-review-grid > article > header b { padding: 4px 7px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 800 8px var(--mono); letter-spacing: .04em; }
.instrument-card > p { margin: 0 0 12px; color: var(--text-3); font-size: 11px; line-height: 1.55; }
.instrument-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.instrument-form-grid label { min-width: 0; display: grid; gap: 5px; color: var(--text-3); font-size: 11px; font-weight: 800; }
.instrument-form-grid :is(input, select) { width: 100%; }
.instrument-capability { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: clip; }
.instrument-capability summary { min-height: 40px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-2); cursor: pointer; font-size: 11px; font-weight: 800; }
.instrument-capability summary::marker { color: var(--primary); }
.instrument-capability summary b { padding: 4px 7px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 800 8px var(--mono); white-space: nowrap; }
#instrument-capability-body { padding: 0 11px 11px; display: grid; gap: 9px; color: var(--text-2); font-size: 10px; line-height: 1.55; }
#instrument-capability-body > p { margin: 0; }
.instrument-capability-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.instrument-capability-meta span { color: var(--text-3); font-weight: 700; }
.instrument-capability-meta strong { text-align: right; font: 800 9px var(--mono); }
.instrument-capability-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.instrument-capability-columns section { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.instrument-capability-columns h5 { margin: 0 0 5px; color: var(--text-3); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.instrument-capability-columns ul { margin: 0; padding-left: 16px; display: grid; gap: 3px; }
#instrument-capability-body footer { display: flex; flex-wrap: wrap; gap: 6px; }
#instrument-capability-body footer span { padding: 4px 6px; border-radius: 999px; background: var(--surface); color: var(--text-3); font: 700 8px var(--mono); }
.instrument-dropzone { min-height: 88px; margin-top: 10px; padding: 13px; display: grid; place-content: center; gap: 4px; border: 1px dashed color-mix(in srgb, var(--primary) 46%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--primary-soft) 44%, var(--surface)); text-align: center; cursor: pointer; transition: .18s ease; }
.instrument-dropzone:hover,
.instrument-dropzone.dragging { border-style: solid; background: color-mix(in srgb, var(--primary-soft) 76%, var(--surface)); transform: translateY(-1px); }
.instrument-dropzone strong { color: var(--text); font-size: 13px; }
.instrument-dropzone span { color: var(--text-3); font: 700 10px var(--mono); }
.instrument-profile-editor { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.instrument-profile-editor summary { color: var(--text-2); font-size: 11px; font-weight: 800; cursor: pointer; }
.instrument-profile-editor[open] summary { margin-bottom: 10px; }
.instrument-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.instrument-actions button { min-height: 38px; padding-inline: 12px; }
.watch-toggle { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 11px; font-weight: 700; }
.watch-toggle input { width: 16px; height: 16px; }
.instrument-status { margin: 0; color: var(--text-3); font-size: 11px; line-height: 1.55; }
.instrument-status.error { color: var(--danger); }
.instrument-pending { max-height: 170px; overflow: auto; display: grid; gap: 6px; margin-top: 10px; }
.instrument-pending article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.instrument-pending article > div { min-width: 0; display: grid; gap: 2px; }
.instrument-pending strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.instrument-pending small { color: var(--text-3); font: 700 8px var(--mono); }
.instrument-pending b { color: var(--primary); font: 800 8px var(--mono); }
.instrument-review { padding: 14px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.instrument-review[hidden] { display: none; }
.instrument-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.instrument-review-head > div { min-width: 0; display: grid; gap: 3px; }
.instrument-review-head strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.instrument-review-head small { color: var(--text-3); font: 700 9px var(--mono); }
.instrument-review-head > span { color: var(--primary); font: 800 10px var(--mono); white-space: nowrap; }
.instrument-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.instrument-kpis div { min-width: 0; padding: 9px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.instrument-kpis strong { color: var(--primary); font: 800 15px var(--mono); }
.instrument-kpis span { color: var(--text-3); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.instrument-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.instrument-match-list,
.instrument-qc-list { max-height: 240px; overflow: auto; display: grid; gap: 6px; }
.instrument-match-row,
.instrument-qc-row { min-width: 0; padding: 8px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.instrument-match-row > div,
.instrument-qc-row > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.instrument-match-row strong,
.instrument-qc-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.instrument-match-row small,
.instrument-qc-row small { color: var(--text-3); font: 700 8px var(--mono); }
.instrument-match-row select { width: 100%; }
.instrument-status-pill { padding: 3px 6px; border-radius: 999px; color: var(--text-3); background: var(--surface); font: 800 8px var(--mono); }
.instrument-status-pill.pass,
.instrument-status-pill.matched { color: var(--primary); background: var(--primary-soft); }
.instrument-status-pill.warning,
.instrument-status-pill.review { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.instrument-status-pill.fail,
.instrument-status-pill.unresolved { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.instrument-warnings { display: flex; flex-wrap: wrap; gap: 6px; }
.instrument-warnings span { padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--line)); border-radius: 999px; color: var(--text-2); background: color-mix(in srgb, var(--warning) 7%, var(--surface)); font-size: 9px; }
.instrument-review-actions { border-top: 1px solid var(--line); padding-top: 11px; }

@media (max-width: 900px) {
  .instrument-inbox-grid,
  .instrument-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .instrument-inbox { margin-inline: 12px; padding: 12px; }
  .instrument-inbox-header { flex-direction: column; }
  .instrument-form-grid,
  .instrument-capability-columns { grid-template-columns: 1fr; }
  .instrument-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument-review-head { align-items: flex-start; flex-direction: column; }
}
.instrument-qc-limits { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; }
.instrument-qc-limits label { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; }
.instrument-qc-limits input { width: 100%; min-width: 0; }
#instrument-watch-badge.active { color: var(--primary); background: var(--primary-soft); }

/* Phase 4C · Protocol Intelligence */
.protocol-intelligence-heading { margin: 4px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.protocol-intelligence-heading h4 { margin: 3px 0 0; color: var(--text); font-size: clamp(17px, 2vw, 22px); line-height: 1.2; }
.protocol-intelligence-kicker { color: var(--primary); font: 800 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.protocol-compiler-card { align-content: start; }
.protocol-file-field { padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); }
.protocol-file-field input[type="file"] { height: auto; min-height: 38px; padding: 7px; }
.protocol-source-divider { display: flex; align-items: center; gap: 8px; color: var(--text-3); font: 700 10px var(--mono); text-transform: uppercase; }
.protocol-source-divider::before, .protocol-source-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.protocols-io-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9px; }
.protocol-intelligence-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.protocol-intelligence-card { min-height: 280px; align-content: start; }
.protocol-intelligence-card > header { align-items: center; }
.protocol-intelligence-card > p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.protocol-diff-card { grid-column: 1 / -1; min-height: 230px; }
.protocol-score { min-width: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--primary); background: var(--primary-soft); font: 900 20px/1 var(--mono); text-align: center; }
.protocol-score[data-status="blocked"] { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.protocol-score[data-status="ready-with-warnings"] { color: #b26a00; background: color-mix(in srgb, #f59e0b 12%, var(--surface)); }
.protocol-result-list { min-height: 86px; display: grid; align-content: start; gap: 6px; }
.protocol-result { padding: 8px 9px; display: grid; grid-template-columns: minmax(110px, .38fr) 1fr; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 11px; line-height: 1.45; }
.protocol-result strong { color: var(--text); font: 800 10px/1.4 var(--mono); overflow-wrap: anywhere; }
.protocol-result span { color: var(--text-2); overflow-wrap: anywhere; }
.protocol-result.blocker, .protocol-result.high, .protocol-result.removed { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); }
.protocol-result.warning, .protocol-result.medium, .protocol-result.changed, .protocol-result.metadata-changed { border-color: color-mix(in srgb, #f59e0b 42%, var(--line)); }
.protocol-result.info, .protocol-result.low, .protocol-result.added { border-color: color-mix(in srgb, var(--primary) 36%, var(--line)); }
.protocol-diff-summary { padding: 10px; display: flex; align-items: baseline; gap: 8px; border-radius: 9px; color: var(--text-2); background: var(--primary-soft); }
.protocol-diff-summary strong { color: var(--primary); font: 900 23px var(--mono); }
.protocol-diff-summary span { font-size: 12px; }
.copilot-output { min-height: 120px; padding: 12px; border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line)); border-radius: 10px; background: linear-gradient(145deg, var(--primary-soft), var(--surface)); }
.copilot-output > strong { color: var(--primary); font: 800 10px var(--mono); text-transform: uppercase; }
.copilot-output p { margin: 8px 0 0; color: var(--text); font-size: 12px; line-height: 1.6; }
.copilot-output ul { margin: 9px 0 0; padding-left: 18px; color: var(--text-2); font-size: 11px; line-height: 1.55; }

@media (max-width: 900px) {
  .protocol-intelligence-grid { grid-template-columns: 1fr; }
  .protocol-diff-card { grid-column: auto; }
}
@media (max-width: 680px) {
  .protocol-intelligence-heading { align-items: flex-start; flex-direction: column; }
  .protocols-io-row { grid-template-columns: 1fr; }
  .protocol-result { grid-template-columns: 1fr; }
  .protocol-intelligence-card { min-height: auto; }
}

.runner-metadata .runner-blocked { border-color: color-mix(in srgb, #dc2626 55%, var(--line)); color: #dc2626; background: color-mix(in srgb, #dc2626 8%, transparent); }

/* Scientific Standards Pack and Opentrons automation handoff */
.opentrons-promo {
  width: 100%;
  margin: 0 0 18px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary-soft) 44%, var(--surface)), var(--surface));
  box-shadow: 0 10px 28px rgba(11, 53, 47, .045);
}
.opentrons-promo-mark { width: 48px; height: 48px; display: grid; place-items: center; position: relative; border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line)); border-radius: 14px; color: var(--primary); background: var(--surface); font: 900 14px/1 var(--mono); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--primary) 6%, transparent); }
.opentrons-promo-mark i { width: 6px; height: 6px; position: absolute; right: 7px; top: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.opentrons-promo-content { min-width: 0; }
.opentrons-promo .eyebrow { margin-bottom: 4px; }
.opentrons-promo h3 { margin: 0; max-width: 760px; color: var(--text); font-size: clamp(17px, 2vw, 21px); line-height: 1.2; letter-spacing: -.025em; }
.opentrons-promo-content > p:not(.eyebrow) { max-width: 820px; margin: 5px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.55; }
.opentrons-promo-flow { margin: 11px 0 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0; list-style: none; }
.opentrons-promo-flow li { display: flex; align-items: center; gap: 6px; color: var(--text-2); font: 750 10px/1.2 var(--mono); }
.opentrons-promo-flow li + li::before { content: ""; width: clamp(18px, 3vw, 36px); height: 1px; margin: 0 9px; background: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.opentrons-promo-flow span { color: var(--primary); font-size: 9px; letter-spacing: .06em; }
.opentrons-promo-flow b { font-size: inherit; font-weight: inherit; }
.opentrons-promo-button { min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line)); border-radius: 10px; color: var(--primary); background: var(--surface); font-size: 12px; font-weight: 850; white-space: nowrap; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.opentrons-promo-button:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.opentrons-promo-button:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.opentrons-promo-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


.standards-panel { padding-bottom: 8px; }
.standards-heading { margin: 4px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.standards-heading h4 { margin: 3px 0 5px; max-width: 900px; color: var(--text); font-size: clamp(18px, 2vw, 23px); line-height: 1.22; }
.standards-heading p { max-width: 920px; margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.standards-native-badge { flex: none; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line)); border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 900 9px/1 var(--mono); letter-spacing: .07em; }
.standards-opentrons { padding: 0; overflow: hidden; }
.standards-opentrons > header { padding: 15px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--primary-soft), transparent); }
.standards-opentrons > header > div { display: flex; align-items: center; gap: 10px; }
.standards-opentrons > header > div > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--primary); font: 900 11px var(--mono); }
.standards-opentrons > p { margin: 0; padding: 14px 16px 0; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.standards-opentrons-grid { padding: 15px 16px 17px; display: grid; grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr); gap: 14px; }
.standards-opentrons-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 11px; }
.standards-opentrons-form label { min-width: 0; display: grid; gap: 6px; color: var(--text-3); font-size: 11px; font-weight: 800; }
.standards-opentrons-form input,
.standards-opentrons-form select,
.standards-opentrons-form textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font: 600 13px/1.35 var(--sans); }
.standards-opentrons-form textarea { min-height: 176px; resize: vertical; font-family: var(--mono); font-size: 11px; line-height: 1.55; }
.standards-opentrons-form input:focus,
.standards-opentrons-form select:focus,
.standards-opentrons-form textarea:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.standards-opentrons-form .bench-wide { grid-column: 1 / -1; }
.opentrons-preview-shell { min-width: 0; display: grid; grid-template-rows: auto minmax(230px, 1fr) auto; overflow: hidden; border: 1px solid #264a43; border-radius: 13px; color: #dcf8f0; background: #081713; }
.opentrons-preview-shell > header { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(173, 232, 216, .13); }
.opentrons-preview-shell > header span { color: #8fb9ad; font: 800 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.opentrons-preview { max-height: 420px; margin: 0; padding: 15px; overflow: auto; color: #dffaf3; background: transparent; font: 500 11px/1.65 var(--mono); white-space: pre; tab-size: 2; }
.opentrons-warning-list { min-height: 42px; padding: 10px 13px; border-top: 1px solid rgba(173, 232, 216, .13); color: #a8c8c0; font-size: 11px; line-height: 1.45; }
.opentrons-warning-list p { margin: 0; }
.opentrons-warning-list p + p { margin-top: 5px; }
.standards-export-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.standards-export-grid .bench-card { min-height: 188px; align-content: start; }
.standards-export-grid .bench-card > p { color: var(--text-2); font-size: 12px; line-height: 1.55; }
.standards-button-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.standards-button-grid button { min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-size: 11px; font-weight: 800; text-align: left; }
.standards-button-grid button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.standards-matrix { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.standards-matrix > header { margin-bottom: 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.standards-matrix > header h5 { margin: 0 0 4px; font-size: 14px; }
.standards-matrix > header p { margin: 0; color: var(--text-3); font-size: 11px; line-height: 1.5; }
.standards-matrix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.standards-readiness-card { min-width: 0; padding: 11px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.standards-readiness-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.standards-readiness-card strong,
.standards-readiness-card > div > span { min-width: 0; font-size: 12px; font-weight: 800; line-height: 1.35; }
.standards-readiness-card b { flex: none; padding: 4px 6px; border-radius: 999px; font: 900 8px/1 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.standards-readiness-card p,
.standards-readiness-card small { margin: 0; color: var(--text-3); font-size: 10px; line-height: 1.45; }
.standards-readiness-card.ready b { color: #0c785d; background: #d9f6ec; }
.standards-readiness-card.needs-data b,
.standards-readiness-card.setup b { color: #986111; background: #fff0d0; }
.standards-readiness-card.gateway-required b { color: #8c4874; background: #f9e2f1; }
[data-theme="dark"] .opentrons-promo { box-shadow: 0 20px 60px rgba(0, 0, 0, .24); }
[data-theme="dark"] .standards-readiness-card.ready b { color: #83e4c9; background: #153b33; }
[data-theme="dark"] .standards-readiness-card.needs-data b,
[data-theme="dark"] .standards-readiness-card.setup b { color: #ffd27a; background: #49391d; }
[data-theme="dark"] .standards-readiness-card.gateway-required b { color: #e8a9d2; background: #472b40; }

/* OAuth account access */
.account-oauth { display: grid; gap: 9px; }
.account-oauth-button { min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); font-size: 13px; font-weight: 850; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.account-oauth-button:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.account-oauth-button:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.account-oauth-button svg { width: 20px; height: 20px; flex: none; fill: currentColor; stroke: none; }
.account-oauth-button.google svg path:nth-child(1) { fill: #4285f4; }
.account-oauth-button.google svg path:nth-child(2) { fill: #34a853; }
.account-oauth-button.google svg path:nth-child(3) { fill: #fbbc05; }
.account-oauth-button.google svg path:nth-child(4) { fill: #ea4335; }
.account-oauth-button.github { color: var(--text); }
.account-oauth > p { margin: 1px 0 0; color: var(--text-3); font-size: 10px; line-height: 1.5; text-align: center; }
.account-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--text-3); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.account-or::before,
.account-or::after { content: ""; height: 1px; background: var(--line); }

@media (max-width: 900px) {
  .opentrons-promo { grid-template-columns: auto minmax(0, 1fr); }
  .opentrons-promo-button { grid-column: 2; justify-self: start; }
  .standards-opentrons-grid { grid-template-columns: 1fr; }
  .standards-matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .opentrons-promo { padding: 16px; grid-template-columns: 1fr; gap: 12px; }
  .opentrons-promo-mark { width: 44px; height: 44px; border-radius: 13px; }
  .opentrons-promo-button { grid-column: 1; width: 100%; justify-self: stretch; }
  .opentrons-promo-flow li + li::before { width: 14px; margin-inline: 7px; }
  .standards-heading { align-items: flex-start; flex-direction: column; }
  .standards-opentrons-grid { padding: 12px; }
  .standards-opentrons-form { grid-template-columns: 1fr; }
  .standards-opentrons-form .bench-wide { grid-column: auto; }
  .standards-export-grid,
  .standards-matrix-grid { grid-template-columns: 1fr; }
  .standards-button-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .opentrons-promo { padding: 15px; border-radius: 14px; }
  .opentrons-promo-flow { display: grid; gap: 6px; }
  .opentrons-promo-flow li + li::before { display: none; }
  .standards-opentrons > header { align-items: flex-start; flex-direction: column; }
  .opentrons-preview { font-size: 10px; }
  .account-oauth-button { min-height: 48px; padding-inline: 10px; }
}

/* Public legal pages */
.legal-page { background: var(--bg); }
.legal-header { grid-template-columns: minmax(210px, 1fr) auto; }
.legal-nav { justify-self: end; display: flex; align-items: center; gap: 8px; }
.legal-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--text-2); background: var(--surface); font-size: 12px; font-weight: 750; text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { border-color: var(--line-strong); color: var(--primary); background: var(--surface-2); }
.legal-theme-button { flex: 0 0 auto; }
.legal-shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0 96px; }
.legal-hero { padding: 0 0 clamp(42px, 7vw, 70px); border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 850px; margin: 16px 0 18px; font-size: clamp(46px, 7vw, 84px); line-height: .98; letter-spacing: -.058em; }
.legal-hero > p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--text-2); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.65; }
.legal-meta { margin-top: 28px; display: flex; align-items: center; gap: 10px; color: var(--text-3); font: 12px var(--mono); }
.legal-meta strong { color: var(--primary); }
.legal-article { padding-top: 28px; }
.legal-article section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.legal-article h2 { margin: 0 0 13px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -.025em; }
.legal-article p, .legal-article li { color: var(--text-2); font-size: 16px; line-height: 1.8; }
.legal-article p { margin: 0; }
.legal-article p + p { margin-top: 13px; }
.legal-article ul { margin: 0; padding-left: 22px; }
.legal-article li + li { margin-top: 11px; }
.legal-article strong { color: var(--text); }
.legal-article a, .legal-footer a:not(.brand) { color: var(--primary); font-weight: 700; text-underline-offset: 3px; }
.legal-footer { grid-template-columns: 220px minmax(0, 1fr) auto; }
.legal-footer > p { justify-self: center; text-align: center; }
.legal-footer a[aria-current="page"] { text-decoration-thickness: 2px; }
@media (max-width: 820px) {
  .legal-header { height: auto; min-height: 76px; grid-template-columns: 1fr auto; gap: 12px; }
  .legal-nav a[href="../mcp/"] { display: none; }
  .legal-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .legal-header { padding-inline: 14px; }
  .legal-header .brand-oneliner, .legal-nav a { display: none; }
  .legal-shell { width: min(100% - 28px, 960px); padding-top: 52px; }
  .legal-hero h1 { font-size: 44px; }
  .legal-article p, .legal-article li { font-size: 15px; }
}
body:not(.legal-page) > footer > div > a { color: var(--text-3); font-weight: 600; text-decoration: none; }
body:not(.legal-page) > footer > div > a:hover { color: var(--primary); }

/* Guided workflow continuity across tools and the Experiment Workspace. */
.workflow-context-bar {
  min-height: 72px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-soft) 88%, var(--surface)), var(--surface));
}
.workflow-context-bar button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-2);
  background: var(--surface);
  font: 800 12px var(--font);
  cursor: pointer;
}
.workflow-context-bar button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.workflow-context-bar button:disabled { opacity: .5; cursor: not-allowed; }
.workflow-context-back { display: inline-flex; align-items: center; gap: 7px; }
.workflow-context-back > span:first-child { font-size: 17px; line-height: 1; }
.workflow-context-copy { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 10px; }
.workflow-context-copy > span { color: var(--primary); font: 800 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.workflow-context-copy > strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-context-copy > small { grid-column: 1 / -1; min-width: 0; overflow: hidden; color: var(--text-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-context-next { border-color: var(--primary) !important; color: #fff !important; background: var(--primary) !important; }
.workflow-context-workspace { flex: 0 0 auto; }
.custom-grid-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.custom-grid-fields[hidden] { display: none; }

@media (max-width: 720px) {
  .workflow-context-bar { padding: 9px 12px; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
  .workflow-context-copy { grid-template-columns: 1fr; }
  .workflow-context-copy > strong { font-size: 12px; }
  .workflow-context-copy > span { display: none; }
  .workflow-context-copy > small { grid-column: 1; }
  .workflow-context-next { grid-column: 1 / -1; width: 100%; }
  .custom-grid-fields { grid-template-columns: 1fr; }
}
