/* v4.0.0 - scoped proof approval interface */
#mc40ProofPage{--mc40-ink:#57443b;--mc40-accent:#98695d;--mc40-line:#e8d8cf;max-width:900px;width:min(100% - 32px,900px);padding:54px 0 78px;margin:0 auto;float:none;clear:both;box-sizing:border-box;color:var(--mc40-ink)}
#mc40ProofPage *{box-sizing:border-box}
#mc40ProofPage .mc40-head{text-align:center;max-width:780px;margin:0 auto 30px}
#mc40ProofPage .mc40-eyebrow{display:block;color:#b57c66;font-size:11px;letter-spacing:.2em;font-weight:700}
#mc40ProofPage h1,#mc40ProofPage h2,#mc40ProofPage h3{background:none;border:none;box-shadow:none;color:var(--mc40-ink);padding:0;text-align:left;line-height:1.5}
#mc40ProofPage h1{font-family:serif;text-align:center;font-size:clamp(27px,4vw,36px);margin:6px auto 13px}
#mc40ProofPage h2{font-size:clamp(20px,3vw,25px);margin:10px 0 18px}
#mc40ProofPage h3{font-size:17px;margin:0 0 8px}
#mc40ProofPage p{line-height:1.85}
#mc40ProofPage .mc40-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:30px auto 38px;max-width:720px;font-size:12px;text-align:center}
#mc40ProofPage .mc40-steps>*{padding:10px 4px;border-bottom:2px solid #e3d4cb;color:#aa9c95}#mc40ProofPage .mc40-steps strong{border-color:var(--mc40-accent);color:var(--mc40-accent)}
#mc40ProofPage .mc40-card{background:#fffcfa;border:1px solid var(--mc40-line);border-radius:17px;padding:30px;margin:20px auto;box-shadow:0 10px 28px #76594708}
#mc40ProofPage .mc40-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#mc40ProofPage .mc40-link,#mc40ProofPage .mc40-back a{color:var(--mc40-accent);text-underline-offset:5px}
#mc40ProofPage .mc40-back{text-align:center;margin:25px auto}
#mc40ProofPage .mc40-order-link{display:flex;justify-content:space-between;gap:12px;align-items:center;text-decoration:none;color:var(--mc40-accent);border:1px solid var(--mc40-line);border-radius:12px;padding:15px;margin:10px 0;background:white}
#mc40ProofPage .mc40-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:10px 22px;border-radius:99px;background:white;color:var(--mc40-accent);border:1px solid #cba99b;text-decoration:none;font:inherit;cursor:pointer;text-align:center;max-width:100%;white-space:normal;line-height:1.5}
#mc40ProofPage .mc40-btn.main{background:var(--mc40-accent);color:#fff;border-color:var(--mc40-accent)}
#mc40ProofPage .mc40-btn.download{margin:12px 0 18px;background:#f8ebe5;font-weight:700}
#mc40ProofPage .mc40-muted{font-size:13px;color:#806f65}
#mc40ProofPage .mc40-status{display:inline-block;padding:5px 14px;border-radius:99px;background:#f5ede7;color:#98695d;font-weight:700;font-size:13px}
#mc40ProofPage .mc40-status.approved{background:#eaf3e9;color:#496c53}#mc40ProofPage .mc40-status.revision_requested{background:#fff0df;color:#916034}
#mc40ProofPage .mc40-note,#mc40ProofPage .mc40-success,#mc40ProofPage .mc40-alert{border-radius:10px;padding:15px 18px;border:1px solid #e6d8cb;background:#faf3ed;margin:14px 0;overflow-wrap:anywhere}
#mc40ProofPage .mc40-success{background:#eff6ed;color:#48694e;border-color:#c8d9c5}#mc40ProofPage .mc40-alert{background:#fff0ef;color:#9b3e39;border-color:#d9a89f}
#mc40ProofPage .mc40-note p{margin:6px 0 0}
#mc40ProofPage .mc40-decision-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
#mc40ProofPage .mc40-choice{min-width:0;padding:22px;border:1px solid #ebddd2;border-radius:14px;background:#fff}
#mc40ProofPage .mc40-choice label{display:block;margin:14px 0 9px;font-weight:700}
#mc40ProofPage .mc40-confirm{display:flex!important;align-items:center;gap:10px;font-weight:400!important;cursor:pointer}
#mc40ProofPage input[type=checkbox]{accent-color:var(--mc40-accent);width:20px;height:20px;flex:none}
#mc40ProofPage textarea{display:block;min-height:125px;width:100%;max-width:100%;padding:12px;border:1px solid #d8c2b6;border-radius:9px;font:inherit;background:white;color:var(--mc40-ink)}
#mc40ProofPage .mc40-required{color:#94483b;font-size:12px}
#mc40ProofPage .mc40-history{margin-top:22px;border-top:1px solid var(--mc40-line);padding-top:17px}
#mc40ProofPage .mc40-history summary{cursor:pointer;color:var(--mc40-accent)}#mc40ProofPage .mc40-history li{margin:10px 0}
#mc40ProofPage .mc40-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}
#mc40ProofPage a:focus-visible,#mc40ProofPage button:focus-visible,#mc40ProofPage textarea:focus-visible{outline:3px solid #647e6b;outline-offset:3px}
@media(max-width:680px){#mc40ProofPage{width:calc(100% - 28px);padding:26px 0 55px}#mc40ProofPage .mc40-card{padding:19px 16px}#mc40ProofPage .mc40-decision-grid{grid-template-columns:1fr}#mc40ProofPage .mc40-choice{padding:17px}#mc40ProofPage .mc40-choice .mc40-btn{width:100%}#mc40ProofPage .mc40-steps{font-size:10px;gap:3px}}
/* Two low-risk entry-point buttons appended to v3.9.3 account templates. */
#accountHistoryDefault a.mc40-history-proof{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:8px;padding:11px 17px;border:1px solid #cba99b;border-radius:40px;color:#94695d!important;background:#fff!important;text-decoration:none;text-align:center;font-size:13px;font-weight:700;min-height:44px}
#accountHistInfo a.mc40-proof-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:8px 10px 0 0;padding:12px 21px;min-height:46px;background:#fff!important;color:#95685c!important;text-decoration:none!important;border:1px solid #cba99b;border-radius:99px;font-size:13px;font-weight:700}
#accountHistoryDefault a.mc40-history-proof:hover,#accountHistInfo a.mc40-proof-cta:hover{background:#f5eae4!important}
#accountHistoryDefault a.mc40-history-proof:focus-visible,#accountHistInfo a.mc40-proof-cta:focus-visible{outline:3px solid #607d6b;outline-offset:3px}
@media(max-width:650px){#accountHistInfo a.mc40-proof-cta{width:100%;margin:8px 0 0}}

/* v4.4.3: authenticated inline proof preview (image / PDF). */
#mc40ProofPage .mc40-preview{margin:20px 0 22px;padding:18px;border:1px solid #e8d8cf;border-radius:14px;background:#fff;min-width:0}
#mc40ProofPage .mc40-preview-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:14px}
#mc40ProofPage .mc40-preview-top h3{margin:0 0 4px;font-size:17px}
#mc40ProofPage .mc40-preview-top p{font-size:13px;color:#806f65;margin:0;line-height:1.7}
#mc40ProofPage .mc40-preview-open{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:42px;padding:9px 14px;border:1px solid #cba99b;border-radius:24px;color:#98695d;font-weight:700;font-size:13px;background:#fff;flex-shrink:0}
#mc40ProofPage .mc40-preview-image-link{display:block;text-align:center;max-width:100%;padding:10px;border:1px solid #e8d8cf;border-radius:9px;background:#f8f4f1;cursor:zoom-in;overflow:hidden}
#mc40ProofPage .mc40-preview-image{display:block;max-width:100%;width:auto;height:auto;max-height:730px;object-fit:contain;margin:0 auto;border-radius:4px}
#mc40ProofPage .mc40-preview-pdf{display:block;width:100%;height:650px;max-height:75vh;border:1px solid #e8d8cf;border-radius:9px;background:#f8f4f1}
#mc40ProofPage .mc40-preview-help{margin:9px 0 5px;color:#806f65;font-size:12px}
#mc40ProofPage .mc40-preview .mc40-btn.download{margin:10px 0 0;max-width:100%;font-weight:500;font-size:13px;background:#fff}
#mc40ProofPage .mc40-preview-open:focus-visible,#mc40ProofPage .mc40-preview-image-link:focus-visible{outline:3px solid #647e6b;outline-offset:3px}
@media(max-width:680px){#mc40ProofPage .mc40-preview{padding:12px}#mc40ProofPage .mc40-preview-open{width:100%}#mc40ProofPage .mc40-preview-pdf{height:460px;max-height:65vh}#mc40ProofPage .mc40-preview .mc40-btn.download{width:100%}}
