/*
 * Insites Migration Tool, in the Insites Console v6 look (TW#26822394, 29 September 2026).
 *
 * The values are copied from the v6 design tokens (insites-io/tokens, dist/tokens.css) and
 * from the Console v6 wizard (insites-io/console-v6: components/SaveBar/SaveBar.css,
 * styles/wizard.css, features/chrome/AppHeader/AppHeader.css). The tool has no build step,
 * so they are copied rather than imported; change them there first, then here.
 *
 * Dark mode follows the computer's setting: every color is a light-dark() pair, the dark
 * half being the token's dark value.
 */
:root {
  color-scheme: light dark;
  --brand: #3044ff;
  --brand-emphasis: #2233e6;
  --brand-active: #1a27c2;
  --brand-subtle: light-dark(#eef0ff, #1a1f3d);
  --brand-border: light-dark(#d6dbff, #2a3050);
  --brand-fg: light-dark(#2233e6, #93b4ff);
  /* The word Agency in the account selector (Shane, 27 October 2026): the purple of the Insites mark, 4.5:1 or more on both themes. */
  --agency-fg: light-dark(#5b18d6, #b9a2ff);
  /* The text on a pill filled with that purple: white on the dark purple, near-black on the light one, 4.5:1 or more on both. */
  --on-agency: light-dark(#ffffff, #1a0f3d);
  --surface-base: light-dark(#f5f7fb, #141210);
  --surface-raised: light-dark(#ffffff, #1f1c18);
  --surface-subtle: light-dark(#fafbfd, #1a1714);
  --surface-deep: light-dark(#dfe4ee, #252220);
  --text-primary: light-dark(#11182a, #faf7f2);
  --text-secondary: light-dark(#354155, #c9c0b5);
  /* Quiet text. At least 4.5:1 on every ground it is drawn on, the tinted notes and the selected option included (TW#26901831): #647088 was 3.9:1 on surface-deep and 4.4:1 on brand-subtle, #9c9489 4.1:1 on success-subtle. */
  --text-tertiary: light-dark(#5a657a, #a7a096);
  /* At least 4.5:1 on every surface it is used on, the WCAG AA floor for text (TW#26876538): it was 3.5:1. */
  --text-subtle: light-dark(#66708a, #928a7f);
  --border-subtle: light-dark(#e7ebf2, #2a2620);
  --border-divider: light-dark(#d6dce6, #2a2620);
  --border-default: light-dark(#828ea3, #746a60);
  --border-strong: light-dark(#647088, #5a5248);
  --success: #00c853;
  --success-fg: light-dark(#0a6b36, #86efac);
  --success-subtle: light-dark(#dff7e7, #143d26);
  --danger: #dc2626;
  --danger-fg: light-dark(#b91c1c, #fca5a5);
  --danger-subtle: light-dark(#fde3e3, #421a1a);
  /* The focus ring on a red button: red, not the blue --focus (Shane, 27 October 2026). At least 5:1 on
     every surface, light and dark, against the 3:1 WCAG floor for a focus indicator. */
  --danger-focus: light-dark(#b91c1c, #fca5a5);
  --warning: #ffd60a;
  --warning-fg: light-dark(#7a5800, #fcd34d);
  --warning-subtle: light-dark(#fff7d1, #3d3511);
  --info-fg: light-dark(#0369a1, #93c5fd);
  --info-subtle: light-dark(#dff2fe, #0c2d42);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Poppins", "DM Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-input: 6px;
  --r-button: 8px;
  --r-card: 12px;
  --r-xl: 16px;
  --elevation-sm: 0 1px 2px rgba(20, 28, 50, 0.04);
  /*
   * Keyboard focus (TW#26907653). An opaque 2px outline, 2px clear of the control, so it is drawn on
   * the surface around it. Until v0.8.1 it was a 4px glow at 18% opacity with the outline removed: about
   * 1.3:1 against the page, and gone entirely in forced-colors mode, which drops box shadows. Against
   * every surface it can sit on, light: 6.18:1 (#ffffff), 5.76:1 (#f5f7fb), 5.97:1 (#fafbfd), 4.85:1
   * (#dfe4ee); dark: 9.09:1 (#141210), 8.25:1 (#1f1c18), 8.68:1 (#1a1714), 7.69:1 (#252220). The WCAG
   * floor for a focus indicator is 3:1. The brand blue alone would be 3.02:1 on the darkest surface, so the
   * dark half is the lighter brand text color. api/test/focus-ring.test.ts computes these from the tokens.
   */
  --focus: light-dark(#3044ff, #93b4ff);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --imt-top-h: 0px;
  --imt-head-h: 60px;
  --imt-dock-h: 0px;
  --imt-bars-top: var(--imt-top-h);
}

/* Keyboard focus is never hidden behind the fixed bars (WCAG 2.4.11). The script measures the dock and the sticky headers; the browser keeps a focused control clear of them. */
html { scroll-padding-bottom: calc(var(--imt-dock-h) + 16px); scroll-padding-top: calc(var(--imt-bars-top) + 16px); }

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Every control reached with the keyboard shows where focus is, including one with no rule of its own. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.6 var(--font); background: var(--surface-base); color: var(--text-secondary); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--brand-fg); }
h1, h2, h3 { font-family: var(--display); color: var(--text-primary); margin: 0 0 12px; line-height: 1.25; font-weight: 600; }
h1 { font-size: 36px; letter-spacing: -0.01em; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; color: var(--text-primary); overflow-wrap: anywhere; }
.imt-muted { color: var(--text-tertiary); }
.imt-small { font-size: 12px; }
.imt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/*
 * Skip to main content: the first thing Tab reaches on every page, out of sight until then, and over
 * the top bar when it is focused (TW#26907653, WCAG 2.4.1). The main it points at takes focus, so
 * the next Tab goes on from there; a landmark that holds focus draws no outline of its own.
 */
.imt-skip { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; border-radius: var(--r-button); background: var(--surface-raised); color: var(--brand-fg); font-weight: 600; text-decoration: none; box-shadow: var(--elevation-sm); transform: translateY(calc(-100% - 16px)); }
.imt-skip:focus { transform: none; outline: 2px solid var(--focus); outline-offset: 2px; }
#main:focus { outline: none; }
.imt-nowrap { white-space: nowrap; }
/* One size for every checkbox and radio: the browser default is 13px, which is under the 14px floor the tests hold, and no rule for a text input may stretch it. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }

/* ---- The sidebar (TW#26936704) ----
   A left sidebar on every page: 232px with the full logo, the account and the menu, which collapses on
   every page to a 64px icon rail with the Insites mark (TW#26936917). A migration opens collapsed unless
   this browser chose otherwise. Which of the two a page gets is settled by the server and the saved
   choice, read before the sidebar paints, so nothing in it moves after the first paint. Every track has its size before its
   contents arrive: the account slot is a fixed 48px box holding a skeleton or the last account seen.
   On a phone it is a top bar with a menu button that opens the same sidebar as a drawer. */
.imt-shell { --imt-side-w: 232px; }
.imt-shell.is-collapsed { --imt-side-w: 64px; }
.imt-top { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; display: flex; flex-direction: column; gap: 18px; width: var(--imt-side-w); box-sizing: border-box; padding: 20px 14px 14px; background: var(--surface-raised); border-right: 1px solid var(--border-divider); }
.imt-content { margin-left: var(--imt-side-w); min-width: 0; }
.imt-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; flex: none; }
.imt-brand { display: flex; align-items: center; height: 48px; padding: 0 6px; color: var(--text-primary); text-decoration: none; border-radius: var(--r-input); }
/* The full logo is the Insites logo alone, with no words under it, a little larger (Shane, 27 October 2026). */
.imt-brand-full svg { display: block; height: 46px; width: auto; }
/* The mark in the rail is 20% smaller than the 68px square it was (Shane, 27 October 2026): a 54.4px
   square, of which the box shows the 22.4px-wide mark. */
.imt-brand-markbox { display: none; width: 22.4px; height: 54.4px; overflow: hidden; }
.imt-brand-mark { display: block; flex: none; width: 54.4px; height: 54.4px; max-width: none; margin-left: -12.24px; }
.imt-brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-menu-btn { display: none; }
.imt-drawer { display: flex; flex-direction: column; gap: 18px; flex: 1; min-height: 0; }
.imt-account-slot { position: relative; flex: none; width: 100%; height: 48px; min-width: 0; }
/* A little more room under the account, so Migrations sits a little lower (Shane, 27 October 2026). */
.imt-top .imt-account-slot { margin-bottom: 10px; }
.imt-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.imt-nav > a { display: flex; align-items: center; gap: 10px; flex: none; height: 40px; padding: 0 12px; border-radius: var(--r-button); color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.imt-nav > a:hover { background: var(--surface-base); color: var(--text-primary); }
.imt-nav > a[aria-current="page"] { background: var(--brand-subtle); color: var(--brand-fg); font-weight: 600; }
.imt-nav > a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.imt-nav-ico { display: block; flex: none; width: 18px; height: 18px; }
.imt-nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Docs and Change Log sit at the bottom, above the person, smaller and quieter. */
.imt-nav > a.imt-nav-foot { height: 36px; font-size: 13px; color: var(--text-tertiary); }
.imt-nav > a.imt-nav-foot-first { margin-top: auto; border-top: 1px solid var(--border-divider); border-radius: 0 0 var(--r-button) var(--r-button); padding-top: 0; }
.imt-nav > a.imt-nav-foot[aria-current="page"] { color: var(--brand-fg); }
/* The same divider under Change Log, between the menu and the person (Shane, 27 October 2026). */
.imt-nav > a.imt-nav-foot-last { border-bottom: 1px solid var(--border-divider); border-radius: var(--r-button) var(--r-button) 0 0; }
.imt-side-foot { display: flex; flex-direction: column; gap: 6px; flex: none; }
.imt-rail-toggle { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-button); background: none; color: var(--text-tertiary); font: 500 13px var(--font); cursor: pointer; }
.imt-rail-toggle:hover { background: var(--surface-base); color: var(--text-primary); }
.imt-rail-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.imt-rail-toggle svg { flex: none; width: 18px; height: 18px; }
.imt-rail-toggle .imt-rail-out, .imt-shell.is-collapsed .imt-rail-toggle .imt-rail-in { display: none; }
.imt-shell.is-collapsed .imt-rail-toggle .imt-rail-out { display: inline; }
/* An item's name beside it in the rail, on pointing and on keyboard focus. Drawn on the page, outside the
   sidebar, so the sidebar cannot clip it. */
.imt-rail-tip { position: fixed; z-index: 60; display: none; transform: translateY(-50%); padding: 5px 10px; border-radius: var(--r-input); background: var(--text-primary); color: var(--surface-raised); font: 500 13px/1.3 var(--font); white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(20, 28, 50, 0.18); }
.imt-rail-tip.is-on { display: block; }
/* A title, shown half a second after the pointer rests on its thing (quickTips in glossary.js). */
.imt-quick-tip { position: fixed; z-index: 90; display: none; max-width: min(320px, calc(100vw - 16px)); padding: 6px 10px; border-radius: var(--r-input); background: var(--text-primary); color: var(--surface-raised); font: 500 12.5px/1.4 var(--font); pointer-events: none; box-shadow: 0 4px 14px rgba(20, 28, 50, 0.18); }
.imt-quick-tip.is-on { display: block; }
/* The person at the bottom: avatar, name and app version; the menu opens upwards. */
.imt-top .imt-profile { position: relative; width: 100%; }
.imt-top .imt-profile > summary { gap: 10px; padding: 6px; border-radius: var(--r-button); }
.imt-profile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.imt-profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.imt-profile-ver { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.imt-top .imt-profile-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
/* The account, two lines in its fixed box: "Agency" and the role above, the name below. */
.imt-top .imt-account, .imt-top .imt-account-skel, .imt-top .imt-account-static { height: 48px; }
.imt-top .imt-account > summary, .imt-top .imt-account-static { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) 10px; grid-template-rows: 16px 18px; align-content: center; column-gap: 6px; height: 48px; padding: 0 12px 0 10px; border-radius: var(--r-input); }
.imt-top .imt-account-skel { border-radius: var(--r-input); }
.imt-top .imt-account-ico { grid-row: 1 / 3; grid-column: 1; align-self: center; }
.imt-top .imt-account-kind { grid-row: 1; grid-column: 2; font-size: 11px; font-weight: 500; }
.imt-top .imt-account-role { grid-row: 1; grid-column: 3; justify-self: start; align-self: center; padding: 0 5px; font-size: 10px; line-height: 14px; }
.imt-top .imt-account-name { grid-row: 2; grid-column: 2 / 4; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imt-top .is-personal .imt-account-name { grid-row: 1 / 3; align-self: center; }
.imt-top .imt-account .imt-profile-caret, .imt-top .imt-account-static .imt-profile-caret { grid-row: 1 / 3; grid-column: 4; align-self: center; margin: 0; }
.imt-top .imt-account-menu { left: 0; right: auto; }
/* The rail: icons only, each with its name for screen readers and as a tooltip. */
.imt-shell.is-collapsed .imt-top { align-items: center; padding: 18px 0 14px; }
.imt-shell.is-collapsed :is(.imt-brand-full, .imt-account-slot, .imt-nav-label, .imt-profile-text, .imt-profile-caret, .imt-rail-label) { display: none; }
.imt-shell.is-collapsed .imt-brand-markbox { display: block; }
.imt-shell.is-collapsed .imt-side-head { height: auto; }
.imt-shell.is-collapsed .imt-brand { height: auto; padding: 2px; }
.imt-shell.is-collapsed :is(.imt-drawer, .imt-nav, .imt-side-foot) { align-items: center; }
.imt-shell.is-collapsed .imt-nav > a { justify-content: center; width: 44px; height: 44px; padding: 0; }
.imt-shell.is-collapsed .imt-nav > a.imt-nav-foot-first { border-top: 0; }
.imt-shell.is-collapsed .imt-nav > a.imt-nav-foot-last { border-bottom: 0; }
.imt-shell.is-collapsed .imt-rail-toggle { justify-content: center; width: 44px; padding: 0; }
.imt-shell.is-collapsed .imt-top .imt-profile { width: auto; }
.imt-shell.is-collapsed .imt-top .imt-profile > summary { padding: 4px; }
/* The content's own top bar on a list page: New migration at the right. The page's name is its own h1
   below, once (TW#26936917): the bar no longer repeats it. */
.imt-pagebar { position: sticky; top: var(--imt-top-h); z-index: 15; display: flex; align-items: center; justify-content: flex-end; gap: 16px; height: 72px; box-sizing: border-box; padding: 0 24px; background: var(--surface-raised); border-bottom: 1px solid var(--border-divider); }
.imt-nav-cta { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-button); background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(48, 68, 255, 0.35); }
.imt-nav-cta:hover { background: var(--brand-emphasis); }
.imt-nav-cta[aria-current="page"] { background: var(--brand-active); }
.imt-nav-cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-nav-out { margin: 0; }
.imt-nav-out button { background: none; border: 0; color: var(--text-tertiary); font: 500 13px var(--font); padding: 8px 10px; border-radius: var(--r-button); cursor: pointer; }
.imt-nav-out button:hover { color: var(--text-primary); background: var(--surface-base); }
/* Inside a migration the run bar is the breadcrumb: Migrations / source to destination. */
.imt-crumb { color: var(--text-tertiary); text-decoration: none; font-weight: 500; }
.imt-crumb:hover { color: var(--text-primary); text-decoration: underline; }
.imt-crumb-sep { color: var(--text-tertiary); }
/* Phone: a top bar with the logo and a menu button; the sidebar opens over the page as a drawer. */
@media (max-width: 760px) {
  :root { --imt-top-h: 56px; }
  .imt-shell, .imt-shell.is-collapsed { --imt-side-w: 0px; }
  .imt-top, .imt-shell.is-collapsed .imt-top { position: sticky; bottom: auto; right: 0; flex-direction: row; align-items: center; width: auto; height: 56px; padding: 0 12px 0 10px; border-right: 0; border-bottom: 1px solid var(--border-divider); }
  .imt-side-head { flex: 1; }
  .imt-shell .imt-brand-full { display: block !important; }
  .imt-shell .imt-brand-markbox { display: none !important; }
  .imt-shell.is-collapsed .imt-side-head { height: 40px; }
  .imt-shell.is-collapsed .imt-brand { height: 40px; padding: 0 6px; }
  .imt-brand-full svg { height: 34px; }
  .imt-menu-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--border-divider); border-radius: var(--r-button); background: var(--surface-raised); color: var(--text-primary); font: 500 14px var(--font); cursor: pointer; }
  .imt-menu-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .imt-menu-btn svg { width: 18px; height: 18px; }
  .imt-drawer, .imt-shell.is-collapsed .imt-drawer { position: fixed; top: 56px; bottom: 0; left: 0; z-index: 40; width: min(300px, 86vw); box-sizing: border-box; padding: 16px 14px; align-items: stretch; background: var(--surface-raised); border-right: 1px solid var(--border-divider); box-shadow: 16px 0 40px rgba(20, 28, 50, 0.16); transform: translateX(-105%); visibility: hidden; transition: transform 200ms var(--ease), visibility 0s linear 200ms; }
  .imt-shell.is-drawer-open .imt-drawer, .imt-shell.is-drawer-open.is-collapsed .imt-drawer { transform: none; visibility: visible; transition: transform 200ms var(--ease); }
  .imt-shell.is-collapsed .imt-drawer :is(.imt-account-slot, .imt-nav-label, .imt-profile-text, .imt-profile-caret) { display: revert; }
  .imt-shell.is-collapsed .imt-drawer .imt-account-slot { display: block; }
  .imt-shell.is-collapsed .imt-drawer :is(.imt-nav, .imt-side-foot) { align-items: stretch; }
  .imt-shell.is-collapsed .imt-drawer .imt-nav > a { justify-content: flex-start; width: auto; height: 40px; padding: 0 12px; }
  .imt-shell.is-collapsed .imt-drawer .imt-top .imt-profile, .imt-shell.is-collapsed .imt-drawer .imt-profile { width: 100%; }
  .imt-shell .imt-rail-toggle { display: none; }
  .imt-scrim { position: fixed; inset: 56px 0 0 0; z-index: 35; background: rgba(20, 28, 50, 0.32); }
  .imt-pagebar { height: 60px; padding: 0 16px; }
  .imt-nav-cta { height: 36px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .imt-drawer { transition: none !important; } }

/* The home page (Shane, 27 October 2026): no app menu, a top bar with the logo and one button, Sign in
   or Go to dashboard, chosen on the server (imt_landing_bar). */
.imt-shell.imt-landing, .imt-shell.imt-landing.is-collapsed { --imt-side-w: 0px; }
.imt-landing-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; box-sizing: border-box; padding: 0 32px; background: var(--surface-raised); border-bottom: 1px solid var(--border-divider); }
.imt-landing-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text-primary); text-decoration: none; border-radius: var(--r-input); }
.imt-landing-brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.imt-landing-logo svg { display: block; height: 44px; width: auto; }
.imt-landing-name { padding-left: 12px; border-left: 1px solid var(--border-divider); color: var(--text-secondary); font: 500 15px/1.2 var(--font); white-space: nowrap; }
@media (max-width: 760px) {
  .imt-landing-bar { height: 56px; padding: 0 16px; }
  .imt-landing-logo svg { height: 32px; }
  .imt-landing-name { display: none; }
}

.imt-main { max-width: none; margin: 0; padding: 32px 24px 64px; }
@media (max-width: 640px) { .imt-main { padding: 24px 16px 48px; } }

/* ---- Home ---- */
.imt-hero { padding: 16px 0 32px; max-width: 820px; }
.imt-hero-small { padding-top: 0; }
.imt-hero h1 { font-size: 40px; }
@media (max-width: 640px) { .imt-hero h1 { font-size: 30px; } }
.imt-eyebrow { color: var(--brand-fg); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; margin: 0 0 8px; }
.imt-lede { font-size: 16px; margin: 0 0 24px; }
.imt-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.imt-card { padding: 24px; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-card); box-shadow: var(--elevation-sm); }
.imt-card h3 { margin-top: 0; }
.imt-card p { margin: 0; }

/*
 * The landing page (TW#26855133, 6 October 2026). The hero pairs the promise with the proof: the
 * checks a real run reported, in the words the tool uses for them, each run in turn when the page
 * opens (the count climbs, then the mark appears). The three steps sit on one rail because they
 * are a sequence: the rail fills from 1 to 3 as the section scrolls into view, and a pulse keeps
 * traveling it. The sources are tiles carrying each platform's logo, a line on what moves, and a
 * status pill; the open ones are links to that connector's docs page, and the ones coming soon are
 * buttons that open the interest form. Motion is added by the script only when the reader allows
 * it, so without JavaScript or with reduced motion the page is already in its finished state.
 */
.imt-home-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 48px 64px; align-items: center; padding: 32px 0 56px; }
.imt-home-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 22ch; }
.imt-home-hero .imt-lede { font-size: 17px; line-height: 1.6; max-width: 56ch; margin-bottom: 28px; }
@media (max-width: 960px) { .imt-home-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 16px 0 40px; } .imt-home-hero h1 { font-size: 40px; } }
@media (max-width: 640px) { .imt-home-hero h1 { font-size: 32px; } .imt-home-hero .imt-lede { font-size: 16px; } }

.imt-proof { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); box-shadow: 0 4px 10px rgba(20, 28, 50, 0.06), 0 2px 4px rgba(20, 28, 50, 0.04); padding: 22px 24px 8px; }
.imt-proof-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.imt-proof-head > div { display: grid; gap: 4px; }
.imt-proof-head h2 { font-size: 16px; margin: 0; }
.imt-proof-head p { margin: 0; color: var(--text-tertiary); font-size: 13px; }
.imt-proof-head .imt-pill { flex: none; margin-top: 1px; min-width: 70px; text-align: center; }
.imt-proof-list { list-style: none; margin: 0; padding: 0; }
.imt-proof-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); transition: opacity 300ms; }
.imt-proof-list li:last-child { border-bottom: 0; }
.imt-proof-mark { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.imt-proof-mark svg { width: 16px; height: 16px; }
.imt-proof-mark.ok { background: var(--success-subtle); color: var(--success-fg); }
.imt-proof-mark.warn { background: var(--warning-subtle); color: var(--warning-fg); }
.imt-proof-mark::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--brand-border); border-top-color: var(--brand); opacity: 0; }
.imt-proof-what { display: grid; gap: 1px; min-width: 0; }
.imt-proof-what strong { color: var(--text-primary); font-weight: 500; font-size: 14px; }
.imt-proof-what small { color: var(--text-subtle); font-size: 11px; letter-spacing: 0.02em; }
.imt-proof-count { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; color: var(--text-primary); white-space: nowrap; }
.imt-proof-count span { color: var(--text-subtle); font-weight: 400; margin: 0 1px; }
/* Armed by the script: every row waits, then runs in turn. */
.imt-proof.is-armed li:not(.is-checking):not(.is-done) { opacity: 0.45; }
.imt-proof.is-armed .imt-proof-mark svg { opacity: 0; }
.imt-proof.is-armed li.is-checking .imt-proof-mark { background: var(--brand-subtle); }
.imt-proof.is-armed li.is-checking .imt-proof-mark::before { opacity: 1; animation: imt-spin 700ms linear infinite; }
.imt-proof.is-armed li.is-done .imt-proof-mark svg { opacity: 1; animation: imt-pop 320ms var(--ease); }
.imt-proof.is-armed li.is-done .imt-proof-mark.ok path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: imt-draw 360ms 80ms var(--ease) forwards; }
@keyframes imt-pop { from { transform: scale(0.5); } to { transform: scale(1); } }
@keyframes imt-draw { to { stroke-dashoffset: 0; } }

/* The rest of the home page (steps, tiles, why, Insites AI, v4 and v5, call to action) is migration-tool/home.css, loaded on the home page only. */

/* The interest form behind a Coming soon tile. */
.imt-interest .imt-dialog-form p { margin: 0 0 18px; }
.imt-interest .imt-field:last-of-type { margin-bottom: 0; }
.imt-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.imt-interest-sent { display: none; padding: 24px; }
.imt-interest.is-sent .imt-dialog-form { display: none; }
.imt-interest.is-sent .imt-interest-sent { display: block; }
.imt-interest-sent .imt-proof-mark { width: 40px; height: 40px; margin-bottom: 14px; }
.imt-interest-sent .imt-proof-mark svg { width: 22px; height: 22px; }
.imt-interest-sent p { margin: 0 0 18px; }

/* ---- Buttons: Console's AppButton ---- */
.imt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-button); border: 1px solid transparent; background: var(--brand); color: #fff; font: 500 14px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(48, 68, 255, 0.35); transition: background 120ms, border-color 120ms, color 120ms, transform 80ms; }
.imt-btn:hover:not(:disabled) { background: var(--brand-emphasis); }
.imt-btn:active:not(:disabled) { background: var(--brand-active); }
.imt-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.imt-btn-ghost { background: var(--surface-raised); color: var(--text-primary); border-color: var(--border-divider); box-shadow: var(--elevation-sm); }
.imt-btn-ghost:hover:not(:disabled) { background: var(--surface-subtle); border-color: var(--border-default); }
.imt-btn-ghost:active:not(:disabled) { background: var(--surface-base); }
.imt-btn-quiet { background: transparent; color: var(--text-primary); box-shadow: none; }
.imt-btn-quiet:hover:not(:disabled) { background: var(--surface-base); }
.imt-btn-quiet:active:not(:disabled) { background: var(--surface-deep); }
.imt-btn-small { height: 32px; padding: 0 12px; font-size: 13px; }
.imt-btn-icon { width: 40px; padding: 0; }
/* Which red, and when (Shane, 27 October 2026).
   Solid red = a standalone action that destroys saved data or cannot be undone (Delete, Roll back, Remove keys, Close confirm).
   Red outline = a destructive or stopping action that sits in a row or toolbar, or that clears or stops something without
   destroying saved data (Clear, Stop watching, Stop, Disconnect, Remove a member).
   Neutral = Undo and reversible choice changes. danger-buttons-everywhere.test.ts enforces it. */
/* A red button carries a red shadow and a red focus ring, not the blue ones every .imt-btn has (Shane,
   27 October 2026: the Roll back button glowed blue). The ring stays a 2px outline, so focus is still seen. */
.imt-btn-danger { background: var(--danger); box-shadow: 0 1px 2px rgba(220, 38, 38, 0.35); }
.imt-btn-danger:focus-visible, .imt-btn-danger-outline:focus-visible { outline: 2px solid var(--danger-focus); outline-offset: 2px; }
.imt-btn-danger:hover:not(:disabled), .imt-btn-danger:active:not(:disabled) { background: #b91c1c; }
/* A red outline: a choice that undoes something, not a destructive act (Do not send to GitHub, TW#26941700). */
.imt-btn-danger-outline { background: transparent; color: var(--danger-fg); border-color: var(--danger); box-shadow: none; }
.imt-btn-danger-outline:hover:not(:disabled), .imt-btn-danger-outline:active:not(:disabled) { background: var(--danger-subtle); color: var(--danger-fg); border-color: var(--danger); }
/* Buttons side by side are one size (TW#26897456). A small button that shares a row with a full-size
   one takes the full size, so the pair is one height and starts level: a 32px "Clear my choices" sat
   beside a 40px Apply, top-aligned, in the decisions box. The icon-only close button is not a pair.
   On a phone a row's height is auto so a label can wrap (see the 640px rule below). */
:is(.imt-row, .imt-tools, .imt-dialog-actions):has(> .imt-btn:not(.imt-btn-small):not(.imt-btn-icon)) > .imt-btn-small { height: 40px; padding-inline: 16px; font-size: 14px; }
.imt-ico { width: 16px; height: 16px; flex: none; }
.imt-linkbtn { background: none; border: 0; padding: 2px 0; color: var(--brand-fg); font: 500 13px var(--font); cursor: pointer; }
.imt-linkbtn:hover { text-decoration: underline; }

/* ---- Forms ---- */
.imt-field { display: grid; gap: 6px; margin: 0 0 18px; }
.imt-field label { font-weight: 500; font-size: 13px; color: var(--text-primary); }
/* A checkbox or radio in a field is a normal control beside its label, not a 100% wide, 40px box on its own line. */
.imt-field > label:has(> input[type="checkbox"], > input[type="radio"]) { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.imt-field > label > input[type="checkbox"], .imt-field > label > input[type="radio"] { flex: none; margin: 2px 0 0; }
.imt-field .help { color: var(--text-tertiary); font-size: 12px; }
/* Two ways into one instance, each a group of its own: the key, or the Console sign-in (TW#26883679). */
.imt-cred-ways { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; }
.imt-cred-way { margin: 0 0 16px; padding: 14px 16px 0; border: 1px solid var(--border-subtle); border-radius: var(--r-button); background: var(--surface-subtle); }
.imt-cred-way legend { padding: 0 6px; font-weight: 600; font-size: 13px; color: var(--text-primary); }
.imt-cred-way .imt-field:last-child { margin-bottom: 14px; }
.imt-field input:where(:not([type="checkbox"], [type="radio"])), .imt-filter { width: 100%; height: 40px; padding: 8px 12px; border: 1px solid var(--border-divider); border-radius: var(--r-input); font: 14px var(--font); color: var(--text-primary); background: var(--surface-raised); }
.imt-field input::placeholder, .imt-cell::placeholder, .imt-filter::placeholder, .imt-textarea::placeholder { color: var(--text-subtle); }
.imt-field input:focus, .imt-cell:focus, .imt-filter:focus, .imt-textarea:focus { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-field input[type="file"] { height: auto; padding: 8px; }
/* A key field with its eye: the button sits inside the field, on the right, and the text stops short of it (TW#26901804). */
.imt-secret { position: relative; }
.imt-secret input { padding-right: 46px; }
.imt-eye { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; border-radius: var(--r-input); background: none; color: var(--text-tertiary); cursor: pointer; }
.imt-eye .imt-ico { width: 18px; height: 18px; }
.imt-eye:hover { color: var(--text-primary); background: var(--surface-base); }
.imt-eye:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; color: var(--text-primary); }
.imt-textarea { display: block; width: 100%; min-height: 96px; padding: 8px 12px; border: 1px solid var(--border-divider); border-radius: var(--r-input); font: 13px/1.5 var(--font-mono, ui-monospace, monospace); color: var(--text-primary); background: var(--surface-raised); resize: vertical; }
.imt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.imt-row-tight { margin-top: 8px; gap: 8px; }
.imt-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.imt-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.imt-check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; color: var(--text-secondary); }
.imt-check-line input { margin-top: 4px; flex: none; }
.imt-check-line strong { color: var(--text-primary); font-weight: 500; }
.imt-constants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; margin: 8px 0; }
.imt-constants .imt-check-line { margin: 6px 0; }

/* ---- The wizard ---- */
.imt-app { display: block; }
.imt-app:not(.imt-app-list) { max-width: 1280px; margin: 0 auto; }
body.imt-has-dock { padding-bottom: calc(var(--imt-dock-h) + 24px); }

/* Header bar: Console's .wiz-head, sticky under the app bar */
.imt-wiz-head { position: sticky; top: var(--imt-top-h); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; min-height: var(--imt-head-h); margin: -32px -24px 28px; padding: 10px 24px; background: var(--surface-raised); border-bottom: 1px solid var(--border-subtle); }
.imt-wiz-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font: 600 15px var(--font); color: var(--text-primary); }
.imt-wiz-title code { font-size: 13px; font-weight: 500; }
.imt-site-link { color: inherit; text-decoration: none; border-radius: 4px; }
.imt-site-link code { color: inherit; }
.imt-site-link:hover, .imt-site-link:focus-visible { color: var(--brand-fg); text-decoration: underline; text-underline-offset: 3px; }
.imt-site-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-wiz-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .imt-wiz-head { margin: -24px -16px 28px; padding-inline: 16px; } }

.imt-wiz { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .imt-wiz { grid-template-columns: minmax(0, 1fr); } .imt-side { display: none; } }

/* Side list: the seven steps, labeled, and the current step's substeps */
.imt-side { position: sticky; top: calc(var(--imt-top-h) + var(--imt-head-h) + 20px); max-height: calc(100vh - var(--imt-top-h) - var(--imt-head-h) - 110px); overflow: auto; }
.imt-side ol { list-style: none; margin: 0; padding: 0; }
.imt-side > ol > li { margin: 0 0 2px; }
.imt-side-step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: var(--r-button); font: 500 14px var(--font); color: var(--text-tertiary); text-align: left; }
button.imt-side-link { background: none; border: 0; cursor: pointer; font: inherit; }
button.imt-side-link:hover { background: var(--surface-raised); color: var(--text-primary); }
button.imt-side-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-side-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-divider); background: var(--surface-raised); color: var(--text-tertiary); font: 600 12px var(--font); }
.imt-side-mark .imt-ico { width: 13px; height: 13px; }
.imt-side li.is-open > .imt-side-step { color: var(--text-secondary); }
.imt-side li.is-done > .imt-side-step { color: var(--text-primary); }
.imt-side li.is-done .imt-side-mark { background: var(--brand-subtle); border-color: var(--brand-border); color: var(--brand-fg); }
.imt-side li.is-current > .imt-side-step { color: var(--text-primary); font-weight: 600; }
.imt-side li.is-current .imt-side-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.imt-side-subs { margin: 2px 0 10px 21px !important; padding-left: 12px !important; border-left: 2px solid var(--border-subtle); }
.imt-side-subs li { position: relative; font-size: 13px; }
.imt-side-subs li > * { display: block; width: 100%; padding: 5px 8px; border-radius: var(--r-input); color: var(--text-tertiary); text-align: left; }
.imt-side-subs li.is-open > * { color: var(--text-secondary); }
.imt-side-subs li.is-current > span { color: var(--brand-fg); font-weight: 600; }
.imt-side-subs li.is-current::before { content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--brand); }
/* A substep whose one job is done, such as Analyze once the source is read (TW#26901806). */
.imt-side-subs li.is-done > * { color: var(--text-secondary); }
.imt-side-subtick { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; background: var(--success-subtle); color: var(--success-fg); vertical-align: -2px; }
.imt-side-subtick .imt-ico { width: 9px; height: 9px; }
/* Whether a Transform step needs a decision, after its name (TW#26901822): a tick once seen,
   or these words. The words are visible text, so a screen reader hears them with the name. */
.imt-side-need { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 400; line-height: 1.35; color: var(--text-tertiary); }
.imt-side-spin { width: 10px; height: 10px; margin: 0 4px 0 0; border-width: 1.5px; }
.imt-side-wait { display: flex; align-items: center; margin-top: 1px; }
.imt-side-wait .imt-side-need { margin-top: 0; }
.imt-side-need.is-pending { display: inline; }
.imt-side-need.is-decide { display: block; width: fit-content; padding: 0 6px; border-radius: 999px; background: var(--warning-subtle); color: var(--warning-fg); font-weight: 600; }
.imt-side-subs li.is-current .imt-side-need { font-weight: 400; }
.imt-side-subs li.is-current .imt-side-need.is-decide { font-weight: 600; }
.imt-eyebrow-need { display: none; }
.imt-eyebrow-need .imt-side-need { display: inline; margin: 0; font-size: 12px; color: inherit; }
.imt-eyebrow-need .imt-side-need.is-decide { display: inline-block; color: var(--warning-fg); }
@media (max-width: 960px) { .imt-eyebrow-need { display: inline; } }
.imt-tx-needs { margin: 14px 0 0; font-size: 14px; }
.imt-tx-needs .imt-linkbtn { font-size: 14px; }

/* The panel and its heading */
.imt-panel { min-width: 0; padding: 32px; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-card); box-shadow: var(--elevation-sm); }
.imt-panel-solo { max-width: none; }
.imt-panel > h2:first-child, .imt-panel > .imt-note + h2, .imt-panel > h1:first-child, .imt-panel > .imt-note + h1 { margin-top: 0; }
/* A page's title in the app is its one h1, drawn at the size the h2 it replaced had (TW#26901831). */
#imt-app h1 { font-size: 21px; letter-spacing: 0; }
.imt-panel h3 { margin: 28px 0 10px; }
@media (max-width: 640px) { .imt-panel { padding: 20px 16px; } }
.imt-step-head { margin-bottom: 20px; }
.imt-step-head .imt-eyebrow { color: var(--text-tertiary); font-weight: 500; letter-spacing: 0; }
.imt-step-head h1, .imt-step-head h2 { margin: 0 0 4px; outline: none; }
/* The green tick beside a heading that says something worked (TW#26901805): the circle grows and the tick draws itself, once, the first time the screen shows. */
.imt-head-row { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.imt-head-row h1, .imt-head-row h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.imt-okmark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--success); color: #fff; }
.imt-okmark svg { width: 18px; height: 18px; }
.imt-okmark.is-anim { animation: imt-pop 400ms var(--ease) both; }
.imt-okmark.is-anim path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: imt-draw 320ms 160ms var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .imt-okmark.is-anim, .imt-okmark.is-anim path { animation: none; } .imt-okmark.is-anim path { stroke-dashoffset: 0; } }
.imt-sub { margin: 0; font-size: 14px; color: var(--text-tertiary); max-width: 760px; }
.imt-sub code { font-size: 13px; }
/*
 * The line drawing for a step's stage, inline before its heading (Shane,
 * 21 October 2026, TW#26916651). The drawing is a fixed 32 by 32 (28 at phone width), so nothing moves when it
 * arrives; it draws itself once, the first time the step shows, and a poll redraws it still.
 * With reduced motion it is drawn complete from the start.
 */
.imt-goal-art { flex: none; width: 32px; height: 32px; color: var(--brand-fg); }
.imt-goal-art > * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.imt-goal-art.is-anim > * { stroke-dashoffset: 1; animation: imt-draw 900ms var(--ease) forwards; }
.imt-goal-art.is-anim > :nth-child(2) { animation-delay: 150ms; }
.imt-goal-art.is-anim > :nth-child(3) { animation-delay: 300ms; }
.imt-goal-art.is-anim > :nth-child(n+4) { animation-delay: 450ms; }
@media (prefers-reduced-motion: reduce) { .imt-goal-art.is-anim > * { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 480px) { .imt-head-row { gap: 10px; } .imt-goal-art { width: 28px; height: 28px; } } /* The source's home page, on the Website address step (TW#26916651): the first screen of it, its own shape kept. */
.imt-home-shot { margin: 20px 0 0; max-width: 640px; }
.imt-home-shot-frame { aspect-ratio: 1280 / 900; border: 1px solid var(--border-subtle); border-radius: var(--r-card); overflow: hidden; background: var(--surface-subtle); }
.imt-home-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 900; object-fit: cover; object-position: top; }
.imt-home-shot.is-loading .imt-home-shot-frame { background: linear-gradient(100deg, var(--surface-subtle) 30%, var(--surface-deep) 50%, var(--surface-subtle) 70%) 0 0 / 300% 100%; animation: imt-shimmer 1.4s linear infinite; }
@keyframes imt-shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .imt-home-shot.is-loading .imt-home-shot-frame { animation: none; background: var(--surface-deep); } }
.imt-home-shot figcaption { margin: 8px 0 0; font-size: 13px; color: var(--text-tertiary); }
/* A way to connect asked as a choice of two, one field at a time (TW#26916651). */
.imt-cred-choice { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.imt-cred-choice legend { padding: 0; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--text-primary); }
.imt-cred-choice-help { margin: 0 0 8px; font-size: 13px; color: var(--text-tertiary); }
.imt-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border: 1px solid var(--border-default); border-radius: var(--r-button); background: var(--surface-subtle); }
.imt-seg label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.imt-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.imt-seg label:has(input:checked) { background: var(--surface-raised); color: var(--brand-fg); box-shadow: 0 0 0 1px var(--brand-border), var(--elevation-sm); }
.imt-seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-cred-choice .imt-field { margin-top: 12px; }
.imt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
/* Undo, said once: one line under a Transform step's heading, on a step whose rules were changed,
   with what it does in a tip that opens on hover, focus or a tap (TW#26901825). */
