/* World & characters roster (fictional tester). Scoped to .roster-ui; archive parchment / olive / brass, matching the
   approved world-characters concept. No animation. Gated tabs and controls are absent from the DOM, never hidden here;
   the only display rules below choose which pane a phone shows. */
.roster-ui{--r-ink:#2a2418;--r-quiet:#5d5240;--r-card:#fbf4e2;--r-paper:#fdf8ec;--r-line:#c9b78a;--r-brass:#9a7a3c;--r-olive:#3e452a;--r-olive-3:#4a5230;--r-wine:#7a2a20;color:var(--r-ink);font:15px/1.5 Georgia,'Times New Roman',serif}
.roster-ui *{box-sizing:border-box}.roster-ui [hidden]{display:none!important}
.roster-ui .roster-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;align-items:start}
.roster-ui .roster-list,.roster-ui .roster-detail{min-width:0;padding:18px 20px;background:linear-gradient(130deg,#fffaf0,#f6ead4);border:1px solid var(--r-line);border-radius:10px;box-shadow:inset 0 0 0 3px #fff9ee80}
.roster-ui h2{margin:0 0 4px;font:400 24px/1.2 Georgia,serif}.roster-ui h3{margin:0;font:400 23px/1.2 Georgia,serif;overflow-wrap:anywhere}.roster-ui h4{margin:4px 0 8px;font:400 19px Georgia,serif}.roster-ui h5{margin:0 0 6px;font:600 16px Georgia,serif;overflow-wrap:anywhere}
.roster-ui .roster-eyebrow{margin:0 0 2px;font:600 11px system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#6b5a32}
.roster-ui .roster-help{margin:2px 0 8px;font:13px/1.45 system-ui,sans-serif;color:var(--r-quiet)}.roster-ui .small{font-size:13px}
.roster-ui .roster-empty{margin:10px 0;padding:12px 14px;border:1px dashed var(--r-line);border-radius:8px;background:var(--r-paper);color:var(--r-quiet);font-style:italic}
.roster-ui .roster-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,11rem);gap:10px;margin:10px 0}
.roster-ui .roster-field{display:grid;gap:4px;margin:0 0 10px}.roster-ui label,.roster-ui legend{font:600 13px system-ui,sans-serif;color:#4a3f27}
.roster-ui input:not([type=checkbox]):not([type=radio]),.roster-ui select,.roster-ui textarea{width:100%;min-height:42px;padding:8px 10px;border:1px solid #9e8559;border-radius:6px;background:#fffdf6;color:var(--r-ink);font:15px Georgia,serif}
.roster-ui textarea{min-height:76px;resize:vertical}.roster-ui fieldset{margin:0 0 10px;padding:8px 12px;border:1px solid var(--r-line);border-radius:8px}
.roster-ui .roster-choice{display:flex;align-items:flex-start;gap:8px;margin:6px 0;font:14px system-ui,sans-serif;color:var(--r-ink)}.roster-ui .roster-choice input{width:20px;height:20px;margin:1px 0 0;flex:none}
.roster-ui .button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:4px 8px 4px 0;padding:8px 16px;border:1px solid #8c6836;border-radius:6px;background:#fbf3e2;color:#3a4228;font:600 14px system-ui,sans-serif;cursor:pointer}
.roster-ui .button.primary{background:var(--r-olive);color:#fff8e4;border-color:#2c311e}.roster-ui .button:disabled{opacity:.55;cursor:not-allowed}
.roster-ui :focus-visible{outline:3px solid #7a5b12;outline-offset:2px}
.roster-ui .roster-table-wrap{overflow-x:auto;border-top:2px double #b9a073}
.roster-ui .roster-table{width:100%;border-collapse:collapse}.roster-ui .roster-table th,.roster-ui .roster-table td{padding:8px 6px;border-bottom:1px solid #dccca5;text-align:left;vertical-align:middle}
.roster-ui .roster-table thead th{font:600 12px system-ui,sans-serif;letter-spacing:.06em;color:#6b5a32}
.roster-ui .roster-table td:nth-child(3),.roster-ui .roster-table td:last-child{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.roster-ui .roster-table tr.selected{background:#efe3c3}.roster-ui .roster-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.roster-ui .roster-pick{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px;border:0;background:transparent;color:var(--r-ink);font:16px Georgia,serif;text-align:left;cursor:pointer}
.roster-ui .roster-pick[aria-current=true] .roster-name{font-weight:700}.roster-ui .roster-name{overflow-wrap:anywhere}
.roster-ui .roster-initials{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e6dcbf;border:2px solid #b89b5c;color:#3e452a;font:600 13px Georgia,serif}
.roster-ui .roster-initials.large{width:62px;height:62px;font-size:22px}
.roster-ui .roster-pill{display:inline-block;padding:1px 10px;border:1px solid var(--r-olive-3);border-radius:999px;background:#eef0dc;color:#2c3319;font:600 12px/1.7 system-ui,sans-serif;white-space:nowrap}
.roster-ui .roster-pill:not(.status-active){border-color:#9e8559;background:#efe6d2;color:#4a3f27}
.roster-ui .roster-unassigned{color:var(--r-quiet);font-style:italic}
.roster-ui .roster-create{margin:8px 0 6px;padding:8px 12px;border:1px solid var(--r-line);border-radius:8px;background:var(--r-paper)}
.roster-ui .roster-create>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font:600 15px system-ui,sans-serif;color:#3a4228}
.roster-ui .roster-review{margin:10px 0;padding:12px 14px;border:1px solid var(--r-brass);border-left:5px solid var(--r-olive-3);border-radius:8px;background:#fdf6e3}
.roster-ui .roster-review dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:8px 0}.roster-ui .roster-review dt{font:600 13px system-ui,sans-serif;color:var(--r-quiet)}.roster-ui .roster-review dd{margin:0;overflow-wrap:anywhere}
.roster-ui .roster-back{display:none;min-height:42px;margin:0 0 10px;padding:6px 2px;border:0;background:none;color:#3a4228;font:600 15px system-ui,sans-serif;cursor:pointer;text-decoration:underline}
.roster-ui .roster-head{display:flex;align-items:center;gap:14px;padding-bottom:12px;margin-bottom:10px;border-bottom:3px double var(--r-line)}.roster-ui .roster-head>div{min-width:0}
.roster-ui .roster-sub{margin:2px 0 0;color:var(--r-quiet);font:14px system-ui,sans-serif}
.roster-ui .roster-tabs{display:flex;flex-wrap:wrap;border:1px solid var(--r-line);border-radius:8px;overflow:hidden;margin:0 0 12px}
.roster-ui .roster-tab{flex:1 1 auto;min-height:42px;padding:8px 12px;border:0;border-right:1px solid var(--r-line);background:#fbf4e2;color:#3a4228;font:600 14px system-ui,sans-serif;cursor:pointer}.roster-ui .roster-tab:last-child{border-right:0}
.roster-ui .roster-tab[aria-selected=true]{background:linear-gradient(180deg,#80652f,#6e5427);color:#fff8e6}
.roster-ui .roster-panel{min-width:0}.roster-ui .roster-current{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}
.roster-ui .roster-history{list-style:none;margin:0 0 12px;padding:0}.roster-ui .roster-history li{padding:8px 0;border-top:1px solid #dccca5}.roster-ui .roster-history p{margin:0;overflow-wrap:anywhere}.roster-ui .roster-history-main{font-weight:600}
.roster-ui .roster-refusal{margin:8px 0;padding:10px 12px;border:1px solid #b9a073;border-left:5px solid var(--r-wine);border-radius:6px;background:#f8ece4;color:#4a2018}
.roster-ui .roster-feedback{margin:6px 0 10px;padding:9px 12px;border-radius:6px;font:14px system-ui,sans-serif}.roster-ui .roster-feedback.ok{background:#e4ead2;border:1px solid #8d9970;color:#2c3319}.roster-ui .roster-feedback.error{background:#f6dfd8;border:1px solid #b9786a;color:#6e1f14}
.roster-ui .roster-alert{margin:0 0 12px;padding:12px 14px;border:2px solid #a5552f;border-radius:8px;background:#fbe9dc;color:#5a2412}.roster-ui .roster-alert p{margin:0 0 8px;font-weight:600}
.roster-ui .roster-saving{margin:0 0 10px;font:italic 14px system-ui,sans-serif;color:var(--r-quiet)}
@media(max-width:1100px){.roster-ui .roster-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:860px){.roster-ui .roster-layout{grid-template-columns:minmax(0,1fr)}.roster-ui[data-view=list] .roster-detail,.roster-ui[data-view=detail] .roster-list{display:none}.roster-ui .roster-back{display:inline-block}
 .roster-ui .roster-tools{grid-template-columns:minmax(0,1fr)}.roster-ui .roster-list,.roster-ui .roster-detail{padding:14px}
 .roster-ui .roster-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.roster-ui .roster-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:6px 0;border-bottom:1px solid #dccca5}
 .roster-ui .roster-table th,.roster-ui .roster-table td{border:0;padding:2px 4px}.roster-ui .roster-table th{grid-column:1/-1}.roster-ui .roster-table td::before{content:attr(data-label) ": ";font:600 11px system-ui,sans-serif;color:var(--r-quiet)}
 .roster-ui .roster-tab{flex:1 1 40%}}
@media(prefers-contrast:more){.roster-ui{--r-line:#5a4a2c;--r-quiet:#3f3626}.roster-ui .roster-list,.roster-ui .roster-detail,.roster-ui .roster-review{border-color:#3f3626}}
@media(forced-colors:active){.roster-ui .roster-tab[aria-selected=true],.roster-ui .roster-pick[aria-current=true]{outline:2px solid Highlight}.roster-ui .roster-initials,.roster-ui .roster-pill{border-color:CanvasText}}
@media(prefers-reduced-motion:reduce){.roster-ui *{animation:none!important;transition:none!important}}

/* ---- C2: linking through an assigned task (scoped additive) ---- */
.roster-ui .roster-task-name,.roster-ui .roster-task-recipient{margin:6px 0 10px;padding:10px 12px;border:1px solid #c9b78a;border-radius:8px;background:#fffaf1;overflow-wrap:anywhere}
.roster-ui .roster-task-recipient{border-left:4px solid #4a5230}
.roster-ui .roster-label{font:600 13px system-ui,sans-serif;color:#4a3f27}
.roster-ui .roster-task-name:focus{outline:3px solid #7a5b12;outline-offset:2px}
.roster-ui .roster-task-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:8px 0 10px}
.roster-ui .roster-task-facts dt{font:600 13px system-ui,sans-serif;color:#4a3f27}.roster-ui .roster-task-facts dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.roster-ui .roster-task-facts{grid-template-columns:minmax(0,1fr)}.roster-ui .roster-task-facts dd{margin-bottom:6px}}
@media(forced-colors:active){.roster-ui .roster-task-name,.roster-ui .roster-task-recipient{border:1px solid CanvasText}}
