/* EMEA Automation Portal mockups: MetLife world, shared by every layout, in a light and a dark theme. */

@font-face {
  font-family: "Inter EAP";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* MetLife core scales (Brand Central, 2026) */
  --blue-950: #003652; --blue-900: #154865; --blue-800: #226587; --blue-700: #3185a9;
  --blue-600: #47a3c8; --blue-500: #61c2e5; --blue-400: #8ad9f5; --blue-300: #a8e7ff;
  --blue-200: #cbf1ff; --blue-100: #effbff;
  --teal-950: #01444c; --teal-800: #2d8683; --teal-200: #d1faf9; --teal-100: #f1fffe;
  --green-950: #265b38; --green-900: #327147; --green-700: #50af70; --green-400: #8ff5b1;
  --green-200: #d3ffe2; --green-100: #f4fff8;
  --wg-950: #3e3d35; --wg-900: #4e4a46; --wg-800: #67625b; --wg-700: #7c766e; --wg-600: #9c978f;
  --wg-500: #c4beb5; --wg-400: #dddbd5; --wg-300: #eae7e1; --wg-200: #f5f2ed; --wg-100: #fbfaf8;
  --white: #ffffff;
  /* Accents carry state only, never fill a region */
  --red-950: #5a1722; --red-500: #ec657b; --red-200: #ffccd5;
  --orange-950: #4f3102; --orange-500: #f9b243; --orange-200: #fee7b9;

  /* Roles: light theme */
  --ground: var(--wg-100);
  --surface: var(--white);
  --surface-2: var(--wg-100);
  --surface-3: var(--wg-200);
  --ink: var(--blue-950);
  --ink-2: var(--blue-900);
  --muted: var(--wg-800);
  --line: var(--wg-300);
  --line-strong: var(--wg-400);
  --link: var(--blue-800);
  --focus: var(--blue-800);
  --tint: var(--blue-100);
  --tint-ring: var(--blue-300);
  --chrome: var(--blue-950);
  --chrome-line: transparent;
  --band: var(--blue-950);
  --input-bg: var(--white);
  --placeholder: var(--wg-700);
  --primary: var(--blue-950);
  --primary-ink: var(--white);
  --primary-hover: var(--blue-900);
  --control: var(--blue-950);
  --code-bg: var(--blue-100);
  --code-ink: var(--blue-900);
  --mark: var(--blue-200);
  --selection: var(--blue-200);
  --toast-bg: var(--blue-950);
  --toast-ink: var(--white);
  --toast-icon: var(--green-400);
  --scroll-thumb: var(--wg-500);
  --th-bg: var(--wg-100);

  --b-draft-bg: var(--blue-200); --b-draft-ink: var(--blue-950);
  --b-published-bg: var(--blue-950); --b-published-ink: var(--white);
  --b-ok-bg: var(--green-200); --b-ok-ink: var(--green-950);
  --b-off-bg: var(--wg-300); --b-off-ink: var(--wg-900);
  --b-bad-bg: var(--red-200); --b-bad-ink: var(--red-950);
  --b-run-bg: var(--blue-200); --b-run-ink: var(--blue-950);
  --b-wait-bg: var(--orange-200); --b-wait-ink: var(--orange-950);
  --alert: #c0283f;

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003652' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  --serif: "IvyPresto Text", "ivypresto-text", Georgia, "Times New Roman", serif;
  --sans: "Inter EAP", Inter, Arial, sans-serif;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --shadow-1: 0 1px 2px rgba(0, 54, 82, 0.08), 0 2px 8px rgba(0, 54, 82, 0.06);
  --shadow-2: 0 2px 6px rgba(0, 54, 82, 0.10), 0 18px 40px rgba(0, 54, 82, 0.18);
  /* Neutral shadow for dark elements floating over the page (toast, mock switch) */
  --shadow-ink: 0 2px 6px rgba(0, 0, 0, 0.16), 0 14px 30px rgba(0, 0, 0, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* Roles: dark theme. The brand's own dark composition: Blue 950 ground, Blue 900 panels, white type, Green 400 for action. */
:root[data-theme="dark"] {
  --ground: var(--blue-950);
  --surface: var(--blue-900);
  --surface-2: rgba(203, 241, 255, 0.05);
  --surface-3: rgba(0, 20, 32, 0.32);
  --ink: var(--white);
  --ink-2: var(--blue-100);
  --muted: rgba(203, 241, 255, 0.72);
  --line: rgba(203, 241, 255, 0.14);
  --line-strong: rgba(203, 241, 255, 0.26);
  --link: var(--blue-400);
  --focus: var(--blue-400);
  --tint: rgba(97, 194, 229, 0.16);
  --tint-ring: rgba(138, 217, 245, 0.5);
  --chrome: var(--blue-950);
  --chrome-line: rgba(203, 241, 255, 0.14);
  --band: var(--blue-900);
  --input-bg: var(--blue-950);
  --placeholder: rgba(203, 241, 255, 0.55);
  --primary: var(--green-400);
  --primary-ink: var(--blue-950);
  --primary-hover: var(--green-200);
  --control: var(--green-400);
  --code-bg: rgba(203, 241, 255, 0.1);
  --code-ink: var(--blue-200);
  --mark: rgba(143, 245, 177, 0.32);
  --selection: rgba(97, 194, 229, 0.4);
  --toast-bg: var(--white);
  --toast-ink: var(--blue-950);
  --toast-icon: var(--green-900);
  --scroll-thumb: rgba(203, 241, 255, 0.28);
  --th-bg: #1e506d;

  --b-draft-bg: rgba(203, 241, 255, 0.12); --b-draft-ink: var(--blue-200);
  --b-published-bg: var(--blue-200); --b-published-ink: var(--blue-950);
  --b-ok-bg: rgba(143, 245, 177, 0.16); --b-ok-ink: var(--green-400);
  --b-off-bg: rgba(255, 255, 255, 0.1); --b-off-ink: var(--wg-300);
  --b-bad-bg: rgba(236, 101, 123, 0.2); --b-bad-ink: var(--red-200);
  --b-run-bg: rgba(97, 194, 229, 0.2); --b-run-ink: var(--blue-300);
  --b-wait-bg: rgba(249, 178, 67, 0.2); --b-wait-ink: var(--orange-200);
  --alert: var(--red-500);

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbf1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--scroll-thumb) transparent; scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-feature-settings: "cv11", "ss03";
  text-align: left;
  caret-color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1[tabindex="-1"]:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.tnum, table, time, .num { font-variant-numeric: tabular-nums; }
.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; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 22px; height: 22px; }

/* Logo versions follow the ground they sit on */
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

/* Theme switch */
.theme-toggle { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle--chrome { border-color: rgba(203, 241, 255, 0.28); background: rgba(203, 241, 255, 0.08); color: var(--blue-200); }
.theme-toggle--chrome:hover { background: rgba(203, 241, 255, 0.16); border-color: rgba(203, 241, 255, 0.45); color: var(--white); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }

/* Type */
.h1, .h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; margin: 0; }
.h1 { font-size: 34px; line-height: 1.15; }
.h2 { font-size: 24px; line-height: 1.2; }
.h3 { font: 600 16px/1.35 var(--sans); margin: 0; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font: 600 12.5px/1.3 var(--sans); color: var(--muted); letter-spacing: 0.01em; }

/* Logo and product lockup: "MetLife | <name>" */
.lockup { display: inline-flex; flex: none; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.lockup img { height: 26px; width: auto; }
.lockup__bar { width: 1.5px; align-self: stretch; margin: 3px 0; background: currentColor; opacity: 0.9; }
.lockup__name { font: 400 17px/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid transparent; background: none; cursor: pointer;
  font: 600 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn--accent { background: var(--green-400); color: var(--blue-950); }
.btn--accent:hover { background: var(--green-200); color: var(--blue-950); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--muted); background: var(--surface-2); color: var(--ink); }
.btn--danger { border-color: var(--b-bad-bg); color: var(--b-bad-ink); background: var(--surface); }
.btn--danger:hover { background: var(--b-bad-bg); color: var(--b-bad-ink); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: var(--r-sm); gap: 6px; }
.btn--icon { width: 30px; height: 30px; padding: 0; border-radius: var(--r-sm); flex: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Inputs */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font: 600 13px/1.3 var(--sans); color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--input-bg); color: var(--ink);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--tint); }
.select { appearance: none; padding-right: 36px; background: var(--input-bg) var(--select-arrow) no-repeat right 12px center; }
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; }
.kbd { font: 600 11.5px/1 var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--surface-2); }
input[type="checkbox"] { accent-color: var(--control); }