.imt-tools:has(> .imt-tx-undo) { margin-top: 8px; }
.imt-tx-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--text-secondary); }
.imt-tx-undo .imt-linkbtn { font-size: 14px; }
.imt-tx-undo + .imt-tx-undo { margin-top: 4px; }
.imt-term.imt-tx-undo-q { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-default); border-radius: 50%; background: var(--surface-raised); color: var(--text-secondary); font: 600 12px/1 var(--font); text-decoration: none; }
.imt-term.imt-tx-undo-q:hover { color: var(--brand-fg); border-color: var(--brand); }

/* Sticky footer: Console's .wiz-dock, with its dots */
.imt-dock { position: fixed; left: var(--imt-side-w, 0px); right: 0; bottom: 0; z-index: 50; background: var(--surface-raised); border-top: 1px solid var(--border-subtle); }
.imt-dock-track { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 24px; }
.imt-dock-back { justify-self: start; }
.imt-dock-back[hidden] { display: inline-flex; visibility: hidden; }
.imt-dock-right { justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; }
.imt-dock-right .imt-save-line { margin-right: 0; }
.imt-dock-primary { justify-self: end; }
.imt-dock-steps { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.imt-dock-count { font-size: 12px; font-weight: 500; color: var(--text-tertiary); text-align: center; }
.imt-dock-count > span { display: block; }
.imt-dock-sub { font-weight: 400; }
/* What the main button does, in place of the step count: whether it changes anything, and roughly how long (TW#26876538). */
.imt-dock-does { color: var(--text-secondary); }
.imt-does { display: block; margin-top: 6px; font-size: 12px; }
.imt-dock-reason { max-width: 440px; font-size: 13px; font-weight: 500; color: var(--text-secondary); text-align: center; }
.imt-dots { display: flex; align-items: center; gap: 6px; }
.imt-dot { position: relative; display: block; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--border-default); transition: width 200ms var(--ease), background 200ms var(--ease); }
.imt-dot.is-done { background: var(--brand); }
.imt-dot.is-current { width: 18px; background: var(--brand); }
button.imt-dot { cursor: pointer; }
button.imt-dot::after { content: ""; position: absolute; inset: -9px -3px; }
button.imt-dot:hover { background: var(--brand-emphasis); }
button.imt-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .imt-dock-track { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 16px; }
  .imt-dock-steps, .imt-dock-reason { order: 1; justify-self: center; }
  .imt-dock-right { order: 2; flex-direction: column; align-items: stretch; gap: 4px; justify-self: stretch; }
  .imt-dock-primary { justify-self: stretch; }
  .imt-dock-back { order: 3; justify-self: stretch; }
  .imt-dock-back[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .imt-dot, .imt-progress > i { transition: none; } }

