.mm-dossier{max-width:1160px;margin:0 auto;padding:clamp(24px,5vw,80px);color:#e7e6df;font:17px/1.65 'Geist',Arial,sans-serif;text-align:left}
.mm-dossier *{box-sizing:border-box}.mm-dossier h1,.mm-dossier h2{font-family:'Pirata One',Georgia,serif;font-weight:400;line-height:1.1}.mm-dossier h1{font-size:clamp(38px,5vw,70px);max-width:18ch;margin:28px 0}.mm-dossier h2{font-size:clamp(30px,4vw,44px);margin:0 0 24px}.mm-dossier p{max-width:72ch}.mm-dossier label{display:block}.mm-dossier input:not([type=checkbox]),.mm-dossier select,.mm-dossier textarea{width:100%;border:1px solid #4c504e;border-radius:2px;background:#121616;color:#e7e6df;padding:13px;margin-top:8px;font:inherit}.mm-dossier textarea{resize:vertical;min-height:100px}.mm-dossier small{display:block;color:#aebbb7;font-size:14px}.mm-dossier button,.mm-dossier .dossier-steps a{min-height:44px;padding:10px 17px;border:1px solid #575f5b;background:transparent;color:inherit;font:inherit;cursor:pointer}.mm-dossier button:disabled{opacity:.5;cursor:default}.mm-dossier :focus-visible{outline:2px solid #ba9ad6;outline-offset:4px}.mm-dossier .dossier-primary{background:#864e58;border-color:#ac727d}.dossier-top,.dossier-actions,.dossier-steps{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.dossier-top{justify-content:space-between}.dossier-steps{margin:32px 0}.dossier-status{color:#b5c2ba}.dossier-section{padding:40px 0;border-bottom:1px solid #3d3d4455;scroll-margin-top:100px}.dossier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.dossier-field{margin:24px 0}.dossier-check{margin:24px 0;display:flex!important;align-items:flex-start;gap:12px}.dossier-check input{width:22px;height:22px;flex-shrink:0;margin-top:4px;accent-color:#986899}.dossier-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:40px 0}.dossier-record{text-align:left;display:grid;gap:8px;padding:24px!important}.dossier-record strong{font-size:22px}.dossier-package{padding:22px;margin-top:24px;background:linear-gradient(115deg,#738d7b18,#8869a615);border-left:2px solid #9daf9e}.dossier-rubric{list-style:none;padding:0;max-width:650px}.dossier-rubric li{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid #4447}.dossier-rubric strong{white-space:nowrap}.dossier-reading dd{margin:8px 0 28px;white-space:pre-wrap;overflow-wrap:anywhere}.dossier-reading dt{text-transform:capitalize;color:#b9c9c0}.dossier-history{font-size:15px;border-left:2px solid #66556b;padding-left:20px}.dossier-history:empty{display:none}.mm-dossier pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.mm-dossier [data-notice]:not(:empty){padding:16px;background:#20372d;margin:20px 0}.mm-dossier [data-notice].is-error{background:#47252e}.mm-dossier .editorial-note{font-size:15px;margin-top:40px;color:#b4b8b5}.mm-dossier a{color:#c6b2d8}.mm-dossier .dossier-actions{margin-top:28px}.mm-dossier [data-save-status]{font-size:14px;color:#abc3b5}
@media(max-width:650px){.mm-dossier{padding:24px 20px;font-size:16px}.dossier-grid,.dossier-records{grid-template-columns:1fr}.dossier-steps{gap:8px}.dossier-steps a{font-size:14px;padding:10px}.dossier-section{padding:30px 0}.dossier-actions button{flex:1 1 200px}.dossier-rubric li{gap:12px}}

.dossier-overlay{width:min(1180px,94vw);height:90vh;max-width:none;max-height:none;border:1px solid #343c39;background:#090c0b;color:#e7e7e1;padding:0;overflow:auto}
.dossier-overlay::backdrop{background:rgba(0,0,0,.86)}
.dossier-overlay-close{position:sticky;top:0;z-index:5;display:block;margin-left:auto;padding:16px 24px;background:#161c19;color:#e7e7e1;border:0;font:inherit;min-height:48px}
.dossier-reading .dossier-reading{margin:0;font-size:16px}.dossier-reading dd{overflow-wrap:anywhere;white-space:pre-wrap}

.dossier-more{margin-block:24px;padding-block:20px;border-top:1px solid #39403b}.dossier-more summary{cursor:pointer;font-size:18px;min-height:44px}.dossier-more summary span{display:block;color:#abb6ae;font-size:15px;margin-top:6px}.dossier-more[open] summary{margin-bottom:24px}
/* RC32 application lifecycle: decisions in plain words, full history, deletion and XP delivery. */
.dossier-notices{display:grid;gap:16px;margin:28px 0}
.dossier-notice{padding:20px 22px;border-left:3px solid #9daf9e;background:linear-gradient(115deg,#738d7b1f,#8869a612)}
.dossier-notice.is-attention{border-left-color:#c7838c;background:linear-gradient(115deg,#8a3d4a24,#47252e30)}
.mm-dossier .dossier-notice h2{font-size:clamp(24px,3vw,32px);margin:0 0 12px}
.dossier-notice ul{margin:0;padding-left:20px}
.dossier-notice li{margin:4px 0;max-width:72ch;overflow-wrap:anywhere}
.dossier-history{list-style:none;margin:0}
.dossier-history li{margin:0 0 14px}
.dossier-history li p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.dossier-history-change{display:block;font-size:14px;color:#b9c9c0}
.dossier-history-panel{margin:8px 0 24px}
.mm-dossier .dossier-history-panel h2{font-size:clamp(22px,2.6vw,28px);margin:0 0 10px}
.dossier-history-panel h2 small{display:inline;margin-left:8px;font-family:'Geist',Arial,sans-serif}
.dossier-history-panel .dossier-scroll{max-height:260px;overflow:auto;padding-right:8px}
.mm-dossier .dossier-danger{border-color:#ac727d;color:#f0c9cf}
.dossier-unavailable{margin-top:18px;font-size:15px}
.dossier-unavailable summary{cursor:pointer}
.dossier-unavailable li{margin:6px 0;overflow-wrap:anywhere}
.dossier-deleted{border-left:3px solid #c7838c;padding-left:22px}
.dossier-delete[hidden]{display:none}
.dossier-xp-status dd{margin-bottom:14px}
.dossier-delivery-note{font-size:15px;color:#e3c0a8}
.mm-dossier [data-delete-error]:empty{display:none}
.mm-dossier [data-delete-error]{color:#f0c9cf}

/* Compact criteria within staff application answers; no player-form markup uses these. */
.mm-dossier .dossier-rubric-cues{display:flex;flex-wrap:wrap;gap:6px 20px;white-space:normal;font-size:14px;line-height:1.5;margin-bottom:10px}
.mm-dossier .dossier-rubric-cues strong{white-space:nowrap;margin-left:6px}

/* RC46 review stages: the stage strip, the current stage, After approval and the record tools. */
.dossier-stage-strip{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px}
.dossier-stage-strip li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;padding:8px 10px;border:1px solid var(--staff-line,#3d3d44);font-size:13px;line-height:1.4;color:var(--staff-muted,#a0a29f)}
.dossier-stage-strip li strong{display:block;font-weight:600}
.dossier-stage-strip li small{display:block;font-size:12px;color:var(--staff-muted,#a0a29f)}
.dossier-stage-n{width:24px;height:24px;border-radius:50%;border:1px solid currentColor;display:grid;place-items:center;font-size:12px;line-height:1}
.dossier-stage-strip .is-done{color:var(--staff-paper,#e6e3dc)}
.dossier-stage-strip .is-done .dossier-stage-n{border-color:#9daf9e;color:#9daf9e}
.dossier-stage-strip .is-current{color:var(--staff-paper,#e6e3dc);border-color:var(--staff-purple,#b9a3f0);background:#b9a3f014}
.dossier-stage-strip .is-current .dossier-stage-n{background:var(--staff-purple,#b9a3f0);border-color:var(--staff-purple,#b9a3f0);color:#101214}
.dossier-stage-strip .is-skipped strong{text-decoration:line-through;text-decoration-thickness:1px}
.mm-dossier .dossier-stage-eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--staff-purple,#b9a3f0);margin:0 0 6px}
.mm-dossier .dossier-stage-lead{color:var(--staff-muted,#a0a29f);margin-top:0}
.dossier-stage-awards{margin:12px 0;padding:10px 12px;border-left:2px solid #9daf9e;font-size:13px}
.dossier-stage-awards ul{margin:6px 0 0;padding-left:18px}
.mm-dossier .dossier-stage-hint{font-size:13px;color:var(--staff-muted,#a0a29f)}
.dossier-stage-waiting{margin:12px 0 0;padding-left:18px;font-size:13px;color:var(--staff-muted,#a0a29f);overflow-wrap:anywhere}
.mm-dossier p.dossier-stage-waiting{padding-left:0}
.dossier-after{margin:0 0 14px}
.dossier-change{padding:14px 0 4px;border-top:1px solid var(--staff-line,#3d3d44)}
.mm-dossier .dossier-change h3{font:600 15px/1.3 Geist,Arial,sans-serif;margin:0 0 6px}
.mm-dossier .dossier-change p{font-size:13px;margin:0 0 10px}
.dossier-record-tools{margin:0 0 14px}
.dossier-record-tools label{font-size:13px}
.mm-dossier .dossier-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* RC46: what is closed for now (the Alpha switch, or a full population cap), said under the choice it affects. */
.mm-dossier small.dossier-closed-note{margin-top:6px;padding:6px 10px;border-left:2px solid #b38a5a;background:#b38a5a14;color:#e3cfb4;font-size:13px;line-height:1.5}
.mm-dossier select{color-scheme:dark}.mm-dossier select option,.mm-dossier select optgroup{background:#121616;color:#e7e6df}.mm-dossier select option:disabled{color:#7d7f7c}
/* RC48: the player's own delete, withdraw and restore; a start-over waiting for their answer; Needs attention and Reconcile for staff. */
.mm-dossier .dossier-quiet-danger{border-color:#7a5a60;color:#e8c3c9;background:transparent}
.dossier-remove{padding-top:8px}
.dossier-remove-panel{margin-top:18px;padding:18px 22px;border-left:3px solid #c7838c;background:linear-gradient(115deg,#8a3d4a1c,#47252e26)}
.dossier-remove-panel[hidden]{display:none}
.mm-dossier .dossier-remove-panel h2{font-size:clamp(24px,3vw,32px);margin:0 0 10px}
.dossier-remove-panel ul{margin:10px 0;padding-left:20px}
.dossier-remove-panel li{margin:4px 0;max-width:72ch}
.mm-dossier [data-remove-error]:empty,.mm-dossier [data-reconcile-error]:empty{display:none}
.mm-dossier [data-remove-error],.mm-dossier [data-reconcile-error]{color:#f0c9cf}
.dossier-recent-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.dossier-recent-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #3d3d44}
.dossier-recent-list li>span{min-width:0;overflow-wrap:anywhere}
.mm-dossier .dossier-recent h2 small,.mm-dossier .dossier-problems h2 small{display:inline;margin-left:8px;font-family:'Geist',Arial,sans-serif}
.dossier-consent{margin:8px 0 24px;padding:20px 22px;border-left:3px solid #c9a65c;background:linear-gradient(115deg,#c9a65c1a,#47252e1f)}
.mm-dossier .dossier-consent h2{font-size:clamp(24px,3vw,32px);margin:0 0 10px}
.dossier-problems{margin:0 0 14px;padding-top:0}
.mm-dossier .dossier-problems h2{font-size:clamp(22px,2.6vw,28px);margin:0 0 10px}
.dossier-problem{padding:12px 14px;margin:0 0 10px;border-left:3px solid #c7838c;background:#47252e26}
.dossier-problem.is-stuck,.dossier-problem.is-consent{border-left-color:#c9a65c;background:#c9a65c14}
.dossier-problem.is-mismatch{border-left-color:#b38a5a}
.mm-dossier .dossier-problem h3{font:600 15px/1.35 Geist,Arial,sans-serif;margin:0 0 6px}
.mm-dossier .dossier-problem-error{font-size:13px;margin:0 0 8px;overflow-wrap:anywhere;white-space:pre-wrap}
.dossier-problem label,.dossier-reconcile label{font-size:13px}
.dossier-problem .dossier-actions{margin-top:10px}
.dossier-reconcile{margin:12px 0 0;padding:14px;border:1px solid var(--staff-line,#3d3d44)}
.dossier-reconcile[hidden]{display:none}
.mm-dossier .dossier-reconcile h3{font:600 16px/1.35 Geist,Arial,sans-serif;margin:0 0 8px}
.dossier-reconcile fieldset{border:0;margin:12px 0;padding:0;display:grid;gap:8px}
.dossier-reconcile legend{font-size:13px;margin-bottom:6px}
.mm-dossier .dossier-choice{display:flex!important;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--staff-line,#3d3d44);cursor:pointer}
.mm-dossier .dossier-choice input{width:20px;height:20px;flex-shrink:0;margin-top:3px;accent-color:#986899}
.mm-dossier .dossier-choice strong{display:block;font-size:14px}
.mm-dossier .dossier-choice small{font-size:13px}
.mm-dossier .dossier-choice.is-disabled{opacity:.6;cursor:default}
.mm-dossier small.dossier-why{color:#e3c0a8}
.mm-dossier .dossier-stage-warning{font-size:13px;padding:8px 12px;border-left:2px solid #b38a5a;background:#b38a5a14;color:#e3cfb4}
/* RC48 (owner, 24 October): every problem says what to do, always visible (no hover), the same in game. */
.mm-dossier .dossier-notice-text{display:block}
.mm-dossier .dossier-fix{display:block;max-width:72ch;margin:8px 0 0;padding:7px 12px;border-left:3px solid #c9a86a;background:#c9a86a17;color:#ece4d2;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.mm-dossier .dossier-fix strong{color:#e6cd94;font-weight:600}
.mm-dossier .dossier-problem .dossier-fix{margin:0 0 8px;font-size:13px}
.mm-dossier [data-inline-error]:empty{display:none}
.mm-dossier .dossier-inline-error{margin:12px 0 0;padding:10px 12px;background:#47252e;color:#f0c9cf;font-size:14px}
.mm-dossier .dossier-inline-error .dossier-fix,.mm-dossier [data-reconcile-error] .dossier-fix,.mm-dossier [data-delete-error] .dossier-fix,.mm-dossier [data-remove-error] .dossier-fix{color:#ece4d2}

/* Form submission validation & error states */
.mm-dossier input[aria-invalid="true"]:not([type=checkbox]),
.mm-dossier select[aria-invalid="true"],
.mm-dossier textarea[aria-invalid="true"] {
  border-color: #d3202f !important;
  box-shadow: 0 0 0 1px #d3202f, 0 0 12px rgba(211, 32, 47, 0.35) !important;
  background-color: #191214 !important;
}
.mm-dossier input[aria-invalid="true"]:focus-visible,
.mm-dossier select[aria-invalid="true"]:focus-visible,
.mm-dossier textarea[aria-invalid="true"]:focus-visible {
  outline: 2px solid #f0c9cf !important;
  outline-offset: 2px;
}
.mm-dossier fieldset[aria-invalid="true"] {
  border: 1px solid #d3202f !important;
  padding: 12px;
  box-shadow: 0 0 0 1px #d3202f, 0 0 10px rgba(211, 32, 47, 0.3) !important;
}
.mm-dossier small[data-validation-error],
.mm-dossier .dossier-field-error {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 8px 12px;
  border-left: 3px solid #d3202f;
  background: rgba(142, 34, 48, 0.3);
  color: #f7d7dc !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 0 3px 3px 0;
}
.mm-dossier [data-submit-errors]:empty {
  display: none;
}
.mm-dossier [data-submit-errors]:not(:empty) {
  margin: 20px 0;
  padding: 18px 22px;
  background: rgba(71, 37, 46, 0.4);
  border: 1px solid #8e2230;
  border-left: 4px solid #d3202f;
  border-radius: 3px;
  color: #f7d7dc;
}
.mm-dossier [data-submit-errors] p {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fce8eb;
}
.mm-dossier [data-submit-errors] ul {
  margin: 0;
  padding-left: 20px;
}
.mm-dossier [data-submit-errors] li {
  margin: 8px 0;
}
.mm-dossier [data-submit-errors] a {
  color: #f0c9cf;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.mm-dossier [data-submit-errors] a:hover,
.mm-dossier [data-submit-errors] a:focus {
  color: #ffffff;
}
.mm-dossier [data-submit-hint] {
  font-size: 14px;
  color: #b5c2ba;
  margin-top: 14px;
}
.mm-dossier [data-submit-hint].has-problems {
  color: #e8a5af;
}
.mm-dossier .dossier-hint-action {
  display: inline;
  min-height: auto;
  padding: 0;
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: #f0c9cf;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.mm-dossier .dossier-hint-action:hover {
  color: #ffffff;
}
