/* Batch 123 · pin lifecycle ribbons, card layout, Vetter top-right decisions, inline link fields, Compare panel, View as, Delete project */

/* A · corner ribbons (folded-corner band on the card's top-left) + matching left border */
#review-workspace .rw-bubble.has-ribbon{position:relative;overflow:hidden}
#review-workspace .rw-ribbon{position:absolute;top:0;left:0;width:70px;height:70px;overflow:hidden;pointer-events:none;z-index:2}
#review-workspace .rw-ribbon>span{position:absolute;top:15px;left:-27px;width:104px;transform:rotate(-45deg);text-align:center;font:800 8.5px/16px Inter,system-ui,sans-serif;letter-spacing:.06em;color:#fff;background:var(--rb,#e8b44a);box-shadow:0 1px 3px rgba(0,0,0,.2)}
#review-workspace .rw-ribbon-new{--rb:#e8a317}
#review-workspace .rw-ribbon-fixed{--rb:#3da97a}
#review-workspace .rw-ribbon-missed{--rb:#d64545}
#review-workspace .rw-ribbon-ignored{--rb:#9a95a1}
#review-workspace .rw-chat-thread.rw-bd-red .rw-bubble,#review-workspace .rw-floating-thread.rw-bd-red .rw-bubble{border-left-color:#d64545}
#review-workspace .rw-chat-thread.rw-bd-amber .rw-bubble{border-left-color:#e8a317}
#review-workspace .rw-bubble.has-ribbon .rw-b123-top{padding-left:26px}
#review-workspace .rw-bubble.has-ribbon .rw-carry-line,#review-workspace .rw-bubble.has-ribbon .rw-question-tag{margin-left:26px}
#review-workspace .rw-carry-line{margin:2px 0 4px;font-size:10.5px;font-weight:700;color:#b23a3a}
#review-workspace .rw-question-tag{display:inline-block;margin:2px 0 4px;padding:1px 7px;border-radius:999px;background:#ecebef;color:#6b6574;font-size:10px;font-weight:750;letter-spacing:.03em}
#review-workspace .rw-pushback-reply{border-left:2px solid #7442df}

/* B · card header: #badge, name/date, then reply / edit / delete at the top right */
#review-workspace .rw-b123-top{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:26px}
#review-workspace .rw-b123-top .rw-comment-number{flex:none}
#review-workspace .rw-b123-who{display:grid;gap:1px;min-width:0;flex:1 1 auto}
#review-workspace .rw-bubble .rw-head-tools{display:flex!important;align-items:center;gap:0!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;flex:none!important;width:auto!important;justify-content:flex-end}
#review-workspace .rw-bubble .rw-head-tools>button{flex:none!important;margin:0!important;min-width:0!important;width:24px!important;height:24px!important;height:24px;padding:0;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#8a8494;cursor:pointer}
#review-workspace .rw-head-tools button:hover{background:#efeaf7;color:#3d3a46}
#review-workspace .rw-head-tools svg{width:14px;height:14px}
#review-workspace .rw-card-actions{justify-content:flex-start}
#review-workspace .rw-card-actions .rw-role-acts{flex-wrap:wrap!important;row-gap:4px}
#review-workspace .rw-b123-who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* A · "Question only" tick in the Vetter's post box */
#review-workspace .rw-question-only{display:inline-flex;align-items:center;gap:6px;margin:6px 0 2px;font-size:12px;font-weight:600;color:#5d5866;cursor:pointer;user-select:none}
#review-workspace .rw-question-only input{width:14px;height:14px;margin:0;accent-color:#7442df}

/* A · the Batch 122 amber pulse is gone (NEW ribbon replaces it) */
.rw-triage-dot{animation:none!important;box-shadow:none!important}
#review-workspace .rw-missed-list button{border-color:#f1d0d0;background:#fff6f6}
#review-workspace .rw-missed-list button:hover{border-color:#d64545;background:#ffeded}
#review-workspace .rw-missed-warn{background:#fdecec;color:#8f2525}
#review-workspace .rws-modal-backdrop.rw-b123-over{z-index:2147483000}

/* C · Vetter top right: Send back to Creator (purple) + Approve Stage (green) */
#review-workspace #rw-send-back,#review-workspace #rw-approve-stage{color:#fff;border:0}
#review-workspace #rw-send-back{background:#7442df}
#review-workspace #rw-send-back:hover{background:#6233cf;color:#fff}
#review-workspace #rw-approve-stage{background:#2f9e6e}
#review-workspace #rw-approve-stage:hover{background:#268a5f;color:#fff}
#review-workspace #rw-send-back[hidden],#review-workspace #rw-approve-stage[hidden]{display:none}

