
.vr-review { min-width:0; }
.vr-review dialog.vr-dialog-wide { width:min(1060px,calc(100% - 24px)); }
.vr-result-toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; gap:16px; margin-bottom:16px; }
.vr-query-entry { display:flex; flex-direction:column; gap:6px; justify-content:end; }
.vr-review #vr-result-form #vr-broker-preview { flex:1 1 auto; min-height:90px; overflow:auto; padding:12px 4px 12px 0; border-top:1px solid var(--line); }
.vr-review #vr-broker-preview .vr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px 0; }
.vr-broker-table { min-width:640px; }
.vr-broker-confirm { margin:12px 0; }
.vr-notification-options { display:grid; gap:12px; margin:0 0 12px; }
.vr-notification-preview { padding:12px 0; }
.vr-notification-preview > div { border:1px solid var(--line); padding:12px; border-radius:5px; }
.vr-notification-preview p { margin-top:8px; }
.vr-orders .vr-tag { max-width:100%; white-space:normal; line-height:1.45; }
.vr-review .vr-bulk { padding:12px 0; border-top:1px solid var(--line); }
.vr-result-list { display:grid; gap:12px; }
.vr-orders [data-vr-action="result-row"] { max-width:100%; white-space:normal; line-height:1.45; }
.vr-review #vr-result-form { display:flex; flex-direction:column; height:calc(65vh - 32px); }
.vr-review #vr-result-form > * { flex-shrink:0; }
.vr-review #vr-result-form .vr-result-list { flex:1 1 auto; min-height:90px; overflow:auto; padding-right:4px; }
.vr-review #vr-result-form .vr-form-foot { padding:12px 0 0; margin:0; }
.vr-review #vr-result-form .vr-form-foot .vr-help { max-width:65%; }
.vr-review #vr-result-error { max-height:60px; overflow:auto; margin:8px 0 0; }
.vr-result-row { border:1px solid var(--line); border-radius:6px; padding:12px 16px; }
.vr-result-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:12px; font-size:var(--trading-font-body); }
.vr-result-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:12px; align-items:end; }
.vr-result-fields label, .vr-result-toolbar label { display:grid; gap:6px; font-size:var(--trading-font-label); min-width:0; }
.vr-result-fields input, .vr-result-fields select, .vr-result-toolbar input, .vr-result-toolbar select { width:100%; min-width:0; box-sizing:border-box; }
.vr-result-row details { margin-top:8px; }
.vr-result-row summary { padding:6px 0; font-size:var(--trading-font-body); }
.vr-result-row details .vr-result-fields { padding-top:8px; grid-template-columns:1fr 1fr 2fr; }
.vr-result-row input:disabled, .vr-result-row select:disabled { opacity:.45; }
.vr-review input[readonly] { background:var(--surface-soft,var(--surface)); color:var(--muted); }
.vr-guide-steps { font-size:var(--trading-font-body); line-height:1.8; padding-left:22px; }
@media(max-width:720px) {
 .vr-result-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .vr-result-row details .vr-result-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .vr-result-row details .vr-wide { grid-column:1/-1; }
 .vr-result-toolbar { gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .vr-query-entry { grid-column:1/-1; flex-direction:row; align-items:center; justify-content:space-between; }
 .vr-result-row { padding:12px; }
 .vr-result-heading { flex-wrap:wrap; }
}
.vr-review [hidden] { display:none !important; }
.vr-toolbar, .vr-actions, .vr-inline { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.vr-toolbar { justify-content:space-between; }
.vr-notice { padding:10px 14px; border:1px solid var(--line); border-radius:5px; background:var(--surface); color:var(--muted); font-size:var(--trading-font-body); }
.vr-notice strong { color:var(--ink); }
.vr-body { padding:16px; font-size:var(--trading-font-body); }
.vr-review #vr-closing-form .vr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:460px) { .vr-review #vr-closing-form .vr-grid { grid-template-columns:minmax(0,1fr); } }
.vr-body p { margin:0 0 12px; line-height:1.6; }
.vr-muted, .vr-help { color:var(--muted); font-size:var(--trading-font-body); line-height:1.6; }
.vr-help { margin:0; }
.vr-review #vr-settings-form > .vr-help,
.vr-review #vr-settings-form > details > .vr-help,
.vr-review #vr-cycle-form > .vr-help { margin:0 16px 12px; }
.vr-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.vr-grid .vr-wide { grid-column:span 2; }
.vr-span { grid-column:1/-1; }
.vr-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0; }
.vr-summary > div { padding:14px 16px; border-right:1px solid var(--line); }
.vr-summary > div:last-child { border-right:0; }
.vr-summary dt { color:var(--muted); font-size:var(--trading-font-body); margin-bottom:8px; }
.vr-summary dd { margin:0; font-size:var(--trading-font-panel); font-weight:700; font-variant-numeric:tabular-nums; }
.vr-summary small { display:block; margin-top:6px; color:var(--muted); font-size:var(--trading-font-body); font-weight:400; }
.vr-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.vr-review .vr-orders th, .vr-review .vr-orders td { text-align:center; width:25%; }
.vr-review .vr-orders { table-layout:fixed; min-width:340px; }
.vr-review .vr-orders td { font-variant-numeric:tabular-nums; }
.vr-review .vr-buy { color:var(--trade-buy); }
.vr-review .vr-sell { color:var(--trade-sell); }
.vr-review .vr-num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.vr-review .vr-date { white-space:nowrap; }
.vr-review .vr-table-scroll { max-height:398px; overflow:auto; }
.vr-review .vr-table-scroll th { position:sticky; top:0; background:var(--canvas); z-index:1; }
.vr-review tr[data-profile], .vr-review tr[data-history], .vr-review tr[data-line] { cursor:pointer; }
.vr-review tbody tr:hover { background:color-mix(in srgb,var(--accent) 5%,var(--surface)); }
.vr-review tr.vr-selected { background:color-mix(in srgb,var(--accent) 10%,var(--surface)); }
.vr-review .vr-row-button { border:0; background:none; color:var(--accent); padding:0; font:inherit; font-weight:700; cursor:pointer; text-align:inherit; }
.vr-review .vr-tag { display:inline-flex; padding:3px 8px; border-radius:4px; background:var(--canvas); color:var(--muted); font-size:var(--trading-font-table-head); white-space:nowrap; }
.vr-review .vr-tag-active { color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,var(--surface)); }
.vr-review details > summary { cursor:pointer; padding:12px 16px; font-weight:700; font-size:var(--trading-font-section); color:var(--ink); }
.vr-review .vr-checkbox { display:flex; align-items:center; flex-direction:row; gap:8px; }
.vr-review .vr-checkbox input { width:auto; min-height:0; }
.vr-review .vr-form-foot { padding:0 16px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.vr-review .vr-error { color:var(--danger); padding:10px 16px; background:color-mix(in srgb,var(--danger) 6%,var(--surface)); border-radius:4px; font-size:var(--trading-font-body); }
.vr-review .vr-step { display:flex; align-items:center; gap:8px; font-size:var(--trading-font-body); color:var(--muted); }
.vr-review .vr-step b { color:var(--ink); }
.vr-review .vr-formula { padding:12px; border:1px solid var(--line); border-radius:4px; background:var(--canvas); overflow-wrap:anywhere; line-height:1.7; font-size:var(--trading-font-body); }
.vr-review .vr-table-foot { padding:0 16px 16px; display:flex; justify-content:space-between; gap:12px; font-size:var(--trading-font-body); color:var(--muted); }
.vr-review .vr-chart { width:100%; height:auto; display:block; color:var(--muted); overflow:visible; }
.vr-chart text { fill:currentColor; font-family:inherit; font-size:var(--trading-font-table-head); }
.vr-chart .vr-chart-grid { stroke:var(--line); stroke-width:1; }
.vr-chart .vr-chart-band { fill:color-mix(in srgb,var(--accent) 10%,transparent); }
.vr-chart .vr-chart-v { stroke:var(--accent); }
.vr-chart .vr-chart-equity { stroke:var(--trade-warning); }
.vr-chart .vr-chart-pool { stroke:var(--trade-buy); }
.vr-chart path.vr-series { fill:none; stroke-width:2.5; }
.vr-legend { display:flex; flex-wrap:wrap; gap:14px; margin:0 0 8px; font-size:var(--trading-font-body); }
.vr-legend span { display:inline-flex; align-items:center; gap:5px; }
.vr-legend i { display:inline-block; width:15px; height:3px; background:var(--accent); }
.vr-legend .vr-legend-equity { background:var(--trade-warning); }
.vr-legend .vr-legend-pool { background:var(--trade-buy); }
.vr-legend .vr-legend-band { height:10px; background:color-mix(in srgb,var(--accent) 18%,var(--surface)); }
.vr-review .vr-report-title { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.vr-review .vr-report-title h2 { font-size:var(--trading-font-panel); margin:0; }
.vr-review .vr-report { display:grid; gap:18px; }
.vr-review .vr-graph-select { display:flex; gap:8px; align-items:center; font-size:var(--trading-font-body); }
.vr-review .vr-graph-select select { width:auto; }
.vr-review dialog { width:min(720px,calc(100% - 32px)); max-height:85vh; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); }
.vr-review dialog::backdrop { background:rgba(0,0,0,.35); }
.vr-review dialog .vr-body { max-height:65vh; overflow:auto; }
.vr-review dialog dl { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; font-size:var(--trading-font-body); }
.vr-review dialog dt { color:var(--muted); }
.vr-review dialog dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.vr-review .vr-section-title { margin:0 0 12px; font-size:var(--trading-font-section); }
.vr-review .vr-toast { position:fixed; right:24px; bottom:24px; z-index:100; max-width:calc(100vw - 48px); padding:12px 18px; border:1px solid var(--line); border-radius:6px; background:var(--surface); box-shadow:0 4px 18px rgba(0,0,0,.12); color:var(--ink); font-size:var(--trading-font-body); }
@media(max-width:1100px) { .vr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) {
 .vr-two { grid-template-columns:minmax(0,1fr); }
 .vr-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .vr-summary > div { border-bottom:1px solid var(--line); }
 .vr-summary > div:nth-child(even) { border-right:0; }
 .vr-review .trading-page-head { align-items:flex-start; gap:12px; flex-wrap:wrap; }
 .vr-review .trading-panel-head { flex-wrap:wrap; }
}
@media(max-width:460px) {
 .vr-grid { grid-template-columns:minmax(0,1fr); }
 .vr-grid .vr-wide { grid-column:auto; }
 .vr-review .vr-actions .button { flex:1 1 auto; }
 .vr-review .vr-chart { min-width:400px; }
 .vr-chart-wrap { overflow-x:auto; }
}


.vr-review .trading-panel-head h2 span { font-size:inherit; }
.vr-review #vr-content, .vr-review #vr-profile-list, .vr-review #vr-settings-editor, .vr-review #vr-saved-plans { min-width:0; }
.vr-review #vr-settings-editor { display:grid; gap:18px; }
.vr-review #vr-filter { grid-template-columns:minmax(0,1fr) auto; }
@media(max-width:460px) { .vr-review #vr-filter { grid-template-columns:minmax(0,1fr); } }

.vr-review pre { white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; }
.vr-review svg { width:100%; height:auto; }
.vr-review td small { display:block; }
.vr-review .vr-summary > div, .vr-review .vr-two > *, .vr-review .trading-panel { min-width:0; }
.vr-review .vr-step { flex-wrap:wrap; }
.vr-review #vr-content { display:grid; gap:18px; }
.vr-review #vr-result-form .vr-result-fields { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:720px) { .vr-review #vr-result-form .vr-result-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* One inset per form: nested grids and help text share the same left edge. */
.vr-review #vr-status:empty { display:none; }
.vr-review #vr-settings-form { display:flex; flex-direction:column; gap:20px; padding:16px; }
.vr-review #vr-settings-form .trading-form-grid { padding:0; gap:16px; align-items:end; }
.vr-review #vr-settings-form .vr-body { padding:0; }
.vr-review #vr-settings-form .vr-help { margin:0; }
.vr-review #vr-settings-form > .vr-body:first-child { display:grid; grid-template-columns:minmax(220px,1fr) 2fr; gap:16px; align-items:center; padding:16px; border:1px solid var(--line); border-radius:6px; background:var(--canvas); }
.vr-review #vr-settings-form > .vr-body:first-child label { display:grid; gap:6px; }
.vr-review #vr-settings-form > .vr-body:first-child p { margin:0; }
.vr-review #vr-new-start { display:grid; gap:14px; border-top:1px solid var(--line); padding-top:20px; }
.vr-review #vr-new-start .trading-panel-head { padding:0; min-height:0; border:0; }
.vr-review #vr-settings-form > details,
.vr-review #vr-continuation > details { padding:0; border-top:1px solid var(--line); border-bottom:0; }
.vr-review #vr-settings-form details > summary { padding:14px 0; }
.vr-review #vr-settings-form details[open] { padding-bottom:16px; }
.vr-review #vr-settings-form details > .vr-help { margin:12px 0 0; }
.vr-review #vr-settings-form .vr-rule-options { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:16px; padding:12px 0; border-top:1px dashed var(--line); }
.vr-review #vr-settings-form .vr-checkbox { align-items:flex-start; line-height:1.6; }
.vr-review #vr-settings-form .vr-checkbox input { flex:none; margin-top:3px; }
.vr-review #vr-continuation { display:grid; gap:16px; }
.vr-review #vr-continuation h2, .vr-review #vr-continuation h3 { margin:0; }
.vr-review #vr-continuation > label:not(.vr-checkbox) { display:grid; gap:6px; }
.vr-review #vr-entry-balance-heading { border-top:1px solid var(--line); padding-top:20px; }
.vr-review #vr-source-calculation:empty { display:none; }
.vr-review #vr-source-calculation .vr-summary { border:1px solid var(--line); border-radius:6px; background:color-mix(in srgb,var(--accent) 5%,var(--surface)); overflow:hidden; }
.vr-review #vr-source-calculation > .vr-help { margin-top:10px; }
.vr-review #vr-settings-form .vr-form-foot { padding:16px 0 0; border-top:1px solid var(--line); }
.vr-review .vr-empty-state { text-align:center; padding:24px 16px; color:var(--muted); }
@media(max-width:720px) {
 .vr-review #vr-settings-form > .vr-body:first-child { grid-template-columns:minmax(0,1fr); gap:10px; }
 .vr-review #vr-settings-form .vr-rule-options { flex-direction:column; gap:12px; }
 .vr-review #vr-settings-form .vr-form-foot { align-items:stretch; }
 .vr-review #vr-settings-form .vr-form-foot button { width:100%; }
}

/* Confirmed Pool changes share the existing form grid and common buttons. */
.vr-review .vr-pool-schedule { display:grid; gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.vr-review .vr-pool-schedule h3 { margin:0; }
.vr-review #vr-pool-rows { display:grid; gap:12px; }
.vr-review #vr-settings-form .vr-pool-row { grid-template-columns:1fr 1fr auto; }
@media(max-width:460px) { .vr-review #vr-settings-form .vr-pool-row { grid-template-columns:minmax(0,1fr); } }
