/* Scoped additions to the approved content workspace. */

html.am-shell body:not(#am-x) #content .cp-page .cp-calendar-content{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;padding:6px!important;min-height:48px!important;text-align:left!important;border-radius:8px!important;box-shadow:none!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-calendar-image{width:34px!important;height:38px!important;aspect-ratio:auto!important;object-fit:cover!important;border-radius:4px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-calendar-label{padding:0!important;white-space:normal!important;font-size:10px!important;line-height:1.45!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-day{min-height:132px!important;gap:6px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-studio-card{display:grid!important;grid-template-columns:100px minmax(0,1fr)!important;align-items:center!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-studio-image{height:120px!important;aspect-ratio:auto!important;background:#faf9f7!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-studio-info{padding:14px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-studio-info>strong{font-size:14px!important;margin:8px 0!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-compact{border:1px solid #e6e2dc;border-radius:12px;background:white;overflow:hidden}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-compact>summary{list-style:none;display:grid;grid-template-columns:52px minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:16px;cursor:pointer}
.cp-review-compact>summary::-webkit-details-marker{display:none}
.cp-review-compact>summary>img{width:52px;height:60px;object-fit:cover;border-radius:6px}
.cp-review-compact>summary strong{font-size:14px;font-weight:600;display:block}
.cp-review-compact>summary small{display:block;margin-top:5px;color:var(--am-muted);font-size:11px}
.cp-expand-label{font-size:12px;color:#71675b}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-compact .cp-review-item{border:0!important;border-top:1px solid #eee9e2!important;border-radius:0!important;grid-template-columns:260px minmax(0,1fr)!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-compact .cp-review-item>.cp-gallery>.cp-review-thumb{max-height:250px!important;max-width:200px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-detail{padding:20px!important;gap:12px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-row h4{font-size:17px!important}
@media(max-width:800px){html.am-shell body:not(#am-x) #content .cp-page .cp-studio-grid{grid-template-columns:1fr!important}.cp-review-compact>summary{grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important}.cp-review-compact>summary>.cp-status{grid-column:2}.cp-expand-label{display:none}html.am-shell body:not(#am-x) #content .cp-page .cp-review-compact .cp-review-item{grid-template-columns:1fr!important}}
html.am-shell body:not(#am-x) #content .cp-page .cp-day{min-height:114px!important}
#cpHoverPreview{position:fixed;z-index:1000001;width:270px;padding:10px;background:#fff;border:1px solid var(--am-line);border-radius:14px;box-shadow:0 16px 55px #27211b29;pointer-events:none;animation:cpPreviewIn .14s ease-out}
#cpHoverPreview[hidden]{display:none!important}#cpHoverPreview>img{display:block;width:100%;height:280px;object-fit:contain;background:var(--am-hover);border-radius:8px}#cpHoverPreview>div{padding:12px 4px 3px}#cpHoverPreview strong{display:block;font:600 13px/1.5 Poppins,sans-serif;color:var(--am-ink)}#cpHoverPreview small{display:block;margin-top:5px;font:11px/1.5 Poppins,sans-serif;color:var(--am-muted)}
@keyframes cpPreviewIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
html.am-shell body:not(#am-x) #cpModal .cp-actions{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:12px!important}
html.am-shell body:not(#am-x) #cpModal .cp-manage-actions,html.am-shell body:not(#am-x) #cpModal .cp-save-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
html.am-shell body:not(#am-x) #cpModal #cpArchive{color:var(--am-ink)!important;background:var(--am-surface-2)!important;border:1px solid var(--am-line)!important;padding:10px 14px!important;order:0!important;min-height:42px!important;font-size:12px!important}
html.am-shell body:not(#am-x) #cpModal #cpDelete{color:var(--am-late)!important;background:white!important;border:1px solid #e6c9c6!important}
html.am-shell body:not(#am-x) #cpModal .btn[hidden]{display:none!important}
html.am-shell body:not(#am-x) #cpModal .cp-msg{color:var(--am-muted)!important;font-size:12px!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-calendar-label small{display:block;font-size:9px;opacity:.8;line-height:1.5}
html.am-shell body:not(#am-x) #content .cp-page .cp-calendar-label{-webkit-line-clamp:3!important}
@media(max-width:800px){html.am-shell body:not(#am-x) #cpModal .cp-save-actions{width:100%!important;justify-content:flex-end!important}html.am-shell body:not(#am-x) #cpModal .cp-save-actions .btn{font-size:11px!important;padding:9px!important}html.am-shell body:not(#am-x) #cpModal .cp-editor-footer{max-height:34dvh!important;overflow:auto!important}}
@media(prefers-reduced-motion:reduce){#cpHoverPreview{animation:none}}
#cpModal .cp-original-copy{display:none!important}#cpCopyOptions{grid-column:1/-1;min-width:0;margin:12px 0}
#cpCopyOptions .cp-copy-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}
#cpCopyOptions h4{font-size:15px;margin:0 0 4px}#cpCopyOptions .cp-copy-heading p{font-size:11px;color:var(--am-muted);margin:0}
#cpCopyOptions .cp-copy-variant{border:1px solid #ded8d0;border-radius:10px;margin-bottom:14px;background:white;overflow:hidden}
#cpCopyOptions .cp-copy-title{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 8px}
#cpCopyOptions h5{margin:0;font-size:12px;font-weight:600;color:#494138}
#cpCopyOptions [data-remove-copy]{border:0;background:none;color:#8d4a42;font:11px Poppins,sans-serif;cursor:pointer;padding:4px}
#cpCopyOptions [hidden]{display:none!important}
#cpCopyOptions .cp-copy-toolbar{display:flex;gap:4px;align-items:center;padding:4px 10px 8px;border-bottom:1px solid #eee9e1}
#cpCopyOptions .cp-copy-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:32px;min-width:32px;border:1px solid transparent;background:white;border-radius:6px;color:#40382f;font:15px Poppins,sans-serif;cursor:pointer}
#cpCopyOptions .cp-copy-toolbar button:hover,#cpCopyOptions .cp-copy-toolbar button[aria-pressed=true]{background:#eee9e1;border-color:#ded5c7}
#cpCopyOptions .cp-copy-toolbar small{font-size:11px}#cpCopyOptions .cp-copy-toolbar>span{height:18px;border-left:1px solid #e7e1d7;margin:0 5px}
html.am-shell body:not(#am-x) #cpModal .cp-rich-copy{min-height:130px;max-height:300px;overflow:auto;padding:14px;outline:none;font:13px/1.8 Poppins,sans-serif;color:#302c27;white-space:pre-wrap;overflow-wrap:anywhere}
#cpCopyOptions .cp-rich-copy:empty:before{content:attr(data-placeholder);color:#928a7e;pointer-events:none}
#cpCopyOptions .cp-copy-variant:focus-within{border-color:#998770;box-shadow:0 0 0 2px #c6b59425}
#cpCopyOptions .cp-copy-count{display:block;padding:4px 14px 10px;text-align:right;font-size:10px;color:#8c8376}
#cpCopyOptions .cp-emoji-picker{padding:12px;margin:0 12px 8px;background:#f8f5ef;border-radius:8px;border:1px solid #e6dfd4}
#cpCopyOptions .cp-emoji-picker>span{font-size:11px;color:#6a6053}#cpCopyOptions .cp-emoji-picker>div{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin-top:8px}#cpCopyOptions [data-emoji]{height:34px;font-size:21px;border:0;background:none;border-radius:6px;cursor:pointer}#cpCopyOptions [data-emoji]:hover{background:#e7decf}
#cpModal .cp-rich-copy strong,#content .cp-copy-review strong{font-weight:700!important}#cpModal .cp-rich-copy em,#content .cp-copy-review em{font-style:italic!important}
.cp-copy-review{padding:12px 0;border-bottom:1px solid #eee9e1}.cp-copy-review>div{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){#cpCopyOptions .cp-copy-heading{align-items:flex-start;flex-direction:column}#cpCopyOptions .cp-copy-toolbar button{min-width:44px;height:44px}html.am-shell body:not(#am-x) #cpModal .cp-rich-copy{font-size:16px}}
html.am-shell body:not(#am-x) #cpModal .cp-form label.cp-original-copy{display:none!important}
html.am-shell body:not(#am-x) #cpModal #cpPreviewBox [data-gallery-main]{max-height:240px!important;width:100%!important;object-fit:contain!important}
html.am-shell body:not(#am-x) #cpModal .cp-form label.cp-original-copy{display:none!important}
html.am-shell body:not(#am-x) #cpModal .cp-save-actions .btn.primary{background:var(--am-ink)!important;color:#fff!important}
html.am-shell body:not(#am-x) #cpModal .cp-manage-actions .btn[hidden]{display:none!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-focused>.cp-review-compact>summary{display:none!important}
@media(max-width:600px){html.am-shell body:not(#am-x) #cpModal .cp-save-actions{justify-content:flex-end!important}html.am-shell body:not(#am-x) #cpModal .cp-actions{gap:10px!important}}

/* One media column keeps video, gallery and review controls beside the copy. */
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media{min-width:0;padding:20px;border-right:1px solid #eee9e2;align-self:start}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media .cp-gallery{min-width:0;padding:0!important;border:0!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media [data-gallery-main]{display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:360px!important;object-fit:contain!important;border-radius:10px}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media .cp-gallery--video-cover>[data-gallery-main]{display:none!important}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media .cp-video{width:100%;margin:0;display:flex;flex-direction:column;gap:8px}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media video{display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:390px!important;object-fit:contain!important;background:#171717;border-radius:10px}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media .cp-video .btn{width:100%;font-size:11px;padding:9px}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-media fieldset{margin:12px 0 0!important;padding:12px!important;min-width:0}
html.am-shell body:not(#am-x) #content .cp-page .cp-review-detail{min-width:0;align-self:start}
@media(max-width:800px){html.am-shell body:not(#am-x) #content .cp-page .cp-review-media{border-right:0;border-bottom:1px solid #eee9e2;width:100%;max-width:100%}html.am-shell body:not(#am-x) #content .cp-page .cp-review-media video{max-height:320px!important}}