/* Accordions: a title with its count, closed unless something needs a decision */
.imt-acc { margin: 12px 0; border: 1px solid var(--border-subtle); border-radius: var(--r-button); background: var(--surface-raised); }
.imt-acc.is-warn { border-left: 3px solid var(--warning); }
.imt-acc.is-bad { border-left: 3px solid var(--danger); }
.imt-acc > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 500; color: var(--text-primary); border-radius: var(--r-button); }
.imt-acc > summary::-webkit-details-marker { display: none; }
.imt-acc > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary); transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease); flex: none; }
.imt-acc[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.imt-acc > summary:hover { background: var(--surface-subtle); }
.imt-acc > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-acc-title { min-width: 0; }
.imt-count { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-base); border: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.imt-acc-body { padding: 4px 16px 16px; border-top: 1px solid var(--border-subtle); }
.imt-acc-body > :first-child { margin-top: 12px; }
.imt-acc .imt-acc { margin: 10px 0; }

/* Choices */
.imt-choice, .imt-mode { text-align: left; background: var(--surface-raised); border: 1px solid var(--border-divider); border-radius: var(--r-card); padding: 18px 20px; cursor: pointer; font: inherit; color: inherit; transition: border-color 120ms, box-shadow 120ms; }
.imt-choice strong, .imt-mode strong { color: var(--text-primary); font-weight: 600; }
.imt-choice:hover:not(:disabled), .imt-choice.is-selected, .imt-mode:hover, .imt-mode.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-subtle); }
.imt-choice.is-selected, .imt-mode.is-selected { background: var(--brand-subtle); }
.imt-choice:focus-visible, .imt-mode:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-choice:disabled { cursor: not-allowed; background: var(--surface-subtle); }
.imt-choice:disabled strong { color: var(--text-tertiary); }
.imt-choice small { display: block; color: var(--text-tertiary); margin-top: 4px; font-size: 13px; }
/* A source choice reads top down, logo first, so every card in a row lines up at the top. */
.imt-choice-source { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.imt-choice-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.imt-choice-head .imt-soon { margin-left: 0; }
.imt-soon.imt-beta { background: var(--warning-subtle); border-color: transparent; color: var(--warning-fg); }
.imt-head-row .imt-beta { margin-left: 12px; align-self: center; }
.imt-beta-note { margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; max-width: 64ch; }
.imt-choice-logo { display: flex; align-items: center; height: 32px; margin-bottom: 10px; color: var(--text-primary); }
.imt-choice-logo .imt-mark { width: 32px; height: 32px; }
.imt-choice-logo .imt-mark-wide { width: 52px; }
.imt-choice-logo .imt-mark-insites { width: 14px; }
.imt-choice:disabled .imt-choice-logo { color: var(--text-secondary); opacity: .55; }
/* The Insites mark's deep purple base is lightened in the dark theme, so it stays visible there. */
.imt-mk-deep1 { stop-color: light-dark(#110051, #8f86ff); }
.imt-mk-deep2 { stop-color: light-dark(#4300c5, #a99bff); }
.imt-soon { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface-base); border: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.imt-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0; }
.imt-mode { display: grid; gap: 6px; }
.imt-mode strong { font-size: 16px; }
.imt-mode span { font-size: 14px; }

/* Source: the platform, then its address, then its key (TW#26900773). */
/* Nine tiles: eight platforms and Request a platform, which always sits in the last column. */
.imt-grid-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .imt-grid-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .imt-grid-sources { grid-template-columns: minmax(0, 1fr); } }
.imt-grid-sources .imt-choice-request { grid-column-end: -1; border-style: dashed; }
.imt-choice-source.is-soon { background: var(--surface-subtle); }
.imt-choice-source.is-soon .imt-choice-logo { color: var(--text-secondary); opacity: .7; }
.imt-choice-cta { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 500; color: var(--brand-fg); }
.imt-choice-request .imt-choice-logo { color: var(--brand-fg); }
.imt-field.is-invalid input:where(:not([type="checkbox"], [type="radio"])) { border-color: var(--danger); }
.imt-field-error { color: var(--danger-fg); font-size: 13px; }
/* A key the connection test refused, said under its field (TW#26901823), in the error tone. */
.imt-key-error { margin-top: 8px; padding: 10px 14px; border-radius: var(--r-button); background: var(--danger-subtle); border-left: 3px solid var(--danger); color: var(--text-primary); font-size: 14px; overflow-wrap: anywhere; }
.imt-key-error strong { color: var(--danger-fg); }
.imt-err-causes-lead { margin: 6px 0 0; }
.imt-err-causes { margin: 4px 0 0; padding-left: 20px; }
.imt-err-causes li + li { margin-top: 2px; }
/* The tertiary grey of a fold's summary is too faint on the error tone: secondary reads at AA in both themes. */
.imt-key-error .imt-err-detail summary { color: var(--text-secondary); }
/* What to have ready for a platform, as its connector says it (TW#26876538). */
.imt-have { margin: 8px 0 0; padding-left: 20px; color: var(--text-secondary); }
.imt-have li + li { margin-top: 4px; }
.imt-have-note .imt-have { margin-top: 6px; }
/* The chosen platform's how-to, open on the key screen. */
.imt-help-open { padding: 4px 16px 12px; }
.imt-help-open h3 { margin: 12px 0 4px; font-size: 15px; color: var(--text-primary); }
.imt-console-steps { padding-left: 20px; color: var(--text-secondary); }
.imt-console-steps li + li { margin-top: 6px; }
.imt-mode-wait { margin-top: 12px; }

/* Notes and pills */
.imt-note { margin: 14px 0; padding: 12px 16px; border: 1px solid var(--brand-border); border-radius: var(--r-button); background: var(--brand-subtle); color: var(--text-primary); font-size: 14px; }
.imt-count-slot { box-sizing: border-box; }
.imt-count-slot.is-reserved { min-height: 8rem; padding-top: 12px; }
.imt-count-slot.has-note { padding-top: 12px; }
.imt-count-slot.has-note.is-reserved { padding-top: 12px; }
.imt-count-slot .imt-note { margin: 0; }
.imt-note.is-ok { background: var(--success-subtle); border-color: transparent; }
.imt-note.is-warn { background: var(--warning-subtle); border-color: transparent; }
.imt-note.is-bad { background: var(--danger-subtle); border-color: transparent; }
/* Delete and Undo this load on Launch > Close: a heading, its sentence, a warning and a red button. */
.imt-danger-zone > h3 { margin-bottom: 4px; }
.imt-danger-zone > .imt-note { margin: 10px 0; }
/* An information note: the plain note, named, so note("info") and note("") read the same on purpose. */
.imt-note.is-info { background: var(--brand-subtle); }
.imt-note a { color: var(--brand-fg); }
/* A failure or a stall (TW#26911157): what happened, who acts and what to do, one under the other. */
.imt-failure > p { margin: 0 0 8px; }
.imt-failure > p:first-child { font-size: 15px; }
.imt-failure .imt-row { flex-wrap: wrap; margin: 4px 0 8px; }
.imt-failure .imt-err-detail code { overflow-wrap: anywhere; }
.imt-failure > p.imt-small:last-child { margin: 8px 0 0; }
.imt-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.6; background: var(--surface-base); border: 1px solid var(--border-subtle); color: var(--text-secondary); white-space: nowrap; }
.imt-pill.ok { background: var(--success-subtle); border-color: transparent; color: var(--success-fg); }
.imt-pill.warn { background: var(--warning-subtle); border-color: transparent; color: var(--warning-fg); }
.imt-pill.bad { background: var(--danger-subtle); border-color: transparent; color: var(--danger-fg); }
.imt-pill.info { background: var(--info-subtle); border-color: transparent; color: var(--info-fg); }

/* Numbers */
.imt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px; }
.imt-stat { padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-subtle); }
.imt-stat b { display: block; font: 600 24px/1.2 var(--display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.imt-stat span { font-size: 13px; color: var(--text-tertiary); }
/* Result's two headline figures: records copied, and items checked that passed (TW#26941700). */
.imt-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
@media (max-width: 640px) { .imt-figures { grid-template-columns: 1fr; } }
.imt-figure { padding: 16px 18px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-subtle); }
.imt-figure p { margin: 0; }
.imt-figure-num b { font: 600 30px/1.15 var(--display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.imt-figure-num span { font-size: 15px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.imt-figure-label { margin-top: 2px !important; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.imt-figure-rest { margin-top: 6px !important; font-size: 13px; color: var(--text-tertiary); }

/* Tables and long lists */
.imt-table-wrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--border-subtle); border-radius: var(--r-button); }
.imt-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text-secondary); }
.imt-table th, .imt-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.imt-table th { background: var(--surface-subtle); font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.imt-table tr:last-child td { border-bottom: 0; }
.imt-table td.num, .imt-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Leaving something behind with a reason is a choice, not a fault: neutral. Amber only while it still needs a reason. */
.imt-table tr.is-off td { background: var(--surface-subtle); }
.imt-table tr.is-off.is-need td { background: var(--warning-subtle); }
.imt-pill-leave { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--border-divider); color: var(--text-secondary); font-size: 11.5px; }
tr.is-need .imt-pill-leave { background: var(--warning-subtle); color: var(--warning-fg); font-weight: 600; }
.imt-save-line { font-size: 12px; color: var(--text-tertiary); margin-right: 12px; }
.imt-save-line.is-bad { color: var(--danger-fg); }
/* The Transform save line's states (TW#26941700): a small spinner while saving, a check that draws
   in on "All changes saved", then a quiet "Saved" with the time. Each state fades in. */
.imt-save-line { display: inline-flex; align-items: center; gap: 6px; animation: imt-save-in 0.25s ease-out; }
.imt-save-line .imt-spinner { width: 11px; height: 11px; margin-right: 0; border-width: 1.5px; }
.imt-save-line.is-fresh { color: var(--success-fg, var(--text-secondary)); }
.imt-save-tick { width: 14px; height: 14px; flex: none; }
.imt-save-tick path { stroke-dasharray: 16; stroke-dashoffset: 0; animation: imt-save-tick 0.35s ease-out; }
.imt-save-line.is-quiet { opacity: 0.85; }
@keyframes imt-save-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes imt-save-tick { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .imt-save-line, .imt-save-tick path { animation: none; } .imt-save-line .imt-spinner { animation-duration: 2.4s; } }
/* A row left behind keeps readable text on its red tint: struck through, not faded (4.1:1 was below AA). */
.imt-table tr.is-off code { text-decoration: line-through; color: var(--text-secondary); }
.imt-table tr.is-off .imt-muted { color: var(--text-secondary); }
.imt-list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.imt-list-tools .imt-filter { width: 240px; height: 32px; padding: 4px 10px; font-size: 13px; }
.imt-list-count { font-size: 12px; }
.imt-list-tools [data-csv] { margin-left: auto; }
.imt-plain { padding-left: 20px; }
.imt-plain li { margin: 6px 0; }
/* The reasons under a row, one line each (TW#26901812). */
.imt-reasons { margin: 4px 0 0; }
.imt-reasons li { margin: 2px 0; }

/* Transform editor */
.imt-cell { width: 100%; min-width: 150px; height: 32px; padding: 4px 8px; border: 1px solid var(--border-divider); border-radius: var(--r-input); font: 12px var(--mono); color: var(--text-primary); background: var(--surface-raised); }
.imt-cell:disabled { background: var(--surface-base); color: var(--text-tertiary); }
.imt-tx-tables td:first-child { width: 42%; }
.imt-tx-tables .imt-cell { min-width: 0; }
.imt-tx-code td:first-child { width: 1%; text-align: center; }
.imt-tx-code td:nth-child(2) { width: 45%; word-break: break-word; }
.imt-tx-code .imt-cell { min-width: 0; }
.imt-tx-asset-folders td:first-child { width: 50%; word-break: break-word; }
.imt-tx-asset-folders .imt-row { margin-top: 6px; }
.imt-tx-assets td:first-child { width: 1%; text-align: center; }
/* A file's name keeps a readable width on a phone; the table scrolls in its frame instead. */
.imt-tx-assets td:nth-child(2) { min-width: 11em; word-break: break-word; }
.imt-tx-assets td:nth-child(5) { min-width: 12em; }

/* Workspaces */

/* The migrations list */
.imt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 12px; }
.imt-chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-divider); background: var(--surface-raised); color: var(--text-secondary); font: 500 13px var(--font); cursor: pointer; }
.imt-chip:hover { border-color: var(--border-default); }
.imt-chip.is-on { background: var(--brand-subtle); border-color: var(--brand-border); color: var(--brand-fg); }
.imt-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-chips .imt-filter { width: 260px; height: 32px; margin-left: auto; padding: 4px 10px; font-size: 13px; }
.imt-runs td code { font-size: 12px; }
/* A host breaks only after a dot: each part between dots stays whole (v0.8.4 copy). */
.imt-runs code.imt-host { overflow-wrap: normal; word-break: normal; }
.imt-runs code.imt-host span { white-space: nowrap; }
.imt-runs tr.is-child td { background: var(--surface-subtle); }
.imt-runs tr.is-child td:first-child { padding-left: 28px; }
.imt-runs tr.imt-group-toggle td { padding: 0 12px 8px 28px; }
.imt-runs tr:has(+ .imt-group-toggle) td { border-bottom: 0; }
/* Each row opens its run at its next step, from anywhere on it (TW#26901828). */
.imt-runs tr.imt-runs-row { cursor: pointer; }
.imt-runs tr.imt-runs-row:hover td { background: var(--surface-subtle); }
.imt-runs tr.imt-runs-row:focus-within td { background: var(--surface-subtle); }
.imt-runs td.imt-runs-next a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-fg); text-decoration: none; }
.imt-runs td.imt-runs-next a:hover { text-decoration: underline; }
.imt-runs td.imt-runs-next a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.imt-runs td.imt-runs-next .imt-ico { width: 14px; height: 14px; flex: none; }
.imt-runs td.imt-runs-next.is-wait a { font-weight: 500; color: var(--text-secondary); }
.imt-runs td.imt-runs-meta { display: none; }
/* Who started each migration, and where it is with a small bar (TW#26916654). */
.imt-runs td.imt-runs-by span { overflow-wrap: anywhere; }
.imt-runs td.imt-runs-by { max-width: 200px; }
.imt-runs td.imt-runs-where { min-width: 160px; }
.imt-runs td.imt-runs-pair { max-width: 220px; }
.imt-runs-pair > span { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.imt-runs-pair code { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imt-runs-pair .imt-runs-to { margin-top: 2px; }
.imt-runs-arrow { flex: none; color: var(--text-tertiary); font-size: 12px; }
.imt-runs-words { display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.35; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.imt-runs-words .imt-runs-stage { color: var(--text-primary); font-weight: 500; }
.imt-runs .imt-progress.imt-runs-bar { height: 6px; margin: 6px 0 0; max-width: 180px; }
/* The new instance's environment (TW#26916651): a quiet label, Production or Staging, on the list
   and beside the address at the top of a migration. Words, never color alone. */
.imt-env { display: inline-block; padding: 1px 8px; border: 1px solid var(--border-divider); border-radius: 999px; font: 500 12px var(--font); color: var(--text-secondary); background: var(--surface-raised); white-space: nowrap; vertical-align: middle; }
.imt-env-production { border-color: var(--brand-border); color: var(--brand-fg); background: var(--brand-subtle); }
/* The list's filters: the search first and wider, the five choices after it, wrapping on a phone. */
.imt-list-filters .imt-list-q { grid-column: span 2; }
.imt-list-filters .imt-list-q input { width: 100%; min-width: 0; box-sizing: border-box; }
.imt-list-tools { margin: 0 0 8px; }
@media (max-width: 640px) { .imt-list-filters { grid-template-columns: 1fr; } .imt-list-filters .imt-list-q { grid-column: auto; } }
@media (max-width: 640px) {
  .imt-chips .imt-filter { width: 100%; margin-left: 0; }
  .imt-runs thead { display: none; }
  .imt-runs, .imt-runs tbody, .imt-runs tr, .imt-runs td { display: block; width: 100%; }
  .imt-runs tr { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
  .imt-runs tr:last-child { border-bottom: 0; }
  .imt-table.imt-runs td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 14px; border-bottom: 0; text-align: right; }
  .imt-runs td::before { content: attr(data-label); flex: none; color: var(--text-tertiary); font-size: 12px; text-align: left; }
  .imt-runs .imt-group-toggle td::before { content: none; }
  .imt-runs tr.is-child td:first-child { padding-left: 14px; }
  .imt-runs td code { min-width: 0; }
  /* A card on a phone: the next step and the status first, the rest folded into two quiet lines. */
  .imt-runs tr.imt-runs-row { display: flex; flex-direction: column; padding: 12px 0; }
  .imt-runs tr.imt-runs-row:hover td { background: none; }
  .imt-runs tr.imt-runs-row.is-child td { background: var(--surface-subtle); }
  .imt-table.imt-runs td.imt-runs-fold { display: none; }
  .imt-table.imt-runs td.imt-runs-next { order: 1; justify-content: flex-start; text-align: left; padding: 2px 14px 6px; font-size: 15px; }
  .imt-runs td.imt-runs-next::before { content: none; }
  .imt-table.imt-runs td.imt-runs-status { order: 2; justify-content: flex-start; padding-bottom: 6px; }
  .imt-runs td.imt-runs-status::before { content: none; }
  .imt-table.imt-runs td.imt-runs-where { order: 3; display: block; min-width: 0; text-align: left; padding: 0 14px 8px; }
  .imt-runs td.imt-runs-where::before { content: none; }
  .imt-runs-words { flex-direction: row; flex-wrap: wrap; column-gap: 6px; }
  .imt-runs .imt-progress.imt-runs-bar { max-width: none; }
  .imt-table.imt-runs td.imt-runs-meta { order: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; color: var(--text-tertiary); font-size: 12px; }
  .imt-runs td.imt-runs-meta::before { content: none; }
  .imt-runs td.imt-runs-meta span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .imt-runs tr.is-child td.imt-runs-next { padding-left: 14px; }
}
.imt-people td { vertical-align: middle; }
.imt-people .imt-dd { min-width: 128px; max-width: 220px; }
/* Add a person (TW#26936916): Email, Role and Add on one row from 641px up, stacked on a phone. Every control is 40px tall and the button sits level with the boxes, not their labels. */
.imt-add-member { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: end; margin: 16px 0; }
.imt-add-member .imt-field { margin: 0; min-width: 0; }
@media (max-width: 640px) { .imt-add-member { grid-template-columns: minmax(0, 1fr); } .imt-add-member .imt-btn { width: 100%; } }
/* Activity (TW#26904314): the filters in a row that wraps, and the table as cards on a phone. */
.imt-act-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px 16px; margin: 16px 0 8px; }
.imt-act-filters .imt-field { margin: 0; min-width: 0; }
.imt-act-filters .imt-dd, .imt-act-filters input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
/* The date fields keep the browser's own calendar, styled as the fields beside them: the same 12px
   either side (.imt-field input), so the calendar button sits as far in as a dropdown's arrow (TW#26911465). */
.imt-field input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 2px; border-radius: 4px; opacity: 0.7; cursor: pointer; }
.imt-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--surface-base); }
.imt-act-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.imt-activity td { vertical-align: top; }
.imt-activity td a { overflow-wrap: anywhere; }
.imt-act-kind { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--border-subtle); border-radius: 999px; font-size: 12px; line-height: 18px; color: var(--text-secondary); }
@media (max-width: 640px) {
  .imt-activity thead { display: none; }
  .imt-activity, .imt-activity tbody, .imt-activity tr, .imt-activity td { display: block; width: 100%; }
  .imt-activity tr { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
  .imt-activity tr:last-child { border-bottom: 0; }
  .imt-table.imt-activity td { padding: 2px 14px; border-bottom: 0; white-space: normal; overflow-wrap: anywhere; }
  .imt-activity td::before { content: attr(data-label) ": "; font-size: 12px; color: var(--text-tertiary); }
  .imt-activity td[data-label="What"]::before { content: none; }
  .imt-activity td[data-label="What"] { order: -1; font-weight: 600; }
}
/* Sign-ups waiting (TW#26912909): on a phone each person is a card, the email first and Approve last. */
.imt-signups td, .imt-signups-done td { vertical-align: middle; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .imt-signups thead, .imt-signups-done thead { display: none; }
  .imt-signups, .imt-signups tbody, .imt-signups tr, .imt-signups td, .imt-signups-done, .imt-signups-done tbody, .imt-signups-done tr, .imt-signups-done td { display: block; width: 100%; }
  .imt-signups tr, .imt-signups-done tr { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
  .imt-signups tr:last-child, .imt-signups-done tr:last-child { border-bottom: 0; }
  .imt-table.imt-signups td, .imt-table.imt-signups-done td { padding: 2px 14px; border-bottom: 0; white-space: normal; }
  .imt-signups td[data-label]::before, .imt-signups-done td[data-label]::before { content: attr(data-label) ": "; font-size: 12px; color: var(--text-tertiary); }
  .imt-signups td[data-label="Email"]::before, .imt-signups-done td[data-label="Who"]::before { content: none; }
  .imt-signups td[data-label="Email"], .imt-signups-done td[data-label="Who"] { order: -1; font-weight: 600; }
  .imt-signups td:not([data-label]) { padding-top: 8px; }
}

/* Checks, progress, logs */
.imt-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.imt-check:last-child { border-bottom: 0; }
.imt-check strong { color: var(--text-primary); font-weight: 600; }
.imt-check > .imt-pill { align-self: start; margin-top: 1px; }
.imt-check .ctl { grid-column: 2; color: var(--text-tertiary); font-size: 12px; }
.imt-progress { height: 8px; border-radius: 999px; background: var(--surface-deep); overflow: hidden; margin: 8px 0 10px; }
.imt-progress > i { display: block; height: 100%; background: var(--brand); width: 0; border-radius: 999px; transition: width 0.4s var(--ease); }
.imt-progress-line { display: flex; align-items: center; margin: 0 0 4px; font-size: 15px; font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.imt-log { font: 12px/1.5 var(--mono); background: light-dark(#11182a, #0b0a09); color: #e7ebf2; border-radius: var(--r-button); padding: 14px 16px; max-height: 300px; overflow: auto; white-space: pre-wrap; scroll-behavior: auto; }
.imt-confirm { font-family: var(--mono); letter-spacing: 0.08em; }
.imt-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 12px 0; }
.imt-meta span { display: block; font-size: 12px; color: var(--text-tertiary); }

/* Admin key help */
.imt-help { margin: 4px 0 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-button); background: var(--surface-subtle); }
.imt-help summary { cursor: pointer; padding: 10px 14px; font-weight: 500; color: var(--brand-fg); }
.imt-help > div { padding: 0 16px 12px; }
.imt-help ol { padding-left: 20px; }
.imt-help li { margin: 6px 0; }

/* What an instance holds: one tile per module, opening to its parts */
.imt-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 8px; }
.imt-inv-card { min-width: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-raised); }
.imt-inv-card[open] { grid-column: 1 / -1; box-shadow: var(--elevation-sm); }
.imt-inv-card > summary { list-style: none; cursor: pointer; padding: 12px 14px; border-radius: var(--r-card); }
.imt-inv-card > summary::-webkit-details-marker { display: none; }
.imt-inv-card > summary:hover { background: var(--surface-subtle); }
.imt-inv-card > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* A card says it opens: a chevron that turns, a count line, and what is for you to do (TW#26901827). */
.imt-inv-card header { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: baseline; gap: 6px 8px; }
.imt-inv-card header::after { content: ""; grid-row: 1; grid-column: 3; align-self: center; justify-self: end; width: 7px; height: 7px; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary); transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease); }
.imt-inv-card[open] header::after { transform: rotate(225deg) translateY(-1px); }
.imt-inv-card > summary:hover header::after { border-color: var(--text-secondary); }
.imt-inv-counts { grid-column: 1 / -1; font-size: 12px; color: var(--text-secondary); }
.imt-inv-todo { min-width: 0; font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.imt-inv-todo-names { overflow-wrap: anywhere; }
.imt-inv-legend { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.imt-inv-dest { margin: 0 0 4px; color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { .imt-inv-card header::after { transition: none; } }
.imt-inv-card header strong { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.imt-inv-card header b { font: 600 18px var(--display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.imt-inv-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.imt-ver { font-size: 11px; color: var(--text-tertiary); background: var(--surface-base); border-radius: 999px; padding: 0 8px; }
.imt-inv-body { padding: 0 14px 14px; border-top: 1px solid var(--border-subtle); }
.imt-inv-card ul { list-style: none; margin: 0; padding: 0; }
.imt-inv-card li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.imt-inv-card li small { grid-column: 1 / -1; color: var(--text-tertiary); font-size: 12px; line-height: 1.45; }
.imt-inv-label { color: var(--text-primary); }
.imt-inv-count { font-variant-numeric: tabular-nums; color: var(--text-primary); text-align: right; }
.imt-inv-sub { margin: 12px 0 0; font-size: 13px; color: var(--text-tertiary); }
.imt-inv-empty { font-size: 12px; margin: 10px 0 0; }
/* The tables behind a card's counts, for whoever needs them (TW#26916665): closed, under the nouns. */
.imt-inv-tech { margin-top: 12px; font-size: 13px; }
.imt-inv-tech > summary { cursor: pointer; color: var(--text-secondary); font-size: 12px; padding: 4px 0; }
.imt-inv-tech > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.imt-inv-tech .imt-inv-sub { margin-top: 6px; }

/* Plan parts */
.imt-blockers, .imt-resolved, .imt-watch, .imt-decisions { padding-left: 20px; }
.imt-blockers li, .imt-resolved li, .imt-decisions li { margin: 10px 0; }
.imt-watch { list-style: none; padding: 0; }
.imt-watch li { padding: 8px 0; border-top: 1px solid var(--border-subtle); }
/* Decisions on the plan, chosen together and applied once (TW#26866602). */
.imt-decide { list-style: decimal; padding-left: 22px; }
.imt-decide > li.imt-decision { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--border-divider); border-radius: var(--r-card); background: var(--surface-raised); }
.imt-decide > li.imt-decision.is-decided { border-color: var(--brand-border); }
.imt-decide > li::marker { color: var(--text-secondary); font-weight: 600; }
.imt-decision-what { color: var(--text-primary); overflow-wrap: anywhere; }
.imt-options { border: 0; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.imt-options legend { padding: 0; margin-bottom: 6px; }
.imt-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--r-button); font-size: 14px; color: var(--text-secondary); cursor: pointer; overflow-wrap: anywhere; }
.imt-option input { margin-top: 4px; flex: none; }
.imt-option strong { color: var(--text-primary); font-weight: 500; }
.imt-option:hover { border-color: var(--brand-border); }
.imt-option.is-selected { border-color: var(--brand); background: var(--brand-subtle); }
/* A night of the nightly sync waiting for a choice per table: the chosen option shows as chosen (TW#26916651). */
.imt-night-options .imt-option:has(input:checked) { border-color: var(--brand); background: var(--brand-subtle); }
.imt-night-options + .imt-night-options { margin-top: 18px; }
/* Kept, lost and an example under each option on the plan, so a person can read what it does before choosing it. */
.imt-option-words { display: grid; gap: 2px; margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.imt-option-words strong { font-weight: 600; }
.imt-doubts li { margin: 0 0 10px; overflow-wrap: anywhere; }
.imt-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* A collection page that waits for a choice, on Pages and code (TW#26901813). */
.imt-coll { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-raised); min-width: 0; }
.imt-coll h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.imt-coll p { overflow-wrap: anywhere; }
.imt-coll-spot { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 8px 0; }
.imt-coll-page { margin: 0; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--r-button); background: var(--surface-subtle); min-width: 0; }
.imt-coll-page figcaption { font-size: 13px; color: var(--text-tertiary); margin-bottom: 6px; overflow-wrap: anywhere; }
.imt-coll-page p { margin: 0 0 6px; color: var(--text-primary); font-size: 14px; }
/* The muted grey falls short of 4.5:1 on a selected option's tint: the choice's own words use the secondary text. */
.imt-coll .imt-option .imt-muted { color: var(--text-secondary); }
.imt-tm .imt-field { margin: 8px 0; }
.imt-tm .imt-cell { font: 13px var(--font); }
.imt-tm-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 0; border: 0; min-width: 0; }
.imt-tm-groups legend { margin-bottom: 4px; color: var(--text-secondary); }
.imt-tm-group { flex: 1 1 160px; min-width: 0; }
.imt-tm-fields td, .imt-tm-fields th { vertical-align: top; }
.imt-tm-fields .imt-cell, .imt-tm-fields .imt-dd, .imt-tm-group .imt-cell { width: 100%; min-width: 120px; }
.imt-tm-tip { min-width: 200px; height: auto; min-height: 56px; padding: 6px 8px; font: 13px/1.45 var(--font); resize: vertical; }
.imt-coll-markup { margin: 6px 0 0; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all; font: 12px/1.45 var(--mono); color: var(--text-secondary); }
.imt-decision .imt-field { margin-top: 10px; }
.imt-decision .imt-cell { width: 100%; }
.imt-pickbar { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--brand); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.imt-pickbar p { margin: 0 0 6px; }
.imt-pickbar ul { margin: 0 0 10px; max-height: 160px; overflow: auto; }
.imt-bad-text { color: var(--danger-fg); }
/* A field a decision cannot be applied without (TW#26916667). Words, not an asterisk, so it reads aloud. */
.imt-required { color: var(--danger-fg); font-weight: 600; }
.imt-issue { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.imt-issue:last-child { border-bottom: 0; }
.imt-issue .imt-btn { justify-self: start; }
div.imt-diff { font: 12px var(--mono); background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: var(--r-input); padding: 8px 10px; overflow-x: auto; }
div.imt-diff .del { color: var(--danger-fg); white-space: pre; }
div.imt-diff .add { color: var(--success-fg); white-space: pre; }

/* Verify parts */
.imt-diffs { margin: 4px 0 16px 44px; display: grid; gap: 12px; }
.imt-diff-item { border: 1px solid var(--border-subtle); border-radius: var(--r-button); padding: 12px 14px; background: var(--surface-subtle); }
.imt-diff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.imt-table.imt-diff td { overflow-wrap: anywhere; }
.imt-table.imt-diff td:first-child { white-space: nowrap; }
.imt-table.imt-diff pre { margin: 0; font: 12px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .imt-diffs { margin-left: 0; } }
.imt-shots { display: grid; gap: 16px; }
.imt-shots figure { margin: 0; }
.imt-shots figcaption { margin-bottom: 6px; }
.imt-shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.imt-shot-row img { width: 100%; height: auto; border: 1px solid var(--border-subtle); border-radius: var(--r-input); }
.imt-accepts { list-style: none; margin: 0; padding: 0; }
.imt-accept, .imt-accept form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.imt-accept { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.imt-accept form { flex: 1; }
.imt-accept-file { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.imt-accept.is-done .imt-accept-file { flex: 1 1 0; }
.imt-accept.is-done .imt-ico { color: var(--success-fg); vertical-align: -2px; }
.imt-accept .imt-cell { flex: 1; min-width: 200px; font-family: var(--font); }

/* Finish parts */
.imt-cutover { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.imt-cutover li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 18px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); }
.imt-cutover li.is-done { background: var(--success-subtle); border-color: transparent; }
.imt-cutover li strong { color: var(--text-primary); }
@media (max-width: 800px) { .imt-cutover li { flex-direction: column; } }
.imt-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.imt-job { display: flex; align-items: flex-start; gap: 12px; padding: 9px 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-button); background: var(--surface-raised); }
.imt-job > input, .imt-job-box input { width: 16px; height: 16px; margin: 0; flex: none; }
.imt-job-box { position: relative; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 5px; }
.imt-job > details { flex: 1; min-width: 0; }
.imt-live-warn { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--warning-subtle); color: var(--text-primary); font-size: 13px; }
p.imt-live-warn { display: block; border-radius: var(--r-button); padding: 6px 10px; margin: 6px 0; }
.imt-job summary { cursor: pointer; color: var(--text-primary); }
.imt-job summary strong { font-weight: 500; }
.imt-job.is-done summary strong { text-decoration: line-through; color: var(--text-tertiary); }
.imt-job p { margin: 8px 0; }
.imt-steps-list { padding-left: 20px; margin: 6px 0 10px; }
.imt-steps-list li { margin: 4px 0; }

/* Confirm dialogs */
.imt-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-xl); background: var(--surface-raised); color: var(--text-secondary); box-shadow: 0 24px 48px rgba(20, 28, 50, 0.24); }
.imt-dialog::backdrop { background: rgba(17, 24, 42, 0.5); }
.imt-dialog-form { padding: 24px; }
.imt-dialog h3 { margin: 0 0 8px; font-size: 18px; }
.imt-dialog-body p { margin: 0 0 14px; }
.imt-dialog-error { margin: 0; color: var(--danger-fg); font-size: 13px; }
.imt-dialog-error:empty { display: none; }
.imt-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---- Sign in ---- */
.imt-signin { max-width: 480px; margin: 40px auto; padding: 32px; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); box-shadow: var(--elevation-sm); }
.imt-signin h1 { font-size: 26px; margin: 0 0 10px; }
.imt-signin .imt-btn { width: 100%; margin: 8px 0 16px; }
.imt-signin .imt-muted { font-size: 13px; }
@media (max-width: 640px) { .imt-signin { margin: 16px auto; padding: 24px 20px; } }

