/* ============================================================
   YELLOW FISH 経営ダッシュボード — index.html 用スタイル
   色は assets/tokens.css の変数だけを使う(生の色コードは書かない)。
   状態色の「文字用」は、細い文字でも読めるよう本文色と混ぜて少し沈める。
   ============================================================ */

:root {
  --d-good-text: color-mix(in srgb, var(--yf-good) 72%, var(--yf-ink));
  --d-warn-text: color-mix(in srgb, var(--yf-warn) 78%, var(--yf-ink));
  --d-bad-text:  color-mix(in srgb, var(--yf-bad) 82%, var(--yf-ink));
  --d-topbar-h: 72px;
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--d-topbar-h) + var(--yf-s4)); }

body {
  margin: 0;
  background: var(--yf-bg);
  color: var(--yf-ink);
  font-family: var(--yf-font-jp);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

a { color: var(--yf-blue); }

h1[tabindex="-1"]:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--yf-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 全体の枠 ---------- */
.app {
  display: grid;
  grid-template-columns: var(--yf-sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- サイドバー ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--yf-s4);
  padding: var(--yf-s5) var(--yf-s4) var(--yf-s4);
  background: var(--yf-surface);
  border-right: 1px solid var(--yf-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--yf-s3);
  padding: 0 var(--yf-s2);
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; }
.brand-text { display: grid; line-height: 1.3; }
.brand-name {
  font-family: var(--yf-font-num);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--yf-navy);
}
.brand-sub { font-size: 12px; color: var(--yf-ink-2); }

.demo-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--yf-s2);
  margin: 0 0 0 var(--yf-s2);
  padding: 0 var(--yf-s3);
  height: 24px;
  border-radius: var(--yf-r-pill);
  background: var(--yf-sky-50);
  border: 1px solid var(--yf-sky-200);
  color: var(--yf-navy);
  font-size: 12px;
  font-weight: 700;
}
.demo-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yf-sky); }

.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--yf-s1); }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--yf-s3);
  min-height: 44px;
  padding: var(--yf-s2) var(--yf-s3);
  border-radius: var(--yf-r-inner);
  color: var(--yf-ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-item:hover { background: var(--yf-sky-50); color: var(--yf-ink); }
.nav-item[aria-current="page"] {
  background: var(--yf-sky-100);
  color: var(--yf-navy);
  font-weight: 700;
}
.nav-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--yf-line);
  background: var(--yf-surface);
  color: var(--yf-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.nav-item[aria-current="page"] .nav-icon {
  background: var(--yf-navy);
  border-color: var(--yf-navy);
  color: var(--yf-surface);
}
.nav-ext { width: 14px; height: 14px; margin-left: auto; color: var(--yf-muted); flex: none; }

.sources {
  margin-top: var(--yf-s2);
  padding: var(--yf-s4) var(--yf-s2) 0;
  border-top: 1px solid var(--yf-line);
}
.side-title { margin: 0; font-size: 12px; font-weight: 700; color: var(--yf-ink-2); }
.sources-sum { margin: var(--yf-s1) 0 var(--yf-s2); font-size: 13px; font-weight: 700; color: var(--yf-ink); }
.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--yf-s1);
  font-size: 12px;
  line-height: 1.6;
}
.sources-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--yf-s2);
}
.src-name { color: var(--yf-ink-2); }
.src-state { font-weight: 700; white-space: nowrap; text-align: right; }
.src-state.is-ok { color: var(--d-good-text); }
.src-state.is-off { color: var(--d-warn-text); }
.src-time { color: var(--yf-muted); font-weight: 500; }
.src-note { grid-column: 1 / -1; text-align: right; color: var(--yf-muted); }

.side-foot {
  margin-top: auto;
  padding: var(--yf-s4) var(--yf-s2) 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--yf-muted);
}
.side-foot p { margin: 0; }
.side-company { color: var(--yf-ink-2); font-weight: 700; }
.side-credit { margin-top: var(--yf-s2) !important; }

/* ---------- 上部ヘッダ ---------- */
.main-col { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--yf-s3) var(--yf-s4);
  min-height: var(--d-topbar-h);
  padding: var(--yf-s3) var(--yf-s8);
  background: color-mix(in srgb, var(--yf-bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--yf-line);
}
.greet-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.greet-date { margin: 0; font-size: 13px; color: var(--yf-muted); }
.top-actions { display: flex; align-items: center; gap: var(--yf-s3); flex-wrap: wrap; }

