/* がい数（round）部品。青＝残す くらい、オレンジ＝見る くらい（すぐ下）、グレー＝0に なる くらい */
.rd-w { --rd-b: #2563eb; --rd-bl: #eaf1ff; --rd-o: #f59e0b; --rd-od: #b45309; --rd-ol: #fff4dc; --rd-g: #9ca3af; }
.rd-svg { width: 100%; max-width: 600px; height: auto; display: block; margin: 6px auto; touch-action: manipulation; }
.rd-svg text { font-weight: 700; fill: var(--ink, #1f2937); }
.rd-w button { font: inherit; cursor: pointer; color: var(--ink, #1f2937); }
.rd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.rd-row.pm .rd-b { min-width: 64px; }
.rd-q { font-weight: 700; margin: 0 0 8px; line-height: 2; }
.rd-nn { font-size: 1.25em; color: var(--rd-od); }
.rd-lab { font-size: .9rem; color: var(--sub, #4b5563); font-weight: 700; }
.rd-b, .rd-g, .rd-p { min-height: 48px; padding: 4px 14px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 12px; font-weight: 700; }
.rd-g { border-color: var(--ink, #1f2937); min-width: 72px; font-size: 1.1rem; }
.rd-g[aria-pressed="true"], .rd-p[aria-pressed="true"] { border-color: var(--rd-b); background: var(--rd-bl); }
.rd-p { border-radius: 999px; font-size: .9rem; min-height: 44px; }
.rd-b.big { border-color: var(--rd-od); background: var(--rd-ol); }
.rd-b.go { background: var(--rd-b); border-color: var(--rd-b); color: #fff; }
.rd-b.back { border-style: dashed; font-weight: 400; }
.rd-w button:disabled { opacity: .45; cursor: default; }
.rd-w .rd-g:disabled[aria-pressed="true"] { opacity: 1; }
.rd-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.rd-read p { margin: 4px 0; }
.rd-big { font-size: 1.2rem; font-weight: 700; text-align: center; line-height: 2.2; }
.rd-note { font-size: .95rem; line-height: 1.9; }
.rd-note.s { font-size: .9rem; color: var(--sub, #4b5563); }
.rd-res { font-weight: 700; margin: 0 0 8px; }
.rd-res.ok { color: var(--ok, #0f8a72); }
.rd-res.ng i { color: var(--ng, #c2410c); font-style: normal; }
.rd-o { color: var(--rd-od); }
.rd-b2 { color: var(--rd-b); }
.rd-in { color: var(--ok, #0f8a72); }
.rd-out { color: var(--sub, #4b5563); }
.rd-x { color: var(--rd-od); }

/* タイル */
.rd-svg .rd-pl { font-size: 22px; fill: var(--sub, #4b5563); }
.rd-svg .rd-pl.keep { fill: var(--rd-b); }
.rd-svg .rd-pl.look { fill: var(--rd-od); }
.rd-t { stroke-width: 2; }
.rd-t.keep { fill: var(--rd-bl); stroke: var(--rd-b); }
.rd-t.look { fill: var(--rd-o); stroke: var(--rd-od); stroke-width: 3; }
.rd-t.rest { fill: #f3f4f6; stroke: #d1d5db; }
.rd-svg .rd-td { font-size: 34px; }
.rd-svg .rd-td.rest { fill: var(--rd-g); }
.rd-svg .rd-lk { font-size: 22px; fill: var(--rd-od); }
.rd-lka { fill: var(--rd-od); }
.rd-svg .rd-ar { font-size: 30px; fill: var(--rd-b); }
.rd-svg .rd-dn { font-size: 30px; fill: var(--sub, #4b5563); }

/* 数直線 */
.rd-ax { stroke: var(--ink, #1f2937); stroke-width: 3; }
.rd-tk { stroke: var(--ink, #1f2937); stroke-width: 2; }
.rd-tk.mid { stroke: var(--rd-od); stroke-width: 3; stroke-dasharray: 4 3; }
.rd-blo { fill: #e5e7eb; }
.rd-bhi { fill: var(--rd-ol); }
.rd-svg .rd-bt { font-size: 22px; }
.rd-svg .rd-bt.lo { fill: var(--sub, #4b5563); }
.rd-svg .rd-bt.hi { fill: var(--rd-od); }
.rd-svg .rd-end { font-size: 26px; }
.rd-svg .rd-midv { font-size: 22px; fill: var(--sub, #4b5563); }
.rd-svg .rd-mn { font-size: 22px; fill: var(--rd-od); }
.rd-go { stroke: var(--rd-o); stroke-width: 8; stroke-linecap: round; opacity: .85; }
.rd-mdot { fill: var(--rd-od); }
.rd-mk { fill: var(--rd-od); }
.rd-np { fill: #fff; stroke: var(--rd-od); stroke-width: 4; }
.rd-svg .rd-n { font-size: 28px; fill: var(--rd-od); paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.rd-hitbg { fill: transparent; cursor: pointer; }
.rd-band { fill: var(--rd-o); }
.rd-svg .rd-tl { font-size: 24px; fill: var(--sub, #4b5563); }
.rd-svg .rd-tl.r { fill: var(--ink, #1f2937); font-size: 26px; }
.rd-td2.in { fill: var(--rd-o); stroke: var(--rd-od); stroke-width: 2; }
.rd-td2.out { fill: #fff; stroke: var(--rd-g); stroke-width: 2; }
.rd-dot.in { fill: var(--rd-od); stroke: var(--rd-od); stroke-width: 3; }
.rd-dot.out { fill: #fff; stroke: var(--rd-od); stroke-width: 4; }
.rd-svg .rd-ew { font-size: 22px; fill: var(--rd-od); }

/* 見積もり */
.rd-svg .rd-bl { font-size: 24px; }
.rd-svg .rd-bl.e { fill: var(--rd-b); }
.rd-svg .rd-bl.x { fill: var(--rd-od); }
.rd-bar.e { fill: var(--rd-bl); stroke: var(--rd-b); stroke-width: 3; }
.rd-bar.x { fill: var(--rd-o); stroke: var(--rd-od); stroke-width: 3; }
.rd-svg .rd-bv { font-size: 26px; }
.rd-bar.e2 { fill: #f3f4f6; stroke: var(--rd-g); stroke-width: 2; stroke-dasharray: 6 4; }
.rd-svg .rd-bl.e2 { fill: var(--sub, #4b5563); }
.rd-lim { stroke: var(--ng, #c2410c); stroke-width: 3; stroke-dasharray: 8 5; }
.rd-svg .rd-limt { font-size: 22px; fill: var(--ng, #c2410c); }