/* ---- Docs ---- */
/* Full width like every page: prose keeps a readable line, tables and diagrams span the column and scroll in their own box. */
.imt-docs-main :is(p, li, blockquote, dd) { max-width: var(--imt-measure, 44rem); }
.imt-docs-main { overflow-x: auto; }
.imt-docs-main table { width: 100%; }
.imt-docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; max-width: none; margin: 0; padding: 32px 24px 64px; }
@media (max-width: 860px) { .imt-docs { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; } }
/* The menu scrolls on its own when it is taller than the window (TW 26887343): it keeps to the window below
   the header, so every item can be reached without scrolling the page. The padding gives the links' -10px
   inset and their focus ring room inside the scroller, which clips what overflows it. 88px is the 24px gap
   above it and the 64px .imt-docs keeps below, so at the foot of a page the menu is not pushed up under the header. */
.imt-docs-nav { position: sticky; top: calc(var(--imt-top-h) + 24px); align-self: start; font-size: 14px; max-height: calc(100vh - var(--imt-top-h) - 88px); max-height: calc(100dvh - var(--imt-top-h) - 88px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-left: -10px; padding: 2px 6px 2px 10px; }
/* Search, at the top of the menu (TW 26887342). It stays in view while the menu scrolls under it, and its
   results take the menu's place while there is a query. */
.imt-docs-search { position: sticky; top: -2px; z-index: 1; margin: 0 0 18px; padding: 2px 0 6px; background: var(--surface-base); }
.imt-docs-search input { width: 100%; height: 36px; padding: 6px 30px 6px 10px; border: 1px solid var(--border-divider); border-radius: var(--r-input); font: 14px var(--font); color: var(--text-primary); background: var(--surface-raised); -webkit-appearance: none; appearance: none; }
.imt-docs-search input::placeholder { color: var(--text-subtle); }
.imt-docs-search input:focus { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-docs-search kbd { position: absolute; top: 10px; right: 9px; min-width: 18px; padding: 0 5px; border: 1px solid var(--border-subtle); border-radius: 4px; font: 12px/18px var(--font); color: var(--text-tertiary); text-align: center; pointer-events: none; }
.imt-docs-search input:focus ~ kbd, .imt-docs-search input:not(:placeholder-shown) ~ kbd { display: none; }
.imt-docs-results { margin: 10px 0 0; }
.imt-docs-nav .imt-docs-results a.imt-docs-hit { display: block; margin: 0 0 4px -10px; padding: 8px 10px; border-radius: var(--r-input); color: var(--text-secondary); font-weight: 400; background: none; }
.imt-docs-nav .imt-docs-results a.imt-docs-hit:hover, .imt-docs-nav .imt-docs-results a.imt-docs-hit[aria-selected="true"] { background: var(--brand-subtle); color: var(--text-primary); }
.imt-docs-hit span { display: block; }
.imt-docs-hit-page { font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.imt-docs-hit-head { font-weight: 600; color: var(--text-primary); }
.imt-docs-hit-text { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.imt-docs-hit mark { background: var(--warning-subtle); color: inherit; border-radius: 2px; }
.imt-docs-hits-note { margin: 0; font-size: 13px; color: var(--text-tertiary); }
.imt-docs-main h2[id], .imt-docs-main h3[id] { scroll-margin-top: calc(var(--imt-top-h) + 16px); }
@media (max-width: 860px) { .imt-docs-search { position: static; padding: 0; } .imt-docs-nav .imt-docs-results a.imt-docs-hit { margin-left: 0; } }
.imt-docs-nav p { margin: 20px 0 6px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.imt-docs-nav p:first-child { margin-top: 0; }
.imt-docs-nav ul { list-style: none; margin: 0; padding: 0; }
.imt-docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: var(--r-input); color: var(--text-secondary); text-decoration: none; }
.imt-docs-nav a:hover { color: var(--text-primary); background: var(--surface-raised); }
.imt-docs-nav a[aria-current="page"] { background: var(--brand-subtle); color: var(--brand-fg); font-weight: 600; }
@media (max-width: 860px) { .imt-docs-nav { position: static; max-height: none; overflow: visible; margin-left: 0; padding: 0 0 12px; border-bottom: 1px solid var(--border-subtle); } .imt-docs-nav ul { display: flex; flex-wrap: wrap; gap: 0 14px; } .imt-docs-nav a { margin-left: 0; padding: 4px 0; } }
.imt-docs-main { min-width: 0; max-width: none; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-card); box-shadow: var(--elevation-sm); padding: 40px 48px; }
@media (max-width: 860px) { .imt-docs-main { padding: 24px 20px; } }
.imt-docs-main h1 { font-size: 32px; margin-bottom: 12px; }
.imt-docs-main h2 { font-size: 21px; margin: 36px 0 10px; }
.imt-docs-main p, .imt-docs-main li { line-height: 1.7; }
.imt-docs-main pre { background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: var(--r-input); padding: 10px 12px; overflow-x: auto; }
.imt-docs-main .imt-table { margin: 12px 0 20px; }
.imt-docs-main > .imt-table, .imt-docs-main table { display: block; overflow-x: auto; }
.imt-docs-list li, .imt-docs-steps li { margin: 8px 0; }
.imt-onramps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.imt-onramps a { display: block; text-decoration: none; color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: var(--r-card); padding: 16px; }
.imt-onramps a:hover { border-color: var(--brand); }
.imt-onramps strong { display: block; color: var(--text-primary); margin-bottom: 4px; }
.imt-onramps span { font-size: 13px; }
/* One measure for the docs: prose, lists, callouts, diagrams and the caption under them share the
   left edge of the text column and the same width limit. Tables, code and headings start at that
   same left edge and may run wider (they scroll when they must). */
.imt-docs-main { --imt-measure: 44rem; }
.imt-docs-main :is(p, ul, ol, dl, blockquote, .imt-callout, .imt-diagram) { max-width: var(--imt-measure); }
/* One callout per kind: same padding, border, radius and full width of the text column. */
.imt-callout { display: block; width: 100%; padding: 12px 16px; border: 1px solid var(--brand-border); border-radius: var(--r-button); background: var(--brand-subtle); margin: 16px 0; color: var(--text-primary); }
.imt-callout.is-warn { background: var(--warning-subtle); border-color: var(--warning-subtle); }
.imt-callout > :first-child { margin-top: 0; }
.imt-callout > :last-child { margin-bottom: 0; }
.imt-callout :is(p, li, ul, ol) { max-width: none; }
.imt-callout ul, .imt-callout ol { margin: 6px 0 0; padding-left: 20px; }
/* A diagram is a column of boxes drawn in HTML, so its text wraps inside the box and the box grows. */
.imt-diagram { margin: 20px 0 24px; padding: 0; text-align: left; }
.imt-diagram ol { list-style: none; margin: 0; padding: 0; max-width: 26rem; }
.imt-diagram li { position: relative; margin: 0 0 26px; padding: 10px 14px; border: 1.5px solid var(--brand); border-radius: 6px; background: var(--surface-raised); text-align: center; line-height: 1.4; overflow-wrap: anywhere; max-width: none; }
.imt-diagram li.is-end { background: var(--brand-subtle); }
.imt-diagram li:last-child { margin-bottom: 0; }
.imt-diagram li:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; width: 0; height: 26px; border-left: 1.5px solid var(--border-default); transform: translateX(-50%); }
.imt-diagram li:not(:last-child)::before { content: ""; position: absolute; left: 50%; top: calc(100% + 18px); border: 5px solid transparent; border-top: 8px solid var(--border-default); border-bottom: 0; transform: translateX(-50%); }
.imt-diagram .imt-dg-title { display: block; font: 600 14px var(--display); color: var(--text-primary); }
.imt-diagram .imt-dg-note { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.imt-diagram figcaption { font-size: 13px; color: var(--text-tertiary); margin-top: 12px; }
.imt-job summary, .imt-issue, .imt-check div, .imt-plain li, .imt-cutover li > div { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .imt-tools .imt-btn, .imt-row .imt-btn { white-space: normal; height: auto; min-height: 32px; padding-block: 6px; text-align: center; }
  /* A wrapped label makes one button taller: buttons on one line stretch to the tallest, as a row's do (TW#26897456). */
  .imt-tools > .imt-btn { align-self: stretch; }
  :is(.imt-row, .imt-tools):has(> .imt-btn:not(.imt-btn-small):not(.imt-btn-icon)) > .imt-btn-small { height: auto; }
}
@media (max-width: 640px) {
  .imt-wiz-head { position: static; flex-wrap: nowrap; align-items: flex-start; min-height: 0; }
  .imt-wiz-title { font-size: 13px; gap: 4px 6px; }
  .imt-wiz-title code { font-size: 12px; }
}

/* ---- The account a person is working in (TW#26887349) ----
   Personal is an outlined box with a person; an agency has a building, the word Agency in purple and
   the person's role, so the two differ at a glance and not only by their words. Neither is filled. */
/* The slot has its own size from the first paint (a skeleton, then the control), so the menu to its
   left never moves when the live list arrives. A long name is cut with an ellipsis, never given room. */
.imt-account-slot { position: relative; align-self: center; min-width: 0; height: 34px; }
.imt-account-skel, .imt-account-static { display: flex; align-items: center; gap: 6px; box-sizing: border-box; width: 100%; height: 34px; padding: 0 10px 0 9px; border-radius: 999px; border: 1px solid var(--border-divider); background: var(--surface-raised); color: var(--text-secondary); font: 500 13px var(--font); white-space: nowrap; overflow: hidden; }
.imt-account-skel { background: var(--surface-base); }
/* An agency is told apart by its icon and the word Agency in purple, with no colored background, so the only
   highlighted item in the menu is the page you are on (Shane, 27 October 2026). */
.imt-account-static.is-agency .imt-account-kind, .imt-account.is-agency > summary .imt-account-kind { color: var(--agency-fg); opacity: 1; font-weight: 600; }
.imt-top :is(.imt-account > summary, .imt-account-static) .imt-account-name { color: var(--text-primary); }
.imt-account-static .imt-account-ico { width: 16px; height: 16px; }
.imt-account-static .imt-profile-caret { margin: 0 0 0 auto; border-color: currentColor; }
.imt-account { position: relative; width: 100%; }
.imt-account > summary { list-style: none; display: flex; align-items: center; box-sizing: border-box; gap: 6px; height: 34px; width: 100%; overflow: hidden; padding: 0 10px 0 9px; border-radius: 999px; border: 1px solid var(--border-divider); background: var(--surface-raised); color: var(--text-secondary); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; }
.imt-account > summary::-webkit-details-marker { display: none; }
.imt-account > summary:hover { border-color: var(--border-strong); color: var(--text-primary); }
.imt-account > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-account-ico { display: inline-flex; flex: none; }
.imt-account-ico .imt-ico { width: 16px; height: 16px; }
.imt-account-kind { flex: none; font-weight: 500; opacity: 0.8; }
.imt-account-name { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.imt-account-role { flex: none; padding: 1px 6px; border-radius: 999px; background: var(--surface-raised); color: var(--text-tertiary); font-size: 11px; font-weight: 500; }
.imt-account[open] .imt-profile-caret { transform: rotate(225deg) translateY(-1px); }
.imt-account .imt-profile-caret { flex: none; margin: 0 0 0 auto; border-color: currentColor; }
.imt-account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 280px; padding: 8px; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(20, 28, 50, 0.16); }
.imt-account-head { margin: 0; padding: 6px 10px 8px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.imt-account-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-input); background: none; color: var(--text-primary); font: 14px var(--font); text-align: left; cursor: pointer; }
.imt-account-item:hover { background: var(--surface-base); }
.imt-account-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-account-item > span:nth-child(2) { flex: 1; min-width: 0; }
.imt-account-item strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.imt-account-item small { display: block; color: var(--text-tertiary); font-size: 12px; }
.imt-account-item > .imt-account-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-divider); color: var(--text-secondary); }
.imt-account-item.is-agency > .imt-account-ico { border-color: var(--brand-border); background: var(--brand-subtle); color: var(--brand-fg); }
.imt-account-on { display: inline-flex; color: var(--brand-fg); }
.imt-account-people { display: block; margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--border-subtle); font-size: 13px; }