.select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--yf-s2);
  height: 40px;
  padding: 0 var(--yf-s8) 0 var(--yf-s3);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
}
.select::after {
  content: "▾";
  position: absolute;
  right: var(--yf-s3);
  color: var(--yf-muted);
  font-size: 12px;
  pointer-events: none;
}
.select:focus-within { outline: 3px solid var(--yf-blue); outline-offset: 2px; }
.select-label { font-size: 12px; color: var(--yf-muted); }
.select select {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--yf-ink);
  padding: 0;
  cursor: pointer;
}
.select select:focus-visible { outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--yf-s2);
  height: 40px;
  padding: 0 var(--yf-s5);
  border: 1px solid transparent;
  border-radius: var(--yf-r-inner);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--yf-sky); color: var(--yf-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--yf-sky) 86%, var(--yf-navy)); }
.btn-secondary { background: var(--yf-surface); color: var(--yf-blue); border-color: var(--yf-sky-200); }
.btn-secondary:hover { background: var(--yf-sky-50); }
.btn-sm { height: 32px; padding: 0 var(--yf-s3); font-size: 13px; }

/* ---------- コンテンツ ---------- */
.main {
  width: 100%;
  max-width: var(--yf-content-max);
  padding: var(--yf-s6) var(--yf-s8) 120px;
}

.view { display: grid; gap: var(--yf-s5); }

.demo-band {
  display: flex;
  align-items: center;
  gap: var(--yf-s3);
  margin: 0;
  padding: var(--yf-s2) var(--yf-s4);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
  font-size: 13px;
  line-height: 1.6;
  color: var(--yf-ink-2);
}
.demo-tag {
  flex: none;
  padding: 0 var(--yf-s3);
  border-radius: var(--yf-r-pill);
  background: var(--yf-navy);
  color: var(--yf-surface);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}

.plan-band {
  margin: 0;
  padding: var(--yf-s3) var(--yf-s4);
  background: var(--yf-sky-50);
  border: 1px solid var(--yf-sky-200);
  border-radius: var(--yf-r-inner);
  font-size: 13px;
  color: var(--yf-ink-2);
}
.plan-band a { margin-left: var(--yf-s2); font-weight: 700; }

.view-title {
  margin: var(--yf-s2) 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--yf-navy);
}

/* ---------- レイアウト ---------- */
.grid { display: grid; gap: var(--yf-s5); align-items: start; }
.grid-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid-2 > .card,
.grid-1-2 > .card { height: 100%; }
.stack { display: grid; gap: var(--yf-s5); align-content: start; min-width: 0; }

/* ---------- カード(第2階層) ---------- */
.card {
  min-width: 0;
  padding: var(--yf-s6);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-card);
  box-shadow: var(--yf-shadow-card);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--yf-s4);
  margin-bottom: var(--yf-s4);
}
.card-head-wrap { flex-wrap: wrap; }
.card-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.card-sub { margin: var(--yf-s1) 0 0; font-size: 12px; color: var(--yf-muted); }
.card-code { font-family: var(--yf-font-num); font-size: 13px; color: var(--yf-muted); }
.card-action { display: flex; align-items: center; gap: var(--yf-s2); flex-wrap: wrap; }

.card-note { background: var(--yf-sky-50); border-color: var(--yf-sky-200); box-shadow: none; }
.note-text { margin: var(--yf-s2) 0 0; font-size: 15px; line-height: 1.8; }

.legend {
  list-style: none;
  display: flex;
  gap: var(--yf-s4);
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--yf-ink-2);
}
.legend li { display: flex; align-items: center; gap: var(--yf-s2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
.swatch-c1 { background: var(--yf-c1); }
.swatch-c2 { background: var(--yf-c2); }
.swatch-c3 { background: var(--yf-c3); }
.swatch-c4 { background: var(--yf-c4); }
.swatch-target { background: var(--yf-target); }

.sub-title { margin: var(--yf-s5) 0 var(--yf-s2); font-size: 13px; font-weight: 700; color: var(--yf-ink-2); }

/* ---------- 状態チップ・バッジ ---------- */
.chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--yf-s1);
  flex: none;
  padding: 0 var(--yf-s3);
  border-radius: var(--yf-r-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}
.chip.is-good { background: var(--yf-good-bg); color: var(--d-good-text); }
.chip.is-warn { background: var(--yf-warn-bg); color: var(--d-warn-text); }
.chip.is-bad  { background: var(--yf-bad-bg);  color: var(--d-bad-text); }

.status.is-live  { background: var(--yf-good-bg); color: var(--d-good-text); }
.status.is-ready { background: var(--yf-sky-100); color: var(--yf-navy); }
.status.is-build { background: var(--yf-sky-50); color: var(--yf-blue); box-shadow: inset 0 0 0 1px var(--yf-sky-200); }
.status.is-plan  { background: var(--yf-surface-2); color: var(--yf-ink-2); box-shadow: inset 0 0 0 1px var(--yf-line); }

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 var(--yf-s2);
  border-radius: var(--yf-r-pill);
  background: var(--yf-bad-bg);
  color: var(--d-bad-text);
  font-family: var(--yf-font-num);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- KPI(第3階層: 角丸小・影なし) ---------- */
.kpis { display: grid; gap: var(--yf-s4); }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1520px) {
  .kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.kpi {
  display: grid;
  gap: var(--yf-s2);
  align-content: start;
  min-width: 0;
  padding: var(--yf-s5);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
}
.kpi-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--yf-ink-2); line-height: 1.5; }
.kpi-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 var(--yf-s1);
  margin: 0;
}
.kpi-value .num {
  font-family: var(--yf-font-num);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--yf-ink);
}
.kpi-value .unit { font-size: 13px; font-weight: 500; color: var(--yf-muted); }
.kpi-aside { margin-left: var(--yf-s2); font-size: 12px; color: var(--yf-ink-2); }
.kpi-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--yf-s1) var(--yf-s3);
  margin: 0;
  font-size: 12px;
  color: var(--yf-muted);
}
.delta { font-family: var(--yf-font-num); font-size: 13px; font-weight: 700; white-space: nowrap; }
.delta.is-good { color: var(--d-good-text); }
.delta.is-warn { color: var(--d-warn-text); }
.delta-ref { font-family: var(--yf-font-jp); font-size: 12px; font-weight: 500; color: var(--yf-muted); }

