/* Guided workstream creation; scoped to the modal and optional host setup cards. */
.workstream-setup-dialog { width:min(840px,calc(100vw - 40px)); max-height:calc(100dvh - 40px); margin:auto; padding:0; overflow:auto; border:1px solid var(--appearance-border,#4b4b4b); border-radius:0; background:var(--appearance-panel,#111); color:var(--appearance-text,#f3f2f2); font:400 14px/1.5 var(--font-ui,'Minerva Söhne',Arial,sans-serif); color-scheme:dark; }
.workstream-setup-dialog::backdrop { background:rgba(0,0,0,.8); }
.workstream-setup-dialog * { box-sizing:border-box; }
.workstream-setup-dialog button,.workstream-setup-dialog input,.workstream-setup-dialog textarea,.workstream-setup-dialog select { font:inherit; border-radius:0; }
.workstream-setup-dialog button { min-height:44px; padding:10px 16px; border:1px solid #555; color:inherit; background:transparent; cursor:pointer; }
.workstream-setup-dialog button:hover { border-color:#aaa; background:rgba(255,255,255,.04); }
.workstream-setup-dialog button:disabled { opacity:.48; cursor:default; }
.workstream-setup-dialog :is(button,input,textarea,select):focus-visible { outline:2px solid var(--appearance-accent,#f05b40); outline-offset:4px; }
.wss-shell { padding:36px; }
.wss-header { display:flex; gap:24px; justify-content:space-between; align-items:flex-start; }
.wss-eyebrow { margin:0 0 14px; color:#aaa; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.wss-header h2 { margin:0 0 13px; font:800 clamp(26px,4vw,34px)/1.2 var(--font-display,'Minerva Söhne Breit',Arial,sans-serif); letter-spacing:-.04em; }
.wss-header #workstream-setup-description { max-width:580px; margin:0; color:#b0b0b0; font-size:13px; }
.workstream-setup-dialog .wss-close { flex:none; width:40px; height:40px; min-height:40px; padding:0; font:26px/1 Arial,sans-serif; }
.wss-progress { margin:28px 0 0; }
.wss-progress ol { margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; }
.wss-progress li { border-bottom:2px solid #383838; }
.wss-progress li.is-complete { border-color:#777; }
.wss-progress li.is-current { border-color:var(--appearance-accent,#dd2b0f); }
.workstream-setup-dialog .wss-progress button { display:flex; align-items:center; justify-content:flex-start; gap:9px; min-width:0; width:100%; padding:13px 10px; border:0; font-size:12px; color:#aaa; white-space:nowrap; }
.workstream-setup-dialog .wss-progress button:disabled { opacity:1; color:#777; }
.wss-progress button span { font-size:10px; color:#aaa; }
.workstream-setup-dialog .wss-progress .is-current button { color:#fff; }
.wss-progress .is-current button span { color:var(--appearance-accent,#f05b40); }
.wss-body { display:grid; gap:22px; min-height:320px; padding:28px 0 12px; }
.wss-intro h3 { margin:0 0 9px; font-size:19px; font-weight:500; letter-spacing:-.02em; }
.wss-intro h3:focus { outline:none; }
.wss-intro p { margin:0; color:#aaa; max-width:620px; font-size:13px; }
.wss-field { display:grid; gap:8px; align-content:start; min-width:0; }
.wss-field > span:first-child { display:flex; justify-content:space-between; gap:12px; font-size:12px; }
.wss-field small,.wss-files h4 small { color:#929292; font-size:10px; font-weight:400; }
.wss-field input,.wss-field textarea,.wss-field select { width:100%; min-width:0; border:1px solid #535353; padding:11px 12px; color:inherit; background:var(--appearance-input,#080808); }
.wss-field input,.wss-field select { min-height:46px; }
.wss-field textarea { resize:vertical; min-height:84px; max-height:300px; }
.wss-field input::placeholder,.wss-field textarea::placeholder { color:#777; opacity:1; }
.wss-field :is(input,textarea,select):focus { border-color:#b3b3b3; }
.wss-field [aria-invalid=true] { border-color:#ff957b; }
.wss-help { margin:0; font-size:11px; line-height:1.7; color:#999; }
.wss-owner-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.wss-tip { margin-top:12px; display:flex; align-items:flex-start; gap:16px; border:1px solid #3b3b3b; padding:18px 20px; background:rgba(255,255,255,.02); }
.wss-tip > span { font-size:22px; color:#aaa; }
.wss-tip p { margin:0; font-size:13px; color:#aaa; }
.wss-steps { display:grid; gap:18px; }
.wss-step-row { display:grid; grid-template-columns:24px minmax(0,1fr) 160px 32px; align-items:end; gap:12px; }
.wss-step-number { align-self:center; margin-top:22px; font-size:10px; color:#888; }
.workstream-setup-dialog .wss-remove { padding:0; min-height:46px; border:0; color:#999; font-size:23px; }
.workstream-setup-dialog .wss-link { width:max-content; min-height:30px; padding:3px 0; border:0; color:#bcbcbc; text-decoration:underline; text-underline-offset:4px; font-size:12px; }
.workstream-setup-dialog .wss-link:hover { color:#fff; background:none; }
.wss-status-grid { border-top:1px solid #333; padding-top:24px; display:grid; grid-template-columns:160px minmax(0,1fr); gap:22px; }
.wss-schedule { border-top:1px solid #333; padding-top:22px; }
.wss-schedule h4 { margin:0 0 8px; display:flex; gap:12px; font-size:14px; font-weight:500; }
.wss-schedule h4 small { color:#999; font-size:10px; font-weight:400; }
.wss-date-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:18px; }
.wss-date-grid input { color-scheme:dark; }
@media (max-width:600px) { .wss-date-grid { grid-template-columns:1fr; } }
.wss-review { border:1px solid #444; padding:22px; }
.wss-review h4,.wss-files h4 { margin:0; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.wss-review-title { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.wss-review-title > h4 { flex:1; min-width:160px; font-size:18px; }
.wss-review-title > span { padding:3px 8px; border:1px solid #555; color:#bbb; font-size:10px; }
.wss-review p { margin:14px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.wss-review .wss-review-scope { color:#aaa; font-size:12px; }
.wss-review dl { display:grid; grid-template-columns:1fr 1fr; gap:20px; border-top:1px solid #333; margin:18px 0 4px; padding-top:18px; }
.wss-review dt { font-size:10px; color:#999; }
.wss-review dd { margin:6px 0 0; font-size:13px; overflow-wrap:anywhere; }
.wss-review-actions { border-top:1px solid #333; margin-top:16px; padding-top:18px; }
.wss-review-actions ol { padding:0 0 0 20px; margin:12px 0; color:#999; }
.wss-review-actions li { padding:6px 0 6px 5px; font-size:12px; }
.wss-review-actions li > span { color:#ddd; overflow-wrap:anywhere; }
.wss-review-actions li small { display:block; margin-top:4px; color:#999; }
.wss-files { display:flex; gap:18px; padding:20px; border:1px dashed #555; }
.wss-file-icon { width:32px; flex:none; font-size:25px; color:#aaa; }
.wss-files h4 { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.wss-files p { margin:7px 0 0; font-size:12px; color:#aaa; }
.wss-feedback { min-height:18px; }
.wss-error { color:#ffab91; font-size:12px; margin:8px 0 16px; }
.wss-error:empty { display:none; }
.wss-discard { padding:16px; border:1px solid #8d6759; margin:0 0 18px; }
.wss-discard p { margin:0 0 12px; font-size:13px; }
.wss-discard button { margin:0 8px 0 0; font-size:12px; }
.wss-footer { padding-top:20px; border-top:1px solid #3c3c3c; display:grid; gap:15px; }
.wss-next-hint { color:#999; font-size:11px; }
.wss-footer-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.wss-footer-actions > button:first-child { margin-right:auto; }
.workstream-setup-dialog .wss-primary { display:inline-flex; align-items:center; justify-content:space-between; gap:24px; border-color:transparent; background:var(--appearance-accent,#dd2b0f); color:var(--appearance-on-accent,#fff); }
.workstream-setup-dialog .wss-primary:hover { filter:brightness(1.1); background:var(--appearance-accent,#dd2b0f); }
.wss-next-action:not(:disabled) { animation:wss-guide 1.8s ease-out 2; }
.wss-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@keyframes wss-guide { 0%,100% { box-shadow:0 0 0 0 transparent; } 40% { box-shadow:0 0 0 4px rgba(221,43,15,.18); } }
@media (prefers-reduced-motion:reduce) { .wss-next-action:not(:disabled) { animation:none; } }
@media (max-width:600px) {
  .workstream-setup-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .wss-shell { padding:22px; }
  .wss-header { gap:14px; }
  .wss-eyebrow { font-size:9px; }
  .wss-progress { margin-top:22px; }
  .workstream-setup-dialog .wss-progress button { flex-direction:column; align-items:flex-start; gap:3px; padding:10px 4px; font-size:10px; }
  .wss-owner-grid,.wss-status-grid { grid-template-columns:1fr; }
  .wss-step-row { grid-template-columns:20px minmax(0,1fr) 28px; gap:10px; }
  .wss-step-row > .wss-field { grid-column:2; }
  .wss-step-row .wss-team-field { grid-row:2; }
  .wss-step-number { grid-column:1; grid-row:1; }
  .workstream-setup-dialog .wss-remove { grid-column:3; grid-row:1; }
  .wss-review { padding:16px; }
  .wss-review-title > h4 { min-width:100%; }
  .wss-review dl { grid-template-columns:1fr; gap:12px; }
  .wss-files { padding:16px; gap:10px; }
  .wss-footer-actions { gap:8px; }
  .wss-footer-actions > button { padding:11px 12px; font-size:12px; }
  .wss-footer-actions > button:first-child { margin-right:0; }
  .wss-footer-actions > .wss-primary { flex:1; }
}