/* ---- The profile menu: who is signed in, the theme, signing out ---- */
.imt-profile { position: relative; align-self: center; }
.imt-profile > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; cursor: pointer; }
.imt-profile > summary::-webkit-details-marker { display: none; }
.imt-profile > summary:hover { background: var(--surface-base); }
.imt-profile > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-subtle); color: var(--brand-fg); font: 600 14px var(--font); }
.imt-avatar-theme::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.imt-profile-caret { width: 6px; height: 6px; margin-right: 4px; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary); transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease); }
.imt-profile[open] .imt-profile-caret { transform: rotate(225deg) translateY(-1px); }
.imt-profile-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 8px; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(20, 28, 50, 0.16); }
.imt-profile-who { margin: 0; padding: 8px 10px 10px; font-size: 12px; color: var(--text-tertiary); border-bottom: 1px solid var(--border-subtle); }
.imt-profile-who .imt-who { display: block; padding: 2px 0 0; font-size: 14px; font-weight: 500; color: var(--text-primary); overflow-wrap: anywhere; }
.imt-theme { margin: 0; padding: 8px 2px; border: 0; }
.imt-theme legend { padding: 4px 8px 6px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.imt-theme label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-input); font-size: 14px; color: var(--text-primary); cursor: pointer; }
.imt-theme label:hover { background: var(--surface-base); }
.imt-theme input { margin: 0; }
.imt-profile .imt-nav-out { margin: 0; padding-top: 6px; border-top: 1px solid var(--border-subtle); }
.imt-profile .imt-nav-out button { width: 100%; text-align: left; padding: 8px 10px; font-size: 14px; color: var(--text-primary); }

/* A connection error: what happened, what to do, and the detail for support */
.imt-err-hint { margin: 6px 0 0; }
.imt-err-detail { margin-top: 8px; font-size: 12px; }
.imt-err-detail summary { cursor: pointer; color: var(--text-tertiary); }
.imt-err-detail code { display: block; margin-top: 6px; white-space: pre-wrap; font-size: 12px; color: var(--text-secondary); }

/* ---- Working: dots that move, a spinner, a bar that moves without a count ---- */
.imt-ellipsis { display: inline-flex; margin-left: 0; }
.imt-ellipsis i { font-style: normal; display: inline-block; width: 0.32em; text-align: left; animation: imt-dot 1.2s infinite both; }
.imt-ellipsis i:nth-child(2) { animation-delay: 0.2s; }
.imt-ellipsis i:nth-child(3) { animation-delay: 0.4s; }
@keyframes imt-dot { 0%, 80%, 100% { opacity: 0.35; } 40% { opacity: 1; } }
.imt-spinner { display: inline-block; flex: none; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--brand-border); border-top-color: var(--brand); border-radius: 50%; animation: imt-spin 0.8s linear infinite; }
@keyframes imt-spin { to { transform: rotate(360deg); } }
.imt-progress.is-indeterminate > i { width: 35%; animation: imt-slide 1.4s var(--ease) infinite; }
@keyframes imt-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.imt-dock-reason.is-working { display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  .imt-ellipsis i, .imt-spinner, .imt-progress.is-indeterminate > i { animation-duration: 3s; }
}

/* ---- A tooltip beside a field ---- */
.imt-tip { position: relative; display: inline-flex; margin-left: 6px; vertical-align: 1px; }
.imt-tip-btn { display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 1px solid var(--border-default); border-radius: 50%; background: var(--surface-raised); color: var(--text-tertiary); font: 600 10px/1 var(--font); cursor: help; }
.imt-tip-btn:hover, .imt-tip-btn:focus-visible { color: var(--brand-fg); border-color: var(--brand); }
.imt-tip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-tip-text { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 70; width: 280px; padding: 10px 12px; border-radius: var(--r-button); background: var(--text-primary); color: var(--surface-raised); font: 400 12px/1.5 var(--font); transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity 120ms; pointer-events: none; }
.imt-tip:hover .imt-tip-text, .imt-tip-btn:focus + .imt-tip-text { opacity: 1; visibility: visible; }
@media (max-width: 640px) { .imt-tip-text { left: auto; right: -8px; transform: none; width: 240px; } }

/* ---- Toasts ---- */
.imt-toasts { position: fixed; left: 50%; bottom: 88px; z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); transform: translateX(-50%); }
body:not(.imt-has-dock) .imt-toasts { bottom: 24px; }
@media (max-width: 640px) { body.imt-has-dock .imt-toasts { bottom: 160px; } }
/* On a wider screen they sit at the top right, below every page's top bar, so they never cover its
   buttons (New migration, the migration's own tools and its close button), and to the left of the Ask
   panel while it is open (Shane, 27 October 2026). A phone keeps them at the bottom, above the footer. */
