/* fuin.app site styles.
   Colour, type and space tokens are copied from the app repo
   (docs/design/tokens.css, accepted 2026-11-07). Keep them in sync. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }

:root,
[data-theme="light"] {
  --paper: #F1F1EE;
  --sheet: #FAFAF8;
  --hover: #E8E8E4;
  --select: #E1E1DC;
  --rule: #DCDCD6;
  --border: #7D7D77;
  --ink: #1D1B22;
  --ink-2: #4D4853;
  --ink-3: #66616A;
  --on-ink: #FAFAF8;
  --shu: #C8402B;
  --shu-text: #AE3723;
  --shu-soft: #F5DDD7;
  --ok: #366C50;
  --warn: #8A560E;
  --acct-1: #3B5B8C;
  --acct-2: #7A5CA3;
  --acct-3: #2F8077;
  --mail-bg: #FFFFFF;

  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --f-cjk: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-full: 999px;
  --shadow-3: 0 18px 50px rgba(29, 27, 34, .12), 0 2px 6px rgba(29, 27, 34, .06);
  --dur-fast: 120ms; --dur-base: 200ms; --ease: cubic-bezier(.2, 0, 0, 1); --seal-press: 200ms;
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--shu);

  --gutter: 24px;
  --wrap: 1160px;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #18161C;
  --sheet: #1F1D24;
  --hover: #27242D;
  --select: #312D38;
  --rule: #2F2C35;
  --border: #807989;
  --ink: #ECE6DA;
  --ink-2: #B3ACB4;
  --ink-3: #9C97A1;
  --on-ink: #18161C;
  --shu: #E5604A;
  --shu-text: #EB7A66;
  --shu-soft: #3A2421;
  --ok: #6DB38C;
  --warn: #D9A04A;
  --acct-1: #7FA0D8;
  --acct-2: #A98BD0;
  --acct-3: #5FB0A5;
  --mail-bg: #F4F1EC;
  --shadow-3: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --seal-press: 0ms; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--shu-text); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
img, svg { display: block; }
.icon { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.jp { font-family: var(--f-cjk); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -48px; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; color: var(--on-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Lockup: own lettering, coloured by theme */
.lockup { display: block; height: 30px; width: auto; }
.lockup .ink { stroke: var(--ink); }
.lockup .ink-fill { fill: var(--ink); }
.lockup .seal { stroke: var(--shu); }
.lockup .seal-fill { fill: var(--shu); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-header .home { display: block; border-radius: var(--r-sm); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 15px; text-decoration: none; color: var(--ink-2);
  padding: 6px 10px; border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.site-nav a:hover { background: var(--hover); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: 4px;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { background: var(--hover); color: var(--ink); }
.theme-toggle .icon { color: currentColor; }
.theme-toggle .to-light { display: none; }
[data-theme="dark"] .theme-toggle .to-light { display: block; }
[data-theme="dark"] .theme-toggle .to-dark { display: none; }

@media (max-width: 520px) {
  .lockup { height: 26px; }
  .site-nav a { padding: 6px 8px; }
}

/* Type scale for marketing pages */
.display {
  font-size: clamp(36px, 6.2vw, 64px); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.02em; max-width: 14ch;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.muted { color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: 14px; }

/* Hero with vertical 封印 on the right (fukinsei: weighted left) */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.hero-text { display: grid; gap: 28px; }
/* 封印 stacked top to bottom (tategaki) with explicit line breaks:
   more predictable than writing-mode inside a grid. */
.tategaki { display: grid; justify-items: center; gap: 16px; margin: 8px clamp(0px, 4vw, 56px) 0 0; }
.tategaki .kanji {
  font-family: var(--f-cjk); font-weight: 400; font-size: clamp(44px, 6vw, 72px);
  line-height: 1.12; color: var(--ink); text-align: center;
}
.tategaki .cap { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .tategaki { display: none; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-sm); font: 500 15px/1.2 var(--f-ui); text-decoration: none;
  border: 1px solid var(--border); color: var(--ink); background: transparent;
  transition: background-color var(--dur-fast) var(--ease);
}
.button:hover { background: var(--hover); color: var(--ink); }
.button.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--on-ink); }
.button .icon { width: 18px; height: 18px; color: currentColor; }

.status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2);
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--shu); flex: none;
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 48px; margin-bottom: 48px; }
.section-head .lede { font-size: 18px; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; }
}

/* Product rows on the brand page: hairlines, no cards */
.products { border-top: 1px solid var(--rule); }
.product {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px 48px;
  padding: 36px 0; border-bottom: 1px solid var(--rule);
}
.product-name { display: flex; align-items: center; gap: 14px; }
.product-name .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--sheet);
  border: 1px solid var(--rule); flex: none;
}
.product-name .mark .icon { width: 22px; height: 22px; color: var(--ink); }
.product-name h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.product-body { display: grid; gap: 16px; justify-items: start; }
.product-body p { color: var(--ink-2); max-width: 38em; }
.text-link { font-weight: 500; color: var(--shu-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding: 28px 0; }
}

