/* Client portal + sign-in (/portal/, /login/). Same world as home.css:
   lime ground for the brand, ink for type, and each system drawn as a cord.
   A straight cord is a system in step; a kinked stretch is something to check. */
:root {
  --lime: #C6F432; --lime-deep: #4F7A0A;
  --ink: #12162B; --ink-2: #1B2140; --ink-3: #2A3158;
  --paper: #F4F5EE; --card: #FFFFFF; --line: #DDE1CF; --tint: #EEF0E5;
  --text: #12162B; --muted: #565B6E; --on-ink: #ECEEF6; --on-ink-muted: #A9AEC6;
  --violet: #5B4BD6; --lilac: #A598FF; --coral: #FF5A3C; --forest: #0B6B4F;
  --good: #0B6B4F; --good-bg: #DDF3E8; --warn: #8A5200; --warn-bg: #FCEFD3; --warn-line: #E39A12; --bad: #C0321B; --bad-bg: #FDE5DF;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Gabarito", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #B9BEAA var(--paper); scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--ink); color: var(--lime); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 20px/1 var(--display); letter-spacing: -0.02em; }
.logo__mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.logo__word b { color: var(--lime); font-weight: 800; }
.logo--ink { color: var(--ink); }
.logo--ink .logo__mark { background: var(--ink); color: var(--lime); }
.logo--ink .logo__word b { color: var(--violet); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 19px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .3s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #D6FA60; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--line { background: #fff; color: var(--text); border-color: #C3C8B4; }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .22); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 8px 15px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.nowrap { white-space: nowrap; }

/* ---------------- fields (sign-in and portal forms) ---------------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .pwform select { width: 100%; font: 16px var(--font); padding: 12px 14px; border-radius: 12px; border: 1.5px solid #C3C8B4; background: #fff; color: var(--text); caret-color: var(--violet); transition: border-color .18s ease, box-shadow .18s ease; }
.field input::placeholder { color: #8A8F9E; }
.field input:hover, .pwform select:hover { border-color: #9AA08A; }
.field input:focus, .pwform select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91, 75, 214, .16); }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw input::-ms-reveal { display: none; }   /* Edge's own eye would sit next to ours */
.pw__eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.pw__eye:hover { background: var(--tint); color: var(--text); }
.pw__eye svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The icon shows the box's state: crossed-out eye while hidden (the default), open eye while shown. */
.pw__eye .pw__show, .pw__eye[aria-pressed="true"] .pw__hide { display: none; }
.pw__eye[aria-pressed="true"] .pw__show { display: block; }
.err { color: var(--bad); background: var(--bad-bg); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 14px; }
.okmsg { color: var(--good); background: var(--good-bg); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 14px; }
.note { color: var(--warn); background: var(--warn-bg); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 14px; }

/* ---------------- sign-in ---------------- */
.signin { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); background: var(--card); }
.signin__art { position: relative; overflow: hidden; background: var(--lime); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3.4vw, 44px); min-height: 220px; }
.signin__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.signin__art > * { position: relative; z-index: 1; }
.signin__art canvas { z-index: 0; }
.signin__line { font: 800 clamp(28px, 3.4vw, 50px)/1 var(--display); letter-spacing: -0.03em; max-width: 9em; }
.signin__panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); }
.signin__card { width: min(400px, 100%); }
.signin h1 { font-size: clamp(32px, 3vw, 42px); letter-spacing: -0.03em; }
.signin__lead { margin: 10px 0 28px; color: var(--muted); font-size: 15.5px; }
.signin form .btn { width: 100%; padding: 15px 18px; margin-top: 6px; font-size: 16px; }
.forgot { display: block; margin: 16px auto 0; border: 0; background: none; padding: 4px; font: 600 14.5px var(--font); color: var(--violet); cursor: pointer; }
.forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.forgot__help { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 14.5px; color: var(--muted); }
.forgot__help a { color: var(--violet); font-weight: 600; }
.signin__foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.signin__foot a { color: var(--violet); font-weight: 600; text-decoration: none; }
.signin__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .signin__art { min-height: 0; height: 210px; padding: 18px 20px; }
  .signin__line { display: none; }
  .signin__panel { place-items: start center; padding-top: 30px; }
}