@media (min-width: 761px) {
  .imt-toasts, body:not(.imt-has-dock) .imt-toasts { left: auto; right: 24px; top: calc(max(var(--imt-bars-top), 72px) + 16px); bottom: auto; width: min(400px, calc(100vw - var(--imt-side-w, 0px) - 48px)); transform: none; }
  body.imt-asking .imt-toasts { right: calc(min(420px, 100vw) + 24px); }
}
.imt-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--r-card); background: var(--text-primary); color: var(--surface-raised); font-size: 14px; box-shadow: 0 12px 32px rgba(20, 28, 50, 0.24); animation: imt-toast-in 240ms var(--ease); }
.imt-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 250ms, transform 250ms; }
.imt-toast-mark { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--success); color: #fff; font-weight: 700; font-size: 12px; }
.imt-toast.is-bad .imt-toast-mark { background: var(--danger); }
/* A result that left something to do is never shown with the success tick (Shane, 25 October 2026). */
.imt-toast.is-warn .imt-toast-mark { background: var(--warning); color: #1a1a1a; }
.imt-toast-mark .imt-ico { width: 12px; height: 12px; }
.imt-toast > span:nth-child(2) { flex: 1; padding-top: 1px; }
.imt-toasts-head { display: flex; justify-content: flex-end; }
.imt-toasts-head .imt-btn { background: var(--surface-raised); }
.imt-toast-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.imt-toast .imt-toast-acts .imt-btn { color: var(--surface-raised); border-color: currentColor; }
.imt-toast .imt-toast-acts .imt-btn-ghost { background: transparent; }
.imt-toast .imt-toast-acts .imt-btn-ghost:hover { background: rgba(127, 127, 127, 0.2); }
.imt-toast-close { flex: none; padding: 2px; border: 0; background: none; color: inherit; opacity: 0.7; cursor: pointer; }
.imt-toast-close:hover { opacity: 1; }
.imt-toast-detail { display: block; margin-top: 4px; font-size: 12px; opacity: 0.75; overflow-wrap: anywhere; }
/* Retry, on a message about a failed request: the one filled button, so it reads as the thing to do. */
.imt-toast .imt-toast-acts .imt-btn.imt-toast-primary { background: var(--surface-raised); color: var(--text-primary); border-color: var(--surface-raised); }
@keyframes imt-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Decisions on the plan ---- */
.imt-blockers { list-style: none; padding: 0; display: grid; gap: 10px; }
.imt-blockers li.imt-decision { margin: 0; padding: 14px 16px; border: 1px solid var(--border-subtle); border-left: 3px solid var(--danger); border-radius: var(--r-button); background: var(--surface-raised); }
.imt-decision > div:first-child { color: var(--text-primary); overflow-wrap: anywhere; }
.imt-decision p { margin: 6px 0 0; }
.imt-save-row { align-items: center; }
.imt-cell-label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--danger-fg); font-weight: 500; }

/* ---- An instance's tiles: one number, and what it counts ---- */
.imt-inv-total { display: grid; justify-items: end; line-height: 1.1; }
.imt-inv-total b { font: 600 18px var(--display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.imt-inv-total small { font-size: 11px; color: var(--text-tertiary); }

/* ---- A press that shows: buttons move when pressed, and a working one says so ---- */
.imt-btn:active:not(:disabled):not([aria-disabled="true"]) { transform: translateY(1px) scale(0.985); }
.imt-btn.is-busy { cursor: progress; opacity: 1; }
.imt-btn.is-busy .imt-spinner { width: 12px; height: 12px; margin-right: 6px; border-color: rgba(255, 255, 255, 0.45); border-top-color: #fff; }
.imt-btn-ghost.is-busy .imt-spinner, .imt-btn-quiet.is-busy .imt-spinner { border-color: var(--brand-border); border-top-color: var(--brand); }
.imt-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.imt-dock-reason.is-nudged { animation: imt-nudge 600ms var(--ease); color: var(--text-primary); }
@keyframes imt-nudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.imt-toast.is-info .imt-toast-mark { background: var(--brand); }
.imt-log-jump { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .imt-dock-reason.is-nudged { animation: none; text-decoration: underline; } }
.imt-stop { color: var(--danger-fg); }
.imt-stop:hover:not(:disabled) { border-color: var(--danger); }

/* ---- The confidence score on the Verify result ---- */
.imt-confidence { display: flex; gap: 20px; align-items: center; padding: 16px 20px; margin: 0 0 16px; border-radius: var(--r-card); border: 1px solid var(--border-subtle); background: var(--surface-subtle); color: var(--text-secondary); }
.imt-confidence strong { color: var(--text-primary); }
.imt-confidence-score { flex: none; display: flex; flex-direction: column; align-items: flex-start; min-width: 104px; }
.imt-confidence-score b { white-space: nowrap; font-family: var(--display); font-size: 32px; line-height: 1.1; font-weight: 600; color: var(--text-primary); }
.imt-confidence-score span { font-size: 12px; color: var(--text-tertiary); }
.imt-confidence.is-ok { background: var(--success-subtle); border-color: transparent; }
.imt-confidence.is-ok .imt-confidence-score b { color: var(--success-fg); }
.imt-confidence.is-warn { background: var(--warning-subtle); border-color: transparent; }
.imt-confidence.is-warn .imt-confidence-score b { color: var(--warning-fg); }
.imt-confidence.is-bad { background: var(--danger-subtle); border-color: transparent; }
.imt-confidence.is-bad .imt-confidence-score b { color: var(--danger-fg); }
.imt-table tr.is-bad td { color: var(--danger-fg); }
/* What was not confirmed, by name and why (TW#26898019). A long file path wraps rather than widens the box. */
.imt-confidence > div:last-child { min-width: 0; }
.imt-confidence-why { margin: 10px 0 2px; font-weight: 600; color: var(--text-primary); }
.imt-confidence-list { margin: 0; padding-left: 18px; list-style: disc; }
.imt-confidence-list li { margin: 4px 0; overflow-wrap: anywhere; }
.imt-confidence-list code { overflow-wrap: anywhere; }
.imt-table tr.is-short td.num { color: var(--warning-fg); }
.imt-check code { overflow-wrap: anywhere; }
/* Landing on a check from the result: clear of the sticky header and run bar. */
.imt-check { scroll-margin-top: 160px; }
@media (max-width: 640px) { .imt-confidence { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* A field with the hidden attribute stays hidden: .imt-field sets display grid, which beat the
   attribute, so the new-key dialog showed both instances' fields at once (TW#26862910). */
.imt-field[hidden] { display: none; }
.imt-plain-words { margin: 12px 0 4px; color: var(--text-secondary); max-width: 68ch; }
.imt-keep { border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.imt-keep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.imt-keep-head h3 { margin: 0; font-size: 16px; }
.imt-keep .imt-plain li { margin: 6px 0; }

/* Where the Finish stage stands, at the top of each of its steps (TW#26863689). */
/* The launch timeline that opens Launch (TW#26898244): the line fills down to where the
   migration is, and "You are here" lands there, once per place. */
.imt-tl { list-style: none; margin: 8px 0 24px; padding: 0; }
.imt-tl-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; }
.imt-tl-item:last-child { padding-bottom: 0; }
.imt-tl-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--border-divider); }
.imt-tl-item::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--brand); transform-origin: top; transform: scaleY(0); }
.imt-tl-item:last-child::before, .imt-tl-item:last-child::after { display: none; }
.imt-tl-item.is-past::after { transform: scaleY(1); }
.imt-tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-default); background: var(--surface-raised); color: #fff; }
.imt-tl-dot svg { width: 14px; height: 14px; }
.imt-tl-item.is-past .imt-tl-dot { background: var(--brand); border-color: var(--brand); }
.imt-tl-item.is-past.is-open .imt-tl-dot { background: var(--surface-raised); border-color: var(--brand); }
/* Done, ahead of where the launch is (TW#26936940): a tick, and the line does not fill to it. */
.imt-tl-item.is-done .imt-tl-dot { background: var(--brand); border-color: var(--brand); }
.imt-tl-status.is-open { color: var(--warning-fg); }
.imt-tl-item.is-here .imt-tl-dot { border-color: var(--brand); background: var(--brand-subtle); box-shadow: 0 0 0 5px var(--brand-subtle); }
.imt-tl-item.is-here .imt-tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.imt-tl-body { min-width: 0; padding: 2px 0 0; }
.imt-tl-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; color: var(--text-primary); }
.imt-tl-body p { margin: 0; }
.imt-tl-when { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 2px !important; }
.imt-tl-item.is-here .imt-tl-when { color: var(--brand-fg); }
.imt-tl-status { margin-top: 6px !important; font-size: 13px; color: var(--text-tertiary); }
.imt-tl-you { margin-top: 6px !important; font-size: 14px; color: var(--text-secondary); }
.imt-tl-go { margin-top: 10px !important; }
.imt-tl-here { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--agency-fg); color: var(--on-agency); font-size: 12px; font-weight: 600; }
.imt-tl-item.is-next .imt-tl-body h3 { color: var(--text-secondary); }
/* --tl-since: how far into the motion a redraw picks it up, so a redraw mid-move carries on (TW#26916651). */
.imt-tl.is-anim .imt-tl-item { animation: imt-tl-in 420ms var(--ease) backwards; animation-delay: calc(var(--i) * 110ms - var(--tl-since, 0ms)); }
.imt-tl.is-anim .imt-tl-item.is-past::after { animation: imt-tl-fill 360ms var(--ease) backwards; animation-delay: calc(var(--i) * 110ms + 200ms - var(--tl-since, 0ms)); }
.imt-tl.is-anim .imt-tl-here { animation: imt-tl-land 520ms var(--ease) backwards; animation-delay: calc(var(--i) * 110ms + 320ms - var(--tl-since, 0ms)); }
/* The step you are on pulses: a ring in the brand color spreads from its circle and fades, on a loop,
   so "you are here" can be seen at a glance (Shane, 27 October 2026, TW#26941700). Still for reduced motion, below. */
.imt-tl-item.is-here .imt-tl-dot { animation: imt-tl-pulse 2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
@keyframes imt-tl-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes imt-tl-fill { from { transform: scaleY(0); } }
@keyframes imt-tl-land { from { opacity: 0; transform: translateX(-8px) scale(0.9); } }
@keyframes imt-tl-pulse {
  0% { box-shadow: 0 0 0 5px var(--brand-subtle), 0 0 0 5px color-mix(in srgb, var(--brand) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 5px var(--brand-subtle), 0 0 0 16px color-mix(in srgb, var(--brand) 0%, transparent); }
}
/* Under the timeline: each step in more detail, and what it does for the person (TW#26901802). The
   current row is marked like "You are here" above it. On a phone the rows stack and each cell shows
   its own heading, so nothing is cut off and nothing scrolls sideways. */
.imt-launch-steps-wrap { margin: 0 0 24px; }
.imt-launch-steps caption { caption-side: top; text-align: left; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-subtle); }
.imt-launch-steps th[scope="col"]:first-child { width: 18%; }
.imt-launch-steps tbody th { background: none; font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.imt-launch-steps tbody th .imt-tl-here { margin-left: 6px; vertical-align: 1px; }
.imt-launch-steps td { line-height: 1.5; }
.imt-launch-steps tr.is-here th, .imt-launch-steps tr.is-here td { background: var(--brand-subtle); }
.imt-launch-steps tr.is-here th { color: var(--brand-fg); box-shadow: inset 3px 0 0 var(--brand); }
.imt-launch-steps td::before { content: none; }
@media (max-width: 640px) {
  .imt-launch-steps thead { display: none; }
  .imt-launch-steps, .imt-launch-steps caption, .imt-launch-steps tbody, .imt-launch-steps tr, .imt-launch-steps th, .imt-launch-steps td { display: block; width: 100%; }
  .imt-launch-steps tr { padding: 8px 0 10px; border-bottom: 1px solid var(--border-subtle); }
  .imt-launch-steps tr:last-child { border-bottom: 0; }
  .imt-launch-steps tbody th { white-space: normal; font-size: 15px; padding: 6px 12px 2px; border-bottom: 0; }
  .imt-launch-steps td { padding: 6px 12px 2px; border-bottom: 0; overflow-wrap: anywhere; }
  .imt-launch-steps td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-tertiary); }
  .imt-launch-steps tr.is-here td::before { color: var(--brand-fg); }
}
/* The run's one count of records and checked items, in words (api/_lib/counts.ts, v0.8.14). */
.imt-counts { margin: 8px 0 16px; font-size: 14px; color: var(--text-secondary); }
/* The same launch in one line, on Plan, Load and Verify. */
.imt-tlc { margin: 0 0 20px; padding: 12px 14px 10px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-subtle); }
.imt-tlc ol { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.imt-tlc li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--text-tertiary); }
.imt-tlc li::before { content: ""; position: absolute; top: 5px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 2px; background: var(--border-divider); }
.imt-tlc li:first-child::before { display: none; }
.imt-tlc li.is-past::before, .imt-tlc li.is-here::before { background: var(--brand); }
.imt-tlc-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-default); background: var(--surface-raised); }
.imt-tlc li.is-past .imt-tlc-dot, .imt-tlc li.is-done .imt-tlc-dot { display: grid; place-items: center; width: 16px; height: 16px; margin-top: -2px; margin-bottom: -2px; background: var(--brand); border-color: var(--brand); color: #fff; }
.imt-tlc li.is-past.is-open .imt-tlc-dot { width: 12px; height: 12px; margin: 0; background: var(--surface-raised); }
.imt-tlc-dot svg { width: 10px; height: 10px; }
/* The count under each label: "6 of 7 done", "Not started" (TW#26936940). */
.imt-tlc-status { font-size: 11px; font-weight: 400; color: var(--text-tertiary); line-height: 1.2; }
.imt-tlc li.is-here .imt-tlc-status { color: var(--brand-fg); }
/* The Launch page the person is looking at is drawn bold, wherever the launch is. */
.imt-tlc li.is-viewing .imt-tlc-label { font-weight: 700; color: var(--text-primary); }
.imt-tlc li.is-here .imt-tlc-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-subtle); animation: imt-tl-pulse-sm 2.4s ease-in-out infinite; }
.imt-tlc li.is-here { color: var(--brand-fg); font-weight: 600; }
.imt-tlc-label { line-height: 1.25; }
.imt-tlc p { margin: 0; }
/* Below 480px six labels cannot share a row and printed over each other. The current step shows
   alone, with where it sits in six and the next step; the others stay for a screen reader. When the
   launch is over and no step is current, the last one shows (TW#26901824). */
