/* FDS extension: scoped rear-workspace editing and planar service overlays. */
.rw-property { border-top:1px solid var(--fds-border);margin-top:16px;padding-top:12px;display:grid;gap:8px; }
.rw-property h3,.rw-property p { margin:0; }
.rw-dialog { width:min(1280px,calc(100vw - 32px));height:calc(100dvh - 40px);max-width:none;max-height:none;padding:0;border:1px solid var(--fds-border);border-radius:var(--fds-radius-xl);color:var(--fds-text-primary);background:var(--fds-bg-panel); }
.rw-dialog[open] { display:flex;flex-direction:column; }
.rw-dialog::backdrop {background:rgb(17 24 39 / 38%);}
.rw-heading,.rw-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;flex-shrink:0;}
.rw-heading {border-bottom:1px solid var(--fds-border);}
.rw-heading > button {flex-shrink:0;min-width:60px;}
.rw-heading h2 {font-size:18px;margin:0 0 4px;}
.rw-heading p {font-size:12px;color:var(--fds-text-secondary);margin:0;}
.rw-footer {border-top:1px solid var(--fds-border);}
.rw-body {display:grid;grid-template-columns:minmax(0,1fr) 340px;flex:1;min-height:0;}
.rw-stage {display:flex;align-items:center;justify-content:center;background:var(--fds-bg-muted);min-width:0;overflow:hidden;}
.rw-stage svg {width:100%;height:100%;max-height:none;}
.rw-controls {overflow:auto;padding:16px;border-left:1px solid var(--fds-border);}
.rw-fields {display:grid;gap:12px;}
.rw-members {border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);padding:10px;}
.rw-members summary {cursor:pointer;font-weight:600;}
.rw-members .ss-check {display:flex;padding:6px 0;}
.rw-rules {border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);padding:12px;}
.rw-status {font-weight:600;}
.rw-finding {font-size:12px;line-height:1.6;padding:8px;border-radius:var(--fds-radius-md);background:var(--fds-bg-muted);}
.rw-error {color:var(--fds-red-700);border-left:3px solid var(--fds-red-600);}
.rw-dialog button {min-height:40px;white-space:normal;}
.rw-located {filter:drop-shadow(0 0 30px var(--fds-red-600));}
/* FDS extension: selectable comparison cards beside the existing workspace form. */
.rw-auto-visual {display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;scroll-padding:12px;}
.rw-auto-visual > .rw-stage {flex:1;min-height:260px;}
.rw-comparison {padding:16px;border-top:1px solid var(--fds-border);background:var(--fds-bg-panel);}
.rw-comparison[hidden] {display:none;}
.rw-comparison h3 {font-size:14px;margin:0 0 10px;}
.rw-choice-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;}
.rw-choice {display:flex;flex-direction:column;gap:7px;padding:12px;text-align:left;font:inherit;font-size:12px;line-height:1.5;cursor:pointer;color:var(--fds-text-secondary);background:var(--fds-bg-panel);border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);overflow-wrap:anywhere;}
.rw-choice strong {font-size:13px;color:var(--fds-text-primary);}
.rw-choice[aria-pressed="true"] {border-color:var(--fds-red-600);box-shadow:inset 0 0 0 1px var(--fds-red-600);}
.rw-choice:hover {background:var(--fds-bg-muted);}
.rw-choice:focus-visible {outline:3px solid var(--fds-red-600);outline-offset:3px;}
.rw-widths {font-variant-numeric:tabular-nums;color:var(--fds-text-primary);}
.rw-impact {font-size:13px;line-height:1.6;}
.rw-changes {padding:10px;border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);overflow-wrap:anywhere;}
.rw-changes summary {cursor:pointer;font-weight:600;}
.rw-changes h4 {margin:12px 0 4px;font-size:12px;}
.rw-changes ul {margin:0;padding-left:18px;font-size:12px;}
.rw-joint-group {padding:10px;border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);}
.rw-joint-group>.ss-check {display:flex;align-items:center;min-height:44px;font-weight:600;}
.rw-joint-settings {display:grid;gap:10px;border:0;padding:8px 0 0;margin:0;min-width:0;}
.rw-joint-settings legend {font-size:12px;color:var(--fds-text-secondary);}
.rw-joint-settings:disabled {display:none;}
.rw-source-check {margin:14px 0;padding:10px;border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);}
.rw-source-check summary {font-size:13px;font-weight:600;cursor:pointer;}
.rw-finding p {margin:4px 0;}
.rw-finding>strong {display:block;}
@media(max-width:767px){.rw-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);}.rw-body{display:block;overflow:auto;}.rw-stage{height:38dvh;min-height:240px;}.rw-controls{overflow:visible;border-left:0;}.rw-heading,.rw-footer{padding:12px;}.rw-footer .fds-meta{display:none;}.rw-dialog button{min-height:44px;}.rw-footer{justify-content:flex-end;}}
@media(max-width:767px){.rw-auto-visual{overflow:visible;}.rw-auto-visual>.rw-stage{flex:none;}.rw-choice-list{grid-template-columns:1fr;}.rw-comparison{padding:12px;}}
/* FDS extension: stable task entries with visible scope and prerequisites. */
.rw-property-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.rw-help {display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--fds-text-secondary);text-decoration:underline;text-underline-offset:3px;}
.rw-help:focus-visible {outline:3px solid var(--fds-blue-600);outline-offset:2px;}
.rw-entry {display:grid;gap:6px;padding:10px;border:1px solid var(--fds-border);border-radius:var(--fds-radius-md);}
.rw-entry button {width:100%;min-height:44px;white-space:normal;}
.rw-entry .fds-meta {font-size:12px;line-height:1.6;}
.rw-other {padding-top:8px;}
.rw-other summary {cursor:pointer;min-height:44px;display:list-item;align-content:center;font-size:13px;}
.rw-other button {min-height:44px;white-space:normal;margin:8px 0;}
.rw-scope {margin:0;padding:10px;background:var(--fds-bg-muted);border-radius:var(--fds-radius-md);font-size:12px;line-height:1.6;}
.ss-editor-page :is(.rw-entry,.rw-other,.rw-dialog) .fds-btn {min-height:44px;height:auto;}
