/* CCC internal operator hierarchy, November 2026.
   The approved master wordmark is never restyled. These rules address the
   HQ-authenticated operator UI; consumer Template 001 typography is separate. */
body.ccc-operator {
  --ccc-navy:#10213f;
  --ccc-bone:#f3eee3;
  --ccc-ink:#171717;
  --ccc-ox:#6d2630;
  --ccc-line:#d8d0c4;
  color:var(--ccc-ink);
}
body.ccc-operator :is(h1,h2,h3) {
  color:var(--ccc-navy);
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  letter-spacing:-.015em;
  text-wrap:balance;
}
body.ccc-operator h1 {
  font-size:clamp(24px,4vw,32px);
  font-weight:600;
  line-height:1.2;
}
body.ccc-operator h2 {
  font-size:clamp(18px,2.6vw,22px);
  font-weight:600;
  line-height:1.3;
}
body.ccc-operator h3 {
  font-size:17px;
  font-weight:500;
  line-height:1.35;
}
body.ccc-operator .tile h2 {
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  font-size:clamp(14px,3.6vw,18px);
  font-weight:500;
  line-height:1.2;
}
/* Internal titles must never imitate the master slab-serif wordmark. */
body.ccc-operator :is(.ccc-control-text strong,.house-copy strong) {
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  font-weight:600;
  line-height:1.2;
}
body.ccc-operator .ccc-control-text strong {
  font-size:clamp(14px,3.7vw,18px);
}
body.ccc-operator .house-copy strong {font-size:23px}
body.ccc-operator :is(.ccc-control-heading h2,.ccc-ops-head h2,.ccc-release-check h2,.revenue-panel-head h3,.panel-head h2) {
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  font-weight:600;
  line-height:1.25;
  font-size:clamp(18px,2.8vw,23px);
}
body.ccc-operator :is(.item strong,.module-row strong,.draft-row strong) {
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  font-weight:600;
}
body.ccc-operator :is(input,select,textarea) {max-width:100%}
body.ccc-operator :is(button,[role="button"]) {min-height:44px}
body.ccc-operator :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--ccc-ox);
  outline-offset:2px;
}
body.ccc-operator .ccc-workspace-links {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 20px;
}
body.ccc-operator .ccc-workspace-links a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 12px;
  border:1px solid var(--ccc-line);
  border-radius:8px;
  background:white;
  color:var(--ccc-navy);
  font:600 12px/1.3 system-ui,sans-serif;
  text-decoration:none;
}
body.ccc-operator .ccc-workspace-links a[aria-current="page"] {
  border-color:var(--ccc-navy);
  background:var(--ccc-navy);
  color:white;
}
body.ccc-operator .ccc-workspace-links a:hover {border-color:var(--ccc-ox)}
body.ccc-operator .ccc-editorial-filters {align-items:end}
body.ccc-operator .ccc-editorial-filters label {min-width:0;flex:1 1 170px}
body.ccc-operator .ccc-editorial-source-kind {
  display:inline-block;
  font:600 11px/1.4 system-ui,sans-serif;
  color:var(--ccc-ox);
  margin-top:5px;
}
body.ccc-operator .ccc-kind-note {margin:8px 0 16px}
body.ccc-operator .ccc-source-flow [hidden]{display:none!important}
body.ccc-operator .ccc-task-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:0;border-radius:0;background:transparent;color:var(--ccc-navy);font:600 15px/1.4 system-ui,sans-serif;padding:14px 16px;min-height:50px}
body.ccc-operator .ccc-task-list button:hover{background:var(--ccc-bone)}
body.ccc-operator .ccc-source-final{margin-top:20px;border-top:1px solid var(--ccc-line);padding-top:16px}
body.ccc-operator .ccc-media-choice{width:min(360px,calc(100vw - 32px));border:1px solid var(--ccc-line);border-radius:12px;padding:20px;background:var(--ccc-bone);color:var(--ccc-navy)}
body.ccc-operator .ccc-media-choice::backdrop{background:#10213f80}
body.ccc-operator .ccc-media-choice h2{margin:0 0 12px}
body.ccc-operator .ccc-media-choice button{display:block;width:100%;margin-top:8px;min-height:44px}
body.ccc-operator [data-kind-only][hidden] {display:none!important}
@media(max-width:430px){
 body.ccc-operator .ccc-workspace-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ccc-operator .ccc-workspace-links a {justify-content:center;text-align:center}
 body.ccc-operator .ccc-editorial-filters label {flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce) {
 body.ccc-operator * {scroll-behavior:auto!important}
}

body.ccc-operator .ch-shell {display:block}
body.ccc-operator .ch-bottom-nav {margin:0;max-width:none}
@media(max-width:849px) {
  html:has(body.ccc-operator) {scroll-padding-bottom:calc(var(--ch-fixed-navigation-height,calc(80px + env(safe-area-inset-bottom,0px))) + var(--ch-fixed-action-height,0px) + 16px)}
}

body.ccc-operator .ccc-task-groups {
  display:grid;gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));
}
body.ccc-operator .ccc-task-group {min-width:0}
body.ccc-operator .ccc-task-group h2 {margin:0 0 8px}
body.ccc-operator .ccc-task-list {
  list-style:none;margin:0;padding:0;border:1px solid var(--ccc-line);
  border-radius:10px;background:white;overflow:hidden;
}
body.ccc-operator .ccc-task-list li{display:block;min-width:0;width:100%}
body.ccc-operator .ccc-task-list li+li {border-top:1px solid var(--ccc-line)}
body.ccc-operator .ccc-task-list a {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  box-sizing:border-box;width:100%;min-width:0;min-height:50px;padding:9px 14px;text-decoration:none;font-weight:650;color:var(--ccc-navy);
}
body.ccc-operator .ccc-task-list a:focus-visible {outline-offset:-3px}
body.ccc-operator .ccc-task-list a:hover {background:var(--ccc-bone)}
body.ccc-operator .ccc-task-list span {font-size:20px;line-height:1}

body[data-review-editor="true"][data-content-task="editor"] #reviewLists{display:none}
#reviewLists a[aria-current="page"]{background:#10213f;color:#fff;border-color:#10213f}
.review-dialog{width:min(calc(100% - 28px),440px);max-height:calc(100dvh - 32px);overflow:auto;padding:18px;border:1px solid #d8d0c4;border-radius:8px;background:#f3eee3;color:#10213f}
.review-dialog::backdrop{background:rgb(16 33 63 / .58)}
.review-dialog button{min-height:44px;margin:4px;padding:9px 14px;border-radius:5px;border:1px solid #10213f;background:#10213f;color:#fff}
.review-media-dialog,.review-versions-dialog{width:min(calc(100% - 24px),860px)}
.review-media-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}
.review-dialog :is(input,select){width:100%;min-height:44px;font:16px system-ui;padding:8px}
.review-dialog label{display:grid;gap:5px;margin:10px 0}
#reviewAffiliateEditor{padding:14px 0}
#reviewAffiliateRows .panel{display:grid;gap:12px;margin-bottom:10px}
#reviewAffiliateRows label{display:grid;gap:5px}
#reviewMediaEditor button{min-height:44px}