/* D · Figma link: one row, "Use link" pill inside the field on the right; Upload a file matches */
#new-project .pc-figma-link,#review-workspace .rw-mock-link,#review-workspace #rw-cmp-panel .rw-mock-link,#review-workspace .rw-compare-modal .rw-mock-link{position:relative;display:block!important;width:100%;flex:1 1 100%}
#new-project .pc-figma-link input,#review-workspace .rw-mock-link input,#review-workspace #rw-cmp-panel .rw-mock-link input,#review-workspace .rw-compare-modal .rw-mock-link input{display:block;width:100%!important;height:38px;box-sizing:border-box;padding:0 88px 0 12px!important;border:1px solid #ddd6ea!important;border-radius:10px!important;background:#fff!important;color:#2f2c38!important;font:13px Inter,system-ui,sans-serif}
#new-project .pc-figma-link input:focus,#review-workspace .rw-mock-link input:focus{outline:none;border-color:#7442df!important;box-shadow:0 0 0 3px rgba(116,66,223,.15)}
#new-project .pc-figma-link button,#review-workspace .rw-mock-link button,#review-workspace #rw-cmp-panel .rw-mock-link button,#review-workspace .rw-compare-modal .rw-mock-link button{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:26px;padding:0 12px!important;border:0!important;border-radius:999px!important;background:#7442df!important;color:#fff!important;font:650 11.5px Inter,system-ui,sans-serif!important;cursor:pointer;white-space:nowrap}
#new-project .pc-figma-link button:hover,#review-workspace .rw-mock-link button:hover{background:#6233cf!important}
#review-workspace .rw-cmp-add{display:flex!important;flex-direction:column;align-items:stretch;gap:8px}
#review-workspace .rw-cmp-upload,#review-workspace #rw-cmp-panel .rw-cmp-upload{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:38px;box-sizing:border-box;padding:0 12px;border:1px dashed #cfc5e3!important;border-radius:10px;background:#faf8ff!important;color:#5b2fc4!important;font:650 12.5px Inter,system-ui,sans-serif;cursor:pointer}
#review-workspace .rw-cmp-upload::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m-5 5 5-5 5 5M4 16v4h16v-4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m-5 5 5-5 5 5M4 16v4h16v-4'/%3E%3C/svg%3E") center/contain no-repeat}
#review-workspace .rw-cmp-upload:hover{border-color:#7442df!important;background:#f4efff!important}
#new-project .pc-mock input[type=file]{width:100%;box-sizing:border-box;height:38px;padding:5px;border:1px dashed #cfc5e3;border-radius:10px;background:#faf8ff;font:12.5px Inter,system-ui,sans-serif;color:#5d5866}
#new-project .pc-mock input[type=file]::file-selector-button{height:26px;margin-right:10px;padding:0 12px;border:0;border-radius:999px;background:#f1ebfd;color:#5b2fc4;font:650 11.5px Inter,system-ui,sans-serif;cursor:pointer}

/* E/G · Compare panel status: text on its own line, opacity (Overlay), full-width red Stop comparing */
#review-workspace .rw-cmp-stop-row.rw-b123-stop{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:9px;padding:10px 12px}
#review-workspace .rw-cmp-stop-text{margin:0;font-size:12.5px;font-weight:650;color:#4b2fa0}
#review-workspace .rw-cmp-opacity{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:#4b2fa0}
#review-workspace .rw-cmp-opacity input{flex:1;accent-color:#7442df}
#review-workspace .rw-cmp-opacity b{min-width:34px;text-align:right;font-size:11.5px}
#review-workspace .rw-cmp-stop-row .rw-stop-compare.rw-stop-full{display:block;width:100%;height:36px;border:0;border-radius:9px;background:#d64545;color:#fff;font:700 12.5px Inter,system-ui,sans-serif;cursor:pointer}
#review-workspace .rw-cmp-stop-row .rw-stop-compare.rw-stop-full:hover{background:#bf3434}
#review-workspace #rw-compare-bar{display:none!important}

/* F · View as: the dropdown itself sits top center */
.viewas-bar.viewas-center{left:50%;right:auto!important;transform:translateX(-50%)}
.viewas-bar.viewas-center.is-as .viewas-btn{border-color:#7442df;box-shadow:0 0 0 2px rgba(116,66,223,.18),0 4px 14px rgba(16,24,40,.14)}
.viewas-banner{display:none!important}
@media (max-width:760px){.viewas-bar.viewas-center{left:auto;right:12px!important;transform:none}}

/* I · Delete project at the bottom of Project details */
#review-workspace .rws-delete-project{margin:16px 0 4px}
#review-workspace .rws-delete-project-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:38px;border:0;border-radius:10px;background:#d64545;color:#fff;font:700 13px Inter,system-ui,sans-serif;cursor:pointer}
#review-workspace .rws-delete-project-btn:hover{background:#bf3434}
#review-workspace .rws-delete-project-btn svg,#review-workspace .rws-delete-project-btn .rw-icon{width:15px;height:15px}
#review-workspace .rws-access-note{margin:12px 0}
#review-workspace .rws-access-note h3{font-size:12px;margin:0 0 4px}
#review-workspace .rws-access-note p{margin:0;font-size:12px;color:#5d5866}