/* ---------------- portal shell ---------------- */
.dash { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 22px 16px 18px; background: var(--ink); color: var(--on-ink); }
.side .logo { padding: 0 8px; }
.side__label { padding: 0 10px; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--on-ink-muted); }
.side__nav { display: grid; gap: 3px; }
.side__nav a { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-ink); transition: background-color .18s ease, color .18s ease; }
.side__nav a:hover { background: rgba(255, 255, 255, .07); }
.side__nav a[aria-current="true"] { background: var(--lime); color: var(--ink); font-weight: 600; }
/* Each system's dot is its cord: the colour says how it is running. */
.side__nav a::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background-color .3s ease; }
.side__nav a[data-state="good"]::before { background: #3CD79B; }
.side__nav a[data-state="warn"]::before { background: #FFB82E; }
.side__nav a[data-state="bad"]::before { background: var(--coral); }
.side__nav a[aria-current="true"]::before { background: var(--ink); }
.side__nav a[aria-current="true"][data-state="warn"]::before { background: #8A5200; }
.side__nav a[aria-current="true"][data-state="bad"]::before { background: var(--bad); }
.side__foot { margin-top: auto; display: grid; gap: 10px; padding: 16px 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.side__who { font-size: 14px; color: var(--on-ink-muted); line-height: 1.35; }
.side__who b { display: block; font: 700 17px/1.2 var(--display); color: #fff; }
.side__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.side__btns .btn { flex: 1 1 auto; }

.page { min-width: 0; padding: 0 clamp(18px, 3.4vw, 48px); }
.page > * { max-width: 1120px; margin-inline: auto; }
.hello { padding: clamp(28px, 4vw, 52px) 0 clamp(22px, 3vw, 36px); }
.hello h1 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.04; max-width: 16em; }
.hello h1 em { font-style: normal; color: var(--violet); }
.hello p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }

main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 56px; }
.sys { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.6vw, 32px); scroll-margin-top: 18px; }
.sys__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sys__k { display: block; font-size: 13.5px; font-weight: 600; color: var(--violet); margin-bottom: 6px; }
.sys__head h2 { font-size: clamp(24px, 2.4vw, 31px); letter-spacing: -0.025em; }
.sys__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.sys__head p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 46em; }
.sys__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--good { color: var(--good); background: var(--good-bg); }
.pill--warn { color: var(--warn); background: var(--warn-bg); }
.pill--bad { color: var(--bad); background: var(--bad-bg); }
.pill--idle { color: var(--muted); background: var(--tint); }

