/* MigrateX control panel
   Identity: every screen is about one thing — a route from a SOURCE tenant to a TARGET tenant.
   Source is always violet, target is always mint, and the gradient between them means "in transit". */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Variable.woff2") format("woff2-variations"),
       url("../fonts/PlusJakartaSans-Variable.woff2") format("woff2"),
       url("../fonts/PlusJakartaSans-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --paper: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --line: #e2e5f1;
  --line-strong: #cdd2e6;
  --text: #0d1230;
  --muted: #565d80;
  --faint: #8b91ae;

  --source: #4b4ded;
  --source-ink: #3133c4;
  --source-soft: #ececfe;
  --target: #0a9c7a;
  --target-ink: #067a5f;
  --target-soft: #e0f6f0;
  --amber: #b86e00;
  --amber-soft: #fdf1da;
  --red: #cf3238;
  --red-soft: #fdebec;

  --side-bg: #0d1230;
  --side-line: #232a55;
  --side-text: #aeb4d6;
  --side-strong: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 18, 48, .04), 0 10px 28px -14px rgba(13, 18, 48, .16);
  --focus: 0 0 0 3px rgba(75, 77, 237, .35);
  --transit: linear-gradient(90deg, var(--source), var(--target));
  --brand-grad: linear-gradient(90deg, #1a56ff, #22d3ee);
}

[data-theme="dark"] {
  --paper: #080b1e;
  --surface: #10152f;
  --surface-2: #0c1027;
  --line: #222a52;
  --line-strong: #323c70;
  --text: #e9ebfa;
  --muted: #a1a8cc;
  --faint: #6f779f;

  --source: #8a8cff;
  --source-ink: #a9abff;
  --source-soft: #1c1f58;
  --target: #2ed3ae;
  --target-ink: #5be3c4;
  --target-soft: #0b3a33;
  --amber: #f0b04a;
  --amber-soft: #3a2a0c;
  --red: #ff7a7f;
  --red-soft: #3d1518;

  --side-bg: #060817;
  --side-line: #1a2045;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
  --focus: 0 0 0 3px rgba(138, 140, 255, .45);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
a { color: var(--source-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
.icon { flex: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: var(--source); color: #fff; }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.mono { font-family: var(--mono); font-size: .87em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--source); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ── Shell ────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 16px;
  background: var(--side-bg); color: var(--side-text);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; color: var(--side-strong); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.035em; }
.brand__mark { width: 34px; height: 32px; flex: none; }
.brand__x { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand--ink { color: var(--text); padding: 0; }

.side__label { padding: 16px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6d74a0; }
.side__link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--side-text); text-decoration: none; font-weight: 500;
  transition: background .15s, color .15s;
}
.side__link > svg { width: 18px; height: 18px; flex: none; opacity: .75; transition: opacity .15s, transform .15s; }
.side__link:hover { background: rgba(255, 255, 255, .06); color: var(--side-strong); }
.side__link:hover > svg { opacity: 1; }
.side__link.is-active { background: linear-gradient(90deg, rgba(26, 86, 255, .34), rgba(34, 211, 238, .12)); color: #fff; font-weight: 600; }
.side__link.is-active > svg { opacity: 1; color: #67e8f9; }
.side__link:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
.side__badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--target); color: #04241c; font-size: 12px; font-weight: 700; text-align: center; }
.side__foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--side-line); font-size: 12.5px; color: #7c83ad; }
.side__org { color: var(--side-strong); font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--muted); }
.top__crumbs a { color: var(--muted); text-decoration: none; }
.top__crumbs a:hover { color: var(--text); }
.top__crumbs strong { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top .top__menu-btn { display: none; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.pill:hover { border-color: var(--line-strong); }
.pill .icon { color: var(--target); }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
[data-theme="dark"] .theme-toggle .icon--moon, :root:not([data-theme="dark"]) .theme-toggle .icon--sun { display: none; }

.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--source-soft); color: var(--source-ink); font-size: 13px; font-weight: 700; }
.avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.menu__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__who b { display: block; font-weight: 600; }
.menu__who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; color: var(--text); cursor: pointer; }
.menu__item:hover { background: var(--surface-2); }

