/* 開発の流れ。style.css の色・字の決まりの上に重ねる */
:root {
  --k-design: #2563eb;
  --k-build: #7c3aed;
  --k-test: #059669;
  --k-ship: #d97706;
}
.flow { max-width: 1480px; margin: 0 auto; padding: 8px 28px 8px; }
.fsec { margin: 26px 0 34px; }
.fhead h2 { margin: 0 0 6px; font-size: 20px; }
.fhead p { margin: 0 0 14px; color: var(--ink2); max-width: 52em; }

/* ---- V 字 ---- */
.vwrap { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px 26px; }
.vgrid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 30px 24px; }
.vsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.vnode { --k: var(--k-design); appearance: none; border: 2px solid color-mix(in srgb, var(--k) 45%, white); background: color-mix(in srgb, var(--k) 7%, white); color: var(--ink); border-radius: 12px; padding: 10px 10px 9px; cursor: pointer; text-align: left; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.vnode b { font-size: 13.5px; line-height: 1.3; line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
.vnode span { font-size: 11px; color: var(--muted); line-height: 1.35; word-break: auto-phrase; text-wrap: pretty; }
.vnode:hover { transform: translateY(-1px); border-color: var(--k); }
.vnode.k-build { --k: var(--k-build); }
.vnode.k-test { --k: var(--k-test); }
.vnode.k-ship { --k: var(--k-ship); }
.vnode.on { background: var(--k); border-color: var(--k); color: #fff; box-shadow: 0 8px 22px -10px var(--k); }
.vnode.on span { color: rgba(255, 255, 255, .85); }
.vnode.rel { box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 45%, transparent), 0 0 18px 2px color-mix(in srgb, #f59e0b 35%, transparent); border-color: #f59e0b; animation: rel-pulse 1.6s ease-in-out 2; }
@keyframes rel-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #f59e0b 25%, transparent), 0 0 24px 4px color-mix(in srgb, #f59e0b 30%, transparent); } }
.vnode:focus-visible, .dcard:focus-visible, .drcard:focus-visible, .chipbtn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.vsvg .flow-line { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linejoin: round; }
.vsvg .pair-line { fill: none; stroke: #cbd5e1; stroke-width: 1.6; stroke-dasharray: 4 4; }
.vsvg .pair-line.on { stroke: #0f172a; stroke-width: 2; }
.vsvg text { font-size: 10.5px; fill: var(--muted); font-family: var(--sans); }
.vsvg .pair-label.on { fill: var(--ink); font-weight: 700; }
.vnote { margin-top: 10px; font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vnote button { font-size: 12px; font-weight: 700; border: 1px solid #fcd34d; background: #fff; border-radius: 999px; padding: 2px 10px; cursor: pointer; }

/* 工程の説明 */
.pcard { margin-top: 14px; border-radius: 14px; }
.pcard .kind { font-size: 11.5px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 8px; align-self: center; }
.pcard h3 { margin: 0; font-size: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcard h3 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pcard > p { margin: 8px 0 12px; color: var(--ink2); }
.pgrid { display: grid; grid-template-columns: 1fr 1.3fr 1.4fr; gap: 16px; }
.pgrid h4, .prel h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.pgrid ul { margin: 0; padding-left: 1.2em; color: var(--ink2); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 7px; background: var(--line2); color: var(--ink2); }
.prel { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.chipbtn { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.chipbtn:hover { border-color: #94a3b8; }

/* ---- 設計の種類 ---- */
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 8px; }
.dcard:hover { border-color: #94a3b8; }
.dcard.on { border-color: #f59e0b; box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 30%, transparent); }
.dtop { display: flex; gap: 12px; align-items: center; }
.dsvg { width: 60px; height: 44px; flex: none; fill: none; stroke: #334155; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--line2); border-radius: 8px; padding: 2px; }
.dtop h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.dphase { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dcard p { margin: 0; font-size: 13px; color: var(--ink2); }
.dlayers { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.lstrip { display: flex; gap: 3px; align-items: center; }
.lstrip i { width: 18px; height: 8px; border-radius: 2px; background: var(--line); display: block; }
.lstrip i.y { background: #f59e0b; }
.lstrip small { font-size: 11px; color: var(--muted); margin-left: 6px; }
.dlayers a { font-size: 12px; font-weight: 700; color: #1d4ed8; white-space: nowrap; }

/* ---- 進め方の比較 ---- */
.cvis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.crow, .fsec, .dcard, .drcard { min-width: 0; }
.crow { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.crow h3 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.crow h3 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.wf { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.wf div { flex: 1 0 auto; min-width: 92px; padding: 9px 10px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--k); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); margin-right: -4px; text-align: center; }
.wf div:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.wf .rel-flag { background: transparent; color: var(--k-ship); clip-path: none; min-width: 0; flex: none; align-self: center; font-size: 12px; }
.ag { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.backlog { flex: none; border: 2px dashed #94a3b8; border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--ink2); text-align: center; line-height: 1.4; }
.sprint { flex: none; border: 2px solid var(--k-test); border-radius: 999px; padding: 8px 14px; font-size: 11.5px; color: var(--ink2); background: color-mix(in srgb, var(--k-test) 6%, white); text-align: center; line-height: 1.45; }
.sprint b { display: block; color: var(--k-test); font-size: 12px; }
.ag .arrow { flex: none; color: #94a3b8; font-weight: 700; }
.ag .ship { flex: none; font-size: 11px; font-weight: 700; color: var(--k-ship); }
.ctable-wrap { overflow-x: auto; padding: 4px 6px; }
.ctable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctable th, .ctable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.ctable thead th { font-size: 13px; }
.ctable tbody th { color: var(--muted); font-weight: 700; white-space: nowrap; width: 9em; }
.ctable .wfh { color: var(--k-design); }
.ctable .agh { color: var(--k-test); }

/* ---- 駆動開発 ---- */
.drgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.drcard:hover { border-color: #94a3b8; }
.drcard.on { border-color: #f59e0b; box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 30%, transparent); }
.drcard.warn { background: #fffdf5; border-style: dashed; }
.drhead { display: flex; align-items: center; gap: 10px; }
.abbr { font-family: var(--latin); font-weight: 600; font-size: 13px; color: #fff; background: var(--ink); border-radius: 7px; padding: 3px 8px; flex: none; }
.drcard.warn .abbr { background: #b45309; }
.drhead h3 { margin: 0; font-size: 16px; }
.first { font-size: 13px; font-weight: 700; color: var(--k-build); }
.drcard p { margin: 0; font-size: 13px; color: var(--ink2); }
.loop { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; }
.loop li { background: var(--line2); border-radius: 7px; padding: 2px 8px; color: var(--ink2); }
.loop li.sep { background: none; padding: 0; color: #94a3b8; }
.loop li.again { background: none; color: var(--k-build); font-weight: 700; }
.fit { font-size: 12.5px; color: var(--ink2); }
.fit b { color: var(--muted); margin-right: 6px; }
.phs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.phs b { color: var(--muted); margin-right: 2px; }
.drtools { font-size: 12px; color: var(--muted); margin-top: auto; }

/* ---- 知らせ ---- */
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13px; display: flex; gap: 12px; align-items: center; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .5); z-index: 40; max-width: calc(100vw - 24px); }
.toast button { font: inherit; font-size: 12px; font-weight: 700; border: 0; background: #f59e0b; color: #111827; border-radius: 999px; padding: 4px 12px; cursor: pointer; flex: none; }

@media (max-width: 1100px) {
  .dgrid, .drgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: 1fr 1fr; }
}
/* V 字を 2 列にする幅（flow.js の narrow と同じ） */
@media (max-width: 1279px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; max-width: 680px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .flow { padding: 4px 16px; }
  .vwrap { padding: 16px 12px 18px; }
  .vgrid { gap: 28px 34px; }
  .vnode { min-height: 56px; padding: 8px 9px; }
  .vnode b { font-size: 13.5px; }
  .vnode span { font-size: 10.5px; }
  .dgrid, .drgrid, .pgrid { grid-template-columns: 1fr; }
  .ctable tbody th { width: 6.5em; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .vnode, .dcard, .drcard { transition: none; animation: none !important; }
}
/* hidden 属性を display の指定より優先する（説明の帯と知らせが空のまま出ないように） */
.vnote[hidden], .toast[hidden] { display: none; }

/* ---- アジャイルの代表的なやり方 ---- */
.tree { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; font-weight: 700; }
.troot { padding: 6px 12px; border-radius: 10px; background: var(--ink); color: #fff; }
.tarrow { color: #94a3b8; }
.ttabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tleaf { appearance: none; font: inherit; cursor: pointer; padding: 5px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink2); }
.tleaf:hover { border-color: #94a3b8; color: var(--ink); }
.tleaf:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.tleaf.on { border-color: var(--k-test); color: var(--k-test); background: color-mix(in srgb, var(--k-test) 7%, white); }
.scrum { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
.scrum-left { display: grid; gap: 12px; }
.ring { position: relative; aspect-ratio: 1 / 1; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .rtrack { fill: none; stroke: color-mix(in srgb, var(--k-test) 18%, white); stroke-width: 7; }
.ring path.arc { fill: none; stroke: var(--k-test); stroke-width: 1.6; }
.ring path.tip { fill: var(--k-test); stroke: none; }
.rnode { position: absolute; transform: translate(-50%, -50%); appearance: none; border: 2px solid color-mix(in srgb, var(--k-test) 45%, white); background: #fff; border-radius: 12px; padding: 7px 10px; cursor: pointer; text-align: center; width: max-content; max-width: 34%; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 4px 12px -8px rgba(15, 23, 42, .4); }
.rnode b { word-break: keep-all; }
.rnode b { font-size: 13px; line-height: 1.3; }
.rnode span { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.rnode.center { border-style: dashed; background: color-mix(in srgb, var(--k-test) 6%, white); }
.rnode.on, .chipbtn.on { background: var(--k-test); border-color: var(--k-test); color: #fff; }
.rnode.on span { color: rgba(255, 255, 255, .85); }
.sflow, .sroles { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sfl { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.sarrow { color: #94a3b8; font-weight: 700; }
.sdetail h3 { margin: 0; font-size: 19px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sdetail .kind { font-size: 11.5px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 8px; }
.smeta { margin: 8px 0 6px; font-size: 13px; font-weight: 700; color: var(--k-test); }
.sdetail p { margin: 0; color: var(--ink2); }
.aintro { margin: 0 0 14px; font-size: 13.5px; color: var(--ink2); max-width: 780px; }
.aintro b { color: var(--k-test); margin-right: 6px; }
.sdetail .slink { margin-top: 10px; font-size: 13px; }
.sdetail .slink a { color: #1d4ed8; }
/* カンバンのボード */
.kboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.kcol { background: var(--line2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kcol.full { background: #fee2e2; }
.khead { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.kh, .kwip, .kage, .kpullbtn { appearance: none; font: inherit; cursor: pointer; }
.kh { border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--ink2); padding: 2px 3px; border-radius: 6px; text-align: left; }
.kwip { border: 1px solid #fca5a5; background: #fff; color: #b91c1c; font-family: var(--latin); font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 11.5px; line-height: 1.35; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); overflow-wrap: anywhere; }
.kage { display: block; margin-top: 3px; border: 0; background: #fef3c7; color: #92400e; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; }
.kpull { display: flex; justify-content: center; }
.kpullbtn { border: 1px dashed #94a3b8; background: var(--paper); color: var(--ink2); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.kh.on, .kwip.on, .kage.on, .kpullbtn.on { background: var(--k-test); border-color: var(--k-test); color: #fff; }
.kh:focus-visible, .kwip:focus-visible, .kage:focus-visible, .kpullbtn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
/* XP の入れ子の輪（外側: チーム全体 → 内側: プログラマー） */
.xr { border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.xr.r1 { background: color-mix(in srgb, var(--k-test) 5%, white); border: 1px solid color-mix(in srgb, var(--k-test) 25%, white); }
.xr.r2 { background: color-mix(in srgb, var(--k-test) 11%, white); border: 1px solid color-mix(in srgb, var(--k-test) 35%, white); }
.xr.r3 { background: color-mix(in srgb, var(--k-test) 19%, white); border: 1px solid color-mix(in srgb, var(--k-test) 45%, white); }
.xrl { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--k-test) 75%, black); }
.xchips { display: flex; flex-wrap: wrap; gap: 6px; }
#agile .src { margin-top: 14px; }
@media (max-width: 900px) {
  .scrum { grid-template-columns: 1fr; }
  .ring { max-width: 440px; }
}
@media (max-width: 760px) {
  .kboard { padding: 6px; gap: 4px; }
  .kcol { padding: 5px 4px; }
  .kcard { padding: 4px 5px; font-size: 11px; }
  .rnode { padding: 6px 8px; max-width: 36%; }
  .rnode b { font-size: 12px; }
  .rnode span { font-size: 9.5px; }
}

.dlinks { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
a.chipbtn { text-decoration: none; color: #1d4ed8; display: inline-block; }

/* AI で、工程の重さはどう変わるか */
#era .aitag { font-size: 12px; font-weight: 700; color: #6d28d9; background: #ede9fe; border-radius: 6px; padding: 2px 8px; margin-right: 8px; vertical-align: middle; }
#era .hint { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; color: #475569; background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 999px; padding: 0 8px; white-space: nowrap; vertical-align: middle; margin-left: 6px; }
.era-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.era-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; background: var(--line2); }
.era-mode button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink2); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.era-mode button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.era-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.era-legend b { color: var(--ink); }
.era-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.era-rows { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.era-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.era-label b { display: block; font-size: 14.5px; }
.era-label span { font-size: 12px; color: var(--muted); }
.era-kind { font-style: normal; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.era-kind.k-data { color: #065f46; background: #d1fae5; }
.era-kind.k-est { color: #92400e; background: #fef3c7; }
.era-kind.k-guess { color: #5b21b6; background: #ede9fe; }
.era-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.era-stack { display: flex; height: 50px; border-radius: 10px; overflow: hidden; min-width: 0; }
.era-seg { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.25; text-align: center; }
.era-seg + .era-seg { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .55); }
.era-seg em { font-style: normal; padding: 0 2px; white-space: nowrap; }
.s-req { background: #1e40af; }
.s-design { background: #93c5fd; color: #0b2a6b; }
.s-impl { background: #7c3aed; }
.s-review { background: #b45309; }
.s-test { background: #047857; }
.era-total { flex: none; font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.era-note { grid-column: 2; margin: 0; font-size: 12.5px; color: var(--ink2); }
.era-tablewrap { overflow-x: auto; margin-top: 12px; }
.era-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.era-table caption { caption-side: bottom; text-align: left; font-size: 12px; color: var(--muted); padding-top: 6px; }
.era-table th, .era-table td { padding: 7px 10px; border-bottom: 1px solid var(--line2); text-align: left; white-space: nowrap; }
.era-table thead th small, .era-table td small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.era-table td small { display: inline; margin-left: 6px; }
.era-sum th, .era-sum td { font-weight: 700; border-bottom: 0; }
.era-h { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.era-ev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.era-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 6px; }
.era-card > b { font-family: var(--latin); font-size: 26px; color: #b45309; line-height: 1.1; }
.era-card p { margin: 0; font-size: 13px; color: var(--ink2); }
.era-card .era-who { font-size: 12px; color: var(--muted); }
.era-take { margin-top: 12px; padding: 13px 15px; }
.era-take h3 { margin: 0 0 8px; font-size: 14px; }
.era-take ul { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--ink2); display: grid; gap: 4px; }
.era-mode button:focus-visible, .era-take a:focus-visible, .era-card a:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 760px) {
  .era-row { grid-template-columns: minmax(0, 1fr); }
  .era-note { grid-column: 1; }
  .era-stack { height: 44px; }
  .era-seg { font-size: 10.5px; }
  .era-ev { grid-template-columns: minmax(0, 1fr); }
}
