/* Scoped port of design-previews/rpm-rounds-v2/styles.css. Keep live shell,
   navigation resizing, home scoping and unrelated pages unchanged. */
.round-ui { color:#242722; font:16px/1.5 Inter,Arial,sans-serif; }
.round-ui:not(dialog) { container-type:inline-size; }
.round-ui :is(h2,h3,p) { margin:0; }
.round-ui h2 { font-size:20px; font-weight:600; letter-spacing:-.4px; }
.round-ui h3 { font-size:17px; font-weight:600; }
.round-ui strong { font-weight:600; }
.round-ui small { font-size:14px; color:#656b60; }
.round-ui svg,.rv-row-action svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.round-ui .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; border:1px solid #d7dbd1; border-radius:8px; padding:10px 16px; background:white; font:600 14px/1.5 Inter,Arial,sans-serif; color:#242722; }
.round-ui .button.primary { background:#29352f; border-color:#29352f; color:white; }
.round-ui button:disabled { opacity:.6; cursor:default; }
.round-ui :focus-visible,.rv-row-action:focus-visible { outline:3px solid #196f66; outline-offset:3px; }
.rv-link { display:inline-flex; align-items:center; gap:8px; background:none; border:0; padding:8px 0; min-height:44px; color:#196f66; font:600 14px/1.5 Inter,Arial,sans-serif; cursor:pointer; }
.rv-link:hover { text-decoration:underline; }
.rv-tag { display:inline-flex; align-items:center; padding:4px 9px; background:#f0f1eb; border-radius:5px; font-size:12px; color:#4a5545; white-space:nowrap; }
.rv-tag.green { color:#256346; background:#eaf3ef; }
.rv-tag.amber { color:#805b19; background:#f7efd9; }
.rv-panel { background:white; border:1px solid #e7e8e2; border-radius:12px; overflow:hidden; }
.rv-panel-head { padding:24px 26px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.rv-panel-head p { font-size:14px; color:#656b60; margin-top:6px; }
.rv-panel-body { padding:0 26px 24px; }
.rv-panel-foot { border-top:1px solid #e7e8e2; padding:16px 26px; font-size:14px; color:#656b60; }
.rv-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:24px; align-items:start; }
.rv-main { min-width:0; }
.rv-reservation { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; background:#e9eee3; border:1px solid #dce3d3; border-radius:10px; margin-bottom:24px; }
.rv-left { display:flex; align-items:center; gap:14px; min-width:0; }
.rv-reservation small { display:block; }
.rv-symbol { display:grid; place-items:center; width:46px; height:46px; border-radius:10px; background:#eaf3ef; color:#28734f; flex-shrink:0; }
.rv-symbol.amber { background:#f7efd9; color:#805b19; }
.rv-symbol.gray { background:#eff0ec; color:#73796d; }
.rv-device-row { display:flex; align-items:center; gap:16px; border-top:1px solid #e7e8e2; padding:20px 0; }
.rv-device-row:first-child { border-top:0; }
.rv-device-copy { flex:1; min-width:0; overflow-wrap:anywhere; }
.rv-device-copy :is(strong,small) { display:block; }
.rv-device-meta { text-align:right; min-width:108px; }
.rv-device-meta small { display:block; margin-top:4px; }
.rv-device-row .button { min-width:112px; }
.rv-avatar { width:38px; height:38px; display:grid; place-items:center; background:#e1e6db; border-radius:50%; font-size:12px; color:#54604d; flex-shrink:0; }
.rv-steps { display:flex; align-items:center; gap:12px; color:#656b60; font-size:12px; padding-bottom:24px; flex-wrap:wrap; }
.rv-steps span { display:flex; align-items:center; gap:7px; }
.rv-steps b { display:grid; place-items:center; border-radius:50%; border:1px solid #d9ddd2; width:24px; height:24px; font-weight:400; }
.rv-steps .current { color:#196f66; font-weight:600; }
.rv-steps .current b { border-color:#196f66; background:#eaf3ef; }
.rv-steps i { width:26px; height:1px; background:#d9ddd2; }
.rv-identity { padding:20px; border:1px solid #dfe4d7; background:#f8f9f5; border-radius:9px; margin:0 0 22px; overflow-wrap:anywhere; }
.rv-identity-top { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.rv-identity h3 { font-size:22px; }
.rv-identity small { display:block; }
.rv-identity dl { display:flex; gap:32px; flex-wrap:wrap; margin:12px 0 0; font-size:14px; }
.rv-identity dt { color:#656b60; font-size:12px; }
.rv-identity dd { margin:3px 0 0; }
.round-ui .rv-instructions { font-size:14px; color:#656b60; line-height:1.7; margin-bottom:18px; }
.rv-status { display:flex; align-items:center; gap:8px; font-size:14px; color:#196f66; margin-bottom:18px; }
.rv-status svg { width:18px; }
.rv-waiting { padding:22px 20px; background:#e9eee3; border-radius:9px; margin:0 0 20px; }
.rv-waiting h3 { margin-bottom:8px; }
.rv-waiting p { font-size:14px; color:#596451; }
.rv-dot { display:inline-block; width:7px; height:7px; background:#196f66; border-radius:50%; margin-right:7px; }
.rv-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.rv-actions small svg { width:14px; height:14px; vertical-align:middle; }
.rv-context { padding:22px 0; border-top:1px solid #dfe2d8; color:#656b60; font-size:14px; }
.rv-context h3 { color:#242722; margin-bottom:8px; }
.rv-context:first-child { padding-top:3px; border:0; }
.rv-context p { line-height:1.7; }
.rv-inbox { margin-top:24px; }
.rv-inbox .rv-panel-head { padding-bottom:20px; }
.rv-receipt { margin:0 26px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px; padding:20px 0; border-top:1px solid #e7e8e2; }
.rv-receipt p { font-size:14px; color:#656b60; margin-top:6px; }
.rv-values { display:flex; gap:24px; margin:10px 0; font-variant-numeric:tabular-nums; }
.rv-values strong { font-size:22px; font-weight:400; }
.rv-values small { margin-left:4px; font-size:12px; }
.rv-receipt .rv-reason { display:flex; gap:8px; font-size:13px; color:#805b19; align-items:center; }
.rv-reason svg { width:16px; height:16px; }
.rv-history-link { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:22px; font-size:14px; color:#656b60; }
.round-ui .rv-empty { padding:0 26px 24px; font-size:14px; color:#656b60; }
.round-ui .rv-error:not(:empty) { padding:0 26px 20px; color:#ab3c35; font-size:14px; }
.rv-choosing-device .rv-layout { grid-template-columns:minmax(0,1fr); }
.rv-choosing-device .rv-aside { display:none; }
.rv-row-action { border:0; background:none; min-width:44px; min-height:44px; border-radius:6px; display:inline-grid; place-items:center; color:#5b6555; cursor:pointer; }
.rv-row-action:hover { background:#eff1e9; }
.rv-row-action svg { width:19px; height:19px; }
.rv-details-action { display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:8px; font:500 14px Inter,Arial,sans-serif; color:#196f66; white-space:nowrap; }
.rv-details-action svg { width:16px; height:16px; }
.round-ui.rv-dialog { border:1px solid #dce0d6; border-radius:12px; padding:0; width:460px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 48px); box-shadow:0 20px 70px #24272226; background:white; }
.rv-dialog::backdrop { background:#24272240; }
.rv-dialog-head { padding:24px; display:flex; align-items:start; justify-content:space-between; gap:16px; border-bottom:1px solid #e7e8e2; }
.rv-dialog-head h2 { font-size:23px; }
.rv-dialog-head p { font-size:13px; color:#656b60; margin-top:5px; }
.rv-dialog-body { padding:24px; }
.rv-dialog-body label { display:block; font-size:14px; font-weight:400; color:#242722; margin-bottom:18px; }
.rv-dialog-body label small { font-size:12px; }
.rv-dialog-body :is(select,textarea) { display:block; width:100%; border:1px solid #cdd4c6; border-radius:7px; padding:11px; margin-top:7px; background:#fff; color:inherit; font:14px/1.5 Inter,Arial,sans-serif; }
.rv-dialog-body .rv-check { display:flex; align-items:flex-start; gap:10px; line-height:1.6; }
.rv-check input { width:18px; height:18px; min-height:18px; flex:0 0 18px; accent-color:#196f66; margin-top:3px; }
.rv-dialog-body .rv-identity h3 { font-size:17px; }
.rv-reading-data>div { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid #e7e8e2; font-size:14px; }
.rv-reading-data dt { color:#656b60; }
.rv-reading-data dd { margin:0; text-align:right; overflow-wrap:anywhere; min-width:0; }
.rv-dialog-actions { display:flex; justify-content:flex-end; gap:10px; padding:18px 24px; border-top:1px solid #e7e8e2; }
.rv-dialog details { margin-top:22px; font-size:14px; }
.rv-resident-search { margin:24px 0 12px; }
.rv-resident-search label { display:block; margin-bottom:8px; font-weight:500; }
.rv-resident-search input { box-sizing:border-box; width:100%; min-height:48px; border:1px solid #d8ddd1; border-radius:8px; padding:12px 14px; background:#fff; color:#242722; font:inherit; }
.round-ui .rv-resident-search p { margin:10px 0 0; color:#656b60; font-size:14px; line-height:1.5; }
.rv-resident-choices { max-height:min(32rem,55vh); overflow:auto; scrollbar-gutter:stable; }
.rv-resident-choices [hidden] { display:none; }
.rv-resident-search input:focus-visible,.rv-resident-choices:focus-visible { outline:2px solid #196f66; outline-offset:2px; }
.rv-dialog summary { cursor:pointer; min-height:44px; color:#196f66; }
.rv-event { border-left:2px solid #dce3d3; padding:0 0 16px 16px; font-size:13px; }
.rv-event small { display:block; font-size:12px; }
/* Fit tables to the actual content width, including expanded navigation. */
.rv-table-wrap { container-type:inline-size; min-width:0; }
.rv-table-wrap .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.rv-table-wrap table { width:100%; min-width:0; table-layout:fixed; font-size:14px; }
.rv-table-wrap :is(th,td) { padding:17px 18px; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }
.rv-table-wrap th { font-weight:400; color:#656b60; font-size:12px; background:#fbfbf8; }
.rv-table-wrap td small { display:block; font-size:12px; margin-top:4px; line-height:1.5; }
.rv-table-wrap .rv-numeric { font-variant-numeric:tabular-nums; }
.rv-table-wrap .rv-measure { white-space:nowrap; }
.rv-table-wrap .rv-detail-col { width:112px; text-align:right; padding-inline:8px; }
.rv-table-wrap .person-cell { display:flex; align-items:center; white-space:normal; }
.rv-table-wrap .person-cell>span:last-child { min-width:0; }
.rv-table-wrap .reading-author { white-space:normal; flex-wrap:wrap; }
.rv-table-wrap .reading-author-avatar { display:none; }
.rv-table-wrap .weight-note { max-width:none; min-width:0; }
.rv-table-wrap .cell-detail { white-space:normal; }
.rv-table-wrap .status { white-space:nowrap; }
.rv-table-wrap .rv-dir-person { width:25%; }
.rv-table-wrap .rv-dir-location { width:22%; }
.rv-table-wrap .rv-dir-status { width:90px; }
.rv-dir-compact { display:none; }
.readings-page { max-width:none; }
.readings-page .page-header h1 { font-size:32px; }
.readings-page .rv-table-wrap th { text-transform:none; letter-spacing:normal; font-weight:400; }
.readings-page #export-readings { min-height:44px; border-radius:8px; padding:10px 16px; font-size:14px; }
.readings-page .rv-status-filter { margin:20px; }
.readings-page .rv-status-filter + .form-help { padding:0 20px; }
.rv-table-note { padding:14px 20px; background:#fbfbf8; color:#656b60; font-size:12px; }
/* Bound only resident histories; retain all rows and native keyboard/touch scrolling. */
.rv-history-scroll { max-height:min(32rem,65vh); overflow:auto; scrollbar-gutter:stable; scroll-padding-block:60px 8px; }
.rv-history-scroll:focus-visible { outline:2px solid #196f66; outline-offset:-2px; }
.rv-history-scroll table { border-collapse:separate; border-spacing:0; }
.rv-history-scroll thead th { position:sticky; top:0; z-index:1; background:#fbfbf8; box-shadow:0 1px 0 #e7e8e2; }
@media print { .rv-history-scroll { max-height:none; overflow:visible; } .rv-history-scroll thead th { position:static; } }
.rv-status-filter { display:flex; gap:4px; flex-wrap:wrap; margin:0 0 20px; padding:4px; border-radius:8px; background:#eaece4; width:fit-content; }
.rv-status-filter button { min-height:44px; border:0; background:none; border-radius:5px; padding:8px 14px; font:14px Inter,Arial,sans-serif; color:#242722; }
.rv-status-filter button[aria-pressed=true] { background:white; }
@container(max-width:1000px) { .rv-layout { grid-template-columns:minmax(0,1fr); } .rv-aside { display:none; } }
@container(max-width:760px) { .rv-table-wrap :is(th,td) { padding:14px 12px; } .rv-table-wrap .rv-optional { display:none; } .rv-table-wrap .person-avatar { display:none; } }
@container(max-width:700px) { .rv-table-wrap :is(.rv-dir-weight,.rv-dir-status) { display:none; } .rv-table-wrap .rv-dir-compact { display:block; margin-top:10px; } .rv-table-wrap .rv-dir-person { width:28%; } .rv-table-wrap .rv-dir-location { width:24%; } }
@container(max-width:440px) { .rv-table-wrap .rv-measure { white-space:normal; } }
@container(max-width:560px) { .rv-device-row { flex-wrap:wrap; } .rv-device-meta { margin-left:auto; } .rv-device-row .button { width:100%; } .rv-receipt { grid-template-columns:1fr; } .rv-receipt .button { justify-self:start; } .rv-history-link { flex-wrap:wrap; } .rv-steps { gap:8px; } .rv-steps i { width:10px; } }
