.rv-mode { margin-bottom: 16px; }
.rv-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; font-size: 15px; }
.rv-tabs button .ico { flex: none; width: 18px; height: 18px; }
.rv-pane > .panel + .panel, .rv-gap { margin-top: 16px; }
.rv-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
.rv-g { min-width: 0; margin: 0; padding: 0; border: 0; }
.rv-g > * + * { margin-top: 12px; }
.rv-g-t { display: flex; align-items: center; gap: 8px; min-height: 26px; margin: 0 0 10px; padding: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.rv-g-t .chip { height: 24px; padding: 0 9px; font-size: 12px; }
.rv-f { display: grid; gap: 12px; }
.rv-f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-f .hint, .rv-g > .hint { margin-top: 0; }
.rv-g > .hint { margin-top: 10px; }
.rv-assume { display: inline-flex; align-items: center; height: 20px; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--mk-yellow); color: var(--mark-ink); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.rv-assume.is-off { background: var(--surface-2); color: var(--ink-3); font-weight: 600; }
.rv-back { margin-top: 22px; }
.rv-back > summary .ico { color: var(--ink-2); }
.rv-back-d { max-width: 46em; margin-bottom: 14px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.rv-back-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.rv-back-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rv-back-out:empty { display: none; }
.rv-bo { padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.rv-bo-k { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.rv-bo-v { margin-top: 2px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rv-bo-v.is-none { font-size: 14px; font-weight: 550; color: var(--ink-3); letter-spacing: 0; }
.rv-back-out .rv-bo-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.rv-back .field-err { margin-top: 10px; }
.rv-back-acts { margin-top: 14px; }
.rv-sum { margin-bottom: 14px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); max-width: 52em; text-wrap: balance; }
.rv-out .panel-sub { text-wrap: balance; }
.rv-sum b { color: var(--ink); font-weight: 700; }
.rv-stats .stat-v { overflow-wrap: anywhere; }
.rv-stats .stat-s { font-variant-numeric: tabular-nums; }
.rv-stats .stat:nth-child(2) { background: color-mix(in srgb, var(--mk-sky) 26%, var(--surface)); }
.rv-need { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 15px; line-height: 1.7; color: var(--ink); animation: gd-up 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.rv-need b { font-weight: 700; }
.rv-ex { align-items: center; flex-wrap: wrap; margin-top: 14px; }
.rv-ex > span { flex: 1 1 18em; }
.rv-sub { margin: 26px 0 10px; font-size: 16px; font-weight: 680; letter-spacing: -0.01em; }
.rv-formula { list-style: none; display: grid; gap: 4px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 13.5px; line-height: 1.7; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rv-formula:empty { display: none; }
.rv-acts { margin-top: 16px; }
.rv-in .input[aria-invalid="true"], .rv-dform .input[aria-invalid="true"] { border-color: var(--red); }
.rv-dform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.rv-d-wide { grid-column: span 2; }
.rv-d-acts, .rv-d-err { grid-column: 1 / -1; }
.rv-d-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-dform input[type="date"] { min-height: 48px; }
.rv-d-pubf .check { display: flex; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.rv-d-pubf .check:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 650; }
.rv-d-pubf .check:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-dform-p > .hint { margin-top: 14px; }
.rv-dstats { margin-top: 16px; }
.rv-dstats .stat-v { overflow-wrap: anywhere; }
.rv-todo { margin-bottom: 14px; }
.rv-todo a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.rv-ltable th, .rv-ltable td { padding-left: 10px; padding-right: 10px; }
.rv-ltable tr > :first-child { padding-left: 14px; }
.rv-ltable tr > :last-child { padding-right: 8px; }
.rv-ltable td { white-space: nowrap; }
.rv-ltable td.memo { white-space: normal; min-width: 7em; max-width: 20em; }
.rv-ltable th[scope="row"] { max-width: 15em; white-space: normal; overflow-wrap: anywhere; }
.rv-brand { display: inline; }
.rv-kind { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 550; color: var(--ink-3); }
.rv-url { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 4px; border-radius: 6px; color: var(--ink-3); vertical-align: -6px; transition: background-color 0.15s, color 0.15s; }
.rv-url:hover { background: var(--surface-2); color: var(--ink); }
.rv-url .ico { width: 16px; height: 16px; }
.rv-ltable .chip { height: 26px; font-size: 12.5px; }
.rv-ltable td.acts .btn { width: 34px; padding: 0; }
.rv-act-t { display: none; }
.rv-more { display: flex; justify-content: center; margin-top: 12px; }
.rv-empty { display: grid; place-items: center; min-height: 120px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-3); font-size: 14.5px; text-align: center; }
.rv-io { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-io .label { font-size: 14px; }
.rv-io-h { margin-top: 12px; }
.rv-ftable tbody th { background: none; font-size: 14.5px; font-weight: 650; color: var(--ink); white-space: normal; }
.rv-ftable tbody tr:last-child th { border-bottom: 0; }
.rv-ftable td { font-variant-numeric: tabular-nums; }
@media (max-width: 1020px) {
.rv-groups { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rv-g + .rv-g > .rv-g-t { width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 920px) {
#rv-list .rtable-wrap { border: 0; background: none; overflow: visible; }
.rv-ltable, .rv-ltable tbody, .rv-ltable tr, .rv-ltable td, .rv-ltable th { display: block; }
.rv-ltable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rv-ltable tbody { display: grid; gap: 10px; }
.rv-ltable tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rv-ltable td, .rv-ltable th, .rv-ltable tr > :first-child, .rv-ltable tr > :last-child { padding: 0; border: 0; background: none; text-align: left; white-space: normal; }
.rv-ltable th[scope="row"] { grid-column: 1 / -1; max-width: none; font-size: 15px; color: var(--ink); }
.rv-ltable td[data-k]::before { content: attr(data-k); display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rv-ltable td.memo { grid-column: 1 / -1; min-width: 0; max-width: none; }
.rv-ltable td.is-empty { display: none; }
.rv-ltable td.acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; width: auto; padding-top: 6px; text-align: left; }
.rv-ltable td.acts .btn { width: auto; margin: 0; padding: 0 11px; }
.rv-ltable td.acts .btn[data-act="del"] { margin-left: auto; }
.rv-act-t { display: inline; }
}
@media (max-width: 720px) {
.rv-stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rv-dform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-back-f { grid-template-columns: minmax(0, 1fr); }
.rv-d-acts .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
.rv-tabs { display: flex; width: 100%; }
.rv-tabs button { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 8px; font-size: 14px; }
.rv-tabs button .ico { display: none; }
.stats.rv-stats { grid-template-columns: minmax(0, 1fr); }
.rv-back-out { grid-template-columns: minmax(0, 1fr); }
.rv-dstats .stat { padding: 14px 12px; }
.rv-dstats .stat-v { font-size: clamp(20px, 6vw, 26px); }
.rv-back > summary .gd-acc-sub { display: none; }
.rv-d-day, .rv-d-kindf, .rv-d-duef, .rv-d-pubf { grid-column: 1 / -1; }
.rv-ftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-ftable, .rv-ftable tbody, .rv-ftable tr, .rv-ftable th, .rv-ftable td { display: block; }
.rv-ftable tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rv-ftable tbody tr:last-child { border-bottom: 0; }
.rv-ftable tbody th, .rv-ftable td { padding: 0; border: 0; }
.rv-ftable tbody th { margin-bottom: 4px; }
.rv-ftable td { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 6px; line-height: 1.65; color: var(--ink-2); }
.rv-ftable td::before { content: attr(data-k); font-size: 12.5px; font-weight: 650; color: var(--ink-3); line-height: 1.95; }
}
@media (max-width: 400px) {
.rv-ltable td.acts .btn[data-act="del"] { width: 34px; padding: 0; }
.rv-ltable td.acts .btn[data-act="del"] .rv-act-t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.rv-need { animation: none !important; }
}