.meter {
  height: 8px;
  margin-top: var(--yf-s1);
  border-radius: var(--yf-r-pill);
  background: var(--yf-sky-100);
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: var(--yf-r-pill);
  background: var(--yf-yellow);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yf-gold) 35%, transparent);
}
.meter.is-warn .meter-fill { background: var(--yf-warn); box-shadow: none; }

/* ---------- ホーム ---------- */
.portal-hero {
  padding: var(--yf-s10);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-card);
  box-shadow: var(--yf-shadow-card);
}
.portal-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--yf-blue); }
.portal-title {
  margin: var(--yf-s2) 0 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--yf-navy);
}
.portal-lead { margin: var(--yf-s2) 0 0; font-size: 15px; color: var(--yf-ink-2); }

.ask {
  display: flex;
  align-items: center;
  gap: var(--yf-s3);
  max-width: 720px;
  margin-top: var(--yf-s6);
  padding: var(--yf-s1) var(--yf-s1) var(--yf-s1) var(--yf-s4);
  background: var(--yf-surface-2);
  border: 1px solid var(--yf-sky-200);
  border-radius: var(--yf-r-inner);
}
.ask:focus-within { outline: 3px solid var(--yf-blue); outline-offset: 2px; }
.ask-prefix {
  flex: none;
  padding-right: var(--yf-s3);
  border-right: 1px solid var(--yf-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--yf-navy);
  line-height: 24px;
}
.ask-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--yf-ink);
}
.ask-input::placeholder { color: var(--yf-muted); }
.ask-input:focus-visible { outline: none; }

.block { display: grid; gap: var(--yf-s3); margin-top: var(--yf-s2); }
.block-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }

.shortcuts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--yf-s3);
}
.shortcut {
  display: flex;
  align-items: center;
  gap: var(--yf-s3);
  width: 100%;
  padding: var(--yf-s4);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
  font: inherit;
  color: var(--yf-ink);
  text-align: left;
  cursor: pointer;
}
.shortcut:hover { border-color: var(--yf-sky-200); background: var(--yf-sky-50); }
.shortcut-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yf-sky-100);
  color: var(--yf-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.shortcut-text { display: grid; min-width: 0; line-height: 1.5; }
.shortcut-name { font-size: 15px; font-weight: 700; }
.shortcut-sub { font-size: 12px; color: var(--yf-muted); }
.shortcut-chev { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--yf-muted); }

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--yf-s3);
}
.tool {
  display: grid;
  gap: var(--yf-s2);
  align-content: start;
  padding: var(--yf-s4) var(--yf-s5);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
}
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--yf-s2); }
.tool-name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tool-code {
  display: inline-block;
  margin-left: var(--yf-s1);
  font-family: var(--yf-font-num);
  font-size: 12px;
  font-weight: 500;
  color: var(--yf-muted);
}
.tool-desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--yf-ink-2); }

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--yf-s4);
}
.step {
  display: grid;
  gap: var(--yf-s2);
  align-content: start;
  padding: var(--yf-s5);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
}
.step.is-current {
  border: 2px solid var(--yf-yellow-200);
  padding: calc(var(--yf-s5) - 1px);
  box-shadow: var(--yf-shadow-card);
}
.step-rail { display: flex; align-items: center; gap: var(--yf-s3); min-height: 32px; margin-bottom: var(--yf-s1); }
.step-rail::after {
  content: "";
  order: 3;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--yf-line);
}
.step.is-done .step-rail::after { background: var(--yf-navy); }
.step.is-current .step-rail::after {
  background: linear-gradient(90deg, var(--yf-yellow) 0 40%, var(--yf-line) 40% 100%);
}
.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--yf-line);
  background: var(--yf-surface-2);
  color: var(--yf-ink-2);
  font-family: var(--yf-font-num);
  font-size: 14px;
  font-weight: 700;
}
.step.is-done .step-no { background: var(--yf-navy); border-color: var(--yf-navy); color: var(--yf-surface); }
.step.is-current .step-no { background: var(--yf-yellow); border-color: var(--yf-gold); color: var(--yf-navy); }
.step-here {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: var(--yf-s1);
  padding: 0 var(--yf-s3) 0 var(--yf-s2);
  border-radius: var(--yf-r-pill);
  background: var(--yf-navy);
  color: var(--yf-yellow);
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  white-space: nowrap;
}
.step-here svg { width: 24px; height: 18px; color: var(--yf-yellow); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: var(--yf-s2); }
.step-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.step-period { margin: 0; font-size: 13px; color: var(--yf-muted); }
.step-items { margin: 0; font-size: 13px; line-height: 1.7; color: var(--yf-ink-2); }