/* Department tab: the brand's solution tab, anchored to the top edge of its container */
.dept-tab {
  display: inline-block; font: 500 11.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-950); background: var(--blue-200); padding: 7px 14px 8px; border-radius: 0 0 10px 10px; white-space: nowrap;
}
.has-tab { position: relative; }
.has-tab > .dept-tab { position: absolute; top: 0; left: 20px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12.5px/1 var(--sans); white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.badge--draft { background: var(--b-draft-bg); color: var(--b-draft-ink); }
.badge--published { background: var(--b-published-bg); color: var(--b-published-ink); }
.badge--refused, .badge--dead, .badge--failed { background: var(--b-bad-bg); color: var(--b-bad-ink); }
.badge--online, .badge--succeeded { background: var(--b-ok-bg); color: var(--b-ok-ink); }
.badge--offline { background: var(--b-off-bg); color: var(--b-off-ink); }
.badge--running { background: var(--b-run-bg); color: var(--b-run-ink); }
.badge--waiting { background: var(--b-wait-bg); color: var(--b-wait-ink); }
.badge--count { height: 20px; min-width: 20px; padding: 0 6px; justify-content: center; background: var(--green-400); color: var(--blue-950); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--online .dot { background: var(--green-700); }
.badge--running .icon { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hl-late { background: var(--b-bad-bg); color: var(--b-bad-ink); font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.hl-knock { background: var(--b-wait-bg); color: var(--b-wait-ink); font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.flag { display: inline-flex; vertical-align: -3px; }
.flag .icon { width: 17px; height: 17px; stroke-width: 2.25; color: var(--alert); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Kind markers next to automation names */
.kind { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.kind .icon { width: 14px; height: 14px; }
.codes { color: var(--muted); font-size: 12.5px; letter-spacing: 0.02em; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__body { padding: 20px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--sans); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* Chips used as filters */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip[aria-pressed="true"] .muted { color: inherit; opacity: 0.75; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font: 600 12.5px/1.3 var(--sans); color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--th-bg); white-space: nowrap; }
.table th:first-child { border-top-left-radius: var(--r-lg); }
.table th:last-child { border-top-right-radius: var(--r-lg); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover td { background: var(--tint); }
.table tr.is-sub td { background: var(--surface-2); }
.table .t-name { font-weight: 600; color: var(--ink); }
.table .t-sub, .t-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
code, .code { font: 500 12.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--code-ink); background: var(--code-bg); padding: 2px 6px; border-radius: 5px; }
.url-row { display: flex; align-items: center; gap: 8px; }
.url-row code, .code--off { white-space: nowrap; }
.code--off { color: var(--muted); background: var(--surface-2); }

/* Run timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .node { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 2px solid var(--line); }
.timeline .node .icon { width: 15px; height: 15px; stroke-width: 2.25; }
.timeline .is-done .node { background: var(--b-ok-bg); color: var(--b-ok-ink); border-color: transparent; }
.timeline .is-done::before { background: var(--green-700); }
.timeline .is-current .node { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); outline: 3px solid var(--tint); outline-offset: 2px; }
.timeline .is-waiting .node { background: var(--b-wait-bg); color: var(--b-wait-ink); border-color: var(--b-wait-ink); }
.timeline .is-failed .node { background: var(--b-bad-bg); color: var(--b-bad-ink); border-color: transparent; }
.timeline .step-title { font-weight: 600; color: var(--ink); line-height: 28px; }
.timeline .step-meta { font-size: 13px; color: var(--muted); margin-top: -2px; }

/* Approval item */
.approval { display: grid; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.approval:last-child { border-bottom: 0; }
.approval__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.approval__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.approval__who { font-size: 13px; color: var(--muted); }
.approval dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.approval dt { color: var(--muted); }
.approval dd { margin: 0; color: var(--ink); font-weight: 500; }
.approval__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Empty state */
.empty { padding: 40px 24px; display: grid; justify-items: start; gap: 12px; }
.empty__title { font: 400 22px/1.25 var(--serif); letter-spacing: -0.02em; color: var(--ink); margin: 0; }

/* Toast */
.toasts { position: fixed; left: 24px; bottom: 24px; display: grid; gap: 8px; z-index: 60; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--toast-bg); color: var(--toast-ink); padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-ink); font-weight: 500; font-size: 14px; animation: toast-in 280ms var(--ease-out); }
.toast .icon { color: var(--toast-icon); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Mock-only switcher: sits outside the product chrome */
.mock-switch { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(46, 45, 41, 0.92); box-shadow: var(--shadow-ink); font: 600 12.5px/1 var(--sans); border: 1px solid rgba(255, 255, 255, 0.12); }
.mock-switch a { color: #f5f2ed; text-decoration: none; padding: 7px 9px; border-radius: 999px; }
.mock-switch a:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.mock-switch a[aria-current="page"] { background: var(--green-400); color: var(--blue-950); }
.mock-switch .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.25); margin: 0 4px; }

/* Shared screen: automation */
.auto-head { display: grid; gap: 10px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.auto-summary { font-size: 16px; color: var(--ink-2); max-width: 64ch; margin: 0; }
.auto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.form-card { padding: 44px 24px 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.facts { display: grid; gap: 14px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 600 12.5px/1.3 var(--sans); color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.mini-runs { list-style: none; margin: 0; padding: 0; }
.mini-runs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mini-runs li:first-child { border-top: 0; }
.mini-runs a { color: var(--ink); font-weight: 500; text-decoration: none; }
.mini-runs a:hover { text-decoration: underline; }
.run-live { display: grid; gap: 20px; }
.run-live__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Shared screen: run detail */
.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

/* Shared screen: console */
.console-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.console-tools .search { width: 280px; }
.health-cell { display: grid; gap: 6px; justify-items: start; }
.seen { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.screen--console .table td { vertical-align: middle; }
.screen--console .t-name { white-space: nowrap; }

/* Avatars */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px/1 var(--sans); flex: none; background: var(--green-400); color: var(--blue-950); }

@media (max-width: 1100px) {
  .auto-grid, .run-grid { grid-template-columns: 1fr; }
}
/* Screens placed inside a pane follow the pane's width, not the window's */
.cq { container-type: inline-size; }
@container (max-width: 860px) {
  .auto-grid, .run-grid { grid-template-columns: 1fr; }
}
@container (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .h1 { font-size: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 44px 16px 16px; }
  .toasts { left: 12px; right: 12px; bottom: 72px; }
  .mock-switch { right: 8px; bottom: 8px; }
  .mock-switch a { padding: 7px 7px; }
  .console-tools .search { width: 100%; }
  .kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