/* Principle / fact lists */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 24px 0 28px; border-top: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.fact-title { display: flex; align-items: center; gap: 10px; }
.fact p { color: var(--ink-2); }
@media (max-width: 860px) {
  .facts, .facts.two { grid-template-columns: 1fr; }
}

/* Feature index: two columns of compact rows */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.feature { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.feature .icon { margin-top: 3px; }
.feature h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.feature p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}

/* Providers */
.providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.provider { padding: 20px 0; border-top: 1px solid var(--rule); }
.provider h3 { font-size: 16px; font-weight: 600; }
.provider p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .providers { grid-template-columns: 1fr; } }

/* Closing block */
.closing { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.closing p { color: var(--ink-2); max-width: 36em; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; } }

/* Hanko: the single seal mark on a page */
.hanko {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 72px;
  border: 2px solid var(--shu); border-radius: var(--r-md); color: var(--shu);
}
.hanko span { font-family: var(--f-cjk); font-size: 22px; line-height: 1.15; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .lockup { height: 24px; margin-bottom: 14px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- App rendition (fūin mail) ----------
   A drawn version of the real window, built from the same tokens,
   so it follows the theme switch and stays sharp. Fictional data. */
.showcase { padding-bottom: clamp(56px, 8vw, 104px); }
.window {
  --w-rail: 52px; --w-side: 224px; --w-list: 328px;
  display: grid; grid-template-columns: var(--w-rail) var(--w-side) var(--w-list) minmax(0, 1fr);
  height: 560px; overflow: hidden;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); font-size: 13px; line-height: 1.45; color: var(--ink);
  user-select: none;
}
.win-rail { background: var(--paper); border-right: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 12px 0; gap: 8px; }
.win-rail .stack { display: grid; gap: 6px; }
.win-rail span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); }
.win-rail span.on { background: var(--select); }
.win-rail .icon { width: 18px; height: 18px; }
.win-rail span.on .icon { color: var(--ink); }
.win-side { background: var(--paper); border-right: 1px solid var(--rule); padding: 14px 12px; display: grid; align-content: start; gap: 2px; }
.win-side .lockup { height: 20px; margin: 2px 6px 14px; }
.win-side .row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-sm); color: var(--ink-2); }
.win-side .row .icon { width: 16px; height: 16px; }
.win-side .row.on { background: var(--select); color: var(--ink); font-weight: 500; }
.win-side .row .count { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); }
.win-side .row.on .count { color: var(--ink); }
.win-side .acct { display: flex; align-items: center; gap: 8px; padding: 14px 8px 4px; font-weight: 600; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); flex: none; }
.dot.a1 { background: var(--acct-1); } .dot.a2 { background: var(--acct-2); } .dot.a3 { background: var(--acct-3); }
.win-list { border-right: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.win-list header { padding: 14px 16px 12px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--rule); }
.win-list ol { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.msg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 10px 16px 11px 24px; border-bottom: 1px solid var(--rule); }
.msg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bar, transparent); }
.msg.a1 { --bar: var(--acct-1); } .msg.a2 { --bar: var(--acct-2); } .msg.a3 { --bar: var(--acct-3); }
.msg.on { background: var(--select); }
.msg .from { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg .subj, .msg .prev { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .prev { color: var(--ink-3); }
.msg.unread .from, .msg.unread .subj { font-weight: 600; }
.msg.unread::after { content: ""; position: absolute; left: 11px; top: 17px; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--shu); }
.msg .flag { position: absolute; right: 16px; top: 32px; width: 14px; height: 14px; color: var(--shu); }
.win-reader { padding: 18px clamp(20px, 3vw, 40px); display: grid; align-content: start; gap: 16px; min-width: 0; overflow: hidden; }
.win-reader .tools { display: flex; gap: 18px; color: var(--ink-2); }
.win-reader .tools span { display: inline-flex; align-items: center; gap: 6px; }
.win-reader .tools .icon { width: 16px; height: 16px; }
.win-reader h4 { margin: 6px 0 0; font-size: 22px; line-height: 1.25; font-weight: 600; }
.win-reader dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; color: var(--ink-2); }
.win-reader dt { color: var(--ink-3); }
.win-reader dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blocked { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--paper); border-radius: var(--r-md); color: var(--ink-2); }
.blocked .icon { width: 16px; height: 16px; }
.blocked b { margin-left: auto; font-weight: 500; color: var(--ink); white-space: nowrap; }
.win-reader .body { font-size: 15px; line-height: 1.6; color: var(--ink); display: grid; gap: 12px; max-width: 60ch; }

@media (max-width: 1100px) {
  .window { grid-template-columns: var(--w-rail) var(--w-list) minmax(0, 1fr); }
  .win-side { display: none; }
}
@media (max-width: 760px) {
  .window { grid-template-columns: minmax(0, 1fr); height: 480px; }
  .win-rail, .win-reader { display: none; }
  .win-list { border-right: 0; }
}