/* ---------- 経営サマリー: ヒーロー(第1階層) ---------- */
.focus-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--yf-s8);
  padding: var(--yf-s8) var(--yf-s10) 128px;
  border-radius: var(--yf-r-card);
  box-shadow: var(--yf-shadow-hero);
  background: linear-gradient(118deg, var(--yf-navy) 0%, var(--yf-blue) 56%, var(--yf-sky) 112%);
  color: var(--yf-surface);
}
.focus-body { position: relative; z-index: 1; max-width: 38em; }
.focus-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--yf-sky-200); }
.focus-title {
  margin: var(--yf-s2) 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.focus-em { color: var(--yf-yellow); }
.focus-note {
  margin: var(--yf-s3) 0 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--yf-surface) 88%, transparent);
}
.focus-chips {
  position: relative;
  z-index: 1;
  align-self: end;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 116px);
  gap: var(--yf-s3);
}
.focus-chip {
  display: grid;
  justify-items: center;
  gap: var(--yf-s1);
  padding: var(--yf-s3) var(--yf-s2);
  border-radius: var(--yf-r-inner);
  background: color-mix(in srgb, var(--yf-navy) 48%, transparent);
  border: 1px solid color-mix(in srgb, var(--yf-surface) 24%, transparent);
  text-align: center;
}
.focus-chip-label { font-size: 12px; line-height: 1.4; color: var(--yf-sky-100); }
.focus-chip-value {
  font-family: var(--yf-font-num);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}
.focus-chip-value small { margin-left: 2px; font-size: 13px; font-weight: 500; }

.focus-bubbles {
  position: absolute;
  top: var(--yf-s5);
  right: var(--yf-s8);
  width: 64px;
  height: 40px;
  z-index: 0;
}
.bubble { fill: var(--yf-surface); opacity: 0.9; }

.focus-waves {
  position: absolute;
  left: -48px;
  bottom: -1px;
  width: calc(100% + 96px);
  height: 116px;
  z-index: 0;
  animation: yf-wave-drift 3s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}
.wave { animation: yf-wave-rise 2.4s cubic-bezier(0.22, 0.7, 0.2, 1) both; }
.wave-1 { fill: var(--yf-surface); animation-delay: 0s; }
.wave-2 { fill: var(--yf-navy); animation-delay: 0.2s; }
.wave-3 { fill: var(--yf-surface); animation-delay: 0.4s; }
.wave-4 { fill: var(--yf-blue); animation-delay: 0.6s; }

