.roster-page { padding:clamp(28px,4vw,64px) 0; }
.roster-heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:16px 28px; padding-bottom:24px; }
.roster-heading h1 { font:800 clamp(30px,4.4vw,46px)/1.08 var(--sans); letter-spacing:-.025em; overflow-wrap:anywhere; }
.roster-heading p { margin:10px 0 0; max-width:50ch; }
.roster-links,.roster-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; }
.roster-stage { display:grid; place-items:center; overflow:hidden; border-radius:4px; background-color:#dbe4da;
  background-image:linear-gradient(30deg,transparent 49%,#83998c24 49.5%,#83998c24 50.5%,transparent 51%),
    linear-gradient(150deg,transparent 49%,#83998c24 49.5%,#83998c24 50.5%,transparent 51%);
  background-size:48px 28px; }
.roster-portrait { display:block; width:100%; height:100%; max-height:inherit; }
.roster-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:clamp(24px,5vw,75px); align-items:start; border-top:1px solid var(--line); padding-top:24px; }
.roster-preview { position:sticky; top:16px; min-width:0; margin:0; }
.roster-preview .roster-stage { height:clamp(270px,35vw,465px); }
.roster-preview figcaption { display:grid; gap:3px; padding:14px 0 0; }
.roster-preview figcaption strong { font:800 clamp(20px,2.4vw,28px)/1.1 var(--sans); overflow-wrap:anywhere; }
.roster-identity,.roster-controls { min-width:0; }
.roster-identity .help { margin:-10px 0 18px; }
.roster-section { border-top:1px solid var(--rule); }
.roster-section summary { font-size:1.03rem; font-weight:650; padding:14px 0; cursor:pointer; }
.roster-section:last-of-type { border-bottom:1px solid var(--rule); margin-bottom:20px; }
.roster-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 15px; }
.roster-inputs label { min-width:0; font-size:.89rem; }
.roster-filters,.roster-handle-form { display:flex; gap:12px 18px; align-items:end; flex-wrap:wrap; padding:18px 0; margin-bottom:24px; border-block:1px solid var(--rule); }
.roster-filters label:first-child { flex:1; min-width:min(200px,100%); }
.roster-filters label:nth-child(2) { min-width:145px; }
.roster-filters input[type=search],.roster-filters select,.roster-handle-form input[name=handle] { margin:4px 0 0; min-height:44px; }
.roster-handle-form .help,.roster-handle-form .notice:not(:empty) { flex-basis:100%; }
.roster-handle-form .notice:empty { display:none; }
.roster-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(255px,100%),1fr)); gap:clamp(16px,2vw,30px); }
.roster-card { min-width:0; border:1px solid var(--rule); background:var(--bg); border-radius:16px; overflow:hidden; }
.roster-card .roster-stage { height:clamp(176px,19vw,238px); border-radius:0; }
.roster-card:nth-child(3n + 2) .roster-stage { background-color:#e3dcca; }
.roster-card:nth-child(3n) .roster-stage { background-color:#d8e2e8; }
.roster-card-body { padding:clamp(15px,1.7vw,22px); overflow-wrap:anywhere; }
.roster-card-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.roster-card h2 { font:800 clamp(20px,2vw,26px)/1.1 var(--sans); margin:8px 0 6px; }
.roster-card .roster-status { padding:1px 7px; background:var(--wash); border-radius:3px; }
.roster-uses { margin:5px 0 0; color:var(--ink); font-weight:600; }
.roster-handle { color:var(--ink); text-underline-offset:3px; }
.roster-tags { display:flex; gap:5px; flex-wrap:wrap; list-style:none; margin:10px 0 0; padding:0; }
.roster-tags li { font-size:.77rem; padding:2px 8px; border:1px solid var(--rule); border-radius:20px; }
.roster-actions { margin-top:16px; justify-content:space-between; }
.roster-card [data-roster-action=share] { margin-top:12px; padding-top:5px; border-top:1px solid var(--rule); }
.roster-consent { align-items:flex-start; font-size:.88rem; line-height:1.45; margin:5px 0 12px; font-weight:400; }
.roster-consent input { flex:none; }
.roster-empty { border:1px dashed var(--rule); padding:clamp(22px,4vw,55px); text-align:center; }
.creator-use-total { display:flex; gap:20px; align-items:center; padding:16px 0; margin-bottom:24px; border-block:1px solid var(--rule); }
.creator-use-total strong { font:800 42px/1 var(--sans); }
.creator-use-total span { color:var(--muted); max-width:24ch; }
.roster-reports { padding:24px 0; border-top:1px solid var(--line); }
.roster-reports h2 { margin-bottom:14px; }
.roster-reports ul { padding:0; list-style:none; }
.roster-reports li { display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--rule); overflow-wrap:anywhere; }
.roster-report-art { height:58px; background:#dbe4da; border-radius:3px; }
.roster-cast { min-width:0; border-block:1px solid var(--rule); margin-top:24px; padding:12px 0; }
.roster-cast legend { padding-right:8px; }
.roster-cast [data-cast-support] > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); gap:10px; }
.roster-cast select { max-width:100%; }
@media(max-width:700px){
  .roster-editor { grid-template-columns:minmax(0,1fr); gap:20px; padding-top:16px; }
  .roster-preview { position:static; }
  .roster-preview .roster-stage { height:220px; }
  .roster-preview figcaption { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
  .roster-heading { align-items:start; padding-bottom:18px; }
  .roster-filters { gap:9px; }
  .roster-filters label:first-child { flex-basis:100%; }
  .roster-filters label:nth-child(2) { flex:1; }
}
