.shared-review{padding:18px}.sr-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.sr-heading>div{flex:1}.sr-heading h1{font-size:23px;margin:0}.sr-heading p,.sr-note{font-size:11px;color:#7c8573}.sr-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px}.sr-list{position:static!important;width:auto!important;height:auto!important;padding:12px!important;background:white!important;border:1px solid #e0e5d9;border-radius:10px;display:block!important;transform:none!important;overflow:auto;max-height:calc(100dvh - 170px)}.sr-list select{width:100%;padding:9px;margin-bottom:10px}.sr-list button{display:block;text-align:left;width:100%;padding:13px 10px;border:0;background:transparent;border-bottom:1px solid #ecefe7;cursor:pointer}.sr-list button.active{background:#eef3e6}.sr-list strong{font-size:12px;font-weight:550}.sr-list small{display:block;margin-top:5px;font-size:10px;color:#7e8774}.sr-main{min-width:0}.sr-subject{background:white;padding:16px;border:1px solid #e0e5d9;border-radius:10px;margin-bottom:12px}.sr-subject h2{font-size:18px;margin:0}.sr-subject p{font-size:12px;color:#7c8573}.sr-subject label{display:inline-flex;gap:8px;font-size:11px;margin-left:12px}.sr-content{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px}.sr-preview{background:#e9ede3;padding:8px;min-width:0;display:flex;justify-content:center}.sr-preview iframe{width:100%;height:75dvh;border:0;background:white}.sr-preview iframe.mobile{max-width:375px}.sr-discussion{padding:16px;background:white;border:1px solid #e0e5d9;border-radius:10px}.sr-discussion h3{font-size:16px;margin:0}.sr-events{max-height:300px;overflow:auto;margin:16px 0}.sr-events article{padding:12px 0;border-bottom:1px solid #edf0e8;font-size:12px}.sr-events article>small{display:block;color:#8c937f;font-size:10px;margin-top:5px}.sr-events p{white-space:pre-wrap;overflow-wrap:anywhere}.sr-discussion label{display:block;font-size:12px;margin:12px 0}.sr-discussion input:not([type=checkbox]),.sr-discussion textarea{display:block;width:100%;padding:10px;border:1px solid #dce2d3;margin-top:6px;box-sizing:border-box}.sr-discussion .wb-btn{margin:4px 4px 4px 0}.sr-confirm{line-height:1.6}.sr-discussion details{margin-top:18px;font-size:11px}.sr-discussion summary{cursor:pointer}.sr-note{line-height:1.65}@media(max-width:1200px){.sr-content{grid-template-columns:1fr}.sr-preview iframe{height:520px}.sr-discussion{max-width:none}}@media(max-width:850px){.sr-layout{grid-template-columns:1fr}.sr-list{max-height:220px}.sr-heading h1{font-size:20px}.shared-review{padding:14px}.sr-subject label{margin:10px 0}.sr-preview iframe{height:65dvh}}
.sr-list,.sr-list button,.sr-list strong{color:#35402f!important}.sr-list button:hover{background:#f3f6ed}.sr-events article strong{color:#35402f}.sr-subject .kc-tag{margin:6px 8px 6px 0}

body:has(.shared-review)>.tour-launch{display:none}

.cc-message .cc-client-status{font-size:12px;line-height:1.5}.cc-client-status.is-approved{color:#28705a}.cc-client-status.is-blocked{color:#99632c}

.sr-edit{padding:20px;background:#fff;border-bottom:1px solid #ddd}.sr-edit label{display:block;margin:12px 0}.sr-edit input,.sr-edit textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}.sr-edit [data-review-field="html"]{font-family:monospace;font-size:12px}.sr-cycle{border-top:1px solid #ddd;margin-top:24px;padding-top:16px}.sr-cycle small{display:block;margin:6px 0}

#cloud-state{position:fixed;bottom:12px;left:240px;right:18px;z-index:1000;display:flex;gap:10px;align-items:center;padding:12px 16px;background:#fff;border:1px solid #d8d9d0;box-shadow:0 4px 18px #0001;font-size:12px}#cloud-state span{flex:1}#cloud-state button{font:inherit;padding:7px 10px;border:1px solid #ccc;background:#fafaf7;border-radius:4px;cursor:pointer}body{padding-bottom:65px}@media(max-width:750px){#cloud-state{left:10px;flex-wrap:wrap}#cloud-state span{flex-basis:100%}}

.history-page{padding:24px;max-width:1300px;margin:auto}.history-controls{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.history-controls label{display:grid;gap:8px}.history-controls select{max-width:360px;padding:9px}.history-diff article,.history-log article{border:1px solid #ddd;padding:16px;margin:12px 0;background:white}.history-diff article>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}.history-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#f5f3ed;padding:12px}.history-diff pre+pre{background:#eef5ef}@media(max-width:700px){.history-diff article>div{grid-template-columns:1fr}}
/* Keep contextual help above the email, never beside or squeezing it. */
.sr-preview{flex-direction:column;align-items:center;justify-content:flex-start}.sr-preview>.sr-note,.sr-preview>.sr-edit{width:100%;box-sizing:border-box}.sr-preview iframe{flex:none}

/* The team workspace banner is unrelated to client approval and covered comments on phones. */
body:has(.shared-review[data-review-role="client"]) #cloud-state{display:none}

/* Display the complete email, including its footer, without a nested scroll area. */
.sr-preview iframe{height:1px;min-height:0}.sr-discussion{align-self:start}