@keyframes yf-wave-drift {
  from { transform: translateX(48px); }
  to   { transform: translateX(0); }
}
@keyframes yf-wave-rise {
  from { transform: translateY(40px); }
  to   { transform: translateY(0); }
}
/* 一度寄せたら終わり(ビューを行き来しても繰り返さない) */
.focus-hero.is-settled .focus-waves,
.focus-hero.is-settled .wave { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .focus-waves,
  .wave { animation: none !important; }
}

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; margin: 0 calc(var(--yf-s2) * -1); }
.store-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.store-table th,
.store-table td {
  padding: var(--yf-s3);
  border-bottom: 1px solid var(--yf-line);
  text-align: left;
  vertical-align: middle;
}
.store-table thead th {
  background: var(--yf-surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--yf-muted);
  white-space: nowrap;
}
.store-table tbody tr:last-child > * { border-bottom: 0; }
.store-table tbody th { font-weight: 700; }
.store-table .num {
  text-align: right;
  font-family: var(--yf-font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.store-table .num small {
  margin-left: 2px;
  font-family: var(--yf-font-jp);
  font-size: 12px;
  font-weight: 500;
  color: var(--yf-muted);
}
.store-name { display: block; white-space: nowrap; }
.store-memo { display: block; font-size: 12px; font-weight: 500; color: var(--yf-ink-2); white-space: nowrap; }

/* ---------- 今日の要対応 ---------- */
.todos { list-style: none; margin: 0; padding: 0; display: grid; }
.todo { padding: var(--yf-s3) 0; border-top: 1px solid var(--yf-line); }
.todo:first-child { padding-top: 0; border-top: 0; }
.todo-top { display: flex; align-items: center; justify-content: space-between; gap: var(--yf-s2); }
.todo-due { font-size: 12px; font-weight: 700; color: var(--yf-ink-2); white-space: nowrap; }
.todo-title { margin: var(--yf-s2) 0 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.todo-sub { margin: 0; font-size: 13px; color: var(--yf-ink-2); }

/* ---------- チェックリスト ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--yf-s3);
  padding: var(--yf-s3) 0;
  border-top: 1px solid var(--yf-line);
}
.check:first-child { padding-top: 0; border-top: 0; }
.check-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.check.is-done .check-mark { background: var(--yf-good-bg); color: var(--d-good-text); }
.check.is-wait .check-mark { background: var(--yf-warn-bg); color: var(--d-warn-text); }
.check.is-auto .check-mark { background: var(--yf-sky-100); color: var(--yf-navy); }
.check.is-off  .check-mark { background: var(--yf-surface-2); color: var(--yf-muted); box-shadow: inset 0 0 0 1px var(--yf-line); }
.check-name { font-size: 14px; font-weight: 500; line-height: 1.5; }
.check-note { display: block; font-size: 12px; color: var(--yf-muted); }
.check-state { font-size: 13px; font-weight: 700; color: var(--yf-ink-2); text-align: right; white-space: nowrap; }
.check.is-done .check-state { color: var(--d-good-text); }
.check.is-wait .check-state { color: var(--d-warn-text); }
.check.is-off  .check-state { color: var(--d-warn-text); }

/* ---------- 在庫の健康度 ---------- */
.mini-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--yf-s3);
}
.mini-stat { padding: var(--yf-s3) var(--yf-s4); background: var(--yf-surface-2); border-radius: var(--yf-r-inner); }
.mini-stat dt { font-size: 12px; color: var(--yf-muted); }
.mini-stat dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--yf-s1); margin: 0; }
.mini-stat .num { font-family: var(--yf-font-num); font-size: 24px; font-weight: 600; line-height: 1.3; }
.mini-stat .unit { font-size: 12px; color: var(--yf-muted); }
.mini-aside { margin-left: var(--yf-s1); font-family: var(--yf-font-num); font-size: 13px; font-weight: 700; color: var(--d-warn-text); }

/* ---------- 応募ファネル ---------- */
.funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--yf-s6);
}
.funnel-step {
  position: relative;
  display: grid;
  gap: var(--yf-s2);
  align-content: start;
  padding: var(--yf-s4) var(--yf-s5);
  background: var(--yf-surface-2);
  border-radius: var(--yf-r-inner);
}
.funnel-step + .funnel-step::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--yf-muted);
  border-right: 2px solid var(--yf-muted);
  transform: translateY(-50%) rotate(45deg);
}
.funnel-name { font-size: 13px; font-weight: 700; color: var(--yf-ink-2); }
.funnel-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--yf-s1); }
.funnel-value .num { font-family: var(--yf-font-num); font-size: 32px; font-weight: 600; line-height: 1.15; }
.funnel-value .unit { font-size: 13px; color: var(--yf-muted); }
.funnel-rate { margin-left: auto; font-size: 12px; color: var(--yf-ink-2); white-space: nowrap; }
.funnel-bar { display: block; height: 6px; border-radius: var(--yf-r-pill); background: var(--yf-sky-100); overflow: hidden; }
.funnel-bar span { display: block; height: 100%; border-radius: var(--yf-r-pill); background: var(--yf-c1); }