.imt-tlc-count, .imt-tlc-next { display: none; }
@media (max-width: 480px) {
  .imt-tlc ol { display: block; }
  .imt-tlc li { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .imt-tlc li.is-here, .imt-tlc ol:not(:has(.is-here)) li:last-child { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-align: left; font-size: 14px; }
  .imt-tlc li::before { display: none; }
  .imt-tlc .imt-tlc-count { display: inline; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
  .imt-tlc .imt-tlc-next { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
  .imt-tlc-next svg { flex: none; }
}
@keyframes imt-tl-pulse-sm { 0%, 100% { box-shadow: 0 0 0 4px var(--brand-subtle); } 50% { box-shadow: 0 0 0 7px var(--brand-subtle); } }
@media (prefers-reduced-motion: reduce) {
  .imt-tl.is-anim .imt-tl-item, .imt-tl.is-anim .imt-tl-item.is-past::after, .imt-tl.is-anim .imt-tl-here, .imt-tl-item.is-here .imt-tl-dot, .imt-tlc li.is-here .imt-tlc-dot { animation: none; }
}
/* A choice of two, such as the nightly sync. */
.imt-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.imt-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: var(--r-button); background: var(--surface-raised); color: var(--text-secondary); font: inherit; text-align: left; cursor: pointer; }
.imt-choice strong { color: var(--text-primary); font-weight: 600; }
.imt-choice span { font-size: 13px; color: var(--text-tertiary); }
.imt-choice:hover:not(:disabled), .imt-choice:focus-visible { border-color: var(--brand); }
.imt-choice.is-on { border-color: var(--brand); background: var(--brand-subtle); box-shadow: inset 0 0 0 1px var(--brand); }
.imt-choice:disabled { cursor: not-allowed; opacity: 0.6; }
/* The To do jobs of one launch phase. */
.imt-jobs-block { margin: 16px 0 20px; }
.imt-jobs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.imt-jobs-head h3 { margin: 0; font-size: 16px; }
.imt-jobs-count { font-size: 13px; font-weight: 400; }
.imt-jobs-head .imt-tools { margin: 0; }
.imt-job-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.imt-job-actions > .imt-explain { flex: 1 1 100%; }
.imt-goahead { margin-top: 10px; }
.imt-goahead .imt-cell { flex: 1; min-width: 200px; font-family: var(--font); }

/* The load as a checklist (TW#26866602): the home page's proof list, with a part in hand and parts to come. */
.imt-loadlist { margin: 4px 0 18px; padding: 8px 18px 4px; border: 1px solid var(--border-divider); border-radius: var(--r-card); background: var(--surface-raised); }
.imt-loadlist-head { margin: 10px 0 2px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
/* A website read in parts (v0.8.14): each part and where it has got. Read ones in the body color, the rest quieter. */
.imt-read-parts { margin: 12px 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.imt-read-parts li.is-read { color: var(--text-primary); }
.imt-read-parts li.is-reading { font-weight: 600; }
.imt-loadlist-head strong { color: var(--text-primary); font-weight: 600; }
.imt-proof-mark.is-todo { border: 2px solid var(--border-divider); }
.imt-proof-mark.is-now::before { opacity: 1; animation: imt-spin 0.9s linear infinite; }
.imt-proof-list li.is-todo .imt-proof-what strong, .imt-proof-list li.is-off .imt-proof-what strong { color: var(--text-secondary); font-weight: 400; }
/* Not chosen: quiet words in the quiet token, and only the mark faded. Fading the whole row took its words under 4.5:1 (TW#26901831). */
.imt-proof-list li.is-off .imt-proof-what strong, .imt-proof-list li.is-off .imt-proof-what small { color: var(--text-tertiary); }
.imt-proof-list li.is-off .imt-proof-mark { opacity: 0.6; }
.imt-proof-list li.is-off .imt-proof-mark { border: 2px dashed var(--border-divider); }
.imt-proof-list li.is-now .imt-proof-what strong { font-weight: 600; }
.imt-made { padding-left: 22px; }
.imt-made li { margin: 10px 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .imt-proof-mark.is-now::before { animation: none; border-top-color: var(--brand); } }
.imt-wait { margin: 14px 0 6px; }
.imt-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.imt-checklist li { display: flex; align-items: flex-start; gap: 0; font-size: 15px; color: var(--text-primary); }
.imt-checklist li > .imt-spinner, .imt-checklist li > .imt-check-icon { margin-top: 2px; }
.imt-checklist li.is-done { color: var(--text-secondary); }
.imt-check-icon { flex: none; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; color: var(--surface-base); }
.imt-check-icon.is-done { background: var(--success-fg); }
.imt-check-icon.is-warn { background: var(--warning-fg, #b45309); }
.imt-wait .imt-progress { margin-top: 0; }

/* What needs you: the failing checks as a short list of problems, each with one thing to do about all of it (TW#26866602). */
.imt-problems { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.imt-problem { display: flex; gap: 14px; padding: 16px 18px; background: var(--surface-raised); border: 1px solid var(--border-divider); border-left: 3px solid var(--danger); border-radius: var(--r-card); }
.imt-problem.is-note { border-left-color: var(--border-divider); }
.imt-problem.is-done { border-left-color: var(--success); }
.imt-problem-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--danger-subtle); color: var(--danger-fg); font-weight: 600; font-size: 13px; }
.imt-problem.is-note .imt-problem-num { background: var(--surface-subtle); color: var(--text-tertiary); }
.imt-problem.is-done .imt-problem-num { background: var(--success-subtle); color: var(--success-fg); }
.imt-problem-num svg { width: 15px; height: 15px; }
.imt-problem-body { min-width: 0; flex: 1; }
.imt-problem-body > strong { color: var(--text-primary); font-size: 15px; }
.imt-problem-body > p { margin: 4px 0 0; }
.imt-problem-body .imt-row { margin-top: 10px; }
.imt-problem-items { list-style: none; margin: 10px 0; padding: 0; border-top: 1px solid var(--border-divider); }
.imt-problem-items li { padding: 10px 2px; border-bottom: 1px solid var(--border-divider); overflow-wrap: anywhere; }
.imt-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.imt-pager .imt-ico { width: 14px; height: 14px; vertical-align: -2px; }
.imt-scroll { max-height: 260px; overflow: auto; padding-right: 6px; }
.imt-shot { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.imt-shot-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* The load and the checks as one card: the head line, the bar, every part, then a closing line (TW#26866602). */
.imt-loadlist .imt-progress { margin: 10px 0 6px; }
.imt-loadlist-head .imt-spinner { vertical-align: -2px; margin-right: 6px; }
.imt-loadlist .imt-note { margin: 10px 0; }
.imt-loadlist .imt-plain-words { margin: 6px 0 0; }
.imt-progress-foot { margin: 6px 0 10px; padding-top: 10px; border-top: 1px solid var(--border-divider); font-size: 13px; }
.imt-progress-card .imt-progress-foot { border-top: 0; padding-top: 0; }
/* The history tables: this run's rows stand out from the runs before it. */
.imt-table tr.is-current td { background: var(--brand-subtle, var(--surface-deep)); }

/* A problem being copied again: how far it has got, in place of its button (TW#26866602). */
.imt-fixing { margin: 10px 0 4px; }
.imt-fixing p { margin: 0; }

/*
 * A word explained where the wizard uses it (term() in migration-tool.js, the imt_glossary
 * partial; TW#26876538). The meaning is always in the page, so a screen reader can reach it, and
 * the eye sees it on hover, on keyboard focus or when tapped. Hidden the way .imt-sr is: one
 * pixel and clipped, never display:none, and never wider than the page while hidden.
 */
.imt-term-wrap { position: relative; display: inline; }
.imt-term { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--text-tertiary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.imt-term:hover { text-decoration-color: var(--brand-fg); }
.imt-term:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.imt-term-tip { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.imt-term-wrap:hover .imt-term-tip, .imt-term-wrap:focus-within .imt-term-tip, .imt-term-wrap.is-open .imt-term-tip {
  width: max-content; max-width: min(320px, calc(100vw - 32px)); height: auto; overflow: visible; clip-path: none; white-space: normal; opacity: 1; pointer-events: auto;
  padding: 8px 10px; border-radius: var(--r-input); background: var(--text-primary); color: var(--surface-raised); box-shadow: 0 6px 20px rgba(20, 28, 50, 0.18);
  font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; letter-spacing: normal; text-transform: none;
}
.imt-term-wrap.is-quiet .imt-term-tip { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* The glossary in the docs, from the same partial. */
.imt-glossary { margin: 20px 0 0; }
.imt-glossary > div { padding: 14px 0; border-top: 1px solid var(--border-subtle); scroll-margin-top: calc(var(--imt-top-h) + 16px); }
.imt-glossary dt { font-weight: 600; color: var(--text-primary); }
.imt-glossary dd { margin: 4px 0 0; color: var(--text-secondary); }
.imt-glossary > div:target { background: var(--brand-subtle); border-radius: var(--r-input); padding-inline: 10px; }

/* Verify as a journey (TW#26898028): the result's next steps, and the To do links on a problem. */
.imt-subhead { margin: 20px 0 8px; font-size: 16px; }
.imt-journey { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.imt-journey li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: 12px; }
.imt-todo-links .imt-linkbtn { text-align: left; }

/* Rolled back, failed and stopped point somewhere (TW#26901830): one card of the ways forward, the recommended one filled. */
.imt-endcard { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-subtle); }
.imt-endcard h3 { margin: 0 0 4px; font-size: 16px; }
.imt-endcard > p { margin: 0 0 12px; color: var(--text-secondary); }
.imt-endcard-ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.imt-endcard-ways li { display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr); align-items: center; gap: 6px 14px; }
.imt-endcard-ways .imt-btn { justify-content: center; width: 100%; }
@media (max-width: 640px) { .imt-endcard-ways li { grid-template-columns: minmax(0, 1fr); } }
/* A substep with nothing to show for this run: greyed like one not reached yet, still there to click. */
.imt-side-subs li.is-empty > * { color: var(--text-tertiary); }
.imt-side-subs li.is-empty.is-current > span { color: var(--text-tertiary); }
.imt-log-entries .imt-acc { margin-bottom: 10px; }

/* Ask about this migration (TW#26898245): a panel beside the page, outside the app's root, so the redraw each poll makes never clears a question being typed. A sheet from the bottom on a phone. */
.imt-ask { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(420px, 100vw); background: var(--surface-raised); border-left: 1px solid var(--border-subtle); box-shadow: -16px 0 40px rgba(20, 28, 50, 0.16); color: var(--text-secondary); }
.imt-ask[hidden] { display: none; }
.imt-ask-short { display: none; }
.imt-ask-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border-subtle); }
.imt-ask-head h2 { margin: 0; font: 600 16px var(--display); color: var(--text-primary); }
.imt-ask-note { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-subtle); font-size: 12px; color: var(--text-tertiary); }
.imt-ask-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.imt-ask-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.imt-ask-entry { display: flex; flex-direction: column; gap: 8px; }
.imt-ask-q { align-self: flex-end; max-width: 88%; margin: 0; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--brand-subtle); color: var(--text-primary); font-size: 14px; overflow-wrap: anywhere; }
.imt-ask-a { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.imt-ask-a > p { margin: 0 0 8px; white-space: pre-wrap; }
.imt-ask-meta { margin: 0 0 6px; font-size: 12px; color: var(--text-tertiary); }
.imt-ask-wait { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.imt-ask-none { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px; background: var(--warning-subtle); color: var(--warning-fg); font-size: 12px; font-weight: 500; }
.imt-ask-cites { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.imt-ask-cite { max-width: 100%; padding: 4px 10px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--surface-raised); color: var(--brand-fg); font: 500 12px var(--font); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.imt-ask-cite:hover { background: var(--brand-subtle); }
a.imt-ask-cite { display: inline-block; text-decoration: none; }
.imt-ask-cite:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-ask-try { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.imt-ask-try .imt-chip { height: auto; min-height: 32px; padding: 6px 12px; text-align: left; }
.imt-ask-error { margin: 0; padding: 10px 20px; color: var(--danger-fg); font-size: 13px; }
.imt-ask-form { display: grid; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border-subtle); }
.imt-ask-form textarea { display: block; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--border-divider); border-radius: var(--r-input); background: var(--surface-raised); color: var(--text-primary); font: 14px/1.5 var(--font); resize: vertical; }
.imt-ask-form textarea:focus { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-ask-form textarea::placeholder { color: var(--text-subtle); }
.imt-ask-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-tertiary); }
.imt-explain { margin-top: 10px; padding: 12px; border-radius: var(--r-button); background: var(--brand-subtle); font-size: 14px; }
.imt-explain p { margin: 0 0 6px; }
.imt-explain .imt-explain-note { margin: 0; font-size: 12px; color: var(--text-tertiary); }
.imt-suggest { margin-top: 10px; }
.imt-suggest .imt-row { margin-top: 8px; }
.imt-suggest-code { margin: 4px 0 8px; padding: 8px; border-radius: var(--r-button); background: var(--surface-raised); border: 1px solid var(--border-subtle); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 1100px) { body.imt-asking .imt-wiz, body.imt-asking .imt-dock-track { margin-right: 420px; } }
@media (max-width: 640px) {
  .imt-ask { top: auto; width: 100vw; height: min(86vh, 100%); border-left: 0; border-top: 1px solid var(--border-subtle); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -16px 40px rgba(20, 28, 50, 0.2); }
  .imt-ask-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .imt-ask-short { display: inline; }
  /* The Ask button sits beside Stop and Close on one line, not above them. */
  .imt-wiz-tools { flex-wrap: nowrap; }
}
/* ---- Push the To do list to a project management tool (TW#26898246) ---- */
.imt-pm-dialog { width: min(560px, calc(100vw - 32px)); }
.imt-pm-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding: 0; }
@media (max-width: 520px) { .imt-pm-cards { grid-template-columns: minmax(0, 1fr); } }
.imt-pm-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 112px; padding: 18px 12px; border: 1px solid var(--border-divider); border-radius: var(--r-card); background: var(--surface-raised); color: var(--text-primary); font: 500 13px var(--font); cursor: pointer; box-shadow: var(--elevation-sm); transition: border-color 120ms, box-shadow 120ms; }
button.imt-pm-card:hover { border-color: var(--brand); }
button.imt-pm-card:focus-visible { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-pm-card.is-soon { cursor: default; background: var(--surface-subtle); border-style: dashed; box-shadow: none; }
.imt-pm-card.is-soon .imt-pm-logo { opacity: 0.6; filter: grayscale(0.4); }
.imt-pm-card-sub { color: var(--brand-fg); }
.imt-pm-card.is-soon .imt-pm-card-sub { color: var(--text-tertiary); }
.imt-pm-logo { display: inline-flex; align-items: center; justify-content: center; height: 32px; max-width: 100%; }
.imt-pm-logo img { display: block; max-width: 100%; height: auto; }
.imt-pm-head { margin: 0 0 12px; }
.imt-pm-head .imt-pm-logo { justify-content: flex-start; height: 24px; }
.imt-pm-head .imt-pm-logo img { width: auto; height: 20px; }
.imt-pm-on-dark { display: none !important; }
:root[data-theme="dark"] .imt-pm-on-light { display: none !important; }
:root[data-theme="dark"] .imt-pm-on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .imt-pm-on-light { display: none !important; }
  :root:not([data-theme="light"]) .imt-pm-on-dark { display: block !important; }
}
/* The task list pushed into before, offered first (TW#26901816). */
.imt-pm-again p { margin: 0; }
.imt-pm-again p + p { margin-top: 6px; }
/* A saved Teamwork key in use (TW#26911466): its site, and the two ways out. */
.imt-pm-saved { padding: 12px 14px; border: 1px solid var(--border-divider); border-radius: var(--r-card); background: var(--surface-subtle); }
.imt-pm-saved-line { margin: 0; overflow-wrap: anywhere; }
.imt-pm-saved-acts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0 0; }
.imt-pm-remember { margin: 0 0 12px; }
.imt-twkey-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Settings stacks one section per connection (TW#26916655): room between them, and a divider the same as
   the menu's between each (Shane, 27 October 2026), the app versions included. */
.imt-twkey + .imt-twkey { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-divider); }
.imt-versions .imt-muted { margin: 0; }
.imt-pm-result { margin: 0 0 4px; padding-left: 18px; max-height: 240px; overflow: auto; }
.imt-pm-result li { margin: 0 0 4px; overflow-wrap: anywhere; }

/* The dialog hangs from near the top instead of sitting in the middle, so a list opening or
   closing never moves the field under the pointer (TW#26901810). */
.imt-pm-dialog { margin-top: min(10vh, 96px); margin-bottom: auto; }
/* Its height counts that margin, so a tall dialog on a short or narrow screen scrolls inside rather
   than running off the bottom with its push button out of reach (TW#26916648, the third field). */
.imt-pm-dialog:modal { max-height: calc(100vh - min(10vh, 96px) - 16px); max-height: calc(100dvh - min(10vh, 96px) - 16px); }

/* ---- The one dropdown (TW#26911465) ----
   Every choice from a list, built by dropdown() in migration-tool.js: a button the size of a field,
   its value on the left and its arrow on the right, each kept 12px from the edge (the inputs' own
   12px), so the arrow never touches the border. The list floats over the page, fixed to the window
   and placed by the script, so a table that scrolls sideways or a dialog never clips it. */
.imt-dd { position: relative; min-width: 0; }
.imt-dd-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border-divider); border-radius: var(--r-input); background: var(--surface-raised); color: var(--text-primary); font: 14px var(--font); text-align: left; cursor: pointer; }
.imt-dd-btn:hover { border-color: var(--border-strong); }
.imt-dd-btn:focus-visible, .imt-dd.is-open .imt-dd-btn { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 2px; }
.imt-dd-val { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imt-dd-val.is-placeholder { color: var(--text-subtle); }
.imt-dd-chev { flex: none; display: grid; place-items: center; width: 18px; height: 18px; color: var(--text-tertiary); }
.imt-dd-chev .imt-ico { width: 18px; height: 18px; transition: transform 160ms var(--ease); }
.imt-dd-btn:hover .imt-dd-chev, .imt-dd.is-open .imt-dd-chev { color: var(--text-primary); }
.imt-dd.is-open .imt-dd-chev .imt-ico { transform: rotate(180deg); }
.imt-dd-btn:disabled, .imt-dd-btn[aria-disabled="true"] { background: var(--surface-subtle); color: var(--text-tertiary); border-color: var(--border-divider); cursor: not-allowed; }
.imt-dd-btn:disabled .imt-dd-chev, .imt-dd-btn[aria-disabled="true"] .imt-dd-chev { opacity: 0.5; color: var(--text-tertiary); }
/* The 32px size, for a table cell: 10px each side, still the same on both. */
.imt-dd-small .imt-dd-btn { height: 32px; padding: 0 10px; font-size: 13px; }
.imt-dd-small .imt-dd-chev, .imt-dd-small .imt-dd-chev .imt-ico { width: 16px; height: 16px; }
.imt-dd-held { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.imt-dd-pop { position: fixed; z-index: 1000; display: flex; flex-direction: column; padding: 4px; border: 1px solid var(--border-divider); border-radius: var(--r-input); background: var(--surface-raised); box-shadow: 0 8px 20px rgba(20, 28, 50, 0.12), var(--elevation-sm); }
.imt-dd-pop[hidden] { display: none; }
.imt-dd-search { position: relative; flex: none; padding: 4px 4px 8px; margin: 0 0 4px; border-bottom: 1px solid var(--border-subtle); }
.imt-dd-search .imt-ico { position: absolute; top: 14px; left: 16px; width: 16px; height: 16px; color: var(--text-tertiary); pointer-events: none; }
.imt-dd .imt-dd-q { width: 100%; height: 36px; padding: 0 12px 0 36px; border: 1px solid var(--border-divider); border-radius: var(--r-input); background: var(--surface-raised); color: var(--text-primary); font: 14px var(--font); }
.imt-dd .imt-dd-q::placeholder { color: var(--text-subtle); }
.imt-dd .imt-dd-q:focus { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 1px; }
.imt-dd-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.imt-dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 7px 10px; border-radius: 4px; font-size: 14px; line-height: 1.4; color: var(--text-primary); cursor: pointer; }
.imt-dd-opt[hidden], .imt-dd-none[hidden] { display: none; }
.imt-dd-name { min-width: 0; overflow-wrap: anywhere; }
/* A row's icon and visible tag (TW#26941700): the icon before the name, "(private)" after it, quieter. */
.imt-dd-lead { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px; color: var(--text-secondary); }
.imt-dd-opt .imt-dd-lead .imt-ico, .imt-dd-val .imt-dd-lead .imt-ico { visibility: visible; width: 16px; height: 16px; color: inherit; }
.imt-dd-opt { justify-content: flex-start; }
.imt-dd-opt > .imt-ico:last-child { margin-left: auto; }
.imt-dd-tag { flex: none; margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--text-secondary); white-space: nowrap; }
.imt-dd-val { display: flex; align-items: center; }
.imt-dd-val > .imt-dd-lead { margin-right: 8px; }
/* Create a new repository: pinned at the top whatever is searched, brand color, a plus, a divider under it. */
.imt-dd-pin { position: sticky; top: 0; z-index: 1; background: var(--surface-raised); color: var(--brand-fg); font-weight: 600; border-radius: 4px 4px 0 0; border-bottom: 1px solid var(--border-divider); margin-bottom: 4px; }
.imt-dd-pin .imt-dd-lead { color: var(--brand-fg); }
.imt-dd-pin:hover, .imt-dd-pin[aria-selected="true"] { background: var(--brand-subtle); }
/* A row in a tree (TW#26916648): indented by its depth, the names above it on a quieter line under it. */
.imt-dd-stack { display: flex; flex-direction: column; min-width: 0; }
.imt-dd-path { font-size: 12px; line-height: 1.35; color: var(--text-secondary); overflow-wrap: anywhere; }
.imt-dd-d1 { padding-left: 26px; }
.imt-dd-d2 { padding-left: 42px; }
.imt-dd-d3 { padding-left: 58px; }
.imt-dd-d4 { padding-left: 74px; }
.imt-dd-d5 { padding-left: 90px; }
.imt-dd-d6 { padding-left: 106px; }
@media (max-width: 480px) {
  .imt-dd-d1 { padding-left: 20px; } .imt-dd-d2 { padding-left: 30px; } .imt-dd-d3 { padding-left: 40px; }
  .imt-dd-d4 { padding-left: 50px; } .imt-dd-d5 { padding-left: 60px; } .imt-dd-d6 { padding-left: 70px; }
}
.imt-dd-opt:hover { background: var(--surface-base); }
.imt-dd-opt[aria-selected="true"] { background: var(--brand-subtle); box-shadow: inset 2px 0 0 var(--brand); }
.imt-dd-opt.is-chosen { font-weight: 600; }
.imt-dd-opt .imt-ico { flex: none; width: 16px; height: 16px; color: var(--brand-fg); visibility: hidden; }
.imt-dd-opt.is-chosen .imt-ico { visibility: visible; }
.imt-dd-opt mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 2px; }
.imt-dd-none { padding: 8px 10px; font-size: 13px; color: var(--text-tertiary); cursor: default; }
@media (prefers-reduced-motion: reduce) { .imt-dd-chev .imt-ico { transition: none; } }

