/* Stakeholder priorities share the application's card, type, and focus treatment. */
#stakeholderPrioritiesSurface,#stakeholderGroupsSurface{max-width:1120px;margin:0 auto;color:var(--ink,#132136);}
#stakeholderPrioritiesSurface h1,#stakeholderGroupsSurface h1{font:700 30px/1.2 Manrope,sans-serif;letter-spacing:-.035em;margin:0 0 12px;}
#stakeholderPrioritiesSurface>p,#stakeholderGroupsSurface>p{color:var(--muted,#61738b);max-width:850px;line-height:1.6;}
#stakeholderPrioritiesSurface>label{display:block;font-size:12px;font-weight:600;max-width:380px;margin:20px 0 8px;}
#stakeholderPrioritiesSurface select,#stakeholderPrioritiesSurface input,#stakeholderGroupsSurface input{display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;background:var(--appearance-surface,white);border:1px solid var(--line,#cad5e5);border-radius:10px;color:var(--ink,#132136);margin-top:7px;}
.stakeholder-priority-list{list-style:none;counter-reset:priority;padding:0;margin:22px 0;display:grid;gap:12px;}
.stakeholder-priority-row{counter-increment:priority;display:flex;gap:18px;align-items:center;padding:20px;border:1px solid var(--line,#d5deea);border-radius:16px;background:var(--appearance-surface,white);}
.stakeholder-priority-row::before{content:counter(priority);display:grid;place-items:center;flex:0 0 40px;height:40px;background:var(--appearance-quiet,#edf3ff);color:var(--appearance-link,#1658d5);border-radius:12px;font-weight:800;font-size:20px;}
.stakeholder-priority-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;}
.stakeholder-artifact-link{font-weight:700;font-size:16px;line-height:1.4;color:var(--ink,#132136);text-decoration:none;overflow-wrap:anywhere;}
.stakeholder-artifact-link:hover{text-decoration:underline;color:var(--appearance-link,var(--blue,#1658d5));}
.stakeholder-priority-copy>span{font-size:11px;letter-spacing:.03em;color:var(--muted,#61738b);}
.stakeholder-priority-row.is-released{background:var(--appearance-quiet,#f0f2f5);border-color:var(--appearance-line,#dce1e8);}
.stakeholder-priority-row.is-released .stakeholder-priority-copy{color:var(--appearance-muted,#647080);}
.stakeholder-priority-row.is-released .stakeholder-artifact-link{color:var(--appearance-muted,#647080);}
.stakeholder-row-actions{display:flex;flex-wrap:wrap;gap:7px;flex:0 0 auto;}
.stakeholder-row-actions .button{font-size:11px;padding:8px 10px;}
.stakeholder-search-results{display:grid;gap:8px;margin:14px 0;}
.stakeholder-search-results .button{text-align:left;}
#stakeholderPrioritiesSurface details{margin:28px 0;padding:20px;background:var(--appearance-surface,white);border:1px solid var(--line,#d5deea);border-radius:14px;}
#stakeholderPrioritiesSurface summary{font-weight:700;cursor:pointer;}
#stakeholderPrioritiesSurface details ol{padding-left:20px;}
#stakeholderPrioritiesSurface details li{padding:12px 0;border-bottom:1px solid var(--appearance-line,#e9edf3);line-height:1.6;white-space:pre-line;}
.stakeholder-group-form{display:grid;gap:15px;max-width:680px;padding:24px;background:var(--appearance-quiet,#f4f1ff);border:1px solid var(--appearance-line,#ded5ff);border-radius:16px;margin:24px 0;}
.stakeholder-group-form label{font-size:12px;font-weight:600;}
.stakeholder-group-form>.button{justify-self:start;}
.stakeholder-suggestions{display:flex;gap:7px;flex-wrap:wrap;}
.stakeholder-suggestions .button{font-size:11px;border-radius:20px;padding:6px 10px;color:var(--appearance-sense-text,#613db0);}
.stakeholder-group-row{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:16px;margin:10px 0;background:var(--appearance-surface,white);border:1px solid var(--line,#d5deea);border-radius:14px;}
/* Align the input and actions themselves, leaving the label above the control row. */
.stakeholder-group-row>label{display:grid;gap:7px;min-width:0;}
.stakeholder-group-row>.button,
.stakeholder-group-row input {
  box-sizing:border-box;
  height:44px;
  min-height:44px;
}


.stakeholder-group-row input {
  max-width:500px;
  margin:0!important;
}

@media(max-width:760px){.stakeholder-priority-row{flex-wrap:wrap;padding:16px;gap:12px;}.stakeholder-row-actions{flex-basis:100%;justify-content:flex-end;}.stakeholder-group-form{padding:18px;}
.stakeholder-group-row input {
  max-width:none;
}
#stakeholderPrioritiesSurface h1,#stakeholderGroupsSurface h1{font-size:25px;}}
.stakeholder-history-row{padding:16px 0;border-bottom:1px solid var(--line,#d5deea);display:flex;flex-direction:column;gap:6px}.stakeholder-history-row p{white-space:pre-wrap;margin:0;line-height:1.6}.stakeholder-history-row>span{font-size:12px;color:var(--muted,#66758c)}

/* Keep selection confirmation beside the search field, including narrow layouts. */
.stakeholder-search-row{display:flex;align-items:flex-end;gap:12px;}
.stakeholder-search-row .stakeholder-search{flex:1;min-width:0;margin:0;}
.stakeholder-search-row input{width:100%;min-width:0;margin-bottom:0!important;}
.stakeholder-search-row>.button{flex:0 0 auto;white-space:nowrap;}
.stakeholder-search-results .button[aria-pressed="true"]{background:var(--appearance-quiet,#edf3ff);color:var(--appearance-link,#1658d5);border-color:var(--appearance-line,#1658d5);}