/* ---------- 求人自動化の流れ ---------- */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
  align-items: center;
  gap: var(--yf-s6);
}
.flow-src {
  display: grid;
  gap: var(--yf-s1);
  padding: var(--yf-s4);
  background: var(--yf-sky-50);
  border: 1px solid var(--yf-sky-200);
  border-radius: var(--yf-r-inner);
}
.flow-src-name { font-size: 15px; font-weight: 700; color: var(--yf-navy); }
.flow-src-meta { font-size: 12px; color: var(--yf-ink-2); }
.flow-outs { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--yf-s2); }
.flow-outs::before {
  content: "";
  position: absolute;
  left: calc(var(--yf-s3) * -1);
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--yf-sky-200);
}
.flow-outs li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yf-s2);
  min-height: 48px;
  padding: var(--yf-s2) var(--yf-s3);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
}
.flow-outs li::before {
  content: "";
  position: absolute;
  left: calc(var(--yf-s3) * -1 - 1px);
  top: 50%;
  width: var(--yf-s3);
  height: 2px;
  background: var(--yf-sky-200);
}
.flow::before { display: none; }
.flow-src { position: relative; }
.flow-src::after {
  content: "";
  position: absolute;
  right: calc(var(--yf-s3) * -1 - 1px);
  top: 50%;
  width: var(--yf-s3);
  height: 2px;
  background: var(--yf-sky-200);
}
.flow-name { font-size: 14px; font-weight: 500; }

/* ---------- 出退勤 ---------- */
.presence { list-style: none; margin: 0; padding: 0; display: grid; }
.presence li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(24px, auto);
  align-items: center;
  gap: var(--yf-s4);
  min-height: 52px;
  padding: var(--yf-s2) 0;
  border-top: 1px solid var(--yf-line);
}
.presence li:first-child { border-top: 0; }
.presence-store { font-size: 14px; font-weight: 700; }
.presence-count { font-family: var(--yf-font-num); font-size: 14px; font-weight: 500; color: var(--yf-ink-2); white-space: nowrap; }
.presence-count .num { font-size: 22px; font-weight: 600; color: var(--yf-ink); }
.presence-state { justify-self: end; font-size: 14px; }
.presence-state.is-good { color: var(--yf-good); }
.presence .chip { justify-self: end; }

.punches { list-style: none; margin: 0; padding: 0; display: grid; }
.punches li {
  display: grid;
  grid-template-columns: 56px 88px 88px minmax(0, 1fr);
  align-items: center;
  gap: var(--yf-s3);
  min-height: 52px;
  padding: var(--yf-s2) 0;
  border-top: 1px solid var(--yf-line);
}
.punches li:first-child { border-top: 0; }
.punch-time {
  font-family: var(--yf-font-num);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.punch-kind {
  justify-self: start;
  padding: 0 var(--yf-s3);
  border-radius: var(--yf-r-pill);
  background: var(--yf-sky-50);
  box-shadow: inset 0 0 0 1px var(--yf-sky-200);
  color: var(--yf-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}
.punch-kind.is-break { background: var(--yf-surface-2); box-shadow: inset 0 0 0 1px var(--yf-line); color: var(--yf-ink-2); }
.punches .chip { justify-self: start; }
.punch-store { font-size: 13px; color: var(--yf-ink-2); }
.punch-name { font-size: 14px; font-weight: 700; }
.punch-note { margin-left: var(--yf-s2); font-size: 12px; font-weight: 500; color: var(--yf-muted); }
.punches li.is-missing .punch-time { color: var(--yf-muted); }

/* ---------- ボイスメモ ---------- */
.memos { list-style: none; margin: 0; padding: 0; display: grid; }
.memo {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--yf-s1) var(--yf-s3);
  padding: var(--yf-s3) 0;
  border-top: 1px solid var(--yf-line);
}
.memo:first-child { padding-top: 0; border-top: 0; }
.memo-time { font-family: var(--yf-font-num); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--yf-s2);
  padding: 0 var(--yf-s3);
  border-radius: var(--yf-r-pill);
  box-shadow: inset 0 0 0 1px var(--yf-line);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  color: var(--yf-ink-2);
}
.tag .swatch { width: 8px; height: 8px; border-radius: 50%; }
.memo-store { font-size: 13px; color: var(--yf-ink-2); }
.memo-text { grid-column: 2 / -1; grid-row: 2; margin: 0; font-size: 14px; line-height: 1.6; }
.memo .chip { grid-column: 4; grid-row: 1; justify-self: end; }

/* ---------- チャート ---------- */
.chart { position: relative; width: 100%; min-height: 40px; }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: var(--yf-font-jp); }

.ax-grid { stroke: var(--yf-grid); stroke-width: 1; shape-rendering: crispEdges; }
.ax-base { stroke: var(--yf-line); stroke-width: 1; shape-rendering: crispEdges; }
.ax-tick { fill: var(--yf-muted); font-size: 12px; font-family: var(--yf-font-num) !important; font-variant-numeric: tabular-nums; }
.ax-label { fill: var(--yf-ink-2); font-size: 12px; }
.ax-label.is-weekend { fill: var(--yf-ink); font-weight: 700; }
.ax-sub { fill: var(--yf-muted); font-size: 11px; }
.row-label { fill: var(--yf-ink); font-size: 13px; font-weight: 500; }

