/* Ruction Elements 0.5.12 — unified Impact design studio. Additive styling only. */
#re510VisualPanel .re512-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-bottom:1px solid var(--stroke);padding:2px 0 9px;margin:8px 0}
#re510VisualPanel .re512-tab{min-width:0;padding:8px 3px;font-size:10.5px;border-radius:8px;color:var(--muted);line-height:1.25}
#re510VisualPanel .re512-tab[aria-selected="true"]{background:#123740;border-color:#17B7C5;color:#5EDFE9;font-weight:800}
#re510VisualPanel.re510-light .re512-tab[aria-selected="true"]{background:#E2F7F9;color:#087A8B}
#re510VisualPanel .re512-tab:focus-visible,#re510VisualPanel .re512-preview-tools button:focus-visible,#re510VisualPanel .re512-saved-row button:focus-visible{outline:2px solid #17B7C5;outline-offset:2px}
#re510VisualPanel .re512-pane[hidden]{display:none!important}
#re510VisualPanel .re512-pane{margin-top:10px;min-width:0}
#re510VisualPanel .re512-preview-tools{display:grid;gap:7px;padding:9px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--stroke);margin:10px 0 6px}
#re510VisualPanel .re512-preview-tools>span{font-size:11px;font-weight:800}
#re510VisualPanel .re512-preview-tools small{font-weight:400;color:var(--muted);font-size:10px}
#re510VisualPanel .re512-preview-tools>div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
#re510VisualPanel .re512-preview-tools button{font-size:11px;padding:7px 4px}
#re510VisualPanel .re512-preview-tools button[aria-pressed="true"]{border-color:#17B7C5;color:#5ADCE9;background:#10333A;font-weight:800}
#re510VisualPanel .re512-sources,#re510VisualPanel .re512-named{border:1px solid var(--stroke);background:var(--surface);border-radius:12px;padding:13px}
#re510VisualPanel .re512-sources h4,#re510VisualPanel .re512-named h4{margin:0 0 5px;font-size:14px;font-weight:800}
#re510VisualPanel .re512-sources p,#re510VisualPanel .re512-named p{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 12px}
#re510VisualPanel .re512-source-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px}
#re510VisualPanel .re512-source-presets button{font-size:10px;line-height:1.15;padding:8px 4px}
#re510VisualPanel .re512-source-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#re510VisualPanel .re512-source-input{display:flex;flex-direction:column;gap:5px;border:1px solid var(--stroke);border-radius:9px;padding:8px;background:var(--bg);font-size:11px;font-weight:650;min-width:0}
#re510VisualPanel .re512-source-input>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#re510VisualPanel .re512-source-input input{width:100%;height:32px}
#re510VisualPanel #re512ResetSources{margin-top:12px;width:100%}
#re510VisualPanel .re512-named>label{display:block;font-size:11px;font-weight:750;margin-bottom:6px}
#re510VisualPanel .re512-named-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
#re510VisualPanel #re512PresetName{width:100%;min-width:0;color:var(--fg);background:var(--bg);border:1px solid var(--stroke);border-radius:9px;padding:8px 9px;font:inherit;font-size:12px}
#re510VisualPanel #re512SavePreset{background:#109DC9;border-color:#109DC9;color:#061c25;font-weight:750;font-size:11px}
#re510VisualPanel .re512-preset-message{font-size:11px;line-height:1.5;padding:9px 0;color:var(--muted)}
#re510VisualPanel .re512-saved-presets{display:grid;gap:7px}
#re510VisualPanel .re512-no-presets{margin:0;padding:10px;border-radius:9px;background:var(--bg);color:var(--muted)}
#re510VisualPanel .re512-saved-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:var(--bg);border:1px solid var(--stroke);border-radius:9px;min-width:0}
#re510VisualPanel .re512-saved-row strong{font-size:11px;overflow-wrap:anywhere;min-width:0}
#re510VisualPanel .re512-saved-row>div{display:flex;gap:5px;flex:none}
#re510VisualPanel .re512-saved-row button{font-size:10px;padding:6px 8px}
#re510VisualPanel .re512-saved-row [data-re512-load]{border-color:#17B7C5;color:#17B7C5}
#re510VisualPanel .re512-saved-row [data-re512-delete]{border-color:#85555A;color:#E9AAB0}
#re510VisualPanel .re512-pane .re511-transfer{margin-top:10px}
#re510VisualPanel .re512-pane .re511-chart-settings{margin-top:0}
#impactView #re505Impact[data-re512-preview="tablet"]{width:min(100%,800px)!important;max-width:800px!important;margin-inline:auto!important}
#impactView #re505Impact[data-re512-preview="mobile"]{width:min(100%,390px)!important;max-width:390px!important;margin-inline:auto!important}
/* Width simulation never edits grid preferences or module ordering. */
#impactView #re505Impact[data-re512-preview="tablet"] .re505-main-grid,
#impactView #re505Impact[data-re512-preview="mobile"] .re505-main-grid{grid-template-columns:minmax(0,1fr)!important}
#impactView #re505Impact[data-re512-preview="tablet"] .re505-pair,
#impactView #re505Impact[data-re512-preview="mobile"] .re505-pair{grid-template-columns:minmax(0,1fr)!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-journey{grid-template-columns:1fr!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-journey-steps{display:grid!important;grid-template-columns:1fr 22px 1fr!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-bottom-grid{grid-template-columns:1fr!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-takeaways{grid-column:auto!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-donut-body{grid-template-columns:1fr!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-heading-actions{width:100%!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-team-row{grid-template-columns:44px minmax(0,1fr)!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-person-metrics{grid-column:2!important;text-align:left!important}
#impactView #re505Impact[data-re512-preview="mobile"] .re505-table-scroll{max-width:100%;overflow-x:auto}
#impactView #re505Impact[data-re512-preview="tablet"] .re505-table-scroll{max-width:100%;overflow-x:auto}
#impactView .re512-key-target:focus-visible{outline:3px solid #17B7C5!important;outline-offset:3px!important;border-radius:3px}
#impactView .re512-key-target{scroll-margin:80px}
@media(max-width:480px){#re510VisualPanel .re512-tab{font-size:10px;padding:7px 2px}#re510VisualPanel .re512-source-list{grid-template-columns:1fr 1fr}#re510VisualPanel .re512-named-add{grid-template-columns:1fr}#re510VisualPanel .re512-saved-row{align-items:flex-start}}