/* ---- A held button says why (TW#26901829) ----
   A button that cannot be pressed yet is aria-disabled, not disabled, so it can still be reached and
   says why on a muted line beside it (heldButton in migration-tool.js). It looks as a disabled one
   does, hovered or not, and its line moves when it is pressed, as the dock's reason does. */
.imt-btn[aria-disabled="true"]:hover { background: var(--brand); }
.imt-btn-ghost[aria-disabled="true"]:hover { background: var(--surface-raised); border-color: var(--border-divider); }
.imt-btn-quiet[aria-disabled="true"]:hover { background: transparent; }
.imt-choice[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; background: var(--surface-subtle); }
.imt-choice[aria-disabled="true"] strong { color: var(--text-tertiary); }
.imt-choice[aria-disabled="true"]:not(.is-on):hover { border-color: var(--border-divider); box-shadow: none; }
.imt-held { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 100%; vertical-align: middle; }
.imt-held-why { font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
p.imt-held-why { margin: 8px 0 0; }
.imt-held-line { margin: 8px 0; }
.imt-step-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 260px; text-align: right; }
@media (max-width: 800px) { .imt-step-acts { align-items: flex-start; text-align: left; flex: none; } }
.imt-held-why.is-nudged, .imt-pager .is-nudged, #imt-pick-bad.is-nudged, #imt-ask-left.is-nudged, #imt-nightly-live.is-nudged { animation: imt-nudge 600ms var(--ease); color: var(--text-primary); }
@media (prefers-reduced-motion: reduce) { .imt-held-why.is-nudged, .imt-pager .is-nudged, #imt-pick-bad.is-nudged, #imt-ask-left.is-nudged, #imt-nightly-live.is-nudged { animation: none; text-decoration: underline; } }

/*
 * Forced-colors mode (Windows High Contrast and the like) replaces the page's colors and drops box
 * shadows, which is how the old focus glow vanished there. The outline is drawn in the system's
 * highlight color, on every control, whatever its own rule says (TW#26907653).
 */
@media (forced-colors: active) {
  :focus-visible, .imt-option:has(input:focus-visible), input:focus, select:focus, textarea:focus, .imt-skip:focus { outline: 2px solid Highlight !important; outline-offset: 2px !important; }
}
/* A nightly sync paused on a key, under the status on the list (v0.8.5): long words wrap. */
.imt-pill.imt-runs-paused { white-space: normal; margin-top: 4px; }

/* The source pre-flight on What it holds (TW#26916651): a line each, pass, warning or blocker. */
.imt-preflight { margin: 18px 0 22px; }
.imt-preflight h3 { font-size: 16px; margin: 0 0 8px; }
.imt-preflight-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.imt-preflight-line { padding: 10px 14px; border: 1px solid var(--brand-border); border-left-width: 4px; border-radius: var(--r-button); }
.imt-preflight-line.is-pass { border-left-color: var(--success); }
.imt-preflight-line.is-warning { border-left-color: var(--warning, #f59e0b); background: color-mix(in srgb, var(--warning-subtle) 35%, transparent); }
.imt-preflight-line.is-blocker { border-left-color: var(--danger, #dc2626); background: color-mix(in srgb, var(--danger-subtle) 45%, transparent); }
.imt-preflight-line p { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.imt-preflight-todo { font-weight: 600; }
/* The second option under "Hold emails and outside connections until cutover" (TW#26916651). */
.imt-check-line.imt-check-sub { margin-left: 28px; }

/* The read's heartbeat: when the tool last moved, so a long part never looks frozen (TW#26916651). */
.imt-heartbeat { margin: 0.25rem 0 0.5rem; font-size: 0.875rem; }

/* Transform step layout, needs you first (Shane, 24 October 2026). */
.imt-stats-step { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 20px; }
@media (max-width: 640px) { .imt-stats-step { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.imt-stat.is-warn { border-color: var(--warning); background: var(--warning-subtle); }
.imt-stat.is-warn b, .imt-stat.is-warn span { color: var(--warning-fg); }
.imt-list-tools { flex-wrap: wrap; }
.imt-search { position: relative; flex: 1 1 240px; max-width: 360px; display: block; }
.imt-search .imt-filter, .imt-list-tools .imt-search .imt-filter { width: 100%; padding-left: 32px; }
.imt-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); pointer-events: none; }
@media (max-width: 640px) { .imt-search { max-width: none; flex-basis: 100%; } .imt-list-tools [data-csv] { margin-left: 0; } }
.imt-sec-head { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 6px; font-size: 16px; }
.imt-ready > summary { cursor: pointer; list-style-position: inside; }
.imt-ready > summary .imt-sec-head { margin: 16px 0 8px; }
.imt-tx-tables tr.is-need input[list] { border-color: var(--warning); }
.imt-how { border-top: 1px solid var(--border-subtle); margin-top: 24px; padding-top: 14px; color: var(--text-tertiary); font-size: 14px; }
.imt-how > summary { cursor: pointer; color: var(--text-primary); font-weight: 600; }
.imt-bulk { margin: 0; }
.imt-na { cursor: help; text-decoration: underline dotted; }

/* The wizard uses the whole width (Shane, 24 October 2026): the side list at the left gutter, the step
   card filling the rest. Prose keeps a readable line; tables, stats and toolbars do not. */
.imt-main:has(.imt-wiz) { max-width: none; }
.imt-app:not(.imt-app-list) { max-width: none; }
.imt-dock-track { max-width: none; }
.imt-panel p, .imt-panel .imt-note { max-width: 75ch; }
.imt-panel .imt-table p, .imt-panel .imt-list-tools, .imt-panel .imt-stats { max-width: none; }
.imt-sub { max-width: 75ch; }
/* Tables breathe: short values never wrap, long text wraps, and a wide table scrolls in its own box. */
.imt-table .imt-pill, .imt-table td.num, .imt-table th.num, .imt-table th { white-space: nowrap; }
@media (min-width: 961px) { .imt-table td { min-width: 96px; } }
.imt-table td:has(> input[type="checkbox"]:only-child), .imt-table th:has(> .imt-bulk) { min-width: 0; width: 1%; }
@media (min-width: 961px) { .imt-table td input.imt-cell, .imt-table td input[list] { min-width: 200px; } }
.imt-table details summary { white-space: nowrap; }
.imt-table details code { display: block; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 961px) { .imt-table td:first-child { min-width: 180px; } }
.imt-pill-note { font-size: 12px; font-weight: 600; color: var(--warning-fg); white-space: nowrap; }
.imt-nowrap { white-space: nowrap; }
.imt-hist-group { margin: 16px 0 4px; font-size: 14px; }
/* A newer version of the tool is live (assets/imt-update-banner.js): a bar over the foot of the window.
   It is fixed, not part of the page flow, so it appears without pushing the header or the page down under the cursor. */
.imt-update { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(20, 28, 50, 0.24); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; background: var(--text-primary); color: var(--surface-raised); font-size: 14px; }
.imt-update-text { flex: 1 1 280px; margin: 0; }
.imt-update a { color: inherit; text-decoration: underline; }
.imt-update-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.imt-update .imt-update-close { padding: 2px 6px; border: 0; background: none; color: inherit; opacity: 0.8; cursor: pointer; font-size: 18px; line-height: 1; }
.imt-update .imt-update-close:hover { opacity: 1; }

/* Passwords on the Users step (0.8.11): a default shown as a row, with a switch. */
.imt-need-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--border-subtle);border-radius:8px;margin:12px 0}
.imt-switch{position:relative;display:inline-block;flex:0 0 auto;width:40px;height:22px}
.imt-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.imt-switch span{position:absolute;inset:0;border-radius:11px;background:var(--text-subtle);transition:background .15s}
.imt-switch span::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface-raised);transition:transform .15s}
.imt-switch input:checked+span{background:var(--brand)}
.imt-switch input:checked+span::after{transform:translateX(18px)}
.imt-switch input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.imt-switch input:disabled+span{opacity:.5}
/* v0.8.11: each forms review item reads as one block, its note and button tight under its own line. */
.imt-form-review li { margin: 0 0 16px; }
.imt-form-review li > .imt-row { margin: 6px 0 0; padding: 0; }
.imt-form-review li > .imt-row > * { margin-top: 0; }
/* v0.8.11: an input with a suggestion list draws no dropdown arrow; the suggestions still appear as you type. */
input[list]::-webkit-calendar-picker-indicator, input[list]::-webkit-list-button { display: none !important; opacity: 0; }
input[list] { appearance: none; -webkit-appearance: none; }
/* Test accounts (v0.8.11): a row per account, with its sign-in on the old site. */
.imt-ok-text { color: var(--success-fg); font-weight: 600; }
.imt-bad-text { color: var(--danger-fg); font-weight: 600; }
.imt-accounts td:last-child { white-space: nowrap; }
/* "Updating the plan..." appears only once an update has taken about a second (TW#26916651). */
.imt-plan-updating { opacity: 0; animation: imt-plan-updating-in 0.2s ease-out 1s forwards; }
@keyframes imt-plan-updating-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .imt-plan-updating { animation: none; opacity: 0; } .imt-plan-updating { animation: imt-plan-updating-in 0s linear 1s forwards; } }
/* Very wide screens give the list the room: addresses and people stay on one line. A narrower window keeps
   the wrapping so nothing runs past the table's edge. */
@media (min-width: 1600px) { .imt-runs code.imt-host, .imt-runs td.imt-runs-fold, .imt-runs td.imt-runs-by, .imt-runs td.imt-runs-by span { white-space: nowrap; overflow-wrap: normal; } .imt-runs td.imt-runs-by { max-width: none; } .imt-runs td.imt-runs-fold wbr, .imt-runs td.imt-runs-by wbr { display: none; } }
/* From and To share one Migration column, stacked (TW#26936917), which gives Environment, Kind and Records
   back from 1280px beside the 232px sidebar. Below that, down to a phone, the list still drops those three:
   the migration's own page shows all three, and a phone's card layout lists them. */
@media (min-width: 641px) and (max-width: 1599px) {
  .imt-table.imt-runs th, .imt-table.imt-runs td { padding-left: 8px; padding-right: 8px; }
  .imt-table.imt-runs td { min-width: 0; }
  .imt-runs td.imt-runs-where { min-width: 112px; }
  .imt-runs td.imt-runs-pair { max-width: 160px; }
  .imt-runs td.imt-nowrap { white-space: normal; min-width: 52px; }
  .imt-runs td.imt-runs-by { max-width: none; }
  .imt-runs td.imt-runs-by > span { display: block; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .imt-runs td.imt-runs-by wbr { display: none; }
}
@media (min-width: 641px) and (max-width: 1279px) {
  .imt-runs-env, .imt-runs thead th:nth-child(4), .imt-runs thead th:nth-child(5), .imt-runs thead th:nth-child(9),
  .imt-runs tr.imt-runs-row > td:nth-child(5), .imt-runs tr.imt-runs-row > td:nth-child(9) { display: none; }
}

/* ---- A row that is saving: only that row shows it (v0.8.14) ---- */
.imt-job.is-saving, .imt-cutover li.is-saving { animation: imt-row-pulse 1.4s ease-in-out infinite; }
@keyframes imt-row-pulse { 0%, 100% { background-color: var(--surface-raised); } 50% { background-color: var(--brand-subtle); } }
.imt-job-box .imt-spinner { position: absolute; inset: 0; width: 16px; height: 16px; margin: 0; box-sizing: border-box; pointer-events: none; }
.imt-job.is-saving .imt-job-box input { opacity: 0; }
.imt-job-state { margin-left: 4px; }
.imt-job-state.imt-bad-text { font-weight: 500; }
.imt-job.has-error, .imt-cutover li.has-error { border-left: 3px solid var(--danger); }
.imt-job-tick { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 3px; background: var(--brand); color: #fff; pointer-events: none; animation: imt-pop 300ms var(--ease) both, imt-job-tick-out 300ms 600ms ease forwards; }
.imt-job-tick svg { width: 12px; height: 12px; }
.imt-job-tick path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: imt-draw 260ms 120ms var(--ease) forwards; }
.imt-job-tick-inline { position: static; display: inline-grid; width: 14px; height: 14px; vertical-align: -2px; border-radius: 50%; background: var(--success); }
.imt-job-tick-inline svg { width: 10px; height: 10px; }
.imt-job.is-saved, .imt-cutover li.is-saved { animation: imt-row-saved 900ms ease-out both; }
@keyframes imt-job-tick-out { to { opacity: 0; } }
@keyframes imt-row-saved { from { background-color: var(--success-subtle); } to { background-color: var(--surface-raised); } }
@media (prefers-reduced-motion: reduce) {
  .imt-job.is-saving, .imt-cutover li.is-saving, .imt-job.is-saved, .imt-cutover li.is-saved { animation: none; }
  .imt-job.is-saving, .imt-cutover li.is-saving { background-color: var(--brand-subtle); }
  .imt-job-tick, .imt-job-tick path { animation: none; stroke-dashoffset: 0; }
  .imt-job-box .imt-spinner { animation-duration: 3s; }
}

/* A problem's items by why they failed, each with its own Copy again (TW#26941698). */
.imt-causes { margin-top: 10px; }
.imt-causes p { margin: 0 0 4px; }
.imt-causes ul { display: grid; gap: 0; margin: 0; padding: 0; }
.imt-causes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 6px 0; border-top: 1px solid var(--border-divider); }
.imt-causes li:last-child { border-bottom: 1px solid var(--border-divider); }
/* "Changed since the last sync" on a sync's checks (TW#26941698). */
.imt-pill.imt-since { margin-left: 6px; vertical-align: middle; }
.imt-since-line { display: block; margin-top: 2px; }

/* "Why did this fail?": a check's link to its entry in the docs (TW#26941698). */
.imt-why-link { font: 500 13px var(--font); color: var(--brand-fg); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.imt-why-link:hover { text-decoration-thickness: 2px; }

/* "Needs you: 4" beside a migration on the list (TW#26941698). */
.imt-pill.imt-runs-needs { margin-top: 4px; white-space: nowrap; }

/* The copy icon (TW#26941698): a square icon-only button whose name shows as a tip after half a second. */
.imt-copy { position: relative; width: 28px; min-width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; vertical-align: middle; }
.imt-copy[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 70; transform: translateX(-50%); padding: 5px 10px; border-radius: var(--r-input); background: var(--text-primary); color: var(--surface-raised); font: 500 12px/1.3 var(--font); white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms 0s, visibility 0s 120ms; }
.imt-copy[data-tip]:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; transition: opacity 120ms 0.5s, visibility 0s 0.5s; }
.imt-th-tip { position: relative; cursor: help; }
.imt-th-tip[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 70; width: max-content; max-width: 260px; padding: 5px 10px; border-radius: var(--r-input); background: var(--text-primary); color: var(--surface-raised); font: 500 12px/1.3 var(--font); white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms 0s, visibility 0s 120ms; }
.imt-th-tip[data-tip]:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; transition: opacity 120ms 0.5s, visibility 0s 0.5s; }
@media (max-width: 640px) { .imt-copy[data-tip]::after { left: auto; right: 0; transform: none; } }
/* People: the email and the role share a row, the role in a column of its own, so a role never drops under its email. */
.imt-people td[data-label="Person"] { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  /* A phone: each person is a card. The email is its own line, wrapping if long; everything else is a labeled line under it. */
  .imt-people, .imt-people tbody, .imt-people tr, .imt-people td { display: block; width: 100%; box-sizing: border-box; }
  .imt-people thead { display: none; }
  .imt-people tr { padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
  .imt-people tr:last-child { border-bottom: 0; }
  .imt-people td { padding: 4px 12px; border-bottom: 0; white-space: normal; }
  .imt-people td[data-label="Person"] { font-weight: 600; color: var(--text-primary); }
  .imt-people td[data-label]:not([data-label="Person"])::before { content: attr(data-label) ": "; font-size: 12px; color: var(--text-tertiary); }
  .imt-people td[data-label="Role"]::before { display: block; margin-bottom: 2px; }
}

/* The only owner's role: one line, the height of the other rows' role lists, held. The reason is a line under the table. */
.imt-role-fixed { display: inline-flex; align-items: center; height: 32px; min-width: 128px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--border-divider); border-radius: var(--r-input); background: var(--surface-subtle); color: var(--text-tertiary); font: 13px var(--font); cursor: not-allowed; }
.imt-role-fixed:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
p.imt-sole-owner { margin: 4px 0 14px; }
.imt-people td { vertical-align: middle; }
@media (min-width: 641px) { .imt-people td[data-label="Invitation"], .imt-people td[data-label="Last signed in"] { white-space: nowrap; } }
.imt-ws-id .imt-copy { margin-left: 8px; }
/* Module versions on Destination: three columns sized to their content, no empty gap (TW#26941700). The wrap scrolls inside itself on a phone. */
.imt-table.imt-mod-table { width: auto; }
.imt-table.imt-mod-table td, .imt-table.imt-mod-table th { min-width: 0; padding-right: 28px; white-space: nowrap; }
.imt-table.imt-mod-table td:last-child, .imt-table.imt-mod-table th:last-child { padding-right: 12px; }
.imt-mod-versions .imt-table-wrap { display: inline-block; max-width: 100%; vertical-align: top; }
.imt-table.imt-mod-table code.imt-muted { color: var(--text-secondary); }

/* A checkbox that saves on click says so beside itself (TW#26941700). */
.imt-tick-state { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--text-secondary); white-space: nowrap; }
.imt-tick-state:empty { margin-left: 0; }
.imt-tick-state.imt-bad-text { color: var(--danger-fg); font-weight: 500; white-space: normal; }
.imt-tick-state .imt-spinner { margin-right: 6px; }
.imt-check-line.is-saving, .imt-need-row.is-saving { cursor: progress; }
.imt-check-line.is-saving input:disabled { opacity: 1; }