.val { fill: var(--yf-ink); font-size: 12px; font-weight: 600; font-family: var(--yf-font-num) !important; }
.val-unit { fill: var(--yf-muted); font-size: 11px; font-weight: 500; font-family: var(--yf-font-jp); }
.val-strong { font-size: 14px; }
.val-warn { fill: var(--d-warn-text); font-size: 12px; font-weight: 700; }
.val-bad { fill: var(--d-bad-text); font-size: 12px; font-weight: 700; }

.m-c1 { fill: var(--yf-c1); }
.m-c2 { fill: var(--yf-c2); }
.m-c3 { fill: var(--yf-c3); }
.m-c4 { fill: var(--yf-c4); }
.m-target { fill: var(--yf-target); }
.m-track { fill: var(--yf-sky-50); }
.mark { transition: none; }
.mark.is-hot { filter: brightness(1.15) saturate(1.05); }

.line-c1 { fill: none; stroke: var(--yf-c1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dot-c1 { fill: var(--yf-c1); stroke: var(--yf-surface); stroke-width: 2; }
.crosshair { stroke: var(--yf-muted); stroke-width: 1; shape-rendering: crispEdges; }

.seg { fill: none; }
.seg-c1 { stroke: var(--yf-c1); }
.seg-c2 { stroke: var(--yf-c2); }
.seg-c3 { stroke: var(--yf-c3); }
.seg-c4 { stroke: var(--yf-c4); }
.seg.is-hot { filter: brightness(1.15); }
.donut-center-num { fill: var(--yf-ink); font-family: var(--yf-font-num) !important; font-weight: 600; }
.donut-center-sub { fill: var(--yf-muted); font-size: 12px; }
.donut-pct { fill: var(--yf-ink); font-size: 13px; font-weight: 700; font-family: var(--yf-font-num) !important; }

.hit { fill: transparent; cursor: default; }
.hit:focus { outline: none; }
.hit:focus-visible { stroke: var(--yf-blue); stroke-width: 2; }
.seg-hit { fill: none; stroke: transparent; cursor: default; }
.seg-hit:focus { outline: none; }
.seg-hit:focus-visible { stroke: color-mix(in srgb, var(--yf-blue) 25%, transparent); }

.donut-wrap { display: flex; align-items: center; gap: var(--yf-s6); flex-wrap: wrap; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--yf-s3); min-width: 160px; flex: 1; }
.donut-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--yf-s2);
  font-size: 14px;
}
.donut-legend .lg-val { font-family: var(--yf-font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-legend .lg-val small { margin-left: 2px; font-family: var(--yf-font-jp); font-size: 12px; font-weight: 500; color: var(--yf-muted); }

/* ツールチップ(1つを使い回す) */
.chart-tip {
  position: fixed;
  z-index: 60;
  display: none;
  min-width: 136px;
  padding: var(--yf-s2) var(--yf-s3);
  background: var(--yf-surface);
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-r-inner);
  box-shadow: var(--yf-shadow-float);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}
.chart-tip.is-on { display: block; }
.tip-title { margin-bottom: var(--yf-s1); color: var(--yf-muted); font-weight: 700; }
.tip-row { display: flex; align-items: center; gap: var(--yf-s2); }
.tip-row + .tip-row { margin-top: 2px; }
.tip-key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.tip-key.k-c1 { background: var(--yf-c1); }
.tip-key.k-c2 { background: var(--yf-c2); }
.tip-key.k-c3 { background: var(--yf-c3); }
.tip-key.k-c4 { background: var(--yf-c4); }
.tip-key.k-target { background: var(--yf-target); }
.tip-val { font-family: var(--yf-font-num); font-size: 14px; font-weight: 600; color: var(--yf-ink); }
.tip-name { margin-left: auto; padding-left: var(--yf-s3); color: var(--yf-ink-2); }

/* ---------- 右下: AIに聞く ---------- */
.ai-fab {
  position: fixed;
  right: var(--yf-s6);
  bottom: var(--yf-s6);
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yf-yellow);
  color: var(--yf-navy);
  box-shadow: var(--yf-shadow-float);
  font-family: var(--yf-font-jp);
  cursor: pointer;
}
.ai-fab:focus-visible { outline: 3px solid var(--yf-navy); outline-offset: 3px; border-radius: 50%; }
.ai-fab-fish { width: 34px; height: 26px; display: block; }
.ai-fab-label { font-size: 12px; font-weight: 700; line-height: 1.3; }
.ai-fab-tip {
  position: absolute;
  right: calc(100% + var(--yf-s3));
  top: 50%;
  transform: translateY(-50%);
  padding: var(--yf-s2) var(--yf-s3);
  border-radius: var(--yf-r-inner);
  background: var(--yf-navy);
  color: var(--yf-surface);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--yf-shadow-card);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.ai-fab-tip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--yf-navy);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.ai-fab:hover .ai-fab-tip,
