#st-test-launcher-01613d{position:fixed;right:22px;bottom:26px;z-index:85000;background:linear-gradient(125deg,#1767e9,#3c89fa);color:white;border:1px solid #7aaaff;border-radius:28px;padding:11px 20px;box-shadow:0 8px 26px #0009;font:700 13px system-ui;cursor:pointer}
#st-test-launcher-01613d[hidden],#st-test-panel-01613d[hidden]{display:none!important}
#st-test-panel-01613d{position:fixed;right:20px;bottom:80px;width:min(680px,calc(100vw - 40px));max-height:min(730px,calc(100vh - 130px));overflow:auto;z-index:85001;background:#101d35;color:#e7f1ff;border:1px solid #31557c;border-radius:18px;padding:18px;box-shadow:0 20px 65px #000c;font:13px system-ui}
#st-test-panel-01613d *{box-sizing:border-box}
.st-test-head-01613d{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.st-test-head-01613d strong{font-size:19px}
.st-test-subtitle-01613d{font-size:12px;color:#afc4e6;line-height:1.6;margin:0 0 16px}
.st-test-row-01613d{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.st-test-card-01613d{padding:14px;border:1px solid #314a6c;border-radius:13px;background:#152742;margin:10px 0}
.st-test-card-01613d small{color:#acc2e0;font-size:11px}
.st-test-card-01613d strong{font-size:15px}
.st-test-btns-01613d{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.st-test-btn-01613d{border:1px solid #47638e;border-radius:9px;color:#e4f1ff;background:#22395a;padding:8px 12px;cursor:pointer;font:600 12px system-ui}
.st-test-btn-01613d.primary{background:#2768d5;border-color:#568de9;color:white}
.st-test-btn-01613d.approve{background:#148671;border-color:#48c9b0;color:white}
.st-test-btn-01613d:disabled{opacity:.45;cursor:not-allowed}
.st-test-note-01613d{padding:10px 12px;background:#102d3d;border:1px solid #24677b;border-radius:9px;color:#c2edf1;font-size:12px;line-height:1.5}
#st-test-feedback-01613d{margin-top:12px;white-space:pre-wrap;font-size:12px;line-height:1.5}
#st-test-feedback-01613d[data-error="true"]{color:#ffada8}
.st-test-state-01613d{font-size:11px;font-weight:700;color:#93d9b5}
@media(max-width:650px){#st-test-launcher-01613d{right:10px;bottom:10px}#st-test-panel-01613d{right:8px;bottom:62px;width:calc(100vw - 16px);max-height:calc(100vh - 85px)}}

/* 01613D1: explicit site-scope selection and fail-closed disabled actions */
.st-test-guide-01613d1{padding:12px;border:1px solid #ac8243;border-radius:10px;background:#2c2730;color:#ffe1b3;margin:12px 0;line-height:1.45}
.st-test-guide-01613d1 p{margin:7px 0}.st-test-guide-01613d1 strong{font-size:13px}
.st-test-suggested-01613d1{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:8px;padding:8px;border-radius:8px;background:#192f44}
.st-test-suggested-01613d1 span{font-weight:650;color:#eff9ff;overflow-wrap:anywhere}

/* 01613D2 · explicit source provenance */
.st-test-source-01613d2{padding:9px 12px;margin:8px 0;border:1px solid rgba(148,163,184,.35);border-radius:9px;font-size:12px;line-height:1.5;color:#b5e7f9;background:rgba(17,94,121,.18)}

/* 01614B · accessible comparison and isolated test status */
.st-test-compare-01614b {margin:10px 0;padding:12px;border:1px solid rgba(61,169,217,.55);background:rgba(28,82,118,.15);border-radius:12px;max-height:230px;overflow:auto;color:inherit;font-size:12px}
.st-test-compare-01614b p {margin:6px 0}
.st-test-compare-01614b ul {padding-left:20px;margin:7px 0}
.st-test-compare-01614b li {margin:4px 0}
.st-test-warning-01614b {color:#f1c675;font-size:11px;line-height:1.4;margin:6px 0}

/* 01614B1 · readable, side-by-side actual before/after text */
.st-test-compare-expanded-01614b1{max-height:440px;overflow:auto;}
.st-test-compare-head-01614b1{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.st-test-diff-page-01614b1{padding:9px 0;border-top:1px solid #345576;list-style:none;}
.st-test-compare-expanded-01614b1 ul{padding-left:0;}
.st-test-diff-pair-01614b1{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0;}
.st-test-diff-pair-01614b1>div{padding:9px 10px;border:1px solid #4e627e;border-radius:8px;min-width:0;background:#263349;}
.st-test-diff-pair-01614b1>div+div{border-color:#3c9979;background:#103c39;}
.st-test-diff-pair-01614b1 small{display:block;color:#b8cee2;font-weight:700;}
.st-test-diff-pair-01614b1 p{overflow-wrap:anywhere;white-space:pre-wrap;color:#fff;font-size:12px;}
.st-test-no-text-01614b1,.st-test-local-hint-01614b1{font-size:11px;line-height:1.5;color:#a5c7e3;margin:7px 0;}
@media(max-width:600px){.st-test-diff-pair-01614b1{grid-template-columns:1fr;}}

/* 01615A · Owner review actions and history */
.st-test-review-note-01615a{display:block;box-sizing:border-box;width:100%;margin:9px 0 6px;padding:9px 10px;resize:vertical;min-height:56px;background:#0e1b30;color:#e9f1ff;border:1px solid #415676;border-radius:9px;font:inherit}
.st-test-review-note-01615a:focus{outline:2px solid #6699e9;outline-offset:1px}
.st-test-review-history-01615a{margin-top:9px;border-top:1px solid #344763;padding-top:7px;font-size:12px}
.st-test-review-history-01615a summary{cursor:pointer;font-weight:650}
.st-test-review-history-01615a ul{padding-left:18px;margin:8px 0;max-height:210px;overflow:auto}
.st-test-review-history-01615a li{margin:0 0 9px;overflow-wrap:anywhere}
.st-test-review-history-01615a small{display:block;opacity:.75}
.st-test-review-history-01615a p{white-space:pre-wrap;margin:3px 0 0}

/* 01615B — selected, owner-only, two-step project apply */
.st-test-apply-01615b{margin:12px 0;padding:12px;border:1px solid #4d85aa;border-radius:12px;background:#0d2b47;color:#f0f8ff}
.st-test-apply-01615b>strong{font-size:14px}
.st-test-apply-01615b p{color:#b6d4ef;line-height:1.45;font-size:12px}
.st-test-apply-choice-01615b{display:flex;gap:9px;align-items:center;min-height:33px;margin:5px 0;padding:7px;border:1px solid #3b6083;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.st-test-apply-choice-01615b input{width:16px;height:16px;flex-shrink:0;accent-color:#68b89a}
.st-test-apply-choice-01615b small{margin-left:auto;text-align:right}
.st-test-apply-plan-01615b{margin-top:12px;padding:12px;border:1px solid #439c82;border-radius:10px;background:#0d3b3a}
.st-test-apply-plan-01615b small{display:block;margin-top:7px}
/* 01616 — conflicts require an explicit owner choice, never silent overwrite. */
.st-test-apply-conflicts-01616{margin-top:12px;padding:12px;border:1px solid #dc9552;border-radius:10px;background:#34251d;color:#fff0dc}
.st-test-apply-conflicts-01616>strong{font-size:14px}
.st-test-apply-conflicts-01616 p{color:#ffe3c2}
.st-test-apply-conflicts-01616 .st-test-apply-choice-01615b{border-color:#ad7957;background:#382b29}
.st-test-apply-conflicts-01616 input{accent-color:#ec9c54}

/* 01617 · Clear server-version guard and independent manager overview */
.st-test-original-stale-01617{border:1px solid #c88539;background:#34291d;border-radius:12px;padding:12px;margin:10px 0;color:#ffe1b3}
.st-test-original-stale-01617 p{font-size:12px;line-height:1.5;margin:8px 0}
.st-test-collaboration-01617{border:1px solid #315b82;background:#102941;border-radius:12px;margin:10px 0;padding:12px}
.st-test-collaboration-01617 p{color:#bcd4ee;font-size:12px;margin:8px 0}
.st-test-collab-row-01617{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 0;border-top:1px solid #2c4763}
.st-test-collab-row-01617 span{color:#e0ecff;font-weight:600;font-size:12px}
.st-test-collab-row-01617 small{color:#a5bfd9;font-size:11px}

/* 01618 · Delegated Sites desktop console: near-full-screen, movable and resizable. */
#st-test-launcher-01613d{position:static;display:block;width:100%;margin-top:10px;z-index:auto;border:1px solid #477aae;border-radius:12px;padding:11px 15px;background:linear-gradient(120deg,#173c72,#245baf);color:#f5faff;box-shadow:none;text-align:center;font:700 12px system-ui;cursor:pointer}
#st-test-launcher-01613d[hidden]{display:none!important}
#st-test-panel-01613d{left:5vw;top:5vh;right:auto;bottom:auto;width:90vw;height:90vh;max-height:95vh;max-width:96vw;min-width:380px;min-height:310px;resize:both;overflow:auto;overscroll-behavior:contain;border:1px solid #4477ae;border-radius:18px;padding:0 22px 22px;box-shadow:0 36px 115px #000e;background:linear-gradient(180deg,#101f3b,#091426 40%);z-index:85001}
#st-test-panel-01613d .st-test-head-01613d{position:sticky;top:0;z-index:3;margin:0 -22px 0;padding:18px 22px 12px;background:linear-gradient(120deg,#163058,#112745);border-bottom:1px solid #37587e;cursor:move;user-select:none}
#st-test-panel-01613d .st-test-head-01613d button{cursor:pointer}
.st-test-tabs-01618{position:sticky;top:63px;z-index:2;display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 0;background:#101d35;border-bottom:1px solid #315177;margin-bottom:13px}
.st-test-tab-01618{padding:10px 14px;border-radius:11px;background:#1b3353;color:#d2e7ff;border:1px solid #385b83;cursor:pointer;font:700 12px system-ui}
.st-test-tab-01618.is-active{background:#245fc3;border-color:#7caaff;color:white}
.st-test-dashboard-grid-01618{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}
.st-test-dashboard-section-01618{background:linear-gradient(145deg,#132944,#142038);border:1px solid #385b7e;border-radius:16px;padding:15px;min-width:0}
.st-test-dashboard-section-01618 h3{font-size:15px;margin:0 0 10px;color:#eaf5ff}
.st-test-dashboard-section-01618 p{font-size:12px;color:#b4cde9;line-height:1.55}
.st-test-mixer-01618{padding:15px;background:#132945;border:1px solid #3c6a92;border-radius:16px}
.st-test-mixer-01618 h3{margin:3px 0 8px;font-size:16px}
.st-test-mixer-group-01618{margin-top:13px;padding:12px;border-radius:11px;border:1px solid #3c5b7a;background:#102038}
.st-test-mixer-group-01618 h4{margin:0 0 10px;font-size:13px;color:#dceeff}
.st-test-mixer-row-01618{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #304765}
.st-test-mixer-row-01618 p{font-size:12px;margin:4px 0;overflow-wrap:anywhere;line-height:1.35}
.st-test-mixer-row-01618 small{font-size:11px;color:#b1cae6}
.st-test-choice-01618{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.st-test-choice-01618 button{font-size:11px;border:1px solid #45668b;border-radius:8px;background:#203754;color:#e5f1ff;padding:7px 9px;cursor:pointer}
.st-test-choice-01618 button[aria-pressed="true"][data-choice="accept"]{background:#166747;border-color:#51c89a;color:white}
.st-test-choice-01618 button[aria-pressed="true"][data-choice="reject"]{background:#80313a;border-color:#f28686;color:white}
/* 01618D: delayed is an explicit choice, visually distinct from untouched. */
.st-test-choice-01618 button[aria-pressed="true"][data-choice="skip"]{background:#f5c451;border-color:#ffe18e;color:#2b1d00;font-weight:800;box-shadow:0 0 0 2px rgba(245,196,81,.25)}
.st-test-mixer-choice-label-01618d{font-weight:650}
.st-test-mixer-choice-label-01618d[data-current-choice="skip"]{color:#f5c451}
.st-test-mixer-choice-label-01618d[data-current-choice="accept"]{color:#77deb2}
.st-test-mixer-choice-label-01618d[data-current-choice="reject"]{color:#ffa1a6}
.st-test-mixer-choice-label-01618d[data-current-choice="pending"]{color:#aec4dd}
.st-test-mixer-status-01618{padding:12px;margin:12px 0;border-radius:10px;border:1px solid #49749b;background:#132b46;color:#e6f7ff;line-height:1.45;font-size:12px}
.st-test-pair-01618{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-test-pair-01618 select{flex:1;min-width:180px;max-width:350px;background:#0d1d35;color:#e9f3ff;border:1px solid #43638b;padding:9px;border-radius:9px}
@media(max-width:700px){#st-test-panel-01613d{left:2vw;top:2vh;width:96vw;height:94vh;min-width:0;max-width:96vw;padding:0 12px 12px}#st-test-panel-01613d .st-test-head-01613d{margin:0 -12px 0;padding:14px 12px}.st-test-tabs-01618{top:54px}.st-test-mixer-row-01618{grid-template-columns:1fr}}
/* 01618E: server-verifiable original block matching; no hidden optimistic success. */
#st-test-panel-01613d .st-test-lineage-hint-01618e{padding:5px 9px;border-radius:7px;margin:5px 0;font-size:12px;font-weight:650;border:1px solid rgba(76,194,169,.35);color:#93ecd7;background:rgba(20,128,114,.12)}
#st-test-panel-01613d .st-test-lineage-hint-01618e[data-match-status="blocked"]{border-color:rgba(245,196,81,.55);color:#f5c451;background:rgba(179,115,30,.13)}

/* 01618G · explicit owner-verified current Render target selection */
.st-test-manual-label-01618g{display:grid;gap:8px;margin:12px 0 4px;font-weight:700;color:#f5d26a;max-width:900px}
.st-test-manual-label-01618g select{width:100%;min-width:0;padding:9px;border:1px solid #627ca0;border-radius:9px;background:#142946;color:#f3f7ff;font:inherit;font-weight:500}
.st-test-manual-hint-01618g{font-size:12px;max-width:900px;color:#f1c975;line-height:1.5}

/* 01618I · Visible, local result for original Main recovery preflight. */
.st-test-repair-feedback-01618i{border:1px solid #517daa;background:#142e49;border-radius:9px;padding:10px 12px;margin:10px 0;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#d8ebff;font-weight:650}
.st-test-repair-feedback-01618i[data-status="checking"],.st-test-repair-feedback-01618i[data-status="applying"]{border-color:#5c91ce;background:#172c55;color:#b9dcff}
.st-test-repair-feedback-01618i[data-status="error"]{border-color:#ea7972;background:#49242c;color:#ffd9d6}
.st-test-repair-feedback-01618i[data-status="ready"],.st-test-repair-feedback-01618i[data-status="done"]{border-color:#4aab89;background:#163d3c;color:#d1ffeb}

/* 01618K: sync feedback must be next to the action, never buried at modal bottom. */
.st-test-sync-feedback-01618k{margin:9px 0 0;font-size:12px;line-height:1.45;color:#a7e6e1}
.st-test-sync-feedback-01618k[data-status="error"]{padding:10px;border:1px solid #b45353;border-radius:8px;background:#512027;color:#ffd6d6}
.st-test-sync-feedback-01618k[data-status="working"]{color:#f6d58b}

/* 01619B: historical accepted changes are legible but cannot be replayed. */
.st-test-accepted-01619b{color:#7be8bd;font-weight:700;font-size:12px;margin:6px 0}
.st-test-history-batch-01619b{padding:10px 0;border-bottom:1px solid rgba(138,178,218,.23)}
.st-test-history-batch-01619b details{padding:6px 12px}
.st-test-history-entry-01619b{padding:6px 0;font-size:12px;border-top:1px solid rgba(138,178,218,.16);overflow-wrap:anywhere}

/* 01619D · factual separation of Render editor project vs published test baseline. */
.st-test-source-audit-01619d{margin:10px 0 0;padding:12px 14px;border:1px solid rgba(126,183,225,.38);border-radius:10px;background:rgba(22,54,78,.44);font-size:13px;line-height:1.55;color:#e1efff}
.st-test-source-audit-01619d p{margin:6px 0;overflow-wrap:anywhere}
.st-test-source-audit-01619d ul{margin:6px 0;padding-left:20px;max-height:180px;overflow:auto}
.st-test-source-audit-01619d details{margin-top:6px}

/* 01619P: selected-change preflight feedback stays next to its action. */
.st-test-choice-feedback-01619p{border:1px solid #6582a7;border-radius:9px;padding:10px 12px;margin:10px 0;font-size:12px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;color:#e0efff;background:#172a44}
.st-test-choice-feedback-01619p[data-status="checking"]{border-color:#6c98d6;color:#c1deff}
.st-test-choice-feedback-01619p[data-status="error"]{border-color:#e17872;background:#47262c;color:#ffe1dd}
.st-test-choice-feedback-01619p[data-status="ready"]{border-color:#45ab87;background:#173c36;color:#dbffec}

/* 01619Q · Server-derived conflict, visible near preflight; no automatic write. */
.st-test-overwrite-conflict-01619q{margin:10px 0;padding:13px 15px;border:1px solid #b77941;border-radius:10px;background:#322719;color:#f6e7cf;line-height:1.55}
.st-test-overwrite-conflict-01619q p{margin:8px 0;overflow-wrap:anywhere}
.st-test-overwrite-conflict-01619q label{display:flex;align-items:flex-start;gap:8px;cursor:pointer;margin-top:12px;font-weight:650}
.st-test-overwrite-conflict-01619q input{accent-color:#2fc17c;flex:none;margin-top:4px}
.st-test-choice-feedback-01619p[data-status="conflict"]{color:#ffcf93}
