/* "Who does what" view — matches the List / Timeline toggle and the dark review theme. */
.process-view-toggle>button.roles-view-button{appearance:none;-webkit-appearance:none;margin:0;min-height:30px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#a9bac8;font:inherit;font-size:12.5px;font-weight:500;line-height:1;letter-spacing:.01em;cursor:pointer;white-space:nowrap;transition:background-color .12s ease,color .12s ease}
.process-view-toggle>button.roles-view-button:hover{color:#edf3f7}
.process-view-toggle>button.roles-view-button[aria-pressed="true"]{background:#192633;color:#edf3f7;box-shadow:inset 0 0 0 1px #334450}
.process-view-toggle>button.roles-view-button:focus-visible{outline:2px solid var(--process-color,#edf3f7);outline-offset:1px}

.roles-view{margin:22px 0 40px;color:#dbe6ee}
.roles-view[hidden]{display:none!important}
.roles-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px 24px;flex-wrap:wrap;margin-bottom:16px}
.roles-head h3{margin:0 0 4px;font-size:19px;font-weight:600;letter-spacing:-.3px;color:#edf3f7}
.roles-head p{margin:0;font-size:12px;color:#93a6b5}
.roles-legend{list-style:none;margin:0;padding:0;display:flex;gap:16px;flex-wrap:wrap;font-size:11.5px;color:#a9bac8}
.roles-legend li{display:flex;align-items:center;gap:7px}

.roles-dot{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;box-sizing:border-box;vertical-align:middle}
.roles-dot.does{background:#5ffcc0;box-shadow:0 0 0 3px rgba(95,252,192,.14)}
.roles-dot.helps{border:2px solid #5ffcc0;background:transparent}
.roles-dot.unclear{border:1.5px dashed #f0c27a;color:#f0c27a;font-size:9px;font-weight:700;line-height:1}

.roles-scroll{overflow-x:auto;border:1px solid #2a3a46;border-radius:12px;background:rgba(255,255,255,.02)}
.roles-scroll:focus-visible{outline:2px solid #5ffcc0;outline-offset:2px}
.roles-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12.5px}
.roles-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.roles-table thead th{position:sticky;top:0;background:#121c26;font-weight:500;color:#93a6b5;font-size:11px;text-align:left;padding:12px 10px;border-bottom:1px solid #2a3a46;vertical-align:bottom}
.roles-table td,.roles-table tbody th{padding:14px 10px;border-bottom:1px solid #22313c;vertical-align:top;text-align:left;font-weight:400}
.roles-table tbody tr:last-child td,.roles-table tbody tr:last-child th{border-bottom:0}
.roles-table tbody tr:hover td,.roles-table tbody tr:hover th{background:rgba(157,230,202,.035)}
.roles-table .roles-col-step{position:sticky;left:0;z-index:1;background:#141f29;min-width:260px}
.roles-table thead .roles-col-step{z-index:2;background:#121c26}
/* Grid lives on an inner div: display:grid on the cell itself breaks table widths. */
.roles-step{display:grid;grid-template-columns:22px 1fr;column-gap:8px;row-gap:5px}
.roles-num{grid-row:1/span 3;font-size:11px;color:#6f8696;font-variant-numeric:tabular-nums;padding-top:1px}
.roles-table strong,.roles-cards strong{font-weight:600;color:#edf3f7;font-size:13px;line-height:1.35}
.roles-col-when{width:160px;min-width:120px;color:#b8c7d3;line-height:1.45}
.roles-table .roles-col-role{text-align:center;min-width:62px;width:62px;vertical-align:middle;padding-left:4px;padding-right:4px}
.roles-table thead .roles-col-role{text-align:center}
.roles-table thead .roles-col-role span{display:inline-block;line-height:1.25}
.roles-col-gaps{min-width:220px;color:#c9d6df}
.roles-gaps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;line-height:1.45}
.roles-gaps li{position:relative;padding-left:16px}
.roles-gaps li:before{content:'⚠';position:absolute;left:0;top:0;font-size:10px;color:#f0c27a}
.roles-none{color:#5c7181}
.roles-flag{display:inline-flex;width:max-content;font-size:10px;padding:2px 7px;border-radius:999px;border:1px dashed #f0c27a;color:#f0c27a}
.roles-proposed{font-size:11px;color:#8fb3a6;font-style:italic;line-height:1.4}
.roles-table tr.is-unowned .roles-col-step{box-shadow:inset 3px 0 0 #f0c27a}

.roles-cards{display:none;list-style:none;margin:0;padding:0;flex-direction:column;gap:12px}
.roles-cards>li{padding:16px;border:1px solid #2a3a46;border-radius:12px;background:rgba(255,255,255,.02);display:flex;flex-direction:column;gap:10px}
.roles-cards>li.is-unowned{border-left:3px solid #f0c27a}
.roles-card-head{display:flex;flex-direction:column;gap:6px}
.roles-when{font-size:12px;color:#93a6b5}
.roles-cards dl{margin:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.roles-cards dl div{display:grid;grid-template-columns:72px 1fr;gap:8px}
.roles-cards dt{color:#93a6b5;font-size:12px}
.roles-cards dd{margin:0;color:#edf3f7}
.roles-maybe{color:#f0c27a;font-size:12px}
.roles-cards .roles-gaps{font-size:12.5px}

.roles-load{margin-top:28px;padding:20px 22px;border:1px solid #2a3a46;border-radius:12px;background:rgba(255,255,255,.02)}
.roles-load h4{margin:0 0 14px;font-size:14px;font-weight:600;color:#edf3f7}
.roles-load ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.roles-load li{display:grid;grid-template-columns:140px 1fr 28px;gap:12px;align-items:center;font-size:12.5px}
.roles-load-name{color:#c9d6df}
.roles-load-bar{height:8px;border-radius:999px;background:#1c2a35;overflow:hidden}
.roles-load-bar i{display:block;height:100%;border-radius:999px;background:#5ffcc0}
.roles-load-gap .roles-load-bar i{background:#f0c27a}
.roles-load-n{text-align:right;font-variant-numeric:tabular-nums;color:#edf3f7}
.roles-note{margin:12px 0 0;font-size:11.5px;color:#93a6b5}

@media(max-width:760px){
  .roles-scroll{display:none}
  .roles-cards{display:flex}
  .roles-head{align-items:flex-start}
  .roles-load{padding:16px}
  .roles-load li{grid-template-columns:110px 1fr 24px}
}
@media print{.roles-scroll{overflow:visible}.roles-table .roles-col-step{position:static}}

.roles-step .roles-gaps{grid-column:2;margin-top:4px;font-size:11.5px;color:#d8c49f}
.roles-th-sub{color:#6f8696;font-weight:400}

.roles-key{margin-top:6px!important;font-size:12px;color:#b8c7d3}
.roles-key strong{color:#edf3f7;font-weight:600}
.roles-target{display:inline-block;font-size:10px;line-height:1;padding:3px 6px;border-radius:999px;border:1px dashed #f0c27a;color:#f0c27a;vertical-align:1px}
.roles-table .roles-col-when{white-space:nowrap;font-variant-numeric:tabular-nums;color:#edf3f7;font-weight:500;width:120px;min-width:110px}
/* Six fixed role columns on every tab: keep them all visible on laptop widths. */
.roles-table .roles-col-step{min-width:210px}
.roles-table .roles-col-when{width:96px;min-width:92px}
.roles-table .roles-col-role{min-width:58px;width:58px}
.roles-table thead .roles-col-role{font-size:10.5px}
.roles-table .roles-col-when{white-space:normal}
.roles-table .roles-col-step{min-width:200px}
.roles-table .roles-col-role{min-width:54px;width:54px}

/* Role headers use the org chart tags (PM, SM, CS, AMS, AM) above the role name. */
.roles-table thead .roles-col-role{vertical-align:bottom;line-height:1.2}
.roles-tag{display:inline-block;margin-bottom:5px;padding:2px 6px;border:1px solid rgba(95,252,192,.45);border-radius:999px;font-size:10px;font-weight:600;letter-spacing:.04em;color:#5ffcc0}
.roles-role-name{display:block;font-size:10px;color:#93a6b5}
.roles-table .roles-col-role{min-width:64px;width:64px}