.ai-fab:focus-visible .ai-fab-tip { visibility: visible; opacity: 1; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1280px) {
  .main { padding-left: var(--yf-s6); padding-right: var(--yf-s6); }
  .topbar { padding-left: var(--yf-s6); padding-right: var(--yf-s6); }
  .focus-hero { padding-left: var(--yf-s8); padding-right: var(--yf-s8); }
  .kpi-value .num { font-size: 34px; }
}

/* 1024px 以下: サイドバーをアイコン幅に */
@media (max-width: 1024px) {
  .app { grid-template-columns: 64px minmax(0, 1fr); }
  .sidebar { padding: var(--yf-s4) var(--yf-s2); align-items: center; }
  .brand { padding: 0; }
  .brand-text,
  .demo-pill-text,
  .sources,
  .side-foot,
  .nav-ext { display: none; }
  .demo-pill { margin: 0; padding: 0; width: 24px; justify-content: center; align-self: center; }
  .nav { width: 100%; }
  .nav-item { justify-content: center; padding: var(--yf-s2); }
  .nav-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav-icon { width: 32px; height: 32px; }
  .focus-hero { grid-template-columns: minmax(0, 1fr); gap: var(--yf-s6); }
  .focus-chips { align-self: start; grid-template-columns: repeat(3, minmax(0, 140px)); }
  .focus-bubbles { right: var(--yf-s6); }
  .roadmap { gap: var(--yf-s3); }
}

@media (max-width: 960px) {
  .grid-2,
  .grid-2-1,
  .grid-1-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-step:nth-child(3)::before { display: none; }
}

/* 768px 以下: 縦積み */
@media (max-width: 768px) {
  html { scroll-padding-top: var(--yf-s4); }
  .app { display: block; }
  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--yf-s2) var(--yf-s3);
    padding: var(--yf-s3) var(--yf-s4);
    border-right: 0;
    border-bottom: 1px solid var(--yf-line);
  }
  .brand-text { display: grid; }
  .demo-pill { width: auto; padding: 0 var(--yf-s3); margin-left: auto; }
  .demo-pill-text { display: inline; }
  .nav { flex-basis: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
  .nav ul { display: flex; gap: var(--yf-s1); width: max-content; }
  .nav-item { padding: var(--yf-s1) var(--yf-s3) var(--yf-s1) var(--yf-s1); gap: var(--yf-s2); font-size: 13px; min-height: 40px; }
  .nav-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-icon { width: 28px; height: 28px; }
  .topbar { position: static; padding: var(--yf-s3) var(--yf-s4); backdrop-filter: none; }
  .main { padding: var(--yf-s4) var(--yf-s4) 112px; }
  .view { gap: var(--yf-s4); }
  .view-title { font-size: 24px; }
  .card { padding: var(--yf-s5); }
  .portal-hero { padding: var(--yf-s6); }
  .portal-title { font-size: 26px; }
  .ask { flex-wrap: wrap; padding: var(--yf-s2) var(--yf-s2) var(--yf-s2) var(--yf-s3); }
  .ask-prefix { border-right: 0; }
  .ask-input { flex-basis: 100%; }
  .focus-hero { padding: var(--yf-s6) var(--yf-s5) 128px; }
  .focus-title { font-size: 24px; }
  .focus-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--yf-s2); }
  .focus-chip-value { font-size: 22px; }
  .focus-bubbles { display: none; }
  .kpis-3,
  .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: var(--yf-s4); }
  .kpi-value .num { font-size: 30px; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .punches li { grid-template-columns: 52px auto minmax(0, 1fr); }
  .punch-name { grid-column: 2 / -1; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: var(--yf-s4); }
  .flow-src::after,
  .flow-outs::before,
  .flow-outs li::before { display: none; }
  .ai-fab { right: var(--yf-s4); bottom: var(--yf-s4); width: 64px; height: 64px; }
  .ai-fab-fish { width: 30px; height: 22px; }
}

@media (max-width: 520px) {
  .shortcuts,
  .kpis-4,
  .kpis-3,
  .kpis-6,
  .funnel,
  .mini-stats { grid-template-columns: minmax(0, 1fr); }
  .funnel-step + .funnel-step::before { display: none; }
  .demo-band { align-items: flex-start; }
}
