@layer legacy, foundation;
@layer legacy {
.tool-legacy.rdc .tier-seg-wrap{border:0;margin:0 0 16px;padding:0;min-width:0}
.tool-legacy.rdc .tier-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tool-legacy.rdc .tier-opt{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 10px;font-size:var(--fs-small);font-weight:600;line-height:1.2;text-align:center;text-wrap:balance;color:var(--ink);background:var(--white);border:1px solid var(--edge,#7A8278);border-radius:8px;cursor:pointer}
.tool-legacy.rdc .tier-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.tool-legacy.rdc .tier-opt:hover{background:rgba(127,127,127,.14)}
.tool-legacy.rdc .tier-opt.active,.tool-legacy.rdc .tier-opt:has(input:checked){background:var(--green);color:var(--white);border-color:var(--green);font-weight:700}
.tool-legacy.rdc .tier-opt:has(input:focus-visible){outline:3px solid var(--green);outline-offset:2px}
.tool-legacy.rdc .tier-note{margin:12px 0 0;font-size:var(--fs-small);line-height:1.5;color:#0D1F14;max-width:66ch}
.tool-legacy.rdc .tier-note .tier-note-time{color:var(--green);font-weight:600}
.tool-legacy.rdc .t3-table{width:100%;border-collapse:collapse;margin:0}
.tool-legacy.rdc .t3-table th,.tool-legacy.rdc .t3-table td{border-bottom:1px solid var(--cream-dk);vertical-align:top;text-align:right}
.tool-legacy.rdc .t3-table thead th{font-size:.9375rem;font-weight:700;color:#0D1F14;padding:0 0 8px 6px;vertical-align:bottom}
.tool-legacy.rdc .t3-table thead th:first-child,.tool-legacy.rdc .t3-table tbody th{text-align:left;padding-left:0}
.tool-legacy.rdc .t3-ysub{display:block;font-weight:400;color:#0D1F14}
.tool-legacy.rdc .t3-table tbody th{padding:10px 0;font-weight:400}
.tool-legacy.rdc .t3-table td{width:18%;padding:10px 0 10px 6px}
.tool-legacy.rdc .t3-lbl{font-size:.9375rem;font-weight:600;color:var(--ink);line-height:1.4}
.tool-legacy.rdc .t3-hint{font-size:.9375rem;color:#0D1F14;line-height:1.4;margin-top:2px;max-width:220px}
.tool-legacy.rdc .t3-box{display:flex;align-items:stretch;min-height:44px;font-size:.9375rem;padding:0 4px 0 6px;border:1.5px solid var(--stone);border-radius:4px;background:var(--white);transition:border-color .15s}
.tool-legacy.rdc .t3-box:focus-within{border-color:var(--green)}
.tool-legacy.rdc .t3-box:has(input.err){border-color:#c0392b}
.tool-legacy.rdc .t3-pfx{align-self:center;font-size:.9375rem;color:#0D1F14;padding-right:1px}
.tool-legacy.rdc .t3-table input.cat-f{flex:1;min-width:0;width:100%;border:0;outline:0;padding:0;font:inherit;color:var(--ink);text-align:right;background:transparent;appearance:none}
.tool-legacy.rdc .t3-table tr.t3-tot th,.tool-legacy.rdc .t3-table tr.t3-tot td{border-bottom:none;border-top:2px solid var(--ink);padding-top:12px;font-size:.9375rem;font-weight:700}
.tool-legacy.rdc .t3-table tr.t3-tot th{color:var(--ink)}
.tool-legacy.rdc .t3-table tr.t3-tot td{color:var(--green)}
.tool-legacy.rdc .t3-note{font-size:.9375rem;color:#0D1F14;margin:10px 0 18px}
@media(max-width:640px){.tool-legacy.rdc .t3-table thead{display:none}
.tool-legacy.rdc .t3-table,.tool-legacy.rdc .t3-table tbody,.tool-legacy.rdc .t3-table tr,.tool-legacy.rdc .t3-table th,.tool-legacy.rdc .t3-table td{display:block}
.tool-legacy.rdc .t3-table tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:16px 0;border-bottom:1px solid var(--cream-dk)}
.tool-legacy.rdc .t3-table th,.tool-legacy.rdc .t3-table td{width:auto;padding:0;border:none;text-align:left}
.tool-legacy.rdc .t3-table tbody th{grid-column:1/-1;padding:0}
.tool-legacy.rdc .t3-table td[data-y]::before{content:attr(data-y);display:block;font-size:.9375rem;font-weight:600;color:#0D1F14;margin-bottom:4px}
.tool-legacy.rdc .t3-hint{max-width:none}
.tool-legacy.rdc .t3-box{font-size:1.0625rem}
.tool-legacy.rdc .t3-table tr.t3-tot{border-top:2px solid var(--ink);border-bottom:none}
.tool-legacy.rdc .t3-table tr.t3-tot th,.tool-legacy.rdc .t3-table tr.t3-tot td{border:none;padding:0}
.tool-legacy.rdc .t3-table tr.t3-tot td[data-y]::before{color:var(--ink)}}
/* ── system floors (appended by scope-css.py --floors) ── */
.tool-legacy.rdc .reveal,.tool-legacy.rdc .reveal.visible{opacity:1;transform:none;transition:none}
.tool-legacy.rdc :where(p,li,dd,summary){font-size:max(1rem,1em)}
.tool-legacy.rdc :where(td){font-size:max(15px,1em)}
.tool-legacy.rdc :where(button,summary,[role=tab],select,input:not([type=hidden]):not([type=checkbox]):not([type=radio])){min-height:44px}


}