/* Flow: three steps joined by a hairline (lb page) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; position: relative; }
.flow::before { content: ""; position: absolute; left: 22px; right: calc(33.333% - 22px); top: 22px; height: 1px; background: var(--border); }
.flow-step { position: relative; display: grid; gap: 10px; align-content: start; }
.flow-step .mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--rule); margin-bottom: 8px;
}
.flow-step .mark .icon { width: 22px; height: 22px; color: var(--ink); }
.flow-step:nth-child(2) .mark { border-color: var(--shu); }
.flow-step h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.flow-step p { color: var(--ink-2); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .flow-step { padding-left: 64px; }
  .flow-step .mark { position: absolute; left: 0; top: 0; }
}

/* Error page */
.notfound { padding: clamp(72px, 14vw, 160px) 0; }
.notfound .wrap { display: grid; gap: 24px; justify-items: start; }

/* ---------- Story animations (assets/motion.js) ----------
   Only where they tell part of the story. Each runs when it scrolls
   into view; prefers-reduced-motion shows the end state at once. */

/* Mail: a new message arrives at the top of the combined inbox */
.js .msg.arrive {
  max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; opacity: 0;
  overflow: hidden; background: var(--hover);
  transition: max-height 420ms var(--ease), padding 420ms var(--ease), opacity 300ms var(--ease) 120ms, background-color 1600ms var(--ease) 900ms;
}
.js .msg.arrive.arrived { max-height: 90px; padding-top: 10px; padding-bottom: 11px; border-bottom-width: 1px; opacity: 1; background: transparent; }
.js .msg.arrive.instant { transition: none; }
.js .msg.arrive::after { transform: scale(0); transition: transform 240ms var(--ease) 380ms; }
.js .msg.arrive.arrived::after { transform: scale(1); }

/* Load balancer flow: the change travels from git, through the app, to the nodes */
.flow::after {
  content: ""; position: absolute; left: 22px; right: calc(33.333% - 22px); top: 22px; height: 1px;
  background: var(--shu); transform: scaleX(0); transform-origin: left center;
}
.flow.play::after { animation: flow-line 1800ms var(--ease) 300ms both; }
.flow.play .flow-step .mark { animation: flow-mark 700ms var(--ease) both; }
.flow.play .flow-step:nth-child(1) .mark { animation-delay: 200ms; }
.flow.play .flow-step:nth-child(2) .mark { animation-delay: 1100ms; }
.flow.play .flow-step:nth-child(3) .mark { animation-delay: 2000ms; }
@keyframes flow-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow-mark {
  0% { border-color: var(--rule); }
  40% { border-color: var(--shu); background: var(--shu-soft); }
  100% { background: var(--sheet); }
}
@media (max-width: 860px) {
  .flow::after { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; transform: scaleY(0); transform-origin: center top; }
  .flow.play::after { animation-name: flow-line-v; }
  @keyframes flow-line-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* The seal moment: pressed once, like a hanko */
.js .hanko[data-story] { opacity: 0; transform: scale(1.08); }
.js .hanko[data-story].pressed { opacity: 1; transform: scale(1); transition: transform var(--seal-press) var(--ease), opacity var(--seal-press) var(--ease); }

/* Load balancer: a rollout, with and without rollback */
.rollout {
  margin-top: 40px; max-width: 640px; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); font-size: 14px; overflow: hidden;
}
.ro-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.ro-title { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ro-title .icon { width: 16px; height: 16px; }
.ro-title b { font-weight: 600; color: var(--ink); }
.ro-phase { font-weight: 500; color: var(--ink); }
.rollout[data-result="ok"] .ro-phase { color: var(--ok); }
.rollout[data-result="rollback"] .ro-phase { color: var(--warn); }
.ro-nodes { list-style: none; margin: 0; padding: 0; }
.ro-nodes li { display: grid; grid-template-columns: 72px 80px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.ro-name { font-weight: 600; }
.ro-role { color: var(--ink-3); }
.ro-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); justify-self: start; }
.ro-state::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--rule); flex: none; transition: background-color var(--dur-base) var(--ease); }
[data-status="busy"] .ro-state { color: var(--ink); }
[data-status="busy"] .ro-state::before { background: var(--acct-1); animation: ro-busy 900ms ease-in-out infinite alternate; }
[data-status="ok"] .ro-state { color: var(--ok); }
[data-status="ok"] .ro-state::before { background: var(--ok); }
[data-status="fail"] .ro-state { color: var(--shu-text); }
[data-status="fail"] .ro-state::before { background: var(--shu); }
[data-status="skip"] .ro-state { color: var(--ink-3); }
@keyframes ro-busy { from { opacity: 1; } to { opacity: .35; } }
.ro-foot { padding: 12px 18px 14px; color: var(--ink-2); }
@media (max-width: 520px) {
  .ro-nodes li { grid-template-columns: 52px 64px minmax(0, 1fr); padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow.play::after { animation: none; transform: none; }
  .flow.play .flow-step .mark { animation: none; }
  [data-status="busy"] .ro-state::before { animation: none; }
}
