/* Model Content Store – studio and product page */
.ccm-studio { --ccm-accent: var(--wp--preset--color--primary, #c2185b); --ccm-border: rgba(127,127,127,.3); }
.ccm-banner { padding: .8em 1em; border-radius: 8px; margin: 0 0 1em; border: 1px solid var(--ccm-border); }
.ccm-banner-ok { background: #edf7ed; border-color: #b7dfb9; color: #1e4620; }
.ccm-banner-err { background: #fdecea; border-color: #f5b5ae; color: #611a15; }
.ccm-banner-warn { background: #fff4e5; border-color: #ffd699; color: #663c00; }

.ccm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 1.25em; border-bottom: 1px solid var(--ccm-border); }
.ccm-tabs a { padding: .55em .9em; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: inherit; }
.ccm-tabs a.is-active { border-bottom-color: var(--ccm-accent); font-weight: 600; }

.ccm-items { display: grid; gap: 10px; }
.ccm-item { border: 1px solid var(--ccm-border); border-radius: 10px; padding: .9em 1em; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.ccm-item-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ccm-meta, .ccm-hint { font-size: .875em; opacity: .75; }
.ccm-reason { font-size: .875em; color: #611a15; }
.ccm-item-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.ccm-item-actions input[type=number] { width: 6em; }
.ccm-link-danger { color: #b32d2e !important; }

.ccm-status { display: inline-block; align-self: flex-start; font-size: .78em; padding: 2px 10px; border-radius: 999px; background: #eee; color: #444; }
.ccm-status-live { background: #c6e1c6; color: #2c4700; }
.ccm-status-pending { background: #f8dda7; color: #573b00; }
.ccm-status-rejected, .ccm-status-removed { background: #eba3a3; color: #761919; }

.ccm-upload input[type=text], .ccm-upload input[type=number], .ccm-upload textarea { width: 100%; max-width: 520px; box-sizing: border-box; }
.ccm-radio { margin-right: 1em; white-space: nowrap; }
.ccm-consent { border: 1px solid var(--ccm-border); border-radius: 10px; padding: .8em 1em; margin: 1em 0; }
.ccm-consent label { display: block; margin: .4em 0; }

.ccm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: .5em; }
.ccm-stats div { border: 1px solid var(--ccm-border); border-radius: 10px; padding: .8em 1em; display: flex; flex-direction: column; }
.ccm-stats span { font-size: .85em; opacity: .75; }
.ccm-stats strong { font-size: 1.4em; }
.ccm-table { width: 100%; font-size: .9em; }

.ccm-byline { margin: .25em 0 1em; opacity: .85; }
.ccm-report { font-size: .85em; margin-top: 1.5em; }
.ccm-report summary { cursor: pointer; opacity: .75; }
.ccm-report textarea { width: 100%; box-sizing: border-box; }
.ccm-grid-empty { opacity: .75; }

/* My content */
.ccm-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ccm-lib-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.ccm-lib-card img, .ccm-lib-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgba(127,127,127,.15); display: block; }
.ccm-lib-title { font-weight: 600; }

.ccm-viewer { display: grid; gap: 14px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ccm-viewer-photos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ccm-media { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: #000; }
.ccm-viewer-audio .ccm-media { background: transparent; padding: 28px 0 0; }
.ccm-media video, .ccm-media img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; pointer-events: auto; }
.ccm-media img { pointer-events: none; }
.ccm-media audio { width: 100%; }
.ccm-watermark { position: absolute; top: 12%; left: 8%; pointer-events: none; color: rgba(255,255,255,.55); text-shadow: 0 0 3px rgba(0,0,0,.6); font-size: 13px; font-weight: 600; white-space: nowrap; transition: top 1.5s, left 1.5s; z-index: 2; }
.ccm-viewer-audio .ccm-watermark { position: absolute; top: 0 !important; left: 0 !important; color: inherit; text-shadow: none; opacity: .5; }
.ccm-owned .button { width: 100%; text-align: center; }