/* ---------------- the line: a system's steps on one cord ---------------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 28px; --seg: var(--forest); }
.flow__step { position: relative; padding: 34px 0 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* the knot */
.flow__n { position: absolute; left: 0; top: 0; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 6px solid var(--forest); }
.flow__step.is-warn .flow__n { border-color: var(--warn-line); }
.flow__step.is-bad .flow__n { border-color: var(--coral); }
.flow__step.is-idle .flow__n { border-color: #B9BEAA; }
/* the stretch of cord from this knot to the next one */
.flow__step:not(:last-child)::before { content: ""; position: absolute; left: 20px; right: -30px; top: 8px; height: 6px; border-radius: 3px; background: var(--forest); }
.flow__step.to-idle:not(:last-child)::before { background: #CFD3C2; }
/* a snag: the stretch that runs into a step with something to check is kinked */
.flow__step.to-warn:not(:last-child)::before, .flow__step.to-bad:not(:last-child)::before {
  top: 2px; height: 18px; border-radius: 0; background: var(--warn-line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 9c6 0 6-6 12-6s6 12 12 12 6-6 12-6' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / 36px 18px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 9c6 0 6-6 12-6s6 12 12 12 6-6 12-6' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / 36px 18px repeat-x;
}
.flow__step.to-bad:not(:last-child)::before { background: var(--coral); }
.flow__step h3 { font: 600 16.5px/1.25 var(--font); letter-spacing: -0.01em; }
.flow__step p { font-size: 14px; color: var(--muted); max-width: 22em; }
.flow__metric { font-size: 13.5px; color: var(--muted); margin: 4px 0 6px; }
.flow__metric b { font: 700 clamp(22px, 2vw, 27px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--text); display: block; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.flow__metric .is-bad { color: var(--bad); }
.flow__metric .is-warn { color: var(--warn); }
.flow__metric .is-good { color: var(--good); }

/* loading: the same line, greyed, with a bead running along it */
.flow.is-loading .flow__n { border-color: #CFD3C2; }
.flow.is-loading .flow__step:not(:last-child)::before { background: linear-gradient(90deg, #CFD3C2 0 40%, var(--lime) 50%, #CFD3C2 60% 100%) 0 0 / 300% 100%; animation: bead 1.3s linear infinite; }
@keyframes bead { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel { display: block; height: 14px; width: 70%; border-radius: 7px; background: var(--tint); }
.skel--b { height: 26px; width: 46%; margin-bottom: 4px; }
.skel--s { width: 88%; }
.loading { color: var(--muted); padding: 8px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 30px; align-items: start; }
.panel { border-radius: var(--radius); padding: 20px; min-width: 0; background: var(--paper); }
.panel h3 { font: 700 19px/1.2 var(--display); margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.panel h3 small { font: 500 13px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 13px/1.2 var(--font); color: var(--muted); padding: 0 10px 10px 0; white-space: nowrap; }
.tbl td { padding: 11px 10px 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr { transition: background-color .15s ease; }
.tbl th.num { text-align: right; }
.tbl td.num { text-align: right; font-family: var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .is-in { color: var(--good); font-weight: 500; }
.tbl th.hide-sm, .tbl td.hide-sm { padding-left: 14px; padding-right: 0; }
.tbl .ref { color: var(--muted); font-size: 13px; display: block; overflow-wrap: anywhere; }
.tbl .sm-pill { display: none; }
.tbl .acts { text-align: right; white-space: nowrap; padding-right: 0; }
.scroll { overflow-x: auto; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; background: var(--card); }
.list li span:last-child { margin-left: auto; font-family: var(--mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.list__label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 18px 0 8px; }
.list__label:first-of-type { margin-top: 0; }
.empty { color: var(--muted); font-size: 14.5px; padding: 6px 0; }
.stamp { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 60em; }

.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; position: relative; }
.setup li { counter-increment: s; position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 0 0 22px 0; font-size: 15px; }
.setup li::before { content: counter(s); position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 700 14px/1 var(--display); }
.setup li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: 0; width: 6px; background: #CFD3C2; }
.setup li b { display: block; }
.setup li span { color: var(--muted); }
.setup li { min-width: 0; overflow-wrap: anywhere; }

/* admin: the table on the left, its form on the right */
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.cols > * { min-width: 0; }
.pwform { max-width: 440px; }
.cols .pwform { max-width: none; padding: 20px; border-radius: var(--radius); background: var(--paper); }
.pwform .btn { margin-top: 4px; }
.pwform__title { font: 700 19px/1.2 var(--display); margin-bottom: 14px; }
.hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.dlg { width: min(460px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 28px; background: var(--card); color: var(--text); box-shadow: 0 50px 100px -40px rgba(18, 22, 43, .6); }
.dlg::backdrop { background: rgba(18, 22, 43, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg__head h2 { font-size: 25px; }
.dlg__x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--tint); font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.dlg__x:hover { color: var(--text); background: var(--line); }
.dlg__lead { margin: 10px 0 20px; color: var(--muted); font-size: 14.5px; }
.dlg .pwform { max-width: none; margin: 0; }
.dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.dlg--wide { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.apps-pick { border: 0; padding: 0; margin: 0 0 16px; }
.apps-pick legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 4px; }
.apps-pick__k { margin: 10px 0 6px; font: 600 12px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.app { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 10px 12px; margin-bottom: 6px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.app:hover { border-color: #9AA08A; }
.app:has(input:checked) { border-color: var(--violet); background: rgba(91, 75, 214, .06); }
.app input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); }
.app b { display: block; font-size: 15px; }
.app__about { display: block; font-size: 13.5px; color: var(--muted); }
.app__warn { display: block; margin-top: 4px; font-size: 13px; color: var(--warn); }
.tbl td.apps { white-space: normal; }
.tbl td.apps .pill, .tbl .sm-pill.apps .pill { margin: 0 4px 4px 0; }
.tbl .sm-pill.apps .ref { margin-bottom: 4px; }
.sm-only { display: none; }
.foot { padding: 0 0 36px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { color: var(--violet); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* sections settle in once their numbers arrive */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.sys { animation: rise .6s var(--ease) both; }
.sys:nth-child(2) { animation-delay: .06s; }
.sys:nth-child(3) { animation-delay: .12s; }
.sys:nth-child(4) { animation-delay: .18s; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols .pwform { max-width: 480px; }
}
/* Tablet and phone: the sidebar becomes a top bar with the sections as a row of chips. */
@media (max-width: 960px) {
  .dash { display: block; }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px clamp(18px, 3.4vw, 48px) 10px; }
  .side .logo { padding: 0; }
  .side__foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: 12px; }
  .side__who { display: none; }
  .side__btns { flex-wrap: nowrap; }
  .side__group { order: 3; flex: 1 1 100%; min-width: 0; }
  .side__label { display: none; }
  .side__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(18px, 3.4vw, 48px)); padding: 0 clamp(18px, 3.4vw, 48px) 2px; }
  .side__nav::-webkit-scrollbar { display: none; }
  .side__nav a { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .08); }
  .sys { scroll-margin-top: 118px; }
  .panels { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .flow__step { padding: 0 0 24px 40px; }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__step:not(:last-child)::before { left: 8px; right: auto; top: 20px; bottom: -2px; width: 6px; height: auto; }
  .flow__step.to-warn:not(:last-child)::before, .flow__step.to-bad:not(:last-child)::before {
    left: 2px; top: 20px; width: 18px; height: auto;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='36' viewBox='0 0 18 36'%3E%3Cpath d='M9 0c0 6-6 6-6 12s12 6 12 12-6 6-6 12' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") 50% 0 / 18px 36px repeat-y;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='36' viewBox='0 0 18 36'%3E%3Cpath d='M9 0c0 6-6 6-6 12s12 6 12 12-6 6-6 12' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") 50% 0 / 18px 36px repeat-y;
  }
  .flow.is-loading .flow__step:not(:last-child)::before { background: #CFD3C2; animation: none; }
  .flow__step p { max-width: none; }
}
@media (max-width: 600px) {
  .lg-only { display: none; } .sm-only { display: inline; }
  .sys { border-radius: 20px; }
  .sys__actions { width: 100%; }
  .sys__actions .btn { flex: 1; }
  .tbl .hide-sm { display: none; }
  .tbl .sm-pill { display: block; margin-top: 6px; }
  .tbl .acts { white-space: normal; }
  .tbl .acts .btn { margin: 2px 0; width: 100%; }
  .dlg { padding: 22px; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
