/* Only explicit V2 surfaces; no selectors targeting legacy profiles. */
.rw2-note,.rw2-banner{padding:16px;border:1px solid #ffd0e5;border-radius:12px;background:#fff5fa;color:#263247;margin:12px 0}
.rw2-note p{white-space:pre-wrap;margin:8px 0 0}
.rw2-history,.rw2-test{padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;margin:12px 0;color:#263247}
.rw2-history summary,.rw2-test summary{cursor:pointer;font-weight:700}
.rw2-history section{padding:12px 0;border-bottom:1px solid #e2e8f0}
.rw2-history p,.rw2-test p{white-space:pre-wrap;overflow-wrap:anywhere}
.rw2-official{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.rw2-unread{background:#f50072;color:white;border-radius:99px;padding:4px 9px}
.rw2-readonly textarea,.rw2-readonly input,.rw2-readonly select{background:#f6f8fb;color:#445166}

.rw2-page > *{grid-column:1 / -1;min-width:0}
.rw2-page > .v6-card{padding:22px}
.rw2-page .rw2-official{justify-content:space-between}
.rw2-page .rw2-official > strong{font-size:36px}

/* FINAL UI/UX POLISH — presentation only, exclusively Review Workflow V2. */
.rw2-status--notStarted{--rw2-ink:#526071;--rw2-tint:#f0f3f6;--rw2-line:#dce3ea}
.rw2-status--inProgress{--rw2-ink:#285b89;--rw2-tint:#edf5fc;--rw2-line:#cddfee}
.rw2-status--ready{--rw2-ink:#713568;--rw2-tint:#f7edf7;--rw2-line:#e7cfe4}
.rw2-status--submitted{--rw2-ink:#87551a;--rw2-tint:#fff5e5;--rw2-line:#f0dbb6}
.rw2-status--revision{--rw2-ink:#9b344b;--rw2-tint:#fff0f3;--rw2-line:#f1cbd4}
.rw2-status--accepted{--rw2-ink:#176244;--rw2-tint:#eaf7ef;--rw2-line:#c8e5d4}
.rw2-status{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;box-sizing:border-box;padding:5px 9px;border:1px solid var(--rw2-line,#dce3ea);border-radius:99px;background:var(--rw2-tint,#f0f3f6);color:var(--rw2-ink,#526071);font-size:11px;font-weight:700;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere}
.rw2-status::before{content:"";width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:currentColor;opacity:.7}
body.v6-enabled .rw2-plan .v6-plan-module{grid-template-columns:40px minmax(0,1fr) 148px 24px}
body.v6-enabled .rw2-plan .v6-plan-module-state{gap:6px;min-width:0}
body.v6-enabled .rw2-plan .v6-plan-module-state .rw2-status{font-size:11px;color:var(--rw2-ink);line-height:1.3}
.rw2-module-summary{padding:12px 16px;border-color:var(--rw2-line);background:linear-gradient(110deg,var(--rw2-tint),#fff 82%);margin:0 0 12px;border-radius:14px}
.rw2-summary-line{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.rw2-metric{display:flex;gap:8px;align-items:baseline;font-size:12px;color:#627084;padding-left:16px;border-left:1px solid var(--rw2-line)}
.rw2-metric b{font-size:14px;color:#263247}
.rw2-module-summary>p{margin:10px 0 8px;font-size:13px;color:#627084}
body.v6-enabled .rw2-module .v21-submit-hint{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.rw2-side-metric{display:inline-flex;gap:6px;align-items:baseline;padding:1px 7px;border:1px solid #e8ecf2;border-radius:7px;background:#fafbfc;font-size:11px;line-height:1.25;color:#6a7788}
.rw2-side-metric b{font-size:11px;color:#445166}
.rw2-note{padding:14px 16px;border-radius:12px;box-shadow:0 2px 8px rgba(31,41,55,.025)}
.rw2-note--accepted{background:#f3faf6;border-color:#cce7d7;color:#176244}
.rw2-note--revision{background:#fff4f6;border-color:#efccd5;color:#96354b}
.rw2-verdict-heading{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.45}
.rw2-verdict-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:8px;background:rgba(255,255,255,.85);font-size:16px;font-weight:700}
.rw2-note p{margin:9px 0 0;color:#344256;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.rw2-note .rw2-empty-comment{color:#6a7788;font-size:12px}
.rw2-history,.rw2-test{padding:0;border-color:#e2e7ef;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(31,41,55,.02)}
.rw2-history summary,.rw2-test summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f8f9fc;color:#445166;font-size:13px;line-height:1.45;transition:background .15s ease}
.rw2-history summary::-webkit-details-marker,.rw2-test summary::-webkit-details-marker{display:none}
.rw2-history summary::after,.rw2-test summary::after{content:"";width:7px;height:7px;flex:0 0 7px;border-right:2px solid #738197;border-bottom:2px solid #738197;transform:rotate(45deg);margin:0 3px 4px 0;transition:transform .15s ease}
.rw2-history[open] summary::after,.rw2-test[open] summary::after{transform:rotate(225deg);margin-bottom:-4px}
.rw2-history summary:hover,.rw2-test summary:hover{background:#f0f3f8}
.rw2-history-body,.rw2-test-body{padding:0 16px 14px;border-top:1px solid #e8ecf2}
.rw2-test .rw2-test-meta{margin:12px 0;color:#6a7788;font-size:12px}
.rw2-test-answer{padding:12px 0;border-top:1px solid #edf0f5}
.rw2-test-answer:last-child{padding-bottom:0}
.rw2-test .rw2-test-question{margin:0 0 6px;color:#344256;font-size:13px;line-height:1.5}
.rw2-test .rw2-test-response{margin:0;padding:9px 12px;border-radius:8px;background:#f7f8fb;color:#526075;font-size:13px;line-height:1.6}
.rw2-history .rw2-history-round{padding:14px 0;border-bottom:1px solid #e8ecf2}
.rw2-history .rw2-history-round:last-child{border-bottom:0;padding-bottom:0}
.rw2-history-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:5px}
.rw2-history-heading h4{margin:0;color:#344256;font-size:13px}
.rw2-history-round>small{font-size:11px;color:#6a7788;overflow-wrap:anywhere}
.rw2-history-decision{padding:10px 0 0;margin-top:8px;border-top:1px solid #edf0f5}
.rw2-history-decision>p{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 12px;color:#445166;font-size:12px;line-height:1.6}
.rw2-decision-label{color:var(--rw2-ink);font-size:11px;font-weight:600}
.rw2-history-decision .rw2-history-comment{display:block;margin-top:4px;color:#627084;font-size:12px;white-space:pre-wrap}
.rw2-history-comment:empty{display:none}
body.v6-enabled .rw2-feedback-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #e7eaf0;box-shadow:0 3px 12px rgba(31,41,55,.035);border-radius:16px}
.rw2-feedback-main{min-width:0;flex:1}
.rw2-feedback-heading{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
body.v6-enabled .rw2-feedback-card h3{margin:0;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
body.v6-enabled .rw2-feedback-card .rw2-feedback-iteration{margin:8px 0 5px;font-size:12px;font-weight:600;color:#627084}
body.v6-enabled .rw2-feedback-card small{display:block;font-size:12px;line-height:1.5;color:#6a7788;overflow-wrap:anywhere}
.rw2-feedback-action{flex:0 0 auto}
.rw2-review .m51-test-final{background:linear-gradient(115deg,#202b43 0%,#34304e 58%,#4b2947 100%);border:1px solid #3a3b56;box-shadow:0 3px 12px rgba(36,35,62,.08)}
body.mentor-v41-active .rw2-review .m45-review-actions{gap:10px}
body.mentor-v41-active .rw2-review .m45-accept,body.mentor-v41-active .rw2-review .m45-revision{min-height:42px;min-width:116px;border-radius:10px;padding:10px 16px;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;box-shadow:0 2px 5px rgba(31,41,55,.035);font-weight:700}
body.mentor-v41-active .rw2-review .m45-accept{background:linear-gradient(135deg,#edf9f2,#dff1e8)!important;color:#176244!important;border:1px solid #bcdcca!important}
body.mentor-v41-active .rw2-review .m45-revision{background:linear-gradient(135deg,#fff2f5,#fbe2e9)!important;color:#96354b!important;border:1px solid #ecc0ce!important}
body.mentor-v41-active .rw2-review .m45-accept.is-current{background:linear-gradient(135deg,#267c58,#1b6546)!important;color:#fff!important;border-color:#1b6546!important;box-shadow:0 0 0 2px #d5ecdf}
body.mentor-v41-active .rw2-review .m45-revision.is-current{background:linear-gradient(135deg,#ac4260,#93344f)!important;color:#fff!important;border-color:#93344f!important;box-shadow:0 0 0 2px #f4dce4}
body.mentor-v41-active .rw2-review .m45-accept:not(:disabled):hover,body.mentor-v41-active .rw2-review .m45-revision:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 4px 9px rgba(31,41,55,.1)}
body.mentor-v41-active .rw2-review .m45-accept:disabled,body.mentor-v41-active .rw2-review .m45-revision:disabled{cursor:default;opacity:.58;transform:none;box-shadow:none}
.rw2-last-item-hint{padding:9px 12px;margin:10px 0;background:#f7f5fa;border:1px solid #e9e2ef;border-radius:9px;color:#62546e;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.rw2-history summary:focus-visible,.rw2-test summary:focus-visible,body.v6-enabled .rw2-plan .v6-plan-module:focus-visible,.rw2-feedback-action button:focus-visible,body.mentor-v41-active .rw2-review .m45-accept:focus-visible,body.mentor-v41-active .rw2-review .m45-revision:focus-visible{outline:2px solid #8a3779;outline-offset:3px}
@media(max-width:900px){
  body.v6-enabled .rw2-plan .v6-plan-module{grid-template-columns:32px minmax(0,1fr) 132px;gap:9px}
  body.v6-enabled .rw2-plan .v6-plan-module-state .rw2-status{font-size:10px;padding:5px 7px}
  body.v6-enabled .rw2-plan .v6-plan-module-arrow{display:none}
  .rw2-summary-line{gap:10px 12px}.rw2-metric{padding-left:12px}
  body.v6-enabled .rw2-feedback-card{gap:16px}
}
@media(max-width:600px){
  body.v6-enabled .rw2-plan .v6-plan-module{grid-template-columns:28px minmax(0,1fr);gap:8px 10px}
  body.v6-enabled .rw2-plan .v6-plan-module-state{grid-column:2;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
  body.v6-enabled .rw2-feedback-card{flex-wrap:wrap;align-items:flex-start}
  .rw2-feedback-action{width:100%}.rw2-feedback-action button{width:100%}
  .rw2-module-summary{padding:12px}.rw2-summary-line{gap:10px}.rw2-metric{padding-left:10px}
}
@media(prefers-reduced-motion:reduce){
  .rw2-history summary,.rw2-test summary,.rw2-history summary::after,.rw2-test summary::after,body.mentor-v41-active .rw2-review .m45-accept,body.mentor-v41-active .rw2-review .m45-revision{transition:none}
  body.mentor-v41-active .rw2-review .m45-accept:not(:disabled):hover,body.mentor-v41-active .rw2-review .m45-revision:not(:disabled):hover{transform:none}
}
