.ml-review { margin: 24px auto; padding: 24px; max-width: 1140px; border: 1px solid #cbd5df; border-radius: 12px; background: #fff; color: #0d1829; text-align: left; }
.ml-review[hidden] { display: none; }
.ml-review h2 { margin: 0 0 14px; font-size: 23px; }
.ml-review p, .ml-review-result p { line-height: 1.55; overflow-wrap: anywhere; }
.ml-review-steps { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-left: 20px; font-size: 14px; }
.ml-review-steps [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.ml-review-button { padding: 10px 15px; margin: 4px 8px 4px 0; border: 1px solid #0d1829; border-radius: 6px; background: #0d1829; color: #fff; cursor: pointer; font: inherit; }
.ml-review-button:disabled { opacity: .5; cursor: default; }
.ml-review-button:focus-visible, .ml-review-result input:focus-visible, .ml-review-result textarea:focus-visible { outline: 3px solid #4a9ab6; outline-offset: 3px; }
.ml-review-result { border-top: 1px solid #cbd5df; margin-top: 22px; padding-top: 18px; }
.ml-review-result label { display: block; margin: 16px 0; }
.ml-review-result input[type=file], .ml-review-result textarea { display: block; margin-top: 8px; max-width: 100%; }
.ml-review-result textarea { box-sizing: border-box; width: 100%; padding: 10px; font: inherit; border: 1px solid #a7b5c3; border-radius: 5px; }
@media(max-width:600px) { .ml-review { margin: 16px 10px; padding: 18px; } .ml-review-steps { display: block; } .ml-review-steps li { margin: 10px 0; } }
.ml-home:has(.ml-review:not([hidden])) { justify-content: flex-start; overflow-y: auto; }
.ml-home > .ml-review { width: 100%; flex-shrink: 0; }
.ml-review p + p { margin-top: 8px; }
.ml-review a { text-decoration: underline; font-weight: 600; }

.ml-review summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 4px 0; }
.ml-review details > div { padding-top: 12px; }
.ml-review label { display: block; margin-top: 12px; }
.ml-review textarea { display: block; width: 100%; box-sizing: border-box; padding: 10px; margin-top: 8px; font: inherit; }
.mls__review:empty { display: none; }
.mls__review { flex: 0 0 auto; max-height: 45vh; overflow-y: auto; }
.mls .ml-review--studio { margin: 0; padding: 10px 20px; max-width: none; border-radius: 0; border-width: 0 0 1px; background: #f5f0e8; }
.mls .ml-review-button { color: #fff; }

/* Text labels remain the authority; colour makes the internal pilot status easy to spot. */
.ml-review[data-review-state="under_review"] { background: #fff4cf; border-color: #b7791f; border-left: 6px solid #b7791f; color: #523500; }
.ml-review[data-review-state="input_needed"] { background: #ffede3; border-color: #c05222; border-left: 6px solid #c05222; color: #6e270d; }
.ml-review[data-review-state="reviewed_model_ready"] { background: #e5f5ee; border-color: #26775b; border-left: 6px solid #26775b; color: #174c3b; }
.ml-review[data-review-state] summary { font-size: 20px; }
.mls .ml-review--studio[data-review-state="under_review"] { background: #fff4cf; border-left: 6px solid #b7791f; }
.mls .ml-review--studio[data-review-state="input_needed"] { background: #ffede3; border-left: 6px solid #c05222; }
.mls .ml-review--studio[data-review-state="reviewed_model_ready"] { background: #e5f5ee; border-left: 6px solid #26775b; }
