/* バージョンアップの計画。style.css・flow.css・fm.css の上に重ねる（接頭辞 up-。期限切れは赤、1 年以内は琥珀、2 年以内は黄、余裕は緑） */
.up-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up-st { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6; border-radius: 6px; padding: 0 7px; white-space: nowrap; background: var(--line2); color: var(--muted); }
.up-st.end { background: #fee2e2; color: #991b1b; }
.up-st.soon { background: #ffedd5; color: #9a3412; }
.up-st.mid { background: #fef9c3; color: #854d0e; }
.up-st.ok { background: #dcfce7; color: #166534; }
.up-st.plain { background: #e2e8f0; color: #334155; }
.up-judge { margin: 8px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.up-judge.ok { background: #f0fdf4; color: #14532d; }
.up-judge.ng { background: #fef2f2; color: #7f1d1d; }
.up-judge.mid { background: #fffbeb; color: #78350f; }
.up-score { margin: 10px 0 0; font-size: 13.5px; color: var(--ink2); }
.up-score b { font-family: var(--latin); }

/* サポート期限の図 */
.up-eol { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.up-chart, .up-info { padding: 12px 14px; min-width: 0; }
.up-chart { --nw: 204px; }
.up-axis { display: grid; grid-template-columns: var(--nw) minmax(0, 1fr); height: 18px; }
.up-axt { position: relative; }
.up-axt span { position: absolute; top: 0; font: 600 11px/18px var(--latin); color: var(--muted); padding-left: 3px; border-left: 1px solid var(--line); white-space: nowrap; }
.up-grp { margin: 10px 0 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.up-row { appearance: none; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: var(--nw) minmax(0, 1fr); align-items: center; gap: 0; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 2px 0; }
.up-row:hover { background: var(--any-bg); border-color: var(--line); }
.up-row[aria-pressed="true"] { background: #eff6ff; border-color: #93c5fd; }
.up-rn { display: flex; align-items: center; gap: 6px; padding: 0 8px; min-width: 0; }
.up-rn b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-rn .up-st { font-size: 10px; padding: 0 5px; }
.up-bar { position: relative; height: 14px; background: var(--any-bg); border-radius: 4px; overflow: hidden; }
.up-bar i, .up-key i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; }
.up-bar i.p1, .up-key i.p1 { background: #1d4ed8; }
.up-bar i.p2, .up-key i.p2 { background: #93c5fd; }
.up-bar i.p3, .up-key i.p3 { background: repeating-linear-gradient(135deg, #c7d2fe 0 4px, #eef2ff 4px 8px); border: 1px dashed #818cf8; }
.up-bar i.p0, .up-key i.p0 { background: repeating-linear-gradient(135deg, #cbd5e1 0 4px, #f1f5f9 4px 8px); }
.up-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #dc2626; }
.up-key { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.up-key span { display: inline-flex; align-items: center; gap: 5px; }
.up-key i { position: static; display: inline-block; width: 18px; height: 10px; }
.up-key i.k-now { width: 3px; height: 12px; background: #dc2626; border-radius: 1px; }
.up-info h3 { margin: 0 0 4px; font-size: 15px; }
.up-big { margin: 0 0 6px; font: 700 24px/1.25 var(--sans); font-variant-numeric: tabular-nums; color: #1d4ed8; }
.up-big.end { color: #b91c1c; }
.up-big.soon { color: #c2410c; }
.up-left { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.up-what { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }

/* 練習: 計画 */
.up-ctl { padding: 12px 14px; display: grid; gap: 10px; margin-bottom: 10px; }
.up-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.up-lab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 4em; }
.up-presets .pill { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.35; border-radius: 12px; padding: 6px 12px; }
.up-presets .pill small { font-size: 11px; font-weight: 500; opacity: .8; }
.up-sels { gap: 8px 14px; }
.up-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.up-sel select, .up-sel input { font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--paper); color: var(--ink); min-width: 0; }
.up-story { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.up-story b { margin-right: 8px; }
.up-planbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; align-items: start; }
.up-left-col { display: grid; gap: 10px; min-width: 0; }
.up-pcard { padding: 12px 14px; min-width: 0; }
.up-pcard h3 { margin: 0 0 8px; font-size: 14px; }
.up-parts { min-width: 420px; }
.up-parts td.t, .up-ledger td.t { font-variant-numeric: tabular-nums; white-space: nowrap; }
.up-parts th[scope="row"] { white-space: nowrap; color: var(--muted); font-size: 12px; }
.up-parts tr.end td { background: #fef2f2; }
.up-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.up-kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-kpi b { font: 700 22px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: #1d4ed8; }
.up-kpi.end b { color: #b91c1c; }
.up-kpi span { font-size: 12px; color: var(--ink2); }
.up-first { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink2); }
.up-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.up-step { border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 10px; padding: 8px 10px; background: var(--paper); }
.up-step.app { border-left-color: #1d4ed8; }
.up-step.my { border-left-color: #0d9488; }
.up-step.os { border-left-color: #7c3aed; }
.up-step.prep, .up-step.done { border-left-color: #64748b; background: var(--any-bg); }
.up-step.urgent { box-shadow: inset 0 0 0 1px #fecaca; }
.up-sh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.up-sh i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--latin); background: #0f172a; color: #fff; flex: none; }
.up-sh b { font-size: 14px; }
.up-lane { font-size: 11px; font-weight: 700; color: var(--muted); }
.up-step ul, .up-items { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 3px; font-size: 12.5px; color: var(--ink2); }
.up-step .srcl, .up-items .srcl, .up-step .fm-go, .up-items .fm-go { display: inline; margin: 0; font-size: 11.5px; }

/* 進め方 */
.up-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.up-steps button { appearance: none; width: 100%; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.up-steps button i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--latin); background: #e2e8f0; color: #334155; flex: none; }
.up-steps button:hover { border-color: #94a3b8; }
.up-steps button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.up-steps button[aria-pressed="true"] i { background: #fff; color: #0f172a; }
.up-stepbox { padding: 12px 16px; }
.up-stepbox h3 { margin: 0 0 4px; font-size: 16px; }
.up-stepbox > p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink2); }
.up-items { font-size: 13px; gap: 5px; margin-top: 8px; }
.up-year { min-width: 640px; }
.up-year th[scope="row"] { white-space: nowrap; }

/* 練習: ガイドの仕分け */
.up-profile { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 12px; max-width: 64em; }
.up-gbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.up-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.up-g { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.up-g.done { border-color: #cbd5e1; }
.up-gh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.up-gh b { font: 600 13px/1.4 var(--latin); overflow-wrap: anywhere; }
.up-like { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; white-space: nowrap; background: var(--line2); color: var(--ink2); }
.up-like.high { background: #fee2e2; color: #991b1b; }
.up-like.medium { background: #ffedd5; color: #9a3412; }
.up-like.low { background: #e0f2fe; color: #075985; }
.up-like.verylow { background: #f1f5f9; color: #475569; }
.up-gw { margin: 0; font-size: 13px; color: var(--ink2); }
.up-ours { margin: 0; font-size: 13px; background: var(--line2); border-radius: 8px; padding: 6px 10px; }
.up-ours b { display: block; font-size: 11px; color: var(--muted); }
.up-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.up-seg button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; border: 0; background: var(--paper); color: var(--ink2); padding: 5px 11px; cursor: pointer; }
.up-seg button + button { border-left: 1px solid var(--line); }
.up-seg button:hover { background: var(--any-bg); }
.up-seg button[aria-pressed="true"] { background: #0f172a; color: #fff; }
.up-fb .up-judge { margin-top: 2px; }
.up-how { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.up-how span { font-weight: 700; color: var(--muted); }
.up-how code { font: 600 12px var(--latin); background: #0f172a; color: #e2e8f0; border-radius: 6px; padding: 2px 8px; overflow-wrap: anywhere; }

/* 練習: どれで見つかる */
.up-find { display: grid; gap: 8px; }
.up-fq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.up-fqq { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.up-fqq i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--latin); background: #e2e8f0; color: #334155; }
.up-fq .srcl { margin-top: 6px; }

/* 台帳 */
.up-cols { min-width: 620px; }
.up-cols th[scope="row"] { white-space: nowrap; }
.up-ledger { min-width: 900px; }

.up-row:focus-visible, .up-sel select:focus-visible, .up-sel input:focus-visible, .up-steps button:focus-visible, .up-seg button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .up-eol, .up-planbox { grid-template-columns: minmax(0, 1fr); }
  .up-guide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .up-chart { --nw: 112px; padding: 10px; }
  .up-rn { padding: 0 4px; gap: 3px; flex-direction: column; align-items: flex-start; }
  .up-rn b { font-size: 11.5px; max-width: 100%; }
  .up-axt span { font-size: 10px; }
  .up-axt span:nth-child(even) { display: none; }
  .up-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-sum { grid-template-columns: minmax(0, 1fr); }
  .up-kpi { flex-direction: row; align-items: baseline; gap: 8px; }
  .up-kpi b { font-size: 18px; }
  .up-big { font-size: 20px; }
}