/* Fluid panel body: the content stretches with the window and keeps a 10% gutter on both sides */
.main { --gutter: 10%; }
/* The 10% gutters are for wide screens; between the phone layout and ~1400px they would squeeze tables off the page. */
@media (max-width: 1400px) { .main { --gutter: 4%; } }
@media (max-width: 1100px) { .main { --gutter: 20px; } }
.page { width: 100%; padding: 30px var(--gutter) 64px; }
.page--narrow > * { max-width: 760px; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.page__title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.page__lead { margin-top: 6px; max-width: 62ch; color: var(--muted); }
.page__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Building blocks ──────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card__title { font-size: 16px; font-weight: 700; }
.card__body { padding: 18px 22px 22px; }
.card__body--flush { padding: 8px 0 6px; }
.card__foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: 13.5px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid--2 > .field { align-content: start; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.grid--wide { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; align-content: start; }
.stack--sm { gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.section-title { margin: 34px 0 14px; font-size: 18px; }
.mt-lg { margin-top: 28px; }
.mt { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--source); color: #fff; }
.btn--primary:hover { background: var(--source-ink); }
[data-theme="dark"] .btn--primary { color: #0a0d2a; }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--surface); border-color: var(--red); color: var(--red); }
.btn--danger:hover { background: var(--red-soft); }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.link-btn { padding: 0; border: 0; background: none; color: var(--source-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; }
.field + .field, .field + .field-row, .field-row + .field { margin-top: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field-row > .field { margin-top: 0; }
.field-row + .field-row { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--source); }
.field-row > .check { align-self: end; padding-bottom: 12px; }
.field__label { font-weight: 600; font-size: 13.5px; }
.field__input {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: var(--faint); }
.field__input:hover { border-color: var(--faint); }
.field__input:focus { outline: none; border-color: var(--source); box-shadow: var(--focus); }
.field__input[aria-invalid="true"] { border-color: var(--red); }
.field__input--code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
select.field__input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; font-weight: 600; color: var(--red); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.inline-form { display: inline; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; line-height: 1.5; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--plain::before { display: none; }
.chip--ok { background: var(--target-soft); color: var(--target-ink); border-color: transparent; }
.chip--source { background: var(--source-soft); color: var(--source-ink); border-color: transparent; }
.chip--warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip--err { background: var(--red-soft); color: var(--red); border-color: transparent; }

.notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 13px 16px; margin-bottom: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.notice .icon { margin-top: 2px; }
.notice--success { border-color: transparent; background: var(--target-soft); color: var(--target-ink); }
.notice--error { border-color: transparent; background: var(--red-soft); color: var(--red); }
.notice--info { border-color: transparent; background: var(--source-soft); color: var(--source-ink); }
.notice--warn { border-color: transparent; background: var(--amber-soft); color: var(--amber); }
.notice a { color: inherit; font-weight: 700; }
.notice__close { margin-left: auto; padding: 2px; border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; }
.notice__close:hover { opacity: 1; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 18px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table select.field__input { min-width: 124px; padding: 7px 30px 7px 10px; font-size: 14px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who b { display: block; font-weight: 600; }
.who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.delta-plus { color: var(--target-ink); font-weight: 700; }
.delta-minus { color: var(--red); font-weight: 700; }

.empty { padding: 44px 24px; text-align: center; }
.empty__art { width: 220px; margin: 0 auto 18px; }
.empty h3 { font-size: 18px; }
.empty p { max-width: 46ch; margin: 8px auto 20px; color: var(--muted); }

.stat { padding: 18px 20px; }
.stat__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat__value { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__note { margin-top: 4px; font-size: 13px; color: var(--muted); }

.kv { display: grid; gap: 2px; font-size: 14px; }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { margin-bottom: 12px; font-weight: 500; overflow-wrap: anywhere; }
.kv dd:last-child { margin-bottom: 0; }

.feed li { display: flex; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed__dot { width: 8px; height: 8px; margin-top: 7px; flex: none; border-radius: 50%; background: var(--line-strong); }
.feed__dot--tenant { background: var(--target); }
.feed__dot--project { background: var(--source); }
.feed__dot--auth { background: var(--faint); }
.feed__dot--warn { background: var(--amber); }
.feed__dot--err { background: var(--red); }
.feed__dot--admin, .feed__dot--license { background: var(--amber); }
.feed time { display: block; font-size: 12.5px; color: var(--faint); }

.pager { display: flex; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); }

/* ── Signature: the route ─────────────────────────────────────────── */
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 200px) minmax(0, 1fr); align-items: stretch; }
.route__node { position: relative; overflow: hidden; padding: 20px 22px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.route__node::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--line-strong); }
.route__node--source.is-on::before { background: var(--source); }
.route__node--target.is-on::before { background: var(--target); }
.route__side { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.route__side .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.route__node--source .eyebrow { color: var(--source-ink); }
.route__node--target .eyebrow { color: var(--target-ink); }
.route__name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.route__domain { margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.route__meta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; font-size: 13.5px; }
.route__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.route__empty { color: var(--muted); margin-bottom: 16px; }

.route__track { position: relative; display: flex; align-items: center; min-height: 40px; }
.route__rail {
  position: relative; width: 100%; height: 4px;
  background: var(--line-strong);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 18px);
  mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 18px);
}
.route__track::after { content: ""; position: absolute; right: -1px; top: 50%; width: 11px; height: 11px; border-top: 4px solid var(--line-strong); border-right: 4px solid var(--line-strong); border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.route--half .route__rail { background: linear-gradient(90deg, var(--source), var(--line-strong) 70%); }
.route--live .route__rail { background: var(--transit); animation: flow 1.1s linear infinite; }
.route--live .route__track::after { border-color: var(--target); }
.route__caption { position: absolute; left: 0; right: 0; top: calc(50% + 14px); text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); }
.route--live .route__caption { color: var(--target-ink); }
@keyframes flow { to { -webkit-mask-position: 18px 0; mask-position: 18px 0; } }

.route-mini { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13.5px; }
.route-mini__end { display: flex; align-items: center; gap: 8px; min-width: 0; }
.route-mini__end--target { justify-content: flex-end; text-align: right; }
.route-mini__end span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.route-mini__end.is-off span { font-weight: 500; color: var(--faint); }
.route-mini__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); }
.route-mini__end--source:not(.is-off) .route-mini__dot { border-color: var(--source); background: var(--source); }
.route-mini__end--target:not(.is-off) .route-mini__dot { border-color: var(--target); background: var(--target); }
.route-mini .route__rail { height: 3px; }

.project-card { display: block; padding: 20px 22px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.project-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.project-card__name { font-size: 17px; font-weight: 700; }
.project-card__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.workload { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* ── Journey (the ordered steps of a migration) ────────────────────── */
.journey { counter-reset: step; }
.journey__step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; counter-increment: step; }
.journey__step:last-child { padding-bottom: 0; }
.journey__step::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.journey__step:last-child::before { display: none; }
.journey__step.is-done::before { background: var(--target); }
.journey__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.journey__num::after { content: counter(step); }
.is-done > .journey__num { border-color: var(--target); background: var(--target); color: #fff; }
.is-done > .journey__num::after { content: "✓"; }
.is-current > .journey__num { border-color: var(--source); color: var(--source-ink); box-shadow: 0 0 0 4px var(--source-soft); }
.is-locked > .journey__num { border-style: dashed; }
.journey__title { padding-top: 5px; font-size: 15px; font-weight: 600; }
.is-locked .journey__title { color: var(--muted); font-weight: 500; }
.journey__text { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.journey__soon { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* ── Project tabs, progress, findings ─────────────────────────────── */
.tabs { display: flex; gap: 4px; margin: -8px 0 26px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.tabs__link:hover { color: var(--text); }
.tabs__link.is-active { color: var(--text); border-bottom-color: var(--source); }
.tabs__count { padding: 0 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--transit); border-radius: 99px; transition: width .6s ease; }
progress::-moz-progress-bar { background: var(--target); border-radius: 99px; }
progress.is-failed::-webkit-progress-value { background: var(--red); }
progress.is-failed::-moz-progress-bar { background: var(--red); }
.progress-cell { min-width: 230px; }
.progress-cell__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-big { height: 12px; }

.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; }
.score__num { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.score__num small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.score--good .score__num { color: var(--target-ink); }
.score--fair .score__num { color: var(--amber); }
.score--poor .score__num { color: var(--red); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.facts > div { padding: 16px 18px; background: var(--surface); }
.facts dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.facts dd { margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.finding { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.finding__go { white-space: nowrap; }
.finding:last-child { border-bottom: 0; }
.finding__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.finding--blocker .finding__icon { background: var(--red-soft); color: var(--red); }
.finding--warning .finding__icon { background: var(--amber-soft); color: var(--amber); }
.finding--info .finding__icon { background: var(--source-soft); color: var(--source-ink); }
.finding h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.finding p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.finding__action { color: var(--text) !important; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar__grow { flex: 1 1 200px; }
.toolbar .field__input { padding: 8px 12px; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.filter:hover { border-color: var(--line-strong); color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--surface); }
.map-form { display: flex; gap: 6px; min-width: 215px; }
.table--tight th, .table--tight td { padding-left: 12px; padding-right: 12px; }
.table--tight th:first-child, .table--tight td:first-child { padding-left: 18px; }
.map-form .field__input { padding: 7px 10px; font-size: 13.5px; }
.bulkbar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.table input[type="checkbox"], .pairs input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--source); }
.pairs input[type="checkbox"]:disabled { opacity: .25; }
.spin { animation: spin 1.2s linear infinite; }
.parts { display: flex; flex-wrap: wrap; gap: 4px; }
.part { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.part::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.part--running::before { background: var(--source); animation: pulse 1.2s ease-in-out infinite; }
.part--synced { color: var(--target-ink); }
.part--synced::before { background: var(--target); }
.part--failed { color: var(--red); }
.part--failed::before { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }
.file-input { font-size: 13.5px; max-width: 100%; }

/* ── Selectable cards (workloads, plans) ──────────────────────────── */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice__box { display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; gap: 12px; align-items: start; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); transition: border-color .15s, background .15s; }
.choice__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.choice__box b { display: block; font-weight: 600; }
.choice__box small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.choice__tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); color: transparent; }
.choice:hover .choice__box { border-color: var(--faint); }
.choice input:checked + .choice__box { border-color: var(--source); background: var(--source-soft); }
.choice input:checked + .choice__box .choice__icon { background: var(--source); color: #fff; }
.choice input:checked + .choice__box .choice__tick { background: var(--source); border-color: var(--source); color: #fff; }
.choice input:focus-visible + .choice__box { box-shadow: var(--focus); }
.choice--link { text-decoration: none; color: inherit; }
.choice--link.is-selected .choice__box { border-color: var(--source); background: var(--source-soft); }
.choice--link.is-selected .choice__icon { background: var(--source); color: #fff; }
.choice--link.is-selected .choice__tick { background: var(--source); border-color: var(--source); color: #fff; }

.plan { display: flex; flex-direction: column; padding: 22px; }
.plan__name { font-size: 17px; font-weight: 700; }
.plan__tag { margin-top: 4px; min-height: 40px; font-size: 13.5px; color: var(--muted); }
.plan__price { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.plan__price small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__per { margin: 2px 0 18px; font-size: 13px; color: var(--muted); }
.plan form { display: grid; grid-template-columns: 76px 1fr; gap: 8px; margin-top: auto; }

.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.perm-list li { display: flex; align-items: center; gap: 7px; }
.perm-list .icon { color: var(--target); }
.perm-list .is-missing { color: var(--red); font-weight: 600; }
.perm-list .is-missing .icon { color: var(--red); }
details.disclosure > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--source-ink); }

.secret-box { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2); font-family: var(--mono); font-size: 15px; letter-spacing: .08em; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; font-family: var(--mono); font-size: 14px; }
.codes li { padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-align: center; }

.danger-zone { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }

/* ── Auth pages ───────────────────────────────────────────────────── */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth__aside, .side { --transit: linear-gradient(90deg, #8a8cff, #2ed3ae); }
.auth__aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: 44px 64px 52px; background: var(--side-bg); color: #c5c9e6; }
.auth__aside .brand { padding: 0; font-size: 20px; }
.auth__thesis { max-width: 520px; }
.auth__thesis h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: #fff; }
.auth__platforms { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #aeb4d6; }
.auth__platforms i { width: 1px; height: 12px; background: #2c3568; margin: 0 4px; }
.auth__thesis h1 em { font-style: normal; background: var(--transit); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__thesis p { margin-top: 16px; max-width: 40ch; font-size: 15.5px; line-height: 1.6; color: #aeb4d6; }

.voyage { max-width: 520px; padding: 18px 20px 8px; border: 1px solid #232a55; border-radius: 16px; background: rgba(255, 255, 255, .03); }
.voyage__ends { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: #fff; }
.voyage__end { display: inline-flex; align-items: center; gap: 8px; }
.voyage__dot { width: 10px; height: 10px; border-radius: 50%; }
.voyage__dot--source { background: #8a8cff; box-shadow: 0 0 0 4px rgba(138, 140, 255, .18); }
.voyage__dot--target { background: #2ed3ae; box-shadow: 0 0 0 4px rgba(46, 211, 174, .18); }
.voyage__rail { position: relative; height: 4px; margin: 12px 5px 14px; border-radius: 99px; background: #1e2550; overflow: hidden; }
.voyage__rail span { position: absolute; inset: 0; background: linear-gradient(90deg, #8a8cff, #2ed3ae); -webkit-mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 22px); mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 22px); animation: voyage 1.2s linear infinite; }
@keyframes voyage { to { -webkit-mask-position: 22px 0; mask-position: 22px 0; } }
.voyage__cargo { list-style: none; margin: 0; padding: 0; }
.voyage__cargo li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #1a2045; font-size: 14px; }
.voyage__cargo li:first-child { border-top: 0; }
.voyage__cargo .icon { color: #8a8cff; }
.voyage__cargo b { font-weight: 600; color: #e6e8f7; }
.voyage__cargo span { font-size: 12.5px; color: #7c83ad; text-align: right; }
/* Sign-in slides */
.slides { display: grid; gap: 28px; max-width: 520px; }
.slides__track { display: grid; }
.slide { grid-area: 1 / 1; display: grid; gap: 34px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .05s, transform .5s ease .05s, visibility 0s; }
.slides__nav { display: flex; gap: 8px; }
.slides__dot { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: #2c3568; cursor: pointer; transition: background .2s, width .2s; }
.slides__dot.is-active { width: 34px; background: linear-gradient(90deg, #8a8cff, #2ed3ae); }
.slides__dot:focus-visible { outline: 2px solid #8a8cff; outline-offset: 3px; }
.plogo { flex: none; display: inline-block; vertical-align: middle; }
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matrix__cell { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #232a55; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.matrix__pair { display: inline-flex; align-items: center; gap: 10px; }
.matrix__arrow { position: relative; width: 26px; height: 2px; background: linear-gradient(90deg, #8a8cff, #2ed3ae); border-radius: 2px; }
.matrix__arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 2px solid #2ed3ae; border-right: 2px solid #2ed3ae; transform: translateY(-50%) rotate(45deg); }
.matrix__label { font-size: 13px; font-weight: 600; color: #e6e8f7; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #232a55; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.logo-row .plogo { filter: saturate(.9); opacity: .95; }
.stagebar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.stagebar__step { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: #7c83ad; text-align: center; }
.stagebar__step::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #232a55; }
.stagebar__step:first-child::before { left: 50%; }
.stagebar__step:last-child::before { right: 50%; }
.stagebar__step.is-done::before { background: #2ed3ae; }
.stagebar__step.is-current::before { background: linear-gradient(90deg, #2ed3ae 50%, #232a55 50%); }
.stagebar__step i { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #2c3568; background: #0d1230; }
.stagebar__step.is-done i { border-color: #2ed3ae; background: #2ed3ae; }
.stagebar__step.is-current i { border-color: #8a8cff; background: #8a8cff; box-shadow: 0 0 0 5px rgba(138, 140, 255, .22); animation: pulse 1.6s ease-in-out infinite; }
.stagebar__step.is-done span, .stagebar__step.is-current span { color: #e6e8f7; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tally > div { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid #232a55; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.tally b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.tally span { font-size: 12.5px; color: #7c83ad; }
.ledger { list-style: none; margin: 0; padding: 0 18px; border: 1px solid #232a55; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #1a2045; font-size: 14px; }
.ledger li:first-child { border-top: 0; }
.ledger__what { font-weight: 600; color: #e6e8f7; }
.ledger__nums { font-variant-numeric: tabular-nums; color: #aeb4d6; }
.assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.assure li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border: 1px solid #232a55; border-radius: 14px; background: rgba(255, 255, 255, .03); font-size: 13.5px; }
.assure .icon { color: #2ed3ae; grid-row: 1 / span 2; margin-top: 2px; }
.assure b { color: #e6e8f7; font-weight: 600; }
.assure span { font-size: 12.5px; color: #7c83ad; }
.auth__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #aeb4d6; }
.auth__trust li { display: inline-flex; align-items: center; gap: 7px; }
.auth__trust .icon { color: #2ed3ae; }
.auth__card .eyebrow { display: block; margin-bottom: 8px; }
.captcha-note { margin-top: 10px; }
.captcha-note a { color: inherit; }
.password { position: relative; }
.password .field__input { padding-right: 84px; }
.password__toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.password__toggle:hover { color: var(--text); }
.password__toggle:focus-visible { outline: 2px solid var(--source); outline-offset: 1px; }
.password__toggle[aria-pressed="true"] { background: var(--source-soft); color: var(--source-ink); }

.auth__main { display: grid; place-items: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 420px; }
.auth__card .brand { display: none; margin-bottom: 28px; }
.auth__card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.auth__card .lead { margin: 8px 0 26px; color: var(--muted); }
.auth__alt { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.auth__row { display: flex; justify-content: space-between; align-items: baseline; }
.auth__theme { position: fixed; top: 18px; right: 18px; }

.error-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.error-page__code { font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--transit); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin-top: 12px; font-size: 24px; }
.error-page p { margin: 10px auto 24px; max-width: 46ch; color: var(--muted); }
.error-page pre { max-width: 900px; max-height: 320px; overflow: auto; margin: 0 auto 24px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid--main, .grid--wide, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--3.grid--keep { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; }
  .side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 8, 25, .55); }
  .main { --gutter: 16px; }
  .top { padding: 10px 16px; }
  .top .top__menu-btn { display: inline-grid; flex: none; width: 44px; height: 44px; border-radius: 12px; border-color: var(--line-strong); color: var(--text); }
  .top .top__menu-btn .icon { width: 24px; height: 24px; stroke-width: 2.25; }
  .top__crumbs { flex: 1 1 0; }
  .top__crumbs > :not(strong) { display: none; }
  .page { padding: 22px var(--gutter) 56px; }
  .page__title { font-size: 24px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { display: none; }
  .auth__card .brand { display: flex; }
  .route { grid-template-columns: minmax(0, 1fr); }
  .route__track { justify-content: center; min-height: 64px; }
  .route__track .route__rail { width: 4px; height: 44px; -webkit-mask: repeating-linear-gradient(180deg, #000 0 10px, transparent 10px 18px); mask: repeating-linear-gradient(180deg, #000 0 10px, transparent 10px 18px); }
  .route--half .route__rail { background: linear-gradient(180deg, var(--source), var(--line-strong) 70%); }
  .route--live .route__rail { background: linear-gradient(180deg, var(--source), var(--target)); animation-name: flow-down; }
  .route__track::after { right: auto; left: 50%; top: auto; bottom: 8px; transform: translateX(-50%) rotate(135deg); }
  .route__caption { display: none; }
  @keyframes flow-down { to { -webkit-mask-position: 0 18px; mask-position: 0 18px; } }
}
@media (max-width: 640px) {
  .grid--2, .grid--3.grid--keep, .choices, .field-row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score { grid-template-columns: minmax(0, 1fr); }
  .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill span.pill__label { display: none; }
  .table th, .table td { padding-left: 16px; padding-right: 16px; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .side, .top, .tabs, .no-print, .notice, .bulkbar, .skip-link, .help, .staff-bar, .page__actions, .btn, form { display: none !important; }
  .shell { display: block; }
  .main { --gutter: 0; }
  .page { max-width: none; padding: 0; }
  body { background: #fff; color: #000; font-size: 11px; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .facts { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  /* Tables must fit the page: no horizontal scrolling on paper, long URLs and addresses wrap. */
  .table-wrap { overflow: visible !important; }
  .table { table-layout: fixed; width: 100%; font-size: 10px; }
  .table th, .table td { padding: 5px 7px; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
  .table th.num, .table td.num { white-space: nowrap !important; }
  .chip { border: 1px solid #999; background: none; color: #000; }
  .chip::before { display: none; }
  .report .table td b { font-weight: 600; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
}
.journey .card { box-shadow: none; }
.journey--padded { padding: 18px 22px; }
.journey__title--flush { padding-top: 0; }
.step-card { padding: 16px 20px; }
.progress--fixed { width: 220px; }
.field__input--short { max-width: 240px; }
.field__input--medium { max-width: 320px; }
.notice-text { white-space: pre-wrap; font-family: var(--font); letter-spacing: 0; font-size: 13.5px; }
.mb { margin-bottom: 18px; }
.pre-line { white-space: pre-line; }
.kv--inline { grid-template-columns: max-content 1fr; gap: 4px 18px; }
.kv--inline dd { margin-bottom: 0; }
.invoice .table tfoot td { border-top: 2px solid var(--text); }
/* Project overview: the stage bar — nine steps in one line, the current one spelled out beneath */
.stages__bar { list-style: none; margin: 0; padding: 18px 22px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; counter-reset: stage; }
.stages__step { position: relative; min-width: 0; }
.stages__step::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); }
.stages__step:first-child::before { left: 50%; }
.stages__step:last-child::before { right: 50%; }
.stages__step.is-done::before { background: var(--target); }
.stages__step.is-current::before { background: linear-gradient(90deg, var(--target) 50%, var(--line) 50%); }
.stages__link { position: relative; display: grid; justify-items: center; gap: 8px; padding: 0 4px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; }
a.stages__link:hover .stages__label { color: var(--text); }
a.stages__link:focus-visible { outline: 2px solid var(--source); outline-offset: 4px; border-radius: 6px; }
.stages__dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: #fff; }
.stages__step.is-done .stages__dot { border-color: var(--target); background: var(--target); }
.stages__step.is-current .stages__dot { border-color: var(--source); background: var(--source); box-shadow: 0 0 0 4px var(--source-soft); }
.stages__step.is-current .stages__label { color: var(--source-ink); }
.stages__label { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stages__now { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.stages__title { margin-top: 4px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.stages__text { margin-top: 4px; max-width: 62ch; font-size: 14px; }
@media (max-width: 900px) {
  .stages__bar { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .stages__step:nth-child(3n + 1)::before { left: 50%; }
  .stages__step:nth-child(3n)::before { right: 50%; }
  .stages__now { flex-direction: column; align-items: flex-start; }
}

/* Project overview: compact tenant nodes once both are connected */
.route__node--compact { padding-bottom: 18px; }
.route__node--compact .route__name { font-size: 18px; }
.route__brief { margin-top: 6px; }
.route__manage { margin-top: 10px; }
.route__manage > summary { font-size: 13px; font-weight: 600; color: var(--source-ink); cursor: pointer; }
.route__manage .route__meta { margin-top: 10px; }

/* Project overview: progress by area */
.areas { list-style: none; margin: 0; padding: 0; }
.areas__item { border-top: 1px solid var(--line); }
.areas__link { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 14px 22px; color: inherit; text-decoration: none; transition: background .15s; }
.areas__link:hover { background: var(--surface-2); }
.areas__link:focus-visible { outline: 2px solid var(--source); outline-offset: -2px; }
.areas__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.areas__item--running .areas__icon { background: var(--source-soft); color: var(--source-ink); }
.areas__item--done .areas__icon { background: var(--target-soft); color: var(--target-ink); }
.areas__main { display: grid; gap: 6px; min-width: 0; }
.areas__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.areas__count { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.areas__item--done .areas__count { color: var(--target-ink); font-weight: 600; }
.areas__bar { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.areas__fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: linear-gradient(90deg, var(--source), var(--target)); transition: width .4s ease; }
.areas__item--done .areas__fill { background: var(--target); }
.areas__go { color: var(--faint); }

/* Cards that fold: the summary is the card head */
.disclosure-card > summary, .danger-zone > summary { list-style: none; cursor: pointer; padding-bottom: 18px; }
.disclosure-card > summary::-webkit-details-marker, .danger-zone > summary::-webkit-details-marker { display: none; }
.disclosure-card > summary .icon, .danger-zone > summary .icon { transition: transform .15s ease; color: var(--muted); }
.disclosure-card[open] > summary .icon, .danger-zone[open] > summary .icon { transform: rotate(90deg); }
.disclosure-card[open] > summary, .danger-zone[open] > summary { padding-bottom: 0; }

/* Projects list: a departures board — grouped by state, each row a route with its numbers */
.board-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.board-tools__search { position: relative; display: flex; align-items: center; min-width: 240px; flex: 0 1 300px; }
.board-tools__search .icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.board-tools__search .field__input { padding-left: 36px; height: 38px; }
.filter__n { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .7; }
.filter.is-empty { opacity: .55; }
.board { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.board__head { display: flex; align-items: baseline; gap: 12px; padding: 16px 22px 12px; }
.board__title { font-size: 15px; font-weight: 700; }
.board__n { margin-left: 4px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.board__cols, .board__link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 128px 90px 72px 28px; gap: 16px; align-items: center; padding: 10px 22px; }
.board__cols { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; font-weight: 600; }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__row { border-bottom: 1px solid var(--line); }
.board__row:last-child { border-bottom: 0; }
.board__link { padding-top: 14px; padding-bottom: 14px; color: inherit; text-decoration: none; transition: background .15s; }
.board__link:hover { background: var(--surface-2); }
.board__link:focus-visible { outline: 2px solid var(--source); outline-offset: -2px; }
.board__project { display: grid; gap: 2px; min-width: 0; }
.board__name { font-size: 15px; line-height: 1.3; }
.board__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6px 12px; font-size: 13px; font-weight: 600; }
.board__route .journey-list__bar { grid-column: 1 / -1; grid-row: 2; }
.board__route .board__end--target { grid-column: 2; grid-row: 1; }
.board__end { display: flex; align-items: center; gap: 7px; min-width: 0; }
.board__end > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__end--target { justify-content: flex-end; }
.board__end.is-off { font-weight: 500; color: var(--faint); }
.board__end.is-off .journey-list__dot { border-color: var(--line-strong); border-style: dashed; }
.board__stage { display: grid; gap: 4px; justify-items: start; }
.board__stage .chip { white-space: normal; text-align: left; line-height: 1.3; }
.board__users { font-variant-numeric: tabular-nums; }
.board__needs { display: grid; place-items: center; color: var(--faint); }
.board__badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) {
  .board__cols { display: none; }
  .board__link { grid-template-columns: minmax(0, 1fr) 128px 28px; grid-template-areas: "project stage needs" "route route route" "nums nums nums"; row-gap: 10px; }
  .board__project { grid-area: project; }
  .board__stage { grid-area: stage; }
  .board__needs { grid-area: needs; }
  .board__route { grid-area: route; }
  .board__users, .board__cutover { grid-area: nums; }
  .board__users { justify-self: start; }
  .board__cutover { justify-self: end; }
  .board__users::before { content: "Users in sync "; font-weight: 500; color: var(--muted); }
  .board__cutover::before { content: "Cutover "; color: var(--muted); }
}
@media (max-width: 640px) {
  .board__link { grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "project needs" "stage stage" "route route" "nums nums"; }
}

/* New project: a three-part form — route, name, what travels */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.compose__section { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 16px 40px; padding: 22px 26px 26px; border-bottom: 1px solid var(--line); }
.compose__aside { display: grid; gap: 8px; align-content: start; }
.compose__aside .field__hint { max-width: 34ch; }
.compose__body { min-width: 0; }
.compose__body--narrow { max-width: 640px; }
.compose__section:last-of-type { border-bottom: 0; }
.compose__legend { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-size: 15px; font-weight: 700; }
.compose__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 700; }
.compose__section .field + .field { margin-top: 16px; }
.compose__pair-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); max-width: 72ch; }
.route-pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 12px; align-items: start; max-width: 720px; }
.route-pick__end { display: grid; gap: 8px; }
.route-pick__end--to { grid-column: 3; }
.route-pick__track { grid-column: 2; grid-row: 1; align-self: center; margin-top: 26px; position: relative; display: flex; align-items: center; min-height: 40px; }
.route-pick__track::after { content: ""; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; border-top: 3px solid var(--line-strong); border-right: 3px solid var(--line-strong); border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.route-pick__track .route__rail { background: linear-gradient(90deg, var(--source), var(--target)); }
.route-pick__track::after { border-color: var(--target); }
.route-pick__options { display: grid; gap: 8px; }
.route-pick__option { position: relative; cursor: pointer; }
.route-pick__option input { position: absolute; inset: 0; opacity: 0; }
.route-pick__box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-weight: 600; transition: border-color .15s, background .15s; }
.route-pick__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.route-pick__option:hover .route-pick__box { border-color: var(--faint); }
.route-pick__option input:focus-visible + .route-pick__box { box-shadow: var(--focus); }
.route-pick__end--from input:checked + .route-pick__box { border-color: var(--source); background: var(--source-soft); }
.route-pick__end--from input:checked + .route-pick__box .route-pick__icon { background: var(--source); color: #fff; }
.route-pick__end--to input:checked + .route-pick__box { border-color: var(--target); background: var(--target-soft); }
.route-pick__end--to input:checked + .route-pick__box .route-pick__icon { background: var(--target); color: #fff; }
.compose__choices { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.compose__actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 900px) {
  .compose__section { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 22px 22px; }
}
@media (max-width: 640px) {
  .route-pick { grid-template-columns: minmax(0, 1fr); }
  .route-pick__end--to { grid-column: 1; }
  .route-pick__track { grid-column: 1; grid-row: auto; margin: 0 auto; width: 4px; min-height: 28px; }
  .route-pick__track .route__rail { width: 4px; height: 28px; background: linear-gradient(180deg, var(--source), var(--target)); }
  .route-pick__track::after { right: auto; top: auto; bottom: -1px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .compose__actions { flex-direction: column; align-items: stretch; }
  .compose__actions .row { justify-content: stretch; }
  .compose__actions .btn { flex: 1; justify-content: center; }
}

/* Assessment: the verdict — a ring for the score, a sentence for what it means, counts that jump to findings */
.verdict { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 26px; }
.verdict__ring { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.verdict__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.verdict__ring-track { fill: none; stroke: var(--line); stroke-width: 9; }
.verdict__ring-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.verdict--good .verdict__ring-fill { stroke: var(--target); }
.verdict--fair .verdict__ring-fill { stroke: var(--amber); }
.verdict--poor .verdict__ring-fill { stroke: var(--red); }
.verdict__score { position: relative; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.verdict__score small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.verdict--good .verdict__score { color: var(--target-ink); }
.verdict--fair .verdict__score { color: var(--amber); }
.verdict--poor .verdict__score { color: var(--red); }
.verdict__title { margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.verdict__line { margin-top: 6px; max-width: 60ch; color: var(--muted); }
.verdict__counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.verdict__count { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; text-decoration: none; }
.verdict__count b { font-variant-numeric: tabular-nums; }
.verdict__count--blocker:not(.is-zero) { background: var(--red-soft); color: var(--red); border-color: transparent; }
.verdict__count--warning:not(.is-zero) { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.verdict__count--info:not(.is-zero) { background: var(--source-soft); color: var(--source-ink); border-color: transparent; }
.verdict__count.is-zero { color: var(--muted); }
.verdict__actions { display: grid; gap: 8px; justify-items: stretch; }
.verdict__actions .btn { justify-content: center; }
@media (max-width: 900px) {
  .verdict { grid-template-columns: 96px minmax(0, 1fr); }
  .verdict__ring { width: 96px; height: 96px; }
  .verdict__score { font-size: 26px; }
  .verdict__actions { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
}

/* Assessment: inventory of what was found */
.inventory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inventory > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.inventory > div:nth-child(odd) { border-right: 1px solid var(--line); }
.inventory dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.inventory dd { font-size: 14px; }
.inventory dd b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.inventory dd small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.match__num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.findings--blocker .card__title { color: var(--red); }
@media (max-width: 720px) {
  .inventory { grid-template-columns: minmax(0, 1fr); }
  .inventory > div:nth-child(odd) { border-right: 0; }
  .finding { grid-template-columns: 30px minmax(0, 1fr); }
  .finding__go { grid-column: 2; justify-self: start; }
}

/* Users: where matching stands */
.pairing__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pairing__stat { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px; border-right: 1px solid var(--line); color: inherit; text-decoration: none; }
.pairing__stat:last-child { border-right: 0; }
a.pairing__stat:hover, .pairing__stat.is-on { background: var(--surface-2); }
.pairing__stat b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pairing__stat > span { display: grid; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pairing__stat small { font-weight: 500; color: var(--muted); }
.pairing__stat small a { color: inherit; }
.pairing__stat--warn b { color: var(--amber); }
.pairing__stat--source b { color: var(--source-ink); }
.pairing__stat--warn.pairing__stat--licenses b { color: var(--red); }
.pairing__next { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: 14px; font-weight: 500; }
@media (max-width: 900px) {
  .pairing__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairing__stat { border-bottom: 1px solid var(--line); }
  .pairing__stat:nth-child(even) { border-right: 0; }
  .pairing__stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* Users: every row is a pair — source, arrow, target */
.pairs { list-style: none; margin: 0; padding: 0; }
.pairs__head, .pairs__row { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) 28px minmax(0, 1.4fr) 128px auto; gap: 14px; align-items: center; padding: 12px 18px; }
.pairs__head { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; font-weight: 600; }
.pairs__row { border-bottom: 1px solid var(--line); }
.pairs__row:last-child { border-bottom: 0; }
.pairs__row:hover { background: var(--surface-2); }
.pairs__empty { padding: 22px 18px; }
.pairs__source { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pairs__who { display: grid; gap: 1px; min-width: 0; }
.pairs__who b { font-weight: 600; }
.pairs__who > span { overflow-wrap: anywhere; }
.pairs__arrow { display: grid; place-items: center; }
.pairs__arrow i { position: relative; display: block; width: 22px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.pairs__arrow i::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.pairs__row--matched .pairs__arrow i, .pairs__row--migrating .pairs__arrow i { background: linear-gradient(90deg, var(--source), var(--target)); }
.pairs__row--matched .pairs__arrow i::after, .pairs__row--migrating .pairs__arrow i::after { border-color: var(--target); }
.pairs__row--unmatched .pairs__arrow i { background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 7px); }
.pairs__row--unmatched .pairs__arrow i::after { border-color: var(--amber); }
.pairs__row--excluded { color: var(--muted); }
.pairs__row--excluded .avatar { background: var(--surface-2); color: var(--faint); }
.pairs__target { display: grid; gap: 4px; min-width: 0; }
.pairs__addr { font-weight: 500; overflow-wrap: anywhere; }
.pairs__edit > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
.pairs__edit > summary::-webkit-details-marker { display: none; }
.pairs__change { font-size: 12.5px; font-weight: 600; color: var(--source-ink); opacity: 0; transition: opacity .15s; }
.pairs__row:hover .pairs__change, .pairs__edit > summary:focus-visible .pairs__change, .pairs__edit[open] .pairs__change { opacity: 1; }
.pairs__edit[open] .pairs__change::after { content: " · cancel"; }
.pairs__status { display: grid; gap: 3px; justify-items: start; }
.pairs__actions { display: flex; justify-content: flex-end; }
.pairs .map-form { min-width: 0; }
.pairs .map-form .field__input { min-width: 0; }
.menu__panel--wide { width: 320px; padding: 16px; }
.menu > summary.btn { border-radius: 10px; }
@media (max-width: 900px) {
  .pairs__head { grid-template-columns: 28px minmax(0, 1fr); }
  .pairs__head > span:not(:first-child) { display: none; }
  .pairs__head > span:first-child::after { content: "Select all matched"; margin-left: 12px; }
  .pairs__head > span:first-child { display: flex; align-items: center; grid-column: 1 / -1; }
  .pairs__row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "check source actions" "arrow target target" "status status status"; row-gap: 10px; }
  .pairs__check { grid-area: check; }
  .pairs__source { grid-area: source; }
  .pairs__actions { grid-area: actions; }
  .pairs__arrow { grid-area: arrow; }
  .pairs__arrow i { width: 2px; height: 22px; }
  .pairs__arrow i::after { right: auto; top: auto; bottom: -1px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .pairs__target { grid-area: target; }
  .pairs__status { grid-area: status; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .pairs__change { opacity: 1; }
}

/* Overview: the desk — what needs a person today, derived from live state */
.desk { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.desk__head { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.desk__title { font-size: 15px; font-weight: 700; }
.desk__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.desk__list { list-style: none; margin: 0; padding: 0; }
.desk__more { border-top: 1px solid var(--line); }
.desk__more > summary { padding: 12px 22px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--source-ink); list-style: none; }
.desk__more > summary::-webkit-details-marker { display: none; }
.desk__more[open] > summary { display: none; }
.desk__item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 22px 12px 18px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.desk__item:last-child { border-bottom: 0; }
.desk__item--warn { border-left-color: var(--amber); }
.desk__item--err { border-left-color: var(--red); }
.desk__item--source { border-left-color: var(--source); }
.desk__item--target { border-left-color: var(--target); }
.desk__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.desk__item--warn .desk__icon { background: var(--amber-soft); color: var(--amber); }
.desk__item--err .desk__icon { background: var(--red-soft); color: var(--red); }
.desk__item--source .desk__icon { background: var(--source-soft); color: var(--source-ink); }
.desk__item--target .desk__icon { background: var(--target-soft); color: var(--target-ink); }
.desk__text { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.desk__action { white-space: nowrap; }
.desk--clear { display: flex; align-items: center; gap: 12px; padding: 14px 22px; color: var(--target-ink); font-weight: 500; border-color: color-mix(in srgb, var(--target) 35%, var(--line)); }
.facts--overview dd .facts__of { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.facts--overview dd.facts__warn { color: var(--amber); }
.facts--overview dd small a { color: inherit; }

/* Overview: each project is a route whose rail fills as users reach the target */
.journey-list { list-style: none; margin: 0; padding: 0; }
.journey-list__item { border-bottom: 1px solid var(--line); }
.journey-list__item:last-child { border-bottom: 0; }
.journey-list__link { display: block; padding: 16px 22px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.journey-list__link:hover { background: var(--surface-2); }
.journey-list__link:focus-visible { outline: 2px solid var(--source); outline-offset: -2px; }
.journey-list__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.journey-list__name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-list__meta { margin-top: 2px; }
.journey-list__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.journey-list__end { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-list__end--target { justify-content: flex-end; }
.journey-list__end.is-off { font-weight: 500; color: var(--faint); }
.journey-list__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.journey-list__route:not(.is-live) .journey-list__dot { border-style: dashed; }
.journey-list__dot--source { border-color: var(--source); }
.journey-list__dot--target { border-color: var(--target); }
.journey-list__end.is-off .journey-list__dot { border-color: var(--line-strong); }
.journey-list__bar { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.journey-list__fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: 99px; background: linear-gradient(90deg, var(--source), var(--target)); transition: width .4s ease; }
.journey-list__fail { position: absolute; top: 0; bottom: 0; left: var(--l, 0%); width: var(--w, 0%); background: repeating-linear-gradient(135deg, var(--red) 0 3px, transparent 3px 6px); }
.journey-list__nums { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--text); }
.journey-list__pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--source-ink); }
.journey-list__pulse i { width: 7px; height: 7px; border-radius: 50%; background: var(--source); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@media (max-width: 900px) {
  .facts--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .desk__item { grid-template-columns: 34px minmax(0, 1fr); }
  .desk__action { grid-column: 2; justify-self: start; }
  .journey-list__route { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .journey-list__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Long-form article typography (docs on the site, guide in the back office) */
/* article typography */
.docs__article { font-size: 16px; line-height: 1.7; color: var(--text); }
.docs__article > * + * { margin-top: 18px; }
.docs__article h2 { margin-top: 44px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; scroll-margin-top: 90px; }
.docs__article h3 { margin-top: 30px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.docs__article p { color: var(--muted); }
.docs__article p strong, .docs__article li strong { color: var(--text); }
.docs__article ul, .docs__article ol { padding-left: 22px; color: var(--muted); } .docs__article li + li { margin-top: 6px; }
.docs__article .fig { margin: 22px 0; }
.docs__article .fig figcaption { color: var(--muted); }
.docs__article table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.docs__article th, .docs__article td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs__article th { font-weight: 700; background: var(--surface-2); }
.docs__article td { color: var(--muted); }
.docs__article code, .docs__article .mono { font-family: var(--mono); font-size: 13.5px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.docs__article pre { padding: 14px 16px; border-radius: 12px; background: #0d1230; color: #e6e8f7; font-size: 13px; line-height: 1.6; overflow-x: auto; }
.docs__article pre code { padding: 0; background: none; color: inherit; }
.docs__steps { list-style: none; padding: 0; counter-reset: ds; display: grid; gap: 12px; }
.docs__steps li { position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); counter-increment: ds; }
.docs__steps li::before { content: counter(ds); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 800; }
.docs__steps li b { display: block; color: var(--text); }
.docs__steps li span { display: block; font-size: 14.5px; color: var(--muted); }
.callout { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.55; }
.callout .icon { margin-top: 3px; }
.callout--tip { background: var(--target-soft); color: var(--target-ink); }
.callout--note { background: var(--source-soft); color: var(--source-ink); }
.callout--warn { background: var(--amber-soft); color: var(--amber); }
.callout b { display: block; margin-bottom: 2px; }
.docs__ui { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.docs__article--panel { font-size: 15px; }
.docs__article--panel > * + * { margin-top: 14px; }
.docs__article--panel h2 { margin-top: 30px; font-size: 20px; }

/* Licenses: per-user tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tier { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, background .15s; }
.tier b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tier span { font-size: 12.5px; color: var(--muted); }
.tier.is-on { border-color: var(--source); background: var(--source-soft); }
.tier.is-on b { color: var(--source-ink); }
.tier--sales b { font-size: 16px; }
.tier--sales a { margin-top: 4px; font-weight: 600; }
.order__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.order__total { display: grid; gap: 2px; justify-items: end; text-align: right; min-width: 160px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); }
.order__total b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .tiers { grid-template-columns: minmax(0, 1fr); } .order__row { grid-template-columns: minmax(0, 1fr); } .order__total { justify-items: start; text-align: left; } }

/* Team */
.team-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-strip > div { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.team-strip b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.team-strip .is-warn b { color: var(--amber); } .team-strip .is-source b { color: var(--source-ink); }
.people { list-style: none; margin: 0; padding: 0; }
.people__row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.people__role { justify-self: start; }
.people__state { display: grid; gap: 3px; justify-items: start; font-size: 12.5px; }
.people__actions { display: flex; justify-content: flex-end; }
.avatar--faint { background: var(--surface-2); color: var(--faint); border: 1px dashed var(--line-strong); }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; }
.seg__opt span { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg__opt input:checked + span { background: var(--text); color: var(--surface); }
.seg__opt input:focus-visible + span { box-shadow: var(--focus); }
.role-pick { display: grid; gap: 8px; }
.role-pick__opt { position: relative; cursor: pointer; }
.role-pick__opt input { position: absolute; inset: 0; opacity: 0; }
.role-pick__box { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); transition: border-color .15s, background .15s; }
.role-pick__box b { display: block; font-weight: 600; }
.role-pick__box small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.role-pick__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.role-pick__opt:hover .role-pick__box { border-color: var(--faint); }
.role-pick__opt input:checked + .role-pick__box { border-color: var(--source); background: var(--source-soft); }
.role-pick__opt input:checked + .role-pick__box .role-pick__icon { background: var(--source); color: #fff; }
.role-pick__opt input:focus-visible + .role-pick__box { box-shadow: var(--focus); }
.role-line { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.role-line b { display: block; }
@media (max-width: 900px) {
  .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who actions" "role role" "state state"; row-gap: 10px; }
  .people__row .who { grid-area: who; } .people__actions { grid-area: actions; } .people__role { grid-area: role; } .people__state { grid-area: state; grid-auto-flow: column; align-items: center; gap: 10px; }
}

/* Back office settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.settings-grid .field + .field { margin-top: 0; }
.settings-grid .field--wide { grid-column: 1 / -1; }
.settings-note { display: grid; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.settings-note > div { display: grid; gap: 2px; }
.settings-note b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.settings-note .mono { overflow-wrap: anywhere; }
@media (max-width: 720px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }

/* Verification: one disclosure per user, container table spans the card */
.verify-list__head, .verify-user__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 100px 90px 100px 24px; gap: 12px; align-items: center; padding: 12px 22px; }
.verify-list__head { text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; border-bottom: 1px solid var(--line); }
.verify-user { border-bottom: 1px solid var(--line); }
.verify-user:last-child { border-bottom: 0; }
.verify-user__row { cursor: pointer; list-style: none; }
.verify-user__row::-webkit-details-marker { display: none; }
.verify-user__row:hover { background: var(--surface-2); }
.verify-user__row:focus-visible { outline: 2px solid var(--source); outline-offset: -2px; }
.verify-user__who { display: grid; gap: 2px; min-width: 0; }
.verify-user__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verify-user__toggle { display: inline-grid; place-items: center; color: var(--muted); transition: transform .15s ease; }
.verify-user[open] .verify-user__toggle { transform: rotate(90deg); }
.verify-user__body { padding: 0 22px 18px; }
.verify-user__body .table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 720px) {
  .verify-list__head, .verify-user__row { grid-template-columns: minmax(0, 1fr) 70px 70px 60px 24px; padding: 12px 16px; }
  .verify-list__head > :nth-child(5), .verify-user__row > :nth-child(5) { display: none; }
  .verify-user__body { padding: 0 16px 16px; }
}

/* Back office sign-in: one dark room, one door */
.bo { min-height: 100vh; background-color: #0b0f26; background-image: radial-gradient(circle at 20% 0%, rgba(26, 86, 255, .18), transparent 45%), radial-gradient(circle at 90% 100%, rgba(34, 211, 238, .12), transparent 40%); color: #e6e8f7; }
.bo__main { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 40px 20px; }
.bo__card { width: 100%; max-width: 400px; padding: 30px 30px 26px; border: 1px solid #232a55; border-radius: 18px; background: #10163a; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.bo__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 800; font-size: 19px; letter-spacing: -.035em; color: #fff; }
.bo__brand .brand__mark { width: 30px; height: 28px; }
.bo__home { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.auth__aside .brand:hover .brand__x, .bo__home:hover .brand__x { filter: brightness(1.15); }
.bo__tag { margin-left: auto; padding: 4px 9px; border-radius: 99px; border: 1px solid #2c3568; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #aeb4d6; }
.bo__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.bo__lead { margin: 6px 0 22px; font-size: 14px; color: #aeb4d6; }
.bo__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 12.5px; color: #7c83ad; }
.bo__note .icon { flex: none; margin-top: 2px; color: #22d3ee; }
.bo__foot { max-width: 400px; font-size: 12.5px; color: #5d6494; text-align: center; }
.bo .field__label { color: #e6e8f7; }
.bo .field__input { background: #0b0f26; border-color: #2c3568; color: #fff; }
.bo .field__input:focus { border-color: #1a56ff; }
.bo .auth__row .small { color: #aeb4d6; }
.bo .password__toggle { background: #1a2148; color: #aeb4d6; }
.bo .btn--primary { background: linear-gradient(90deg, #1a56ff, #22d3ee); border: 0; color: #fff; }
.bo .auth__alt { color: #aeb4d6; }

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


/* ---------- Help assistant (panel, site and docs) ---------- */
.help { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font); }
.help__launch { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 16px; border: 0; border-radius: 99px; background: var(--side-bg); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(13, 18, 48, .28); transition: transform .18s ease, box-shadow .18s ease; }
.help__launch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13, 18, 48, .34); }
.help__launch:focus-visible { outline: 3px solid var(--source); outline-offset: 3px; }
.help.is-open .help__launch { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.help__panel { width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 100px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(13, 18, 48, .22); overflow: hidden; transform-origin: bottom right; animation: help-in .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes help-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.help__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.help__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); color: #fff; flex: none; }
.help__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.help__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.help__close { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.help__close:hover { background: var(--line); color: var(--text); }
.help__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.help__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.help__msg p { margin: 0; }
.help__msg p + p, .help__msg ul, .help__msg ol { margin-top: 8px; }
.help__msg ul, .help__msg ol { padding-left: 18px; margin-bottom: 0; }
.help__msg li + li { margin-top: 4px; }
.help__msg a { color: var(--source-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.help__msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text); }
.help__msg--me { align-self: flex-end; background: var(--source); color: #fff; border-bottom-right-radius: 6px; }
.help__msg--error { background: var(--red-soft); border-color: transparent; color: var(--red); }
.help__hint { font-size: 12.5px; color: var(--muted); }
.help__msg--wait { display: flex; gap: 5px; padding: 14px 16px; }
.help__msg--wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: help-dot 1.1s ease-in-out infinite; }
.help__msg--wait span:nth-child(2) { animation-delay: .15s; }
.help__msg--wait span:nth-child(3) { animation-delay: .3s; }
@keyframes help-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.help__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.help__chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--source-ink); cursor: pointer; transition: background .15s; }
.help__chip:hover { background: var(--source-soft); border-color: var(--source); }
.help__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.help__input { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 14px; line-height: 1.5; background: var(--surface); color: var(--text); }
.help__input:focus { outline: 2px solid var(--source); outline-offset: 1px; border-color: var(--source); }
.help__send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--source); color: #fff; cursor: pointer; }
.help__send:hover { background: var(--source-ink); }
.help__send:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  .help { right: 12px; bottom: 12px; }
  .help__panel { width: calc(100vw - 24px); height: calc(100dvh - 84px); border-radius: 16px; }
  .help__launch span { display: none; }
  .help__launch { width: 50px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .help__panel, .help__msg--wait span, .help__launch { animation: none; transition: none; }
}

/* Staff viewing a customer's portal */
.staff-bar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); font-size: 13.5px; }
.staff-bar b { color: inherit; }
.staff-bar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; animation: staff-pulse 1.6s ease-in-out infinite; }
@keyframes staff-pulse { 50% { opacity: .35; } }
.staff-bar form { margin-left: auto; }
.staff-bar__btn { background: var(--amber); color: #fff; }
.staff-bar__btn:hover { filter: brightness(.92); }
@media (max-width: 640px) { .staff-bar { flex-wrap: wrap; padding: 10px 16px; } }
@media (prefers-reduced-motion: reduce) { .staff-bar__dot { animation: none; } }

/* Installer */
.bo__card--wide { max-width: 640px; }
.install__h { margin: 22px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b93c4; }
.install__checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.install__checks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #c7ccec; }
.install__checks li small { display: block; width: 100%; padding-left: 22px; color: #8b93c4; font-size: 12px; }
.install__checks li { flex-wrap: wrap; }
.install__checks li.is-ok svg { color: #2ed3ae; }
.install__checks li.is-bad svg { color: #ff7b7b; }
.install__checks li.is-skip svg { color: #8b93c4; }
.install__todo { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.install__todo li { display: grid; gap: 6px; font-size: 13.5px; color: #c7ccec; }
.install__todo b { color: #fff; }
.install__todo code { display: block; padding: 8px 10px; border-radius: 8px; background: #0b1030; color: #9fe7ff; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; cursor: copy; }
@media (max-width: 560px) { .install__checks { grid-template-columns: minmax(0, 1fr); } }

/* Updates page */
.update-log { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.update-log li.is-bad { color: var(--red); font-weight: 600; }

/* Checkout and payment */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.checkout__aside { position: sticky; top: 84px; }
.checkout__lines { margin: 0; display: grid; gap: 6px; }
.checkout__lines > div { display: flex; justify-content: space-between; gap: 12px; }
.checkout__lines dt, .checkout__lines dd { margin: 0; }
.checkout__total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.pay__frame { min-height: 120px; }
.pay__frame--card { padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); margin-bottom: 14px; }
.paid { display: flex; gap: 16px; align-items: flex-start; }
.paid__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--target-soft); color: var(--target-ink); flex: none; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } .checkout__aside { position: static; } }

/* Inline search: field and button on one line, never wrapping */
.searchbar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.searchbar .field__input { width: auto; flex: 1 1 260px; min-width: 200px; }
.searchbar .btn { flex: none; }
@media (max-width: 640px) { .page__head .searchbar { width: 100%; } }

/* Back office: incidents */
.incident-admin { padding: 12px 0; border-bottom: 1px solid var(--line); }
.incident-admin:last-child { border-bottom: 0; }
.incident-admin__updates { margin: 8px 0 0; padding-left: 18px; }
.incident-admin__form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; margin-top: 10px; align-items: center; }
@media (max-width: 640px) { .incident-admin__form { grid-template-columns: minmax(0, 1fr); } }

/* Wordmark (mark + outlined text); the text takes the surrounding colour */
.wordmark { display: block; height: 34px; width: auto; }
.brand .wordmark { height: 34px; }
.brand { color: var(--side-strong); }
.brand--ink { color: var(--text); }
.bo__home .wordmark { height: 34px; }
.bo__home { color: #fff; }
.site__brand .wordmark { height: 32px; }
.auth__aside .brand { color: #fff; }
@media (max-width: 640px) { .site__brand .wordmark { height: 28px; } }

/* Partner dashboard */
.pd-hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.pd-hero .page__title { margin-top: 10px; }
.pd-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.pd-stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 2px; }
.pd-stat span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pd-stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pd-stat small { font-size: 12.5px; color: var(--muted); }
.pd-stat--accent { background: linear-gradient(135deg, #1a56ff, #22d3ee); border-color: transparent; color: #fff; }
.pd-stat--accent span, .pd-stat--accent small { color: rgba(255, 255, 255, .8); }
.pd-client { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.pd-client:last-child { border-bottom: 0; }
.pd-client__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pd-client__projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-project { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.pd-project:hover { background: var(--surface-2); }
.pd-project__name { display: grid; min-width: 0; }
.pd-project__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-project__name small { font-size: 12px; color: var(--muted); }
.pd-project__bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pd-project__bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--brand-grad); border-radius: 99px; }
.pd-project__num { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-price__big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pd-price__big span { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pd-checks { grid-template-columns: minmax(0, 1fr); }
.apply__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 1100px) { .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pd-project { grid-template-columns: minmax(0, 1fr) auto; } .pd-project__bar, .pd-project__num { display: none; } }
@media (max-width: 640px) { .pd-hero { flex-direction: column; } .pd-stats { grid-template-columns: minmax(0, 1fr); } }

/* Back office: partners */
.partner-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.partner-row:last-child { border-bottom: 0; }
.partner-row.is-pending { background: var(--amber-soft); }
.partner-row__main { display: flex; gap: 14px; min-width: 0; }
.partner-row__main b { margin-right: 8px; }
.partner-row__actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
@media (max-width: 760px) { .partner-row { flex-direction: column; } .partner-row__actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* ---------- Partner tier ladder (site, sign-in aside, dashboard) ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ladder__step { display: grid; gap: 8px; }
.ladder__bar { position: relative; display: grid; gap: 2px; align-content: end; min-height: 84px; padding: 12px 14px 12px; border-radius: 14px; color: #fff; overflow: hidden; }
.ladder__step--gold .ladder__bar { min-height: 110px; }
.ladder__step--diamond .ladder__bar { min-height: 136px; }
.ladder__bar b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.ladder__pct { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ladder__gem { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .18); }
.ladder__step--silver .ladder__bar { background: linear-gradient(160deg, #8b93b0, #5f6787); }
.ladder__step--gold .ladder__bar { background: linear-gradient(160deg, #f5b740, #c47f0a); }
.ladder__step--diamond .ladder__bar { background: linear-gradient(160deg, #1a56ff, #22d3ee); }
.ladder__meta { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.ladder__meta em { font-style: normal; font-weight: 700; color: var(--text); }
.ladder--live .is-next .ladder__bar { opacity: .45; }
.ladder--live .is-current .ladder__bar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--source); }
.ladder--compact .ladder__bar { min-height: 66px; padding: 10px 12px; border-radius: 12px; }
.ladder--compact .ladder__step--gold .ladder__bar { min-height: 86px; }
.ladder--compact .ladder__step--diamond .ladder__bar { min-height: 106px; }
.ladder--compact .ladder__pct { font-size: 17px; }
.auth__aside--partner .ladder__meta { color: rgba(255, 255, 255, .7); }
.auth__aside--partner .ladder__meta em { color: #fff; }

/* Partner sign-in aside */
.auth__aside--partner { justify-content: flex-start; gap: 26px; }
.paside { display: grid; gap: 26px; margin-top: 18px; }
.paside__thesis h1 { margin: 12px 0 8px; font-size: 30px; line-height: 1.12; letter-spacing: -.03em; }
.paside__thesis h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.paside__thesis p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14.5px; max-width: 46ch; }
.paside__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.paside__facts li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.paside__facts b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.paside__facts span { font-size: 12px; color: rgba(255, 255, 255, .65); line-height: 1.35; }
.paside__clients { display: grid; gap: 8px; }
.paside__client { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #fff; animation: paside-in .6s cubic-bezier(.2, .8, .3, 1) both; }
.paside__client:nth-child(2) { animation-delay: .12s; }
.paside__client:nth-child(3) { animation-delay: .24s; }
.paside__client i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-grad); font-style: normal; font-size: 11px; font-weight: 800; }
.paside__client em { margin-left: auto; font-style: normal; font-size: 12px; color: #2ed3ae; }
@keyframes paside-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .paside__client { animation: none; } }
@media (max-width: 640px) { .ladder { gap: 8px; } .paside__facts { grid-template-columns: minmax(0, 1fr); } }

/* Partner dashboard: tier meter */
.tier-meter { display: grid; gap: 10px; }
.tier-meter__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.tier-meter__bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tier-meter__bar span { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: linear-gradient(90deg, #8b93b0, #f5b740 55%, #22d3ee); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.tier-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #fff; }
.tier-badge--silver { background: linear-gradient(135deg, #8b93b0, #5f6787); }
.tier-badge--gold { background: linear-gradient(135deg, #f5b740, #c47f0a); }
.tier-badge--diamond { background: linear-gradient(135deg, #1a56ff, #22d3ee); }
.card__empty { margin: 0; padding: 16px 22px; font-size: 13.5px; color: var(--muted); }

/* Overview stat cards that open their detail page */
a.stat--link { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
a.stat--link:hover { transform: translateY(-2px); border-color: var(--source); box-shadow: 0 14px 34px -22px rgba(13, 18, 48, .45); }
a.stat--link:focus-visible { outline: 2px solid var(--source); outline-offset: 2px; }
.stat__go { margin-left: auto; color: var(--faint); transition: color .15s, transform .15s; }
a.stat--link:hover .stat__go { color: var(--source); transform: translateX(2px); }

/* Answer-first summary on documentation pages (also the speakable block for assistants) */
.docs__answer { position: relative; padding: 16px 18px 12px; border-radius: 12px; background: var(--source-soft); color: var(--text); font-size: 15px; line-height: 1.55; }
.docs__answer::before { content: "In short"; position: absolute; left: 18px; top: -9px; padding: 1px 8px; border-radius: 99px; background: var(--source); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.route-pick__option.is-off { opacity: .4; pointer-events: none; }

.notice > span { flex: 1 1 320px; }
.notice > form { margin-left: auto; }

/* Public folders (Exchange on-premises) */
.pf-indent { display: inline-block; width: 0; }
.pf-indent[data-depth="1"] { width: 18px; } .pf-indent[data-depth="2"] { width: 36px; } .pf-indent[data-depth="3"] { width: 54px; }
.pf-indent[data-depth="4"] { width: 72px; } .pf-indent[data-depth="5"] { width: 90px; } .pf-indent[data-depth="6"] { width: 108px; }
.pf-meta { margin-top: 8px; }
.pf-how { color: var(--text); }
.pf-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* Per-user resync on the Migration tab */
.resync { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.resync__more { padding: 7px 9px; line-height: 1; border-radius: 8px; }
.resync .menu__panel { text-align: left; white-space: normal; z-index: 5; }
.resync__hint { margin: 4px 10px 6px; }

/* Directory sync */
.sync-token { border-color: var(--amber); }
.sync-code { display: block; margin: 6px 0; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12.5px; overflow-wrap: anywhere; }
.row > .sync-code { flex: 1 1 260px; margin: 0; }
.sync-list { list-style: none; margin: 0; padding: 0; }
.sync-list li { display: flex; align-items: center; gap: 11px; padding: 12px 20px; border-top: 1px solid var(--line); }
.sync-list li:first-child { border-top: 0; }
.sync-list__main { flex: 1; min-width: 0; }
.sync-list__main b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sync-list__main span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sync-add { border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sync-add__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sync-add__row > span { min-width: 0; overflow-wrap: anywhere; }
.sync-list .chip { flex: none; }
.sync-set { border: 0; padding: 0; margin: 16px 0 0; }
.sync-set .check { padding: 4px 0; }
.sync-inline { display: inline-flex; padding: 0; font-size: 12.5px; }
.sync-how ol { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.sync-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sync-counts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sync-counts b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sync-counts span { font-size: 12.5px; color: var(--muted); }
.sync-rules { margin: 0; padding-left: 18px; display: grid; gap: 8px; }

.table input[type="checkbox"]:disabled { opacity: .3; cursor: not-allowed; }
