/* Scoped production review layout. Site navigation and management chrome stay outside. */
body.cs-modern-review.cs-active { padding-right:0 !important; }
body.cs-modern-review .cs-review-workspace { --cs-review-height:580px; color:#29212a; background:#ffffff; font:17px/1.65 "Times New Roman",Times,serif; margin:20px 0 28px; min-width:0; clear:both; }
body.cs-modern-review .cs-review-workspace, body.cs-modern-review .cs-review-workspace * { box-sizing:border-box; }
body.cs-modern-review .cs-review-workspace :is(button,input,textarea,select,summary), body.cs-modern-review .cs-review-workspace #cs-panel { font-family:"Times New Roman", Times, serif; }
body.cs-modern-review .cs-review-workspace :is(h1,h2,h3,h4,h5,h6) { font-family:"Times New Roman", Times, serif; font-weight:400; color:#92278f; }
body.cs-modern-review .cs-review-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 12px; }
body.cs-modern-review .cs-review-workspace .cs-inline-title { font:italic 24px/1.4 "Times New Roman",Times,serif; color:#92278f; margin:0 auto 0 0; }
body.cs-modern-review .cs-review-tools { margin:0 0 16px; border:1px solid #e8e1e8; border-radius:3px; background:#ffffff; }
body.cs-modern-review .cs-review-tools > summary { color:#92278f; padding:8px 12px; cursor:pointer; min-height:44px; }
body.cs-modern-review .cs-review-tools > .cs-head { padding:8px 12px 12px; font-size:16px; max-width:100%; }
body.cs-modern-review .cs-review-tools .cs-head :is(h3,p) { max-width:none; }
body.cs-modern-review .cs-review-panes { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:28px; align-items:start; min-width:0; }
body.cs-modern-review :is(.cs-review-draft-column,.cs-review-comments-column) { min-width:0; position:relative; }
body.cs-modern-review .cs-review-workspace .cs-review-draft,
body.cs-modern-review .cs-review-workspace .cs-review-comments { height:var(--cs-review-height); min-height:64px; overflow:auto; overflow-anchor:none; overscroll-behavior-y:auto; scroll-behavior:auto; scroll-padding-block:12px; -webkit-overflow-scrolling:touch; }
body.cs-modern-review .cs-review-workspace .cs-review-draft { padding:0 12px 0 0; font-size:17px; line-height:1.65; }
body.cs-modern-review .cs-review-draft > .mw-parser-output { margin:0; max-width:none; min-height:0; width:auto; font-family:"Times New Roman", Times, serif; }
body.cs-modern-review .cs-review-draft > .mw-parser-output > :last-child { margin-bottom:0; }
body.cs-modern-review .cs-review-draft :is(.references,.reflist,ol.references,ol.reference,div.reference) { font-size:inherit; line-height:inherit; }
body.cs-modern-review .cs-review-draft sup.reference { font-size:.75em; line-height:0; }
body.cs-modern-review .cs-review-workspace #cs-panel.cs-review-panel { position:static !important; inset:auto !important; width:auto !important; height:auto !important; max-height:none !important; min-height:0; padding:0 !important; margin:0; overflow:visible !important; border:0 !important; border-radius:0; background:#ffffff; box-shadow:none; z-index:auto; font-size:16px; line-height:1.55; }
body.cs-modern-review .cs-review-workspace .cs-review-comments { padding:0; }
body.cs-modern-review .cs-review-workspace .cs-list { display:flex; flex-direction:column; gap:24px; margin:0; padding:0 12px !important; min-height:0; }
body.cs-modern-review .cs-review-workspace .cs-card { flex:0 0 auto; margin:0; padding:16px; border:1px solid #e8e1e8; border-radius:3px; box-shadow:none; background-color:#ffffff; opacity:1; overflow-wrap:anywhere; }
body.cs-modern-review .cs-review-workspace #cs-panel .cs-card.cs-focus { border-color:#92278f; box-shadow:none; }
body.cs-modern-review .cs-review-workspace .cs-quote { margin:0 0 16px; padding:0 0 0 12px; border-left:2px solid #92278f; color:inherit; font-size:15px; max-height:none; overflow:visible; }
body.cs-modern-review .cs-review-workspace .cs-user { color:#92278f; }
body.cs-modern-review .cs-review-workspace :is(.cs-btn,.cs-linkbtn,.cs-mode-btn) { min-height:44px; font-family:"Times New Roman", Times, serif; }
body.cs-modern-review .cs-review-workspace :is(input,textarea,select) { font-family:"Times New Roman", Times, serif; font-size:16px; max-width:100%; }
body.cs-modern-review .cs-review-workspace textarea { min-height:56px; }
body.cs-modern-review .cs-review-workspace .cs-composer { margin:0 0 16px; border-radius:3px; box-shadow:none; max-width:100%; }
body.cs-modern-review .cs-review-workspace .cs-note { max-width:100%; }
body.cs-modern-review .cs-review-workspace :focus-visible { outline:2px solid #92278f; outline-offset:3px; }
body.cs-modern-review .cs-review-workspace :is(.cs-review-draft,.cs-review-comments):focus-visible { outline-offset:-2px; }
body.cs-modern-review .cs-review-workspace .cs-review-tabs { display:none; gap:6px; }
body.cs-modern-review .cs-review-tabs button, body.cs-modern-review .cs-review-rotate { border:1px solid #92278f; border-radius:3px; color:#92278f; background:#ffffff; cursor:pointer; min-height:44px; min-width:44px; padding:8px 12px; font-size:16px; }
body.cs-modern-review .cs-review-tabs button[aria-selected="true"] { border-color:#92278f; background:#ffffff; }
body.cs-modern-review .cs-review-workspace .cs-review-rotate { display:none; padding:8px; }
body.cs-modern-review .cs-review-phone { display:block; width:15px; height:25px; border:1.5px solid currentColor; border-radius:3px; position:relative; transform-origin:center; animation:cs-review-rotate 6s ease-in-out infinite; }
body.cs-modern-review .cs-review-phone::after { content:""; position:absolute; left:4px; right:4px; height:1px; background:currentColor; bottom:3px; }
body.cs-modern-review .cs-review-rotate:is(.is-paused,.is-hidden) .cs-review-phone { animation-play-state:paused; }
body.cs-modern-review :is(#cs-fab,#cs-mobile-prompt,#cs-mobile-review,.cs-mobile-shell,.cs-mobile-open) { display:none !important; }
body.cs-modern-review .cs-review-workspace [hidden] { display:none !important; }
@keyframes cs-review-rotate { 0%,18%,82%,100% { transform:rotate(0); } 38%,62% { transform:rotate(90deg); } }
@media (max-width:760px) {
  body.cs-modern-review .cs-review-workspace { --cs-review-height:520px; margin-block:14px 20px; }
  body.cs-modern-review .cs-review-panes { grid-template-columns:minmax(0,1fr); gap:0; }
  body.cs-modern-review .cs-review-workspace .cs-review-tabs { display:flex; }
  body.cs-modern-review .cs-review-workspace .cs-review-rotate { display:inline-flex; align-items:center; justify-content:center; }
  body.cs-modern-review .cs-review-workspace .cs-review-draft { font-size:17px; padding-right:8px; }
  body.cs-modern-review .cs-review-workspace #cs-panel.cs-review-panel { font-size:18px; }
  body.cs-modern-review .cs-review-workspace .cs-quote { font-size:17px; }
  body.cs-modern-review .cs-review-workspace .cs-list { padding-inline:14px !important; }
}
body.cs-modern-review .cs-review-workspace.demo-landscape { --cs-review-height:390px; }
body.cs-modern-review .cs-review-workspace.demo-landscape .cs-review-panes { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:20px; }
body.cs-modern-review .cs-review-workspace.demo-landscape :is(.cs-review-tabs,.cs-review-rotate) { display:none; }
body.cs-modern-review .cs-review-workspace.demo-viewport-compact :is(.cs-review-draft,.cs-review-comments) { position:relative; transform:translateY(var(--demo-pane-shift,0px)); height:var(--demo-pane-height,260px); min-height:64px; }
body.cs-modern-review .cs-review-workspace.demo-viewport-compact textarea { max-height:max(64px,min(160px,calc(var(--demo-pane-height,260px) - 76px))); resize:vertical; }
@media (prefers-reduced-motion:reduce) {
  body.cs-modern-review .cs-review-phone { animation:none; transform:rotate(90deg); }
}

/* Public demo wheel appearance; scoped to the shared authenticated review. */
body.cs-modern-review .cs-review-workspace .comment-wheel-shell { position: relative; isolation: isolate; --wheel-visible-top: 0px; --wheel-visible-height: 0px; --wheel-rim-phase: 0px; }
body.cs-modern-review .cs-review-workspace .comment-wheel-shell::before, body.cs-modern-review .cs-review-workspace .comment-wheel-shell::after { content: ""; position: absolute; pointer-events: none; z-index: 2; top: var(--wheel-visible-top); height: var(--wheel-visible-height); }
body.cs-modern-review .cs-review-workspace .comment-wheel-shell::before { inset-inline: 0px; border-radius: 50% / 20px; background: linear-gradient(rgba(41, 33, 42, 0.08), rgba(255, 255, 255, 0.18) 3px, transparent min(40px, 14%), transparent max(100% - 40px, 86%), rgba(41, 33, 42, 0.08)); box-shadow: rgba(255, 255, 255, 0.8) 0px 1px 0px inset; }
body.cs-modern-review .cs-review-workspace .comment-wheel-shell::after { right: 2px; width: 9px; max-height: 100%; border-radius: 50%; background-image: linear-gradient(to right, rgba(146, 39, 143, 0.04), rgba(255, 255, 255, 0.75) 35%, rgba(92, 54, 91, 0.24)), repeating-linear-gradient(rgba(146, 39, 143, 0.2) 0px, rgba(146, 39, 143, 0.2) 1px, transparent 1px, transparent 18px); background-size: initial, initial; background-repeat: initial, initial; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; background-color: initial; background-position: 0 0,0 var(--wheel-rim-phase); box-shadow: rgba(255, 255, 255, 0.8) 1px 0px 1px inset, rgba(41, 33, 42, 0.043) -2px 0px 5px; mask-image: linear-gradient(transparent, rgb(0, 0, 0) 12%, rgb(0, 0, 0) 88%, transparent); }
body.cs-modern-review .cs-review-workspace .comment-wheel { overscroll-behavior-y: auto; }
body.cs-modern-review .cs-review-workspace .comment-wheel .thread { --wheel-edge: 0; --wheel-curve: 0; transform: scaleX(calc(1 - var(--wheel-edge)*.024)); transform-origin: center center; opacity: 1; border-radius: calc(3px + var(--wheel-edge)*7px); background-image: linear-gradient(to bottom,rgba(41,33,42,calc((var(--wheel-edge) - var(--wheel-curve))*.04)),transparent min(90px,38%),transparent max(calc(100% - 90px),62%),rgba(41,33,42,calc((var(--wheel-edge) + var(--wheel-curve))*.04))) !important; box-shadow: inset 0 calc(var(--wheel-curve)*-5px) 10px rgba(41,33,42,calc(var(--wheel-edge)*.04)),0 1px 3px rgba(41,33,42,calc(var(--wheel-edge)*.045)) !important; }
body.cs-modern-review .cs-review-workspace .comment-wheel .thread:focus-within { transform: none; opacity: 1; border-radius: 3px; background-image: none !important; box-shadow: none !important; }
body.cs-modern-review .cs-review-workspace .comment-wheel-braking { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  body.cs-modern-review .cs-review-workspace .comment-wheel .thread { transform: none; opacity: 1; border-radius: 3px; background-image: none !important; box-shadow: none !important; }
  body.cs-modern-review .cs-review-workspace .comment-wheel-shell::after { background-position: 0px 0px; }
  body.cs-modern-review .cs-review-workspace .comment-wheel-shell::before { display: none; }
}
@media (forced-colors: active) {
  body.cs-modern-review .cs-review-workspace .comment-wheel-shell::before, body.cs-modern-review .cs-review-workspace .comment-wheel-shell::after { display: none; }
  body.cs-modern-review .cs-review-workspace .comment-wheel .thread { opacity: 1; transform: none; background-image: none !important; box-shadow: none !important; }
}

/* Permission checks decide whether a mode control exists; presentation must not hide it. */
body.cs-modern-review.cs-inline-review .cs-review-tools .cs-mode { display:flex !important; }

/* Contain ordinary article media without shrinking the text. */
body.cs-modern-review .cs-review-draft img { max-width:100%; height:auto; }
body.cs-modern-review .cs-review-draft table { max-width:100%; }
@media (max-width:600px) {
  body.cs-modern-review .cs-review-workspace:not(.demo-landscape) .cs-review-draft .infobox { float:none; width:100%; margin:0 0 1em; }
}

/* Primary review links need a white label on their purple fill. */
body.tilcayo.cs-modern-review .cs-review-workspace a.cs-btn.cs-primary:any-link {
  background-color: #92278f !important;
  color: #ffffff !important;
}

/* Demo card parity, 28 October 2026. Metadata and permission-gated actions remain
   available; comment prose uses reading ink rather than the action colour. */
body.cs-modern-review .cs-review-workspace .cs-review-comments-column { border-left:1px solid #e8e1e8; }
body.cs-modern-review .cs-review-workspace #cs-panel.cs-review-panel { color:#29212a; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-top { gap:6px 8px; margin:0 0 8px; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-avatar { display:none; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-user { color:#92278f; font-size:inherit; font-weight:700; line-height:1.4; }
body.cs-modern-review .cs-review-workspace .cs-card :is(.cs-role,.cs-date,.cs-badge,.cs-meta,.cs-lbl,.cs-imported-label) { color:#6f626f; background:transparent; font-weight:400; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-badge { margin-left:0; padding:0; border-radius:0; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-text { color:#29212a; margin:12px 0 16px; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-reply { border-top:1px solid #e8e1e8; padding-top:12px; margin-top:18px; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-reply .cs-user { font-size:14px; }
body.cs-modern-review .cs-review-workspace .cs-card :is(.cs-note,.cs-removed) { color:#6f626f; }
body.cs-modern-review .cs-review-workspace #cs-panel .cs-card :is(textarea,input,select) { color:#29212a; background:#fff; border:1px solid #e8e1e8; border-radius:3px; padding:8px; }
body.cs-modern-review .cs-review-workspace .cs-card textarea::placeholder { color:#6f626f; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-linkbtn { border:0; background:none; color:#92278f; padding:7px 9px; font-size:13px; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-actions { gap:8px; margin-top:16px; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-btn { min-height:44px; padding:7px 9px; font-size:13px; line-height:1.55; font-weight:400; border:1px solid #e8e1e8; border-radius:3px; color:#92278f; background:#fff; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-btn:is(:hover,[aria-pressed="true"]) { border-color:#92278f; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-btn:is(.cs-primary,.cs-accept) { background:#92278f; border-color:#92278f; color:#fff; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-btn:is(.cs-danger,.cs-reject,.cs-withdraw) { background:#fff; border-color:#e8e1e8; color:#a52a2a; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-btn:disabled { color:#6f626f; background:#fff; border-color:#e8e1e8; cursor:not-allowed; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-sugg ins { color:#146b5c; background:#fff; text-decoration:underline; text-underline-offset:3px; }
body.cs-modern-review .cs-review-workspace .cs-card .cs-sugg del { color:#8b2929; background:#fff; text-decoration:line-through; }
@media(max-width:760px) {
  body.cs-modern-review .cs-review-workspace .cs-review-comments-column { border-left:0; }
  body.cs-modern-review .cs-review-workspace .cs-card .cs-btn { font-size:16px; min-width:44px; }
}
body.cs-modern-review .cs-review-workspace.demo-landscape .cs-review-comments-column { border-left:1px solid #e8e1e8; }

/* EP uses the article and ClientSuggest's real, independently scrollable comments. */
body.cs-modern-review .cs-ep-review {
  --cs-review-height: clamp(380px, 70dvh, 920px);
  color-scheme:light;
  color:#29212a; background:#fff;
}
body.cs-modern-review .cs-ep-review .cs-review-panes {grid-template-columns:minmax(0,1.65fr) minmax(265px,.95fr);gap:clamp(10px,1.8vw,28px)}
body.cs-modern-review .cs-ep-review .cs-review-comments-column {border-left:1px solid #cfbfcc}
body.cs-modern-review .cs-ep-review .ep-wheel-head {position:relative;padding:8px 12px;color:#302931;background:#fbf7fb;border-block:1px solid #c9b7c6}
body.cs-modern-review .cs-ep-review .ep-wheel-head h2 {margin:0;padding:0;border:none;font:bold 1.23rem/1.3 "Times New Roman",Times,serif;color:#3b2038}
body.cs-modern-review .cs-ep-review .ep-wheel-guide {margin:.35em 0;color:#4b3a47;font-size:.94rem;line-height:1.38}
body.cs-modern-review .cs-ep-review .ep-wheel-actions,
body.cs-modern-review .cs-ep-review .ep-wheel-actions .cs-bigbtns {display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0}
body.cs-modern-review .cs-ep-review .ep-wheel-actions button {
  display:inline-flex;align-items:center;width:auto;min-height:36px;padding:4px 9px;
  cursor:pointer;font:1rem/1.25 "Times New Roman",Times,serif;color:#62255d!important;background:#fff!important;border:1px solid #a778a4;border-radius:4px;
}
body.cs-modern-review .cs-ep-review .cs-card.cs-focus {outline:2px solid #7a3774;outline-offset:-2px}
body.cs-modern-review .cs-ep-review .cs-ep-current {box-shadow:inset 3px 0 #92278f}
body.cs-modern-review .cs-ep-review .cs-ep-marker {
  display:inline-flex;position:relative;float:inline-start;align-items:center;justify-content:center;padding:0;width:28px;height:28px;min-height:0;
  margin:0 .42em .12em 0;border:1px solid #7b4877;border-radius:50%;cursor:pointer;background:#fff;color:#6c2c66;vertical-align:baseline;
}
body.cs-modern-review .cs-ep-review .cs-ep-marker::before {content:"";width:13px;height:9px;border:1.5px solid currentColor;border-radius:3px}
body.cs-modern-review .cs-ep-review .cs-ep-marker::after {content:"";position:absolute;left:8px;top:16px;width:4px;height:4px;transform:skew(-25deg) rotate(-22deg);background:white;border-inline-start:1.5px solid currentColor;border-bottom:1.5px solid currentColor}
body.cs-modern-review .cs-ep-review .cs-ep-marker:hover {background:#f4e8f3}
body.cs-modern-review .cs-ep-review .cs-ep-location,body.cs-modern-review .cs-ep-review .cs-ep-history {display:block;font-size:.9rem;margin:.32em 0}
body.cs-modern-review .cs-ep-review .cs-ep-history {color:#71346c}
body.cs-modern-review .cs-ep-review .cs-ep-policy {border:1px solid #a5639f;border-inline-start:4px solid #722f6d;background:#f5eaf4;color:#431a40;padding:.65em .9em}
body.cs-modern-review .cs-ep-review .cs-review-draft,body.cs-modern-review .cs-ep-review .cs-review-comments {overscroll-behavior:contain}
body.cs-modern-review .cs-ep-review .cs-review-comments {height:max(240px,calc(var(--cs-review-height) - var(--ep-wheel-head-height,115px)));max-height:var(--ep-wheel-max-height,none)}
body.cs-modern-review .cs-ep-review .cs-review-comments-column:has(.cs-composer:not(:empty)) .cs-review-comments {height:240px}
body.cs-modern-review .cs-ep-review .cs-card .cs-mobile-jump {display:inline-flex;color:#662c60;background:#fff}
body.cs-modern-review .cs-ep-review .cs-review-tabs,body.cs-modern-review .cs-ep-review .cs-review-rotate {display:none!important}
@media(min-width:701px) and (max-width:1000px){
  body.cs-modern-review .cs-ep-review .cs-review-draft .infobox {float:none;max-width:100%;margin:.7rem 0}
}
@media(max-width:700px){
  body.cs-modern-review .cs-ep-review .cs-review-panes {grid-template-columns:minmax(0,1fr);gap:8px}
  body.cs-modern-review .cs-ep-review .cs-review-comments-column {border-inline:0}
  body.cs-modern-review .cs-ep-review .cs-review-draft {height:clamp(160px,34dvh,390px)}
  body.cs-modern-review .cs-ep-review .cs-review-comments {height:clamp(164px,29dvh,350px)}
  body.cs-modern-review .cs-ep-review .ep-wheel-guide {font-size:.9rem}
  body.cs-modern-review .cs-ep-review .cs-review-draft .infobox {float:none;width:100%}
}
body.cs-modern-review .cs-ep-review .ep-wheel-actions .cs-bigbtns {display:contents}
body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-actions .cs-big {text-decoration:none;border:1px solid #a778a4!important;border-radius:4px!important;padding:4px 9px!important;font-size:1rem!important}
body.cs-modern-review .cs-ep-review .ep-wheel-actions .ep-wheel-sound {margin-inline-start:auto;order:1}

/* Compact controls leave the first discussion visible at tablet widths. */
html body.cs-modern-review .cs-ep-review .cs-review-toolbar {display:none!important}
html body.cs-modern-review .cs-ep-review .cs-review-tools {
  margin:0 0 .45rem;border:0;background:transparent;
}
html body.cs-modern-review .cs-ep-review .cs-review-tools > summary {
  min-height:0;width:max-content;padding:.25em 0;color:#6c3067;font:1rem/1.3 "Times New Roman",Times,serif;
}
html body.cs-modern-review .cs-ep-review .cs-live-status:is([data-state="current"],[data-state="loading"]) {
  position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;
  padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);border:0!important;
}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-head {
  padding:5px 10px 7px;
}
html body.cs-modern-review .cs-ep-review .ep-wheel-title-row {display:flex;align-items:center;justify-content:space-between;gap:6px}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-title-row h2 {font-size:1.12rem;line-height:1.2;margin:0;padding:0}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-head .ep-wheel-guide {font-size:.9rem;line-height:1.23;margin:2px 0 5px}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-actions {margin:0;padding:0;display:flex;gap:4px;flex-wrap:wrap}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-actions .cs-bigbtns {display:contents!important}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-actions .cs-big {width:auto!important;min-width:0!important;min-height:30px!important;flex:none!important;margin:0!important;padding:3px 6px!important;line-height:1.15!important;font-size:.94rem!important;border-radius:3px!important}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-title-row .ep-wheel-sound {
  display:inline-flex;align-items:center;justify-content:center;position:relative;width:32px!important;height:32px!important;
  min-width:32px!important;min-height:32px!important;padding:0!important;margin:0!important;
  font-size:0!important;background:white!important;color:#70346b!important;border:1px solid #be9db9!important;border-radius:4px!important;cursor:pointer;
}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-sound::before {
  content:"";width:18px;height:18px;background:currentColor;border:0;border-radius:0;
  mask:url(volume-4a95eb10.png) center/contain no-repeat;
}
html body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-sound[aria-pressed="false"]::after {position:absolute;content:"";background:currentColor;width:20px;height:2px;transform:rotate(-45deg);box-shadow:0 -1px white}
/* Use the native element state. MediaWiki's CSS compressor may canonicalise
   whitespace in attribute selectors; matching a serialised style is unreliable. */
html body.cs-inline-review.cs-modern-review #cs-bubble.cs-ui.cs-ep-bubble:not([hidden]) {display:flex!important;flex-wrap:wrap;max-width:calc(100vw - 16px)}
html body.cs-inline-review.cs-modern-review #cs-bubble.cs-ui.cs-ep-bubble[hidden] {display:none!important}
@media(min-width:701px) {html body.cs-modern-review .cs-ep-review {--cs-review-height:clamp(420px,77dvh,980px)}}

/* Keep the selected words identifiable without inserting spans into the editor. */
::highlight(cs-current-passage) {
  background-color: var(--cg-selected,rgba(146,39,143,.18));
  text-decoration: underline solid currentColor;
}
.cs-passage-choices {
  position:fixed; z-index:1100; display:grid; padding:.25rem; gap:.125rem;
  width:max-content; max-width:min(22rem,calc(100vw - 12px)); max-height:min(24rem,65dvh); overflow:auto;
  font:1rem/1.35 "Times New Roman",Times,serif; background:var(--qe-raised,Canvas); color:var(--qe-text,CanvasText);
  border:1px solid var(--qe-control,currentColor); border-radius:.5rem; box-shadow:0 .3rem .7rem #0003;
}
.cs-passage-choices button {background:transparent;color:inherit;border:0;padding:.4rem .65rem;text-align:start;font:inherit;cursor:pointer}
.cs-passage-choices button:is(:hover,:focus-visible) {background:var(--qe-surface,Canvas);outline:1px solid currentColor;outline-offset:-1px}
.cs-passage-choices button span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:normal}
body.cs-modern-review .cs-ep-review .cs-ep-marker[data-cs-id] {float:none;vertical-align:middle;width:auto;min-width:36px;height:24px;border-radius:1em;padding:0 .32em;gap:3px;margin-inline:.16em}
body.cs-modern-review .cs-ep-review .cs-ep-marker[data-cs-id]::after {content:attr(data-cs-id);position:static;border:0;background:transparent;transform:none;width:auto;height:auto;font:700 .85rem/1 "Times New Roman",Times,serif}
.cs-ep-review .cs-ep-marker[aria-current="true"] {outline:2px solid currentColor;outline-offset:1px}
.cs-ep-review .cs-thread-number {font-weight:700;font-variant-numeric:tabular-nums}
.cs-wheel-options {padding:.4rem .55rem;overflow-wrap:anywhere}
.cs-wheel-options pre {white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.cs-wheel-options label {display:grid;gap:.2rem}
.cs-wheel-options :is(select,textarea) {max-width:100%;width:100%;box-sizing:border-box}

html body #cs-bubble.cs-library-actions .wn-librarian-book-trigger,
html body .wn-comment-toolbar .wn-librarian-book-trigger {
  display:inline-flex!important;align-items:center;justify-content:flex-start;
  font-size:1rem!important;line-height:1.25!important;gap:.45rem;
  width:auto!important;max-width:none!important;height:auto;overflow:visible;
}
html body #cs-bubble.cs-library-actions .cs-comment-icon, html body .wn-comment-toolbar .cs-comment-icon {
  display:inline-flex;align-items:center;gap:.45rem;min-height:44px;
}
html body #cs-bubble.cs-library-actions .cs-comment-icon::before, html body .wn-comment-toolbar .cs-comment-icon::before,
.cs-ep-review .cs-big-comment::before,body.cs-modern-review .cs-ep-review .cs-ep-marker::before {
  content:"";display:inline-block; flex:0 0 1.2em;width:1.2em;height:1.2em;
  background:currentColor;border:0;border-radius:0;
  mask:url(conversation-chat-text-7509cd66.png) center/contain no-repeat;
}

@layer wn-draft-instruction {
  html body p.cs-draft-editing-instruction {
    font-family: "TeX Gyre Pagella", serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
  }
  @media (forced-colors: none) {
    html[data-wn-theme="dark"] body p.cs-draft-editing-instruction { color: #F2C2ED !important; }
    html[data-wn-theme="light"] body p.cs-draft-editing-instruction { color: #842780 !important; }
  }
}

/* Cartograph tokens are scoped to the private pilot and inherit Studio's theme. */
:is(#cartograph, #cg-workbench) {
	--cg-purple: #92278f;
	--cg-border: color-mix(in srgb, currentColor 23%, transparent);
	--cg-surface: color-mix(in srgb, Canvas 94%, #92278f 6%);
	--cg-baseline: rgba(35, 134, 238, .07);
	--cg-client-add: rgba(37, 178, 154, .15);
	--cg-james-add: rgba(0, 92, 55, .18);
	--cg-client-remove: rgba(237, 28, 36, .13);
	--cg-james-remove: rgba(143, 24, 43, .2);
	--cg-selected: rgba(146, 39, 143, .13);
	font-family: var(--wn-pagella-face, "TeX Gyre Pagella", serif);
	line-height: 1.6;
	min-width: 0;
	color: inherit;
}
:is(#cartograph, #cg-workbench) *, :is(#cartograph, #cg-workbench) button, :is(#cartograph, #cg-workbench) select, :is(#cartograph, #cg-workbench) textarea { box-sizing: border-box; font-family: var(--wn-pagella-face, "TeX Gyre Pagella", serif); }
:is(#cartograph, #cg-workbench) > header { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .25rem .8rem; align-items: start; padding-bottom: 1rem; }
:is(#cartograph, #cg-workbench) > header > :not(.cg-map) { grid-column: 2; margin-top: 0; overflow-wrap: anywhere; }
:is(#cartograph, #cg-workbench) > header .cg-map { grid-column: 1; grid-row: 1 / span 4; color: var(--cg-purple); width: 2.4rem; height: 2.4rem; }
:is(#cartograph, #cg-workbench) .cg-map svg { width: 100%; height: 100%; display: block; }
:is(#cartograph, #cg-workbench) #cg-controls { padding: .85rem; border: 1px solid var(--cg-border); border-radius: .65rem; margin-bottom: .7rem; background: var(--cg-surface); }
:is(#cartograph, #cg-workbench) .cg-toolbar, :is(#cartograph, #cg-workbench) .cg-filters, :is(#cartograph, #cg-workbench) .cg-check, :is(#cartograph, #cg-workbench) .cg-actions, :is(#cartograph, #cg-workbench) .cg-source-uses { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
:is(#cartograph, #cg-workbench) .cg-filters, :is(#cartograph, #cg-workbench) .cg-check { margin-top: .65rem; }
:is(#cartograph, #cg-workbench) .cg-check { font-size: .92em; }
:is(#cartograph, #cg-workbench) .cg-button, :is(#cartograph, #cg-workbench) .cg-select {
	font-size: .95rem; line-height: 1.3; padding: .5rem .7rem; min-height: 2.6rem;
	border: 1px solid var(--cg-border); border-radius: .4rem; background: Canvas; color: CanvasText; cursor: pointer;
}
:is(#cartograph, #cg-workbench) .cg-button:hover, :is(#cartograph, #cg-workbench) .cg-button:focus-visible { border-color: var(--cg-purple); background: var(--cg-selected); }
:is(#cartograph, #cg-workbench) .cg-button:disabled { opacity: .55; cursor: progress; }
:is(#cartograph, #cg-workbench) .cg-primary { color: #fff; background: #772174; border-color: #772174; }
:is(#cartograph, #cg-workbench) .cg-primary:hover, :is(#cartograph, #cg-workbench) .cg-primary:focus-visible { color: #fff; background: #92278f; }
:is(#cartograph, #cg-workbench) .cg-select-label { display: flex; align-items: center; gap: .4rem; font-size: .92rem; }
:is(#cartograph, #cg-workbench) .cg-count { margin-left: auto; font-size: .9rem; }
:is(#cartograph, #cg-workbench) .cg-hint, :is(#cartograph, #cg-workbench) .cg-provenance, :is(#cartograph, #cg-workbench) .cg-draft-status { font-size: .9rem; margin: .6rem 0 0; line-height: 1.4; opacity: .85; }
:is(#cartograph, #cg-workbench) .cg-pending, :is(#cartograph, #cg-workbench) .cg-attention, :is(#cartograph, #cg-workbench) .cg-source-needed { border-left: 3px solid #b88112; padding: .35rem .6rem; background: rgba(255, 195, 51, .08); }
:is(#cartograph, #cg-workbench) .cg-reading-notice, :is(#cartograph, #cg-workbench) .cg-simulation-label { padding: .65rem .8rem; border: 1px solid var(--cg-purple); border-radius: .35rem; background: var(--cg-selected); }
:is(#cartograph, #cg-workbench) #cg-status { min-height: 1.6rem; font-size: .94rem; padding: .35rem .2rem; }
:is(#cartograph, #cg-workbench) #cg-status.cg-error { color: inherit; border-left: 3px solid #d83f50; background: rgba(237, 28, 36, .08); padding-left: .7rem; }
:is(#cartograph, #cg-workbench) #cg-details:empty { display: none; }
:is(#cartograph, #cg-workbench) #cg-details { border: 1px solid var(--cg-border); border-radius: .65rem; padding: 1rem; margin: .7rem 0 1.2rem; background: var(--cg-surface); max-height: 38rem; overflow-y: auto; overscroll-behavior: contain; }
:is(#cartograph, #cg-workbench) .cg-details-head { display: flex; align-items: start; justify-content: space-between; gap: .7rem; }
:is(#cartograph, #cg-workbench) .cg-details-head h3 { margin: .2rem 0 .7rem; border: 0; padding: 0; font-size: 1.18rem; }
:is(#cartograph, #cg-workbench) #cg-details h4 { font-size: 1rem; margin: .8rem 0 .3rem; }
:is(#cartograph, #cg-workbench) .cg-wording { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; border: 1px solid var(--cg-border); border-radius: .35rem; background: Canvas; color: CanvasText; padding: .7rem; margin: .35rem 0 .65rem; font-size: .95rem; max-height: 13rem; overflow: auto; }
:is(#cartograph, #cg-workbench) .cg-original { background: var(--cg-baseline); }
:is(#cartograph, #cg-workbench) .cg-alternative, :is(#cartograph, #cg-workbench) .cg-scenario { border-top: 1px solid var(--cg-border); margin-top: .7rem; padding-top: .7rem; }
:is(#cartograph, #cg-workbench) .cg-alternative > strong { display: block; margin-bottom: .35rem; }
:is(#cartograph, #cg-workbench) .cg-source { border-bottom: 1px solid var(--cg-border); padding: .65rem 0; }
:is(#cartograph, #cg-workbench) .cg-source summary { cursor: pointer; font-weight: bold; }
:is(#cartograph, #cg-workbench) .cg-field { display: block; margin: .7rem 0; }
:is(#cartograph, #cg-workbench) .cg-field > span { display: block; font-size: .98rem; font-weight: bold; margin-bottom: .25rem; }
:is(#cartograph, #cg-workbench) .cg-textarea, :is(#cartograph, #cg-workbench) .cg-source-picker { width: 100%; border: 1px solid var(--cg-border); border-radius: .35rem; padding: .6rem; font-size: 1rem; line-height: 1.45; background: Canvas; color: CanvasText; }
:is(#cartograph, #cg-workbench) .cg-textarea { resize: vertical; min-height: 5rem; }
:is(#cartograph, #cg-workbench) .cg-textarea:disabled { opacity: .6; }
:is(#cartograph, #cg-workbench) .cg-export { min-height: 15rem; }
:is(#cartograph, #cg-workbench) .cg-original-context summary { cursor: pointer; }
:is(#cartograph, #cg-workbench) #ep-plan-article { min-width: 0; overflow-wrap: anywhere; }
/* Keep native thumbnail frames and captions paired with Studio's colour scheme. */
@media screen {
 html[data-wn-theme="dark"] :is(#cartograph, #cg-workbench) #ep-plan-article :is(figure[typeof~="mw:File/Thumb"], figure[typeof~="mw:File/Frame"], .thumbinner) {
  background-color: var(--wn-surface, Canvas); color: var(--wn-text, CanvasText); border-color: var(--cg-border);
 }
 html[data-wn-theme="dark"] :is(#cartograph, #cg-workbench) #ep-plan-article :is(figure[typeof~="mw:File/Thumb"], figure[typeof~="mw:File/Frame"]) > figcaption,
 html[data-wn-theme="dark"] :is(#cartograph, #cg-workbench) #ep-plan-article .thumbinner > .thumbcaption {
  background-color: inherit; color: inherit; border-color: var(--cg-border);
 }
}
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-passage] { border-radius: .2rem; scroll-margin-top: 5rem; position: relative; }
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-passage]:focus-visible { outline: 2px solid var(--cg-purple); outline-offset: 3px; }
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-proposal] { scroll-margin-top: 5rem; border-radius: .2rem; transition: background-color .15s ease; }
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-proposal].cg-filter-muted { opacity: .52; }
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-proposal].cg-selected, :is(#cartograph, #cg-workbench) #ep-plan-article .cs-ep-current { outline: 2px solid var(--cg-purple); outline-offset: 3px; box-shadow: 0 0 0 5px var(--cg-selected); opacity: 1; }
:is(#cartograph, #cg-workbench) .cg-label, :is(#cartograph, #cg-workbench) .cg-proposal-label { font-size: .78rem; font-weight: bold; display: inline-block; border: 1px solid var(--cg-border); border-radius: .25rem; padding: .06rem .3rem; margin-right: .35rem; background: Canvas; color: CanvasText; }
:is(#cartograph, #cg-workbench) ins, :is(#cartograph, #cg-workbench) .cg-add { background: var(--cg-client-add); color: inherit; text-decoration: none; }
:is(#cartograph, #cg-workbench) [data-cg-role="james"] ins, :is(#cartograph, #cg-workbench) .cg-james-add { background: var(--cg-james-add); }
:is(#cartograph, #cg-workbench) del, :is(#cartograph, #cg-workbench) .cg-remove { background: var(--cg-client-remove); color: inherit; text-decoration: line-through; }
:is(#cartograph, #cg-workbench) [data-cg-role="james"] del, :is(#cartograph, #cg-workbench) .cg-james-remove { background: var(--cg-james-remove); }
:is(#cartograph, #cg-workbench) .cg-preview [data-cg-passage] { background: transparent; }
:is(#cartograph, #cg-workbench) .cg-preview [data-cg-passage]:focus { outline: none; }
:is(#cartograph, #cg-workbench) .cg-exclusions { margin-top: .4rem; font-size: .9rem; }
:is(#cartograph, #cg-workbench) :focus-visible { outline: 2px solid var(--cg-purple); outline-offset: 3px; }
:is(#cartograph, #cg-workbench) .cg-provenance { overflow-wrap: anywhere; }
html.skin-theme-clientpref-night :is(#cartograph, #cg-workbench), [data-theme="dark"] :is(#cartograph, #cg-workbench), [data-appearance="dark"] :is(#cartograph, #cg-workbench) {
	--cg-purple: #d686d3; --cg-baseline: rgba(60, 146, 255, .10); --cg-client-add: rgba(37, 178, 154, .21); --cg-james-add: rgba(16, 134, 82, .26); --cg-client-remove: rgba(237, 70, 76, .18); --cg-james-remove: rgba(177, 42, 66, .28); --cg-selected: rgba(203, 107, 197, .14);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os :is(#cartograph, #cg-workbench) { color-scheme: dark; --cg-purple: #d686d3; --cg-baseline: rgba(60, 146, 255, .10); --cg-selected: rgba(203, 107, 197, .14); }
}
@media (max-width: 720px) {
	:is(#cartograph, #cg-workbench) #cg-controls { padding: .65rem; }
	:is(#cartograph, #cg-workbench) .cg-toolbar .cg-button { flex: 1 1 45%; }
	:is(#cartograph, #cg-workbench) .cg-count { margin-left: 0; flex-basis: 100%; }
	:is(#cartograph, #cg-workbench) .cg-select-label { flex: 1 1 45%; flex-wrap: wrap; }
	:is(#cartograph, #cg-workbench) .cg-select-label select { max-width: 100%; width: 100%; }
	:is(#cartograph, #cg-workbench) #cg-details { max-height: 70vh; padding: .75rem; }
	:is(#cartograph, #cg-workbench) .cg-details-head { flex-wrap: wrap; }
	:is(#cartograph, #cg-workbench) .cg-button { min-height: 2.75rem; }
	:is(#cartograph, #cg-workbench) #ep-plan-article table { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	:is(#cartograph, #cg-workbench) *, :is(#cartograph, #cg-workbench) *::before, :is(#cartograph, #cg-workbench) *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

:is(#cartograph, #cg-workbench) .cg-james .cg-add { background: var(--cg-james-add); }
:is(#cartograph, #cg-workbench) .cg-james .cg-remove { background: var(--cg-james-remove); }
:is(#cartograph, #cg-workbench) .cg-validation-errors { margin-top: .6rem; border-left: 3px solid #b88112; padding: .35rem .6rem; }
:is(#cartograph, #cg-workbench) .cg-validation-errors summary { cursor: pointer; font-weight: bold; }
:is(#cartograph, #cg-workbench) .cg-native-source { display: inline-block; margin: .2rem 0 .6rem; }

:is(#cartograph, #cg-workbench) .cg-review-response { padding: .75rem; margin: .6rem 0; border: 1px solid var(--cg-border); border-left: 3px solid var(--cg-purple); border-radius: .35rem; background: Canvas; color: CanvasText; }
:is(#cartograph, #cg-workbench) .cg-generated-comment { white-space: pre-wrap; line-height: 1.55; }
:is(#cartograph, #cg-workbench) .cg-review-context { font-weight: bold; }
:is(#cartograph, #cg-workbench) .cg-historical-focus { margin: .35rem 0 .6rem; }
:is(#cartograph, #cg-workbench) .cg-historical-focus summary { cursor: pointer; }

:is(#cartograph, #cg-workbench) .cg-comparison { margin: 1.3rem 0; border-left: 3px solid var(--cg-purple); padding: .3rem .8rem; clear: both; }
:is(#cartograph, #cg-workbench) .cg-comparison-label { font-weight: bold; font-size: .85rem; margin: .7rem 0 .25rem; color: var(--cg-purple); }
:is(#cartograph, #cg-workbench) .cg-comparison :is(.cg-original, .cg-proposed) { padding: .4rem .6rem; background: transparent; }
/* New and deleted words remain legible in the tracked article itself. */
:is(#cartograph, #cg-workbench) .cg-inline-add { white-space: pre-wrap; }
:is(#cartograph, #cg-workbench) .cg-inline-removed { padding: .4rem .6rem; }
:is(#cartograph, #cg-workbench) .cg-remove.cg-inline-removed {
    background-color: rgba(180, 40, 66, .09) !important;
}
:is(#cartograph, #cg-workbench) .cg-comparison pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
:is(#cartograph, #cg-workbench) .cg-comparison .cg-original p:last-child, :is(#cartograph, #cg-workbench) .cg-comparison .cg-proposed p:last-child { margin-bottom: .3rem; }

:is(#cartograph, #cg-workbench) .cg-verification-note { border-left: 3px solid #ffc333; padding: .5rem .8rem; background: rgba(255,195,51,.12); font-weight: bold; }

/* Cartograph editing controls are siblings of the native scrolling panes. */
body.cs-modern-review .cs-review-workspace.cg-docked-workspace #cg-workbench {
 position: sticky; top: .25rem; z-index: 6; background: Canvas; color: CanvasText;
 border-bottom: 1px solid var(--cg-border); padding: .25rem 0 .5rem; margin-bottom: .65rem;
}
#cg-workbench #cg-controls { margin-bottom: .2rem; padding: .55rem .7rem; }
#cg-workbench #cg-status { padding-block: .15rem; }
#cg-workbench #cg-details { max-height: min(35dvh, 24rem); margin: .35rem 0 0; padding: .65rem .8rem; }
#cg-workbench .cg-details-head { position: sticky; top: -.65rem; z-index: 1; background: Canvas; padding: .2rem 0; }
#cg-workbench .cg-decision-actions { margin: .35rem 0 .7rem; }
#cg-workbench .cg-proposal-status { margin: .25rem 0; }
@media (max-width: 720px) {
 body.cs-modern-review .cs-review-workspace.cg-docked-workspace #cg-workbench { position: relative; top: auto; }
 #cg-workbench #cg-details { max-height: 48dvh; }
}

/* Action shading never encodes approval. Text/strikethrough and named labels
   carry the same meaning in monochrome, forced colours and both Studio themes. */
:is(#cartograph, #cg-workbench) .cg-private-notice { font-size: .92rem; margin: 0 0 .45rem; font-weight: bold; }
:is(#cartograph, #cg-workbench) .cg-progress { font-size: .88rem; margin: .45rem 0 0; }
:is(#cartograph, #cg-workbench) .cg-live-context { border-left: 3px solid #387ac0; padding: .35rem .6rem; background: var(--cg-baseline); }
:is(#cartograph, #cg-workbench) .cg-tools-menu { position: relative; }
:is(#cartograph, #cg-workbench) .cg-tools-menu > summary { list-style-position: inside; cursor: pointer; min-height: 2.6rem; padding: .5rem .7rem; border: 1px solid var(--cg-border); border-radius: .4rem; line-height: 1.3; }
:is(#cartograph, #cg-workbench) .cg-tools-body { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
:is(#cartograph, #cg-workbench) .cg-tools-menu[open] { flex-basis: 100%; }
:is(#cartograph, #cg-workbench) .cg-version-history,
:is(#cartograph, #cg-workbench) .cg-options,
:is(#cartograph, #cg-workbench) .cg-position-recovery,
:is(#cartograph, #cg-workbench) .cg-insertion-order,
:is(#cartograph, #cg-workbench) .cg-verification,
:is(#cartograph, #cg-workbench) .cg-handover-diff { margin-top: .7rem; border-top: 1px solid var(--cg-border); padding-top: .55rem; }
:is(#cartograph, #cg-workbench) summary { cursor: pointer; overflow-wrap: anywhere; }
:is(#cartograph, #cg-workbench) .cg-version { padding: .4rem 0; }
:is(#cartograph, #cg-workbench) .cg-dependencies { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; }
:is(#cartograph, #cg-workbench) .cg-source-search { width: 100%; max-width: 38rem; min-height: 2.75rem; font: inherit; padding: .5rem .6rem; border: 1px solid var(--cg-border); border-radius: .35rem; background: Canvas; color: CanvasText; }
:is(#cartograph, #cg-workbench) .cg-field select { max-width: 100%; }
:is(#cartograph, #cg-workbench) .cg-history-list { padding-left: 1.4rem; }
:is(#cartograph, #cg-workbench) .cg-history-list li { margin: .45rem 0; }
:is(#cartograph, #cg-workbench) .cg-handover-choice { display: flex; align-items: start; gap: .6rem; padding: .55rem 0; cursor: pointer; }
:is(#cartograph, #cg-workbench) .cg-handover-choice input { flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--cg-purple); }
:is(#cartograph, #cg-workbench) .cg-mobile-navigation { display: none; }
:is(#cartograph, #cg-workbench) #ep-plan-article .infobox { max-width: 100%; }
:is(#cartograph, #cg-workbench) #ep-plan-article .infobox th { word-break: normal; overflow-wrap: normal; }
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-proposal].cg-filter-muted { opacity: 1; background-image: repeating-linear-gradient(135deg,transparent,transparent 6px,var(--cg-border) 7px,transparent 8px); }
:is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-proposal].cg-filter-muted .cg-label { font-weight: normal; }
body.cs-modern-review .cg-docked-workspace .cs-card.cs-focus { border-color: #92278f; box-shadow: 0 0 0 3px rgba(146,39,143,.12); }
@media (max-width: 720px) {
 :is(#cartograph, #cg-workbench) .cg-mobile-navigation { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
 :is(#cartograph, #cg-workbench) .cg-mobile-navigation button { flex: 1 1 45%; }
 :is(#cartograph, #cg-workbench) .cg-mobile-navigation [aria-pressed="true"] { border-width: 2px; font-weight: bold; }
 :is(#cartograph, #cg-workbench) .cg-toolbar .cg-button { flex-basis: calc(50% - .5rem); }
 :is(#cartograph, #cg-workbench) .cg-toolbar .cg-tools-menu { flex: 1 1 calc(50% - .5rem); }
 :is(#cartograph, #cg-workbench) .cg-tools-menu[open] { flex-basis: 100%; }
 body.cs-modern-review .cs-review-workspace.cg-docked-workspace .cs-review-panes { display: block; }
 body.cs-modern-review .cg-docked-workspace[data-cg-pane="article"] .cs-review-comments-column,
 body.cs-modern-review .cg-docked-workspace[data-cg-pane="comments"] .cs-review-draft-column { display: none !important; }
 body.cs-modern-review .cg-docked-workspace .cs-review-draft,
 body.cs-modern-review .cg-docked-workspace .cs-review-comments { width: 100%; max-width: 100%; height: min(68dvh, 48rem); padding-inline: .2rem; }
 body.cs-modern-review .cg-docked-workspace .cs-review-panes table { max-width: 100%; }
 :is(#cartograph, #cg-workbench) #ep-plan-article .infobox { float: none; width: 100%; margin: .6rem 0; }
 :is(#cartograph, #cg-workbench) #ep-plan-article table:not(.infobox) { display: block; overflow-x: auto; }
 :is(#cartograph, #cg-workbench) .cg-count { font-size: .85rem; }
 :is(#cartograph, #cg-workbench) .cg-check { gap: .35rem; line-height: 1.35; }
 :is(#cartograph, #cg-workbench) .cg-hint { font-size: .88rem; }
}
@media (forced-colors: active) {
 :is(#cartograph, #cg-workbench) #ep-plan-article [data-cg-proposal] { border-left: 2px solid CanvasText; padding-left: .3rem; }
 :is(#cartograph, #cg-workbench) ins { text-decoration: underline; }
 :is(#cartograph, #cg-workbench) del { text-decoration: line-through; }
 :is(#cartograph, #cg-workbench) :focus-visible { outline: 3px solid Highlight; }
}
:is(#cartograph, #cg-workbench) .cg-overview { margin-top: .45rem; }
:is(#cartograph, #cg-workbench) .cg-overview > summary { font-size: .9rem; padding: .25rem 0; }
:is(#cartograph, #cg-workbench) .cg-overview > summary { cursor: pointer; }
:is(#cartograph, #cg-workbench) .cg-overview > summary:focus-visible { outline: 2px solid var(--cg-purple); outline-offset: 3px; }
:is(#cartograph, #cg-workbench) .cg-overview[open] { border-top: 1px solid var(--cg-border); padding-top: .25rem; }
:is(#cartograph, #cg-workbench) .cg-compact-status { display: flex; flex-wrap: wrap; align-items: center; column-gap: .8rem; row-gap: .15rem; margin-top: .45rem; font-size: .88rem; line-height: 1.4; }
:is(#cartograph, #cg-workbench) .cg-compact-status .cg-private-notice { margin: 0; }
:is(#cartograph, #cg-workbench) .cg-compact-status .cg-review-progress { margin: 0 0 0 auto; font-size: .88rem; }
@media (max-width: 720px) {
 :is(#cartograph, #cg-workbench) .cg-compact-status .cg-review-progress { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 720px) {
 :is(#cartograph, #cg-workbench) .cg-overview { margin-bottom: .4rem; }
 :is(#cartograph, #cg-workbench) .cg-private-notice { font-size: .88rem; }
}
/* The product identity remains above the live controls, outside native Plan tools. */
#cg-workbench > .cg-product-header { grid-template-columns: 2rem minmax(0,1fr); gap: .1rem .65rem; padding: .35rem .35rem .55rem; }
#cg-workbench > .cg-product-header :is(h1,h2,h3) { font-size: 1.5rem; line-height: 1.2; margin: 0; padding: 0; border: 0; }
#cg-workbench > .cg-product-header p { font-size: .9rem; line-height: 1.35; margin: .12rem 0 0; }
#cg-workbench > .cg-product-header .cg-map { width: 2rem; height: 2rem; }
/* Studio's own appearance switch is independent of MediaWiki's skin preference. */
html[data-wn-theme="dark"] :is(#cartograph, #cg-workbench) {
 color-scheme: dark; --cg-purple: #d686d3; --cg-baseline: rgba(60,146,255,.10);
 --cg-client-add: rgba(37,178,154,.21); --cg-james-add: rgba(16,134,82,.26);
 --cg-client-remove: rgba(237,70,76,.18); --cg-james-remove: rgba(177,42,66,.28); --cg-selected: rgba(203,107,197,.14);
}
html[data-wn-theme="light"] :is(#cartograph, #cg-workbench) { color-scheme: light; }
html[data-wn-theme="dark"] body.wn-edit-plan:has(#cartograph) :is(aside.csup-opnotice, section.wn-presence) {
 color-scheme: dark; background: Canvas !important; color: CanvasText !important; border-color: #59515c !important;
}
html[data-wn-theme="dark"] body.wn-edit-plan:has(#cartograph) :is(aside.csup-opnotice, section.wn-presence) :is(h2,h3,h4,p,span,strong,small) { color: inherit; }
html[data-wn-theme="dark"] body.wn-edit-plan:has(#cartograph) :is(aside.csup-opnotice, section.wn-presence) a { color: #e0a5dd; }
/* Editorial review is distinct from the bounded automatic style scan. */
:is(#cartograph, #cg-workbench) .cg-editorial-review { border: 1px solid var(--cg-border); border-left: 4px solid var(--cg-purple); border-radius: .35rem; padding: .65rem .8rem; margin: .6rem 0; }
:is(#cartograph, #cg-workbench) .cg-editorial-review[data-review-status="passed"] { border-left-color: #25b29a; }
:is(#cartograph, #cg-workbench) .cg-editorial-review[data-review-status="blocked"] { border-left-color: #ed1f5b; }
:is(#cartograph, #cg-workbench) .cg-review-status { font-weight: bold; margin: .35rem 0; }
:is(#cartograph, #cg-workbench) .cg-review-progress { margin: .4rem 0; }
:is(#cartograph, #cg-workbench) .cg-review-progress .cg-button { padding: .2rem .5rem; min-height: 2rem; }
:is(#cartograph, #cg-workbench) .cg-review-reasons { margin: .45rem 0; padding-left: 1.3rem; }
:is(#cartograph, #cg-workbench) .cg-review-reasons li { margin: .25rem 0; }
:is(#cartograph, #cg-workbench) :is(.cg-review-record, .cg-review-copy, .cg-limited-checks) { padding: .5rem 0; border-top: 1px solid var(--cg-border); margin: .5rem 0; }
:is(#cartograph, #cg-workbench) .cg-review-rendered { margin: .7rem 0; padding: .8rem; border: 1px solid var(--cg-border); border-radius: .3rem; background: Canvas; color: CanvasText; max-height: 42rem; overflow: auto; overflow-wrap: anywhere; }
:is(#cartograph, #cg-workbench) .cg-review-rendered :is(pre,table,.infobox) { max-width: 100%; }
:is(#cartograph, #cg-workbench) .cg-review-rendered pre { white-space: pre-wrap; }
:is(#cartograph, #cg-workbench) .cg-review-form { margin-top: .8rem; }
:is(#cartograph, #cg-workbench) :is(.cg-review-rule, .cg-review-finding, .cg-review-warning) { border: 1px solid var(--cg-border); border-radius: .35rem; padding: .65rem .8rem; margin: .8rem 0; min-width: 0; }
:is(#cartograph, #cg-workbench) :is(.cg-review-rule, .cg-review-finding, .cg-review-warning) legend { font-weight: bold; padding: 0 .3rem; max-width: 100%; }
:is(#cartograph, #cg-workbench) .cg-review-confirmation { display: flex; align-items: start; gap: .55rem; margin: .65rem 0; cursor: pointer; }
:is(#cartograph, #cg-workbench) .cg-review-confirmation input { flex: 0 0 auto; margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--cg-purple); }
:is(#cartograph, #cg-workbench) .cg-style-proposal { margin: .6rem 0; padding-top: .5rem; border-top: 1px solid var(--cg-border); }
@media (max-width: 720px) {
 :is(#cartograph, #cg-workbench) :is(.cg-editorial-review, .cg-review-rule, .cg-review-finding, .cg-review-warning) { padding: .5rem; }
 :is(#cartograph, #cg-workbench) .cg-review-rendered { padding: .5rem; max-height: 55dvh; }
 :is(#cartograph, #cg-workbench) .cg-review-rendered .infobox { float: none; width: 100%; }
}

.cg-suggest-instruction { margin: 0; }
#cartograph .cg-suggesting [data-cg-passage] p { cursor: text; }
#cartograph .cg-suggesting .wnie-add { background: var(--cg-client-add); color: inherit; }
#cartograph .cg-suggesting :is(.wnie-remove, .cg-whole-remove) {
	background: var(--cg-client-remove);
	color: inherit;
	text-decoration: line-through;
	text-decoration-color: #b42318;
}
#cs-bubble.cs-ep-bubble.cs-caret-comment > button:not(.cs-b-comment) { display: none !important; }
body:has(#cartograph) .cs-composer:has([data-cs-plan-comment]) .cs-quote {
    max-height: 5lh; overflow-y: auto; margin-block: .35rem;
}
body:has(#cartograph) .cs-composer:has([data-cs-plan-comment]) textarea { min-height: 4lh; }

#cartograph .cg-inline-gap { min-height: 1lh; cursor: text; }

#cartograph .cg-comparison .cg-proposed.cg-add { background: var(--cg-client-add); }
#cartograph .cg-comparison .cg-proposed.cg-james-add { background: var(--cg-james-add); }

.cg-article-source {
	box-sizing: border-box; width: min(60rem, 94vw); max-height: 90dvh; padding: 1rem 1.25rem;
	color: CanvasText; background: Canvas; color-scheme: inherit;
	border: 1px solid var(--border-color-base, currentColor); border-radius: .5rem; overflow: auto;
}
.cg-article-source::backdrop { background: rgb(0 0 0 / 50%); }
.cg-article-source h2 { margin-top: 0; }
#cartograph .cg-article-source textarea { box-sizing: border-box; width: 100%; min-height: 44dvh; padding: .75rem; line-height: 1.55; font-family: var(--wn-pagella-face, "TeX Gyre Pagella", serif); color: inherit; background: inherit; }
.cg-article-source [hidden], .cg-source-notice:empty { display: none; }
.cg-article-source .cg-source-compare pre { max-height: 25dvh; overflow: auto; white-space: pre-wrap; }
.cg-edit-wikitext::before { content: '↗'; margin-inline-end: .35em; }

/* Keep the article and its matching wheel in view while the editor works. */
body.cs-modern-review .cg-owner-review #cg-workbench { align-self:start; z-index:8; background:Canvas; }
body.cs-modern-review .cg-owner-review #cg-controls { border:0; padding:0; margin:0; background:none; }
.cg-owner-review #cg-workbench .cg-owner-primary { display:flex; flex-wrap:wrap; gap:.3rem; align-items:stretch; }
.cg-owner-review #cg-workbench .cg-owner-primary > :is(a,button), .cg-owner-review #cg-workbench .cg-owner-more > summary {
 display:flex; align-items:center; justify-content:flex-start; gap:.5em; min-height:2.75rem; padding:.45rem .55rem; color:inherit; font-weight:normal; text-decoration:none; white-space:normal; text-align:start;
}
.cg-owner-review #cg-workbench .cg-owner-more > summary { cursor:pointer; }
.cg-owner-review .cg-owner-more > summary::before { content:'▸'; }
.cg-owner-review .cg-owner-more[open] > summary::before { content:'▾'; }
.cg-owner-review #cg-workbench :is(.cg-edit-wikitext,.cg-discuss-icon,.cg-library-icon)::before {
 content:''; flex:0 0 1em; width:1em; height:1em; background:currentColor; mask:var(--cg-action-icon) center/contain no-repeat;
}
.cg-owner-review .cg-edit-wikitext { --cg-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%20data-wn-icon%3D%22paper%22%20%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M13.5%201.5v7h7m-16-7v21h16V8l-.282-.126a12%2012%200%200%201-6.092-6.092L14%201.5z%22%2F%3E%3C%2Fsvg%3E"); }
.cg-owner-review .cg-discuss-icon { --cg-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%20data-wn-icon%3D%22chat%22%20%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M6%208.5h12M6%2013h6M23.5%202H23c-3%20.5-8%20.75-11%20.75S4%202.5%201%202H.5v21.5h.25l.154-.154A15.7%2015.7%200%200%201%2012%2018.75c3%200%208%20.25%2011%20.75h.5z%22%2F%3E%3C%2Fsvg%3E"); }
.cg-owner-review .cg-owner-more-body { display:grid; gap:.65rem; border:1px solid var(--cg-border); border-radius:.4rem; padding:.75rem; color:CanvasText; background:Canvas; max-height:min(64dvh,36rem); overflow:auto; }
.cg-owner-review .cg-product-header p, .cg-owner-review #cg-status:empty { display:none; }
.cg-owner-review .cg-owner-more-body .cs-review-tools { margin:0; }
body:has(.cg-owner-primary .cg-discuss-icon) #wn-ep-links:has(a:only-of-type) { display:none; }
.cg-owner-review #cg-workbench #cg-details:not(:empty) { background:Canvas; color:CanvasText; max-height:min(70dvh,42rem); overflow:auto; }
@media(min-width:900px) {
 body.cs-modern-review .cs-review-workspace.cg-owner-review { display:grid; grid-template-columns:9.1rem minmax(0,1fr); column-gap:.9rem; align-items:start; }
 body.cs-modern-review .cg-owner-review > :is(.cs-review-toolbar,.cs-review-tools) { grid-column:1/-1; }
 body.cs-modern-review .cg-owner-review > #cg-workbench { grid-column:1; top:3.8rem; padding:0; margin:0; border:0; }
 body.cs-modern-review .cg-owner-review > .cs-review-panes { grid-column:2; min-width:0; }
 .cg-owner-review #cg-workbench .cg-owner-primary { display:grid; }
 .cg-owner-review #cg-workbench > .cg-product-header { grid-template-columns:1.4rem minmax(0,1fr); gap:.25rem; padding:.15rem 0 .55rem; }
 .cg-owner-review #cg-workbench > .cg-product-header h2 { font-size:1.13rem; }
 .cg-owner-review #cg-workbench > .cg-product-header .cg-map { width:1.4rem; height:1.4rem; }
 .cg-owner-review .cg-owner-more-body, .cg-owner-review #cg-workbench #cg-details:not(:empty) { position:absolute; inset-inline-start:calc(100% + .4rem); top:0; margin:0; width:min(33rem,54vw); z-index:2; }
 .cg-owner-review #cg-workbench #cg-details:not(:empty) { z-index:3; }
}
@media(max-width:899px) {
 body.cs-modern-review .cs-review-workspace.cg-owner-review > #cg-workbench { position:sticky; top:0; padding:.2rem 0; }
 .cg-owner-review #cg-workbench > .cg-product-header { display:none; }
 .cg-owner-review .cg-owner-more-body, .cg-owner-review #cg-workbench #cg-details:not(:empty) { position:absolute; top:100%; inset-inline:0; z-index:2; }
 .cg-owner-review #cg-workbench .cg-owner-primary { gap:.2rem; }
}

.cg-owner-review .cg-owner-primary > .cg-library-icon { --cg-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%20data-wn-icon%3D%22library%22%20%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20d%3D%22M12%207.5V17m0-9.5a3%203%200%200%200-3-3H2v1.085A63%2063%200%200%201%20.5%2019.25v.25H9a3%203%200%200%201%203%203m0-15a3%203%200%200%201%203-3h7v1.085c0%204.596.503%209.179%201.5%2013.665v.25H15a3%203%200%200%200-3%203m0%200v.5%22%2F%3E%3C%2Fsvg%3E"); }

body.cs-modern-review .cs-review-workspace.cg-docked-workspace.cg-owner-review > #cg-workbench {
 position:sticky; top:var(--cg-rail-inset,.3rem); align-self:start;
}
body.cs-modern-review .cs-review-workspace.cg-owner-review #cg-workbench #cg-controls { padding:.2rem; margin:0; }
.cg-owner-review > :is(.cs-live-draft-status,.cs-live-status) { grid-column:1 / -1; }
@media (min-width:1100px) {
 html.vector-feature-page-tools-pinned-disabled body.wn-edit-plan:has(.cg-owner-review) main.mw-body#content {
  grid-template-columns:minmax(0,min(81rem,100%)) auto;
 }
}

.cg-article-source[open] { position: fixed; inset: 3vh 0 auto; width: min(84rem,96vw); height: 92dvh; margin: 0 auto; z-index: 100; background:var(--background-color-base,Canvas); color:var(--color-base,CanvasText); }
.cg-article-source .cg-source-pane,.cg-article-source .cg-visual-pane { margin-block: .75rem; }
.cg-article-source .cm-editor,.cg-article-source .ve-ce-documentNode { min-height:52vh; }
.cg-article-source .cm-editor { max-height:62vh; }
.cg-article-source .cm-scroller { overflow:auto; }
.cg-article-source #wpTextbox1 { min-height:52vh; width:100%; font-family:var(--wn-pagella-face, "TeX Gyre Pagella", serif); }

body.cg-native-editing .cg-article-source[open] { z-index: 10010; inset: 2dvh 0 auto; height: 95dvh; }
body.cg-native-editing > .oo-ui-windowManager, body.cg-native-editing .oo-ui-defaultOverlay, body.cg-native-editing > .ve-ui-overlay { z-index: 10100; }
.cg-article-source .cg-source-modes { position: relative; z-index: 1; display: flex; gap: .5rem; flex-wrap: wrap; }
.cg-article-source .cg-source-pane { position: relative; isolation: isolate; overflow: auto; }
.cg-article-source .cg-actions { position: sticky; bottom: 0; z-index: 2; display: flex; gap: .5rem; margin-top: .75rem; padding-block: .5rem; background: var(--background-color-base, Canvas); }
.cg-article-source .cm-editor { height: 55dvh; max-height:55dvh; min-height:0; }
.cg-article-source .wikiEditor-ui .wikiEditor-ui-view { position:relative; }

body.cg-native-editing > .ui-widget-overlay { z-index: 10100 !important; }
body.cg-native-editing .ui-dialog.wikiEditor-toolbar-dialog { z-index: 10101 !important; }

/* Vector puts native dialogs in a separate layer below the private editor. */
body.cg-native-editing > #mw-teleport-target:has(.oo-ui-window-active) { z-index:10110; }
body.cg-native-editing > .oo-ui-windowManager-modal:has(> .oo-ui-window-active) { position:relative; z-index:10110; }

/* Citation controls and the source picker can live outside the article workspace. */
body:has(#cartograph) #wn-cartograph-source-reader :is(dialog, dialog *:not(img)),
body:has(#cartograph) :is(.cg-citation-choices, .wn-embedded-reader, .wn-citation-overlay),
body:has(#cartograph) :is(.cg-citation-choices, .wn-embedded-reader, .wn-citation-overlay) *:not(img) {
    font-family: 'TeX Gyre Pagella', serif !important;
}
body:has(#cartograph) dialog.cg-citation-choices {
    width: min(30rem, calc(100% - 2rem)); max-height: 82dvh; box-sizing: border-box;
    padding: 1rem 1.25rem; overflow: auto; overflow-wrap: anywhere;
    background: #faf9f5; color: #302934; border: 1px solid #776b78; border-radius: .55rem;
}
body:has(#cartograph) .cg-citation-choices :is(a,button) { color: #842780; }
body:has(#cartograph) .cg-citation-choices li { padding-block: .35rem; }
body:has(#cartograph) :is(.cg-citation-choices,.wn-embedded-reader,.wn-citation-overlay) button { min-height: 44px; }
body:has(#cartograph) :is(.cg-citation-choices,.wn-embedded-reader,.wn-citation-overlay) :focus-visible {
    outline: 2px solid currentColor; outline-offset: 2px;
}
:is(html[data-wn-theme="dark"],html:not([data-wn-theme]).skin-theme-clientpref-night,html:not([data-wn-theme])[data-theme="dark"]) .cg-citation-choices {
    background: #1b191e !important; color: #fff9ec !important;
}
:is(html[data-wn-theme="dark"],html:not([data-wn-theme]).skin-theme-clientpref-night,html:not([data-wn-theme])[data-theme="dark"]) .cg-citation-choices :is(a,button) {
    color: #ebbaea !important;
}

/* The plan and the checked publication share one article column. */
body:has(#cartograph) {
    --cg-paper: #faf9f5;
    --cg-ink: #302934;
    --cg-action: #842780;
    --cg-art: #92278f;
    --cg-primary-label: #842780;
    --cg-line: #91818e;
}
html:is([data-wn-theme="dark"], :not([data-wn-theme]).skin-theme-clientpref-night) body:has(#cartograph),
body:is([data-wn-theme="dark"],.wn-dark):has(#cartograph) {
    --cg-paper: #1b191e;
    --cg-ink: #fff9ec;
    --cg-action: #ebbaea;
    --cg-art: #ebbaea;
    --cg-primary-label: #ffaefa;
    --cg-line: #9f879b;
}
html:is([data-wn-theme="dark"], :not([data-wn-theme]).skin-theme-clientpref-night) body:has(#cartograph) .cg-primary,
body:is([data-wn-theme="dark"],.wn-dark):has(#cartograph) .cg-primary {
    --cg-art: var(--cg-primary-label);
}
body:has(#cartograph) .cg-reader-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}
.cg-reader-tabs {
    grid-column: 1 / -1;
    border-block-end: 1px solid var(--cg-line);
    margin-block: .25rem .65rem;
}
html body:has(#cartograph) .cg-reader-tabs [role="tab"] {
    min-height: 44px;
    width: max-content;
    max-width: 100%;
    padding: .35em .7em;
    border: 0;
    border-block-end: 3px solid transparent;
    border-radius: 0;
    background: none !important;
    color: var(--cg-action) !important;
    box-shadow: none;
    font: inherit;
    cursor: pointer;
}
html body:has(#cartograph) .cg-reader-tabs [aria-selected="true"] {
    border-block-end-color: currentColor !important;
    font-weight: bold;
}
.cg-snapshot-notice { margin: .3rem 0 1rem; }
#cg-published-panel { min-width: 0; overflow-wrap: anywhere; }
#cg-published-panel .cg-snapshot { max-width: 78ch; margin-inline: auto; }
#cg-published-panel [id] { scroll-margin-top: 1rem; }
#cg-published-panel .infobox { max-width:100%; }
html body.wn-edit-plan:has(#cartograph) :is(.cg-snapshot,.cs-review-draft,.cs-ep-review,.cg-reader-tabs, #cg-workbench) {
    background-color: var(--cg-paper) !important;
    color: var(--cg-ink) !important;
}
html body.wn-edit-plan:has(#cartograph) :is(.cs-review-draft,.cs-review-comments,.cg-article-source,.cg-reader-tabs),
html body.wn-edit-plan:has(#cartograph) :is(.cs-review-draft,.cs-review-comments,.cg-article-source,.cg-reader-tabs) :where(*) {
    font-family: var(--wn-pagella-face, "TeX Gyre Pagella", serif) !important;
}
html body.wn-edit-plan:has(#cartograph) :is(#cg-workbench,#cartograph) :is(.cg-button,.cg-select,.cg-more-tools) {
    max-inline-size: 100%;
    inline-size: fit-content;
    white-space: normal;
    text-align: start;
}
html body.wn-edit-plan:has(#cartograph) :is(#cg-workbench,#cartograph) .cg-primary {
    color: var(--cg-primary-label) !important;
    background: var(--cg-paper) !important;
    border: 2px solid currentColor !important;
}
html body:has(#cartograph) :is(.cg-reader-tabs,.cs-ep-review) :focus-visible {
    outline: 2px solid var(--cg-action) !important;
    outline-offset: 2px;
}
html body:has(#cartograph) .cg-show-publication :is(.cs-review-comments-column,#cg-workbench,.cg-private,.cg-header,#cg-controls,#cg-status,#cg-details),
html body:has(#cartograph) :is(#cg-published-panel,#ep-plan-article)[hidden] { display:none!important; }
html body:has(#cartograph) .cs-ep-review.cg-show-publication .cs-review-panes {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0,1fr);
}
html body:has(#cartograph) :is(.cg-reader-tabs [role="tab"], .cg-snapshot-retry, .cg-more-tools)::after,
html body:has(#cartograph) :is(.cs-plan-decision,.cs-plan-reject,.cs-big-comment,.cg-edit-wikitext,.cs-b-comment,.cs-b-library,.wn-librarian-book-trigger,.cg-library-icon,.cg-read-icon,.cg-back-icon)::after {
    content:""; display:inline-block; flex:none; width:1.1em; height:1.1em;
    margin-inline-start:.34em; vertical-align:-.15em; background:var(--cg-art)!important;
    mask:var(--cg-control-art) center/contain no-repeat!important;
    pointer-events:none;
}
#cg-tab-plan,.cg-back-icon { --cg-control-art:url(notes-diary-fbfdab0a.png); }
#cg-tab-published,.cg-read-icon { --cg-control-art:url(book-open-text-c59d28ec.png); }
.cg-more-tools { --cg-control-art:url(navigation-menu-256bd7b4.png); }
.cg-snapshot-retry { --cg-control-art:url(redo-784589aa.png); }
.cs-plan-decision { --cg-control-art:url(data-file-check-5e6d4324.png); }
.cs-plan-reject { --cg-control-art:url(bin-62d32830.png); }
.cg-edit-wikitext { --cg-control-art:url(paragraph-normal-069b3d22.png); }
.cs-big-comment,.cs-b-comment { --cg-control-art:url(conversation-chat-text-7509cd66.png); }
.cs-b-library,.wn-librarian-book-trigger,.cg-library-icon { --cg-control-art:url(book-star-1-9506820f.png); }
html body:has(#cartograph) :is(.cs-plan-decision,.cs-plan-reject,.cs-big-comment,.cg-edit-wikitext,.cs-b-comment,.cs-b-library,.wn-librarian-book-trigger,.cg-library-icon,.cg-read-icon,.cg-back-icon,.cg-more-tools,.cg-reader-tabs [role="tab"])::before { display:none!important; }
html body:has(#cartograph) .cs-ep-review .cs-review-rotate { display:none!important; }
#cartograph :is(.cg-add,.cg-inline-add,.wnie-add,ins):not(.cg-comparison-label) { text-decoration:underline; text-underline-offset:.15em; }
#cartograph :is(.cg-remove,.cg-inline-remove,.wnie-remove,.cg-whole-remove,del):not(.cg-comparison-label) { text-decoration:line-through; }
@media (min-width:721px) {
    html body.cs-modern-review .cs-ep-review.cg-docked-workspace:not(.cg-show-publication) {
        display:grid; grid-template-columns:minmax(7.5rem,9.5rem) minmax(0,1fr); gap:.5rem .8rem;
    }
    html body.cs-modern-review .cg-docked-workspace.cg-show-publication { display:block; }
    html body.cs-modern-review .cg-docked-workspace > #cg-workbench { grid-column:1; align-self:start; }
    html body.cs-modern-review .cg-docked-workspace > .cs-review-panes { grid-column:2; min-width:0; }
    html body.cs-modern-review .cg-docked-workspace:not(.cg-show-publication) > .cs-review-panes {
        grid-template-columns:minmax(0,1fr) minmax(12.5rem,29%);
        gap:clamp(.4rem,1vw,1rem);
    }
    html body.cs-modern-review .cg-docked-workspace > :is(.cs-live-status,.cs-review-tools) { grid-column:1/-1; }
    html body.cs-modern-review .cg-docked-workspace .cg-client-tools > .cg-toolbar { display:grid; justify-items:start; gap:.4rem; padding-block:.5rem; }
    #cg-workbench .cg-product-header p { display:none; }
}
@media (min-width:1100px) {
    html.vector-feature-page-tools-pinned-disabled body.wn-edit-plan:has(#cartograph) main.mw-body#content {
        grid-template-columns:minmax(0,min(90rem,100%)) auto;
    }
}
@media (max-width:720px) {
    #cg-published-panel .infobox { float:none; width:100%; }
    #cg-published-panel table:not(.infobox) { display:block; overflow-x:auto; }
    html body:has(#cartograph) #cg-controls :is(.cg-toolbar,.cg-mobile-navigation,.cg-owner-more-body) .cg-button { flex:0 1 auto; min-height:44px; }
    .cg-client-tools .cg-toolbar { margin-block:.45rem; }
    html body:has(#cartograph) #cg-workbench :is(.cg-owner-more,.cg-client-tools,.cg-owner-more-body,.cg-article-source) { max-width:100%; }
    html body:has(#cartograph) .cs-ep-review #cs-panel .ep-wheel-actions .cs-big { min-height:44px!important; }
    html body:has(#cartograph) .cg-reader-tabs { gap:0; }
}
@media (forced-colors:active) {
    html body:has(#cartograph) { --cg-paper:Canvas; --cg-ink:CanvasText; --cg-action:ButtonText; --cg-primary-label:ButtonText; --cg-art:ButtonText; --cg-line:ButtonText; }
    html body:has(#cartograph) :is(.cg-reader-tabs button,.cg-snapshot-retry,.cg-more-tools,.cs-big-comment,.cg-edit-wikitext,.cs-b-library,.cs-b-comment,.cg-library-icon,.cs-plan-decision,.cs-plan-reject) {
        --cg-art:ButtonText;
    }
    html body:has(#cartograph) :is(.cg-reader-tabs button,.cg-snapshot-retry,.cg-more-tools,.cs-big-comment,.cg-edit-wikitext,.cs-b-library,.cs-b-comment,.cg-library-icon,.cs-plan-decision,.cs-plan-reject)::after { forced-color-adjust:none; background:ButtonText!important; }
    html body:has(#cartograph) #ep-plan-article :is(ins,.cg-add,.cg-inline-add,.wnie-add) { text-decoration:underline double!important; }
    html body:has(#cartograph) #ep-plan-article :is(del,.cg-remove,.cg-inline-remove,.wnie-remove,.cg-whole-remove) { text-decoration:line-through!important; }
}

body:has(#cartograph) [data-cg-control="check"] { --cg-control-art:url(check-1-4a1efaf0.png); }
body:has(#cartograph) [data-cg-control="back"] { --cg-control-art:url(keyboard-arrow-left-ed488a45.png); }
body:has(#cartograph) [data-cg-control="close"] { --cg-control-art:url(close-26c2d507.png); }
body:has(#cartograph) [data-cg-control="retry"] { --cg-control-art:url(redo-784589aa.png); }
body:has(#cartograph) [data-cg-control="history"] { --cg-control-art:url(calendar-clock-b0762420.png); }
body:has(#cartograph) [data-cg-control="package"] { --cg-control-art:url(notes-download-1b7c0e86.png); }
body:has(#cartograph) [data-cg-control="book"] { --cg-control-art:url(book-star-1-9506820f.png); }
body:has(#cartograph) [data-cg-control="read"] { --cg-control-art:url(book-open-text-c59d28ec.png); }
body:has(#cartograph) [data-cg-control="comment"] { --cg-control-art:url(conversation-chat-text-7509cd66.png); }
body:has(#cartograph) [data-cg-control="save"] { --cg-control-art:url(data-file-check-5e6d4324.png); }
body:has(#cartograph) [data-cg-control="edit"] { --cg-control-art:url(paragraph-normal-069b3d22.png); }
html body:has(#cartograph) [data-cg-control]::before { display:none!important; }
html body:has(#cartograph) [data-cg-control]::after {
    content:""; display:inline-block; width:1.1em; height:1.1em; flex:none; margin-inline-start:.34em;
    vertical-align:-.15em; background:var(--cg-art)!important;
    mask:var(--cg-control-art) center/contain no-repeat!important; pointer-events:none;
}
@media (forced-colors:active) {
    html body:has(#cartograph) [data-cg-control]::after { forced-color-adjust:none; background:ButtonText!important; }
}

.cg-record-action { display:inline-flex; align-items:center; flex-wrap:wrap; gap:.4em; }

body:has(#cartograph) #wn-cartograph-source-reader .librarian-embedded-reader {
    --book-paper: #faf9f5; --book-ink: #302934; --book-link: #842780;
}
:is(html[data-wn-theme="dark"],html:not([data-wn-theme]).skin-theme-clientpref-night,html:not([data-wn-theme])[data-theme="dark"])
body:has(#cartograph) #wn-cartograph-source-reader .librarian-embedded-reader {
    --book-paper: #1b191e; --book-ink: #fff9ec; --book-link: #ebbaea;
}
@media (prefers-color-scheme: dark) {
    html:not([data-wn-theme]).skin-theme-clientpref-os body:has(#cartograph) #wn-cartograph-source-reader .librarian-embedded-reader,
    html:not([data-wn-theme]).skin-theme-clientpref-os body:has(#cartograph) .cg-citation-choices {
        --book-paper: #1b191e; --book-ink: #fff9ec; --book-link: #ebbaea;
        color: #fff9ec; background-color: #1b191e;
    }
    html:not([data-wn-theme]).skin-theme-clientpref-os body:has(#cartograph) .cg-citation-choices :is(a,button) {color: #ebbaea;}
}

html body.wn-edit-plan .cg-reader-heading {
    grid-column:1/-1; display:block; min-width:0; padding:0; margin:0;
    font-family:var(--wn-pagella-face,"TeX Gyre Pagella",serif);
}
html body.wn-edit-plan .cg-reader-heading .cg-reader-product {
    margin:0; color:var(--cg-action); font-weight:bold; font-size:.96rem; line-height:1.3;
}
html body.wn-edit-plan .cg-reader-heading .cg-reader-title {
    margin:.08em 0 .16em; padding:0; border:0; color:var(--cg-ink); line-height:1.1;
    font-size:clamp(1.65rem,3vw,2.6rem); font-weight:400; overflow-wrap:anywhere;
}
html body.wn-edit-plan:has(.cg-reader-heading) :is(#cg-workbench,#cartograph) > .cg-header { display:none!important; }
html body.wn-edit-plan:has(.cg-reader-heading) #cg-workbench #cg-status:empty,
html body.wn-edit-plan:has(.cg-reader-heading) #cg-workbench #cg-details:empty { display:none!important; }
body.wn-edit-plan .cg-docked-workspace .cg-reader-heading .cg-reader-tabs { margin:.2rem 0 0; }
@media(min-width:721px) {
    html body.cs-modern-review .cs-ep-review.cg-docked-workspace:not(.cg-show-publication) {
        grid-template-columns:clamp(112px,13%,182px) minmax(0,1fr);
    }
    html body.cs-modern-review .cg-docked-workspace:not(.cg-show-publication) > .cs-review-panes {
        grid-template-columns:minmax(0,1fr) clamp(195px,29%,25rem);
    }
    html body.wn-edit-plan:has(#cartograph) main.mw-body#content > #bodyContent { grid-column:1 / -1; }
}

#cartograph #ep-plan-article .cg-reading-gap:not(.cg-inline-gap) {
    display:block; height:.2rem; min-height:0; line-height:.2rem; margin:0; padding:0; overflow:hidden;
}

/* Blank lines introduced around the comparison headings belong to the parser,
   not to the proposed wording. Keep the actual paragraph and its markup intact. */
#cartograph #ep-plan-article .cg-comparison :is(.cg-original,.cg-proposed) > :is(p:has(> br:only-child), p:empty) {
    margin:0; padding:0; min-height:0; height:0; line-height:0;
}
html body.wn-edit-plan #cg-controls .cg-client-tools { min-width:0; }
html body.wn-edit-plan #cg-controls .cg-client-tools .cg-button {
    display:inline-flex; justify-content:flex-start; align-items:center; gap:.25em; padding-inline:.45em;
}
html body.wn-edit-plan #cg-controls .cg-client-tools .cg-button::after { margin-inline-start:0; }
html body:has(#cartograph) :is(#ep-plan-article,.cg-snapshot) .cg-word-change:is(del,ins) { color:inherit; }

html body.wn-edit-plan #cg-controls .cg-more-tools {
    display:inline-flex; align-items:center; gap:.35em; width:fit-content; padding:.4em .65em;
    list-style:none; white-space:normal;
}
html body.wn-edit-plan #cg-controls .cg-more-tools::-webkit-details-marker { display:none; }
html body.wn-edit-plan #cg-controls .cg-more-tools::after { flex:none; margin:0; }
html body.wn-edit-plan #cg-controls [open] > .cg-more-tools { border-block-end:2px solid var(--cg-action); }
html body.wn-edit-plan .cg-reader-tabs [role="tab"] { font-size:1rem; }
html body.wn-edit-plan .cs-ep-review #ep-plan-article,
html body.wn-edit-plan #cg-published-panel .cg-snapshot { font-size:1.0625rem; line-height:1.55; }
html body.wn-edit-plan .cs-ep-review .cs-card { font-size:1rem; line-height:1.45; }
html body.wn-edit-plan .cs-ep-review .cs-card :is(.cs-date,.cs-meta,.cs-ep-location) { font-size:.875rem; }
@media (min-width:721px) {
    html body.wn-edit-plan #cg-controls :is(.cg-client-tools,.cg-owner-more-body) [data-cg-pane-button] { display:none!important; }
}
@media (max-width:720px) {
    html body.wn-edit-plan #cg-controls .cg-mobile-navigation:has([data-cg-pane-button="article"][aria-pressed="true"]),
    html body.wn-edit-plan #cg-controls [data-cg-pane-button][aria-pressed="true"] { display:none!important; }
    html body.wn-edit-plan #cg-workbench #cg-controls { margin:0; padding:.32rem; }
    html body.wn-edit-plan #cg-workbench { padding-block:.2rem; }
}
@media screen and (forced-colors:none) {
    html body:has(#cartograph) :is(#cg-controls,#cg-details,#cs-panel,#cs-bubble) :is(.cg-button,.cs-btn,.cs-big,.cs-b-comment,.cs-b-library,.cs-replybox) {
        border-color:var(--cg-line)!important;
    }
    html body:has(#cartograph) :is(#cg-controls,#cg-details,#cs-panel,#cs-bubble) :is(.cg-button,.cs-btn,.cs-big,.cs-b-comment,.cs-b-library):not(:disabled) {
        color:var(--cg-action)!important;
    }
    html body:has(#cartograph) :is(#cg-controls,#cg-details,#cs-panel) :is(.cg-primary,.cs-primary):not(:disabled) {
        color:var(--cg-primary-label)!important;
        background:var(--cg-paper)!important;
    }
}
@media screen and (forced-colors:none) {
    html body.wn-edit-plan:has(#cartograph) :is(#ep-plan-article,#cg-published-panel) :is(h1,h2,h3,h4,h5,h6,.mw-heading) {
        color:var(--cg-ink)!important;
    }
    html body.wn-edit-plan:has(#cartograph) :is(#ep-plan-article,#cg-published-panel) a:any-link {
        color:var(--cg-action)!important;
    }
    html body.wn-edit-plan:has(#cartograph) #cg-workbench #cg-controls {
        background:var(--cg-paper)!important; color:var(--cg-ink)!important;
    }
    html body.wn-edit-plan:has(#cartograph) #ep-plan-article :is(.cg-label,.cg-proposal-label) {
        background:var(--cg-paper)!important; color:var(--cg-ink)!important; border-color:var(--cg-line)!important;
    }
}
@media screen {
    @layer studio-portal-controls {
        html:root body.wn-edit-plan .cg-article-source :is(.mw-editfont-monospace,#wpTextbox1,.cm-editor,.cm-editor *,.CodeMirror,.CodeMirror *,textarea) {
            font-family:var(--wn-pagella-face,"TeX Gyre Pagella",serif)!important;
        }
    }
}

html body.wn-edit-plan #cg-controls summary.cg-comment-settings {
    display:grid; place-items:center; box-sizing:border-box; width:44px; height:44px;
    padding:0; margin:0; list-style:none; color:var(--cg-action); cursor:pointer;
}
.cg-comment-settings::-webkit-details-marker { display:none; }
.cg-comment-settings::before {
    content:""; width:1.4rem; height:1.4rem; background:currentColor;
    mask:url(cog-1-8e3d5bfe.png) center/contain no-repeat;
}
html body.wn-edit-plan .cs-ep-review.cg-docked-workspace { margin-block:.25rem; }
html body.wn-edit-plan .cs-ep-review.cg-docked-workspace .cs-review-draft {
    box-sizing:border-box; height:max(14rem,calc(100dvh - var(--cg-panes-top,10rem) - .5rem));
}
html body.wn-edit-plan .cs-ep-review.cg-docked-workspace .cs-review-comments-column:not(:has(.cs-composer:not(:empty))) .cs-review-comments {
    height:max(10rem,calc(100dvh - var(--cg-panes-top,10rem) - var(--ep-wheel-head-height,7rem) - .5rem));
}
@media(min-width:721px) {
    html body.wn-edit-plan .cg-reader-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:.8rem; }
    html body.wn-edit-plan .cg-reader-heading .cg-reader-tabs { grid-column:2; grid-row:1/3; margin:0; }
}
html body.wn-edit-plan #wn-workspace-mast .wn-workspace-mast-inner { padding-block:.15rem; min-height:44px; }

/* Keep the native wiki tools in reach below the active Cartograph reader. */
body.wn-workspace-mounted:has(.cg-docked-workspace) main.mw-body#content,
body.wn-workspace-mounted:has(.cg-docked-workspace) #mw-content-text:has(> .cg-docked-workspace) {
    display:flex!important; flex-direction:column; align-items:stretch;
    reading-flow:flex-visual;
}
body.wn-workspace-mounted:has(.cg-docked-workspace) #content > #bodyContent,
body.wn-workspace-mounted:has(.cg-docked-workspace) #mw-content-text > .cg-docked-workspace { order:-1; }
body.wn-workspace-mounted:has(.cg-docked-workspace) #mw-content-text { margin-block-start:0; }
body.wn-workspace-mounted:has(.cg-docked-workspace) #wn-presence { align-self:flex-start; }
body.wn-workspace-mounted:has(.cg-docked-workspace) .vector-header-container .mw-header {
    min-height:44px; height:auto; padding-block:.125rem;
}
body.wn-workspace-mounted:has(.cg-docked-workspace) {
    display:flex; flex-direction:column; height:auto; min-height:100dvh; reading-flow:flex-visual;
}
body.wn-workspace-mounted:has(.cg-docked-workspace) > .vector-header-container { order:1; }

/* Site-owned selection tools; the browser's Cut/Copy/Paste menu remains available. */
.wn-comment-toolbar,.wn-comment-composer{position:fixed;z-index:10020;box-sizing:border-box;background:#ffffff;color:#92278f;font-family:"TeX Gyre Pagella",Georgia,serif;border:1px solid #92278f;border-radius:8px;box-shadow:none;overflow:auto;overscroll-behavior:contain}
.wn-comment-toolbar[hidden]{display:none}
.wn-comment-toolbar{padding:0}
.wn-comment-toolbar>button{display:block;width:100%;min-height:42px;padding:8px 12px;margin:0;border:0;border-radius:7px;background:#ffffff;color:#92278f;font:inherit;font-size:15px;line-height:1.35;white-space:nowrap;touch-action:manipulation}
.wn-comment-composer{display:grid;gap:10px;margin:0;padding:14px;text-align:left;scroll-padding:10px}
.wn-comment-composer .wn-comment-title{font:inherit;font-size:16px;font-weight:700;line-height:1.2;color:#92278f;margin:0}
.wn-comment-composer .wn-comment-quote{margin:0;padding:0 0 0 9px;border-left:2px solid #92278f;font-size:14px;line-height:1.4;max-height:60px;overflow:auto;overflow-wrap:anywhere}
.wn-comment-composer .wn-comment-body{display:block;box-sizing:border-box;width:100%;min-height:74px;max-height:180px;margin:0;padding:9px;border:1px solid #92278f;border-radius:4px;background:#ffffff;color:#92278f;font:inherit;font-size:16px;line-height:1.4;resize:vertical;scroll-margin:8px}
.wn-comment-composer .wn-comment-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin:0}
.wn-comment-composer .wn-comment-actions button{margin:0;min-height:40px;padding:7px 11px;border:1px solid #92278f;border-radius:4px;background:#ffffff;color:#92278f;font:inherit;font-size:15px;line-height:1.3;touch-action:manipulation}
.wn-comment-composer .wn-comment-actions .wn-comment-save{border-color:#92278f;background:#92278f;color:#ffffff}
.wn-comment-composer [disabled]{opacity:.6;cursor:wait}
.wn-comment-toolbar button:focus-visible,.wn-comment-composer :is(button,textarea):focus-visible{outline:2px solid #92278f;outline-offset:2px}
.wn-comment-composer[data-compact=true]{padding:8px;gap:5px;border-radius:5px}
.wn-comment-composer[data-compact=true] .wn-comment-title{font-size:14px}
.wn-comment-composer[data-compact=true] .wn-comment-quote{max-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.wn-comment-composer[data-compact=true] .wn-comment-body{min-height:42px;height:48px;max-height:85px;padding:5px 7px}
.wn-comment-composer[data-compact=true] .wn-comment-actions button{min-height:34px;padding:5px 9px;font-size:14px}
@media(prefers-reduced-motion:reduce){.wn-comment-toolbar,.wn-comment-composer{scroll-behavior:auto}}

.cs-preview-author{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;font-family:inherit;font-size:1rem;line-height:1.4}
.cs-preview-author select{box-sizing:border-box;max-width:100%;min-height:2.5rem;font:inherit;color:inherit;background-color:var(--background-color-base,#fffdf6)}

.wn-citation-overlay{--lc-paper:var(--qe-paper,#fff);--lc-surface:var(--qe-surface,#f6f1f8);--lc-raised:var(--qe-raised,#fff);--lc-ink:var(--qe-ink,#233847);--lc-action:var(--qe-action,#92278f);--lc-action-ink:var(--qe-action-ink,#fff);--lc-control:var(--qe-control,#778398);--lc-line:var(--qe-line,#b7bec9);--lc-focus:var(--qe-focus,#92278f);}
.wn-citation-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(15,22,32,.42);display:flex;justify-content:flex-end;font-family:var(--wn-pagella-face,"TeX Gyre Pagella",sans-serif);color:var(--lc-ink,#233847)}
.wn-citation-panel{box-sizing:border-box;width:min(560px,100%);max-height:100dvh;overflow:auto;background:var(--lc-paper,#fff);padding:24px;box-shadow:-8px 0 35px #0003;overscroll-behavior:contain}
.wn-citation-panel *{box-sizing:border-box;font-family:inherit}
.wn-citation-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.wn-citation-header h2{margin:0;font-size:1.65rem;color:inherit}.wn-citation-panel h3{font-size:1.2rem;line-height:1.25;margin:0 0 8px;color:inherit}
.wn-citation-panel button,.wn-citation-panel input,.wn-citation-actions a{min-height:44px;font-size:1rem;border-radius:6px}.wn-citation-panel button,.wn-citation-actions a{padding:10px 14px;border:1px solid var(--lc-action,#92278f);background:var(--lc-action,#92278f);color:var(--lc-action-ink,#fff);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.wn-citation-panel button:disabled{opacity:.55;cursor:default}.wn-citation-panel button:focus-visible,.wn-citation-panel input:focus-visible,.wn-citation-actions a:focus-visible{outline:3px solid var(--lc-focus,#92278f);outline-offset:3px}
.wn-citation-panel .wn-citation-close{background:transparent;color:inherit;border-color:var(--lc-control,#778398)}.wn-citation-selection{margin:20px 0;padding:12px 16px;border-left:3px solid var(--lc-action,#92278f);background:var(--lc-surface,#f6f1f8);overflow-wrap:anywhere}.wn-citation-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.wn-citation-search label{grid-column:1/-1}.wn-citation-search input{width:100%;min-width:0;padding:9px;border:1px solid var(--lc-control,#778398);color:inherit;background:var(--lc-raised,#fff)}
.wn-citation-result{margin:18px 0;padding:18px;border:1px solid var(--lc-line,#b7bec9);border-radius:12px;background:linear-gradient(100deg,var(--lc-surface,#f6f1f8),var(--lc-paper,#fff));overflow-wrap:anywhere}.wn-citation-source-details,.wn-citation-location,.wn-citation-note{font-size:.95rem;line-height:1.4;color:inherit}.wn-citation-support{font-weight:bold;margin:12px 0 6px}.wn-citation-evidence{white-space:pre-wrap;margin:8px 0;padding:12px 14px;border-left:2px solid var(--lc-control,#778398);background:var(--lc-paper,#fff);line-height:1.5}.wn-citation-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.wn-citation-actions a{background:transparent;color:var(--lc-action,#92278f)}.wn-citation-warning{border-left:3px solid #b26d15;padding-left:10px}.wn-citation-status{min-height:24px}
@media(max-width:420px){.wn-citation-panel{padding:16px}.wn-citation-search{grid-template-columns:1fr}.wn-citation-result{padding:14px}.wn-citation-header{gap:8px}.wn-citation-header h2{font-size:1.4rem}}

html[data-wn-theme="dark"] .wn-citation-overlay,body[data-wn-theme="dark"] .wn-citation-overlay,html.skin-theme-clientpref-night:not([data-wn-theme]) .wn-citation-overlay{--lc-paper:var(--qe-paper,#1b2430);--lc-surface:var(--qe-surface,#27303e);--lc-raised:var(--qe-raised,#2d3746);--lc-ink:var(--qe-ink,#f3eff6);--lc-action:var(--qe-action,#d9b3eb);--lc-action-ink:var(--qe-action-ink,#23162b);--lc-control:var(--qe-control,#9ba7bd);--lc-line:var(--qe-line,#4f5665);--lc-focus:var(--qe-focus,#d9b3eb);}

.wn-citation-panel a{color:var(--lc-action,#92278f);text-underline-offset:.15em}.wn-citation-panel a:focus-visible,.wn-citation-panel summary:focus-visible{outline:3px solid var(--lc-focus,#92278f);outline-offset:3px}.wn-citation-panel a:not(.wn-citation-actions a){display:inline-flex;align-items:center;min-height:44px}.wn-citation-placement{margin-top:16px}

/* Keep the citation preview and its primary action within the visible viewport. */
.wn-citation-overlay.wn-citation-inline{position:fixed;inset:auto;display:block;background:transparent}
.wn-citation-inline .wn-citation-panel{width:100%;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;padding:20px;border:1px solid var(--lc-control);border-radius:12px;box-shadow:0 8px 28px #0002;background:linear-gradient(105deg,var(--lc-paper),var(--lc-surface));font-size:1rem;line-height:1.45}
.wn-citation-inline .wn-citation-header{margin-bottom:12px}.wn-citation-inline .wn-citation-header h2{font-size:1.35rem}.wn-citation-inline .wn-citation-close{min-width:44px;padding:8px 12px}
.wn-citation-inline details{margin:8px 0}.wn-citation-inline summary{cursor:pointer;min-height:44px;align-content:center;color:var(--lc-action)}
.wn-citation-inline .wn-citation-selection{margin:8px 0}.wn-citation-inline .wn-citation-search{margin-top:8px}.wn-citation-inline .wn-citation-status{margin:12px 0;min-height:0}
.wn-citation-inline .wn-citation-result{margin:12px 0;padding:16px;border-radius:8px;background:var(--lc-paper)}
.wn-citation-inline .wn-citation-result h3{font-size:1.12rem}.wn-citation-inline .wn-citation-source-details{margin:4px 0 12px}.wn-citation-inline .wn-citation-evidence{padding:8px 12px;line-height:1.45}
.wn-citation-inline .wn-citation-source-context{margin-bottom:0}.wn-citation-inline .wn-citation-source-context summary{font-size:.95rem}.wn-citation-inline .wn-citation-note{margin:8px 0 0}.wn-citation-inline .wn-citation-undo{margin-left:8px;background:transparent;color:var(--lc-action)}
.wn-citation-inline .wn-citation-result a{overflow-wrap:anywhere}.wn-citation-inline .wn-citation-results:empty{display:none}
button.wn-librarian-book-trigger,a.wn-librarian-book-trigger{box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;max-width:44px;width:44px;min-height:44px;height:44px;padding:10px!important;font-size:0!important;line-height:0!important;overflow:hidden;border:1px solid var(--qe-control,#898d81);border-radius:7px;color:var(--qe-action,#842780);background:var(--qe-raised,#fffdf8);vertical-align:middle;cursor:pointer}
button.wn-librarian-book-trigger::before,a.wn-librarian-book-trigger::before{content:"";display:block;width:24px;height:24px;flex:0 0 24px;background:currentColor;mask: url(book-star-1-9506820f.png) center / contain no-repeat;-webkit-mask: url(book-star-1-9506820f.png) center / contain no-repeat}
button.wn-librarian-book-trigger:focus-visible,a.wn-librarian-book-trigger:focus-visible{outline:3px solid var(--qe-focus,#842780);outline-offset:3px}
button.wn-librarian-book-trigger:hover,a.wn-librarian-book-trigger:hover{background:var(--qe-surface,#f3f5f0)}
@media(max-width:420px){.wn-citation-inline .wn-citation-panel{padding:14px}.wn-citation-inline .wn-citation-result{padding:12px}}

@keyframes wn-native-librarian-invitation{0%,72%,100%{transform:rotate(0)}80%{transform:rotate(-9deg)}89%{transform:rotate(7deg)}95%{transform:rotate(-2deg)}}
@media(prefers-reduced-motion:no-preference){body:not(:has([aria-label="Play background motion"])):not([data-motion="paused"]):not([data-wn-motion="paused"]) :is(.wn-scratch-citation-search,.cg-compose-librarian).wn-librarian-invite:not(.was-used):not(:hover):not(:focus):not(:focus-visible)::before{animation:wn-native-librarian-invitation 2.7s ease-in-out infinite}}

.wn-citation-inline .wn-citation-header,
.wn-citation-inline .wn-citation-primary { flex: 0 0 auto; }
.wn-citation-inline .wn-citation-scroll {
    min-height: 0; overflow: auto; overscroll-behavior: contain;
    scrollbar-gutter: stable; scroll-padding: 6px;
}
.wn-citation-inline .wn-citation-content { display: flow-root; overflow-wrap: anywhere; }
.wn-citation-inline .wn-citation-primary:empty { display: none; }
.wn-citation-inline .wn-citation-primary:not(:empty) { padding-top: 8px; border-top: 1px solid var(--lc-line); }

/* Citation actions use Studio's positive and neutral colours in both themes. */
.wn-citation-overlay {
    --citation-positive: var(--nv-good, var(--qe-good, #365c58));
    --citation-positive-bg: var(--nv-good-bg, var(--qe-good-surface, #edf5ef));
}
:is(html[data-wn-theme="dark"], body[data-wn-theme="dark"], html.skin-theme-clientpref-night:not([data-wn-theme])) .wn-citation-overlay {
    --citation-positive: var(--nv-good, var(--qe-good, #b9d9cf));
    --citation-positive-bg: var(--nv-good-bg, var(--qe-good-surface, #283c35));
}
/* Studio Spaces sets its legacy Add and Undo controls to the generic gradient with !important.
   Scope the semantic action colours and typography to the labelled Librarian controls. */
:root .wn-citation-overlay .wn-citation-panel button.wn-citation-action[data-citation-action] {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .45em;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: .45rem .65rem;
    border: 1px solid var(--citation-button-line, transparent) !important;
    border-radius: 4px !important;
    background: var(--citation-button-bg, transparent) !important;
    color: var(--citation-button-ink, var(--lc-action)) !important;
    font: var(--citation-button-weight, 400) 1rem/1.25 var(--wn-pagella-face,"TeX Gyre Pagella",sans-serif) !important;
    text-align: start;
    overflow-wrap: anywhere;
}
.wn-citation-action[data-citation-action="add"] {
    --citation-button-bg: var(--citation-positive-bg);
    --citation-button-ink: var(--citation-positive);
    --citation-button-line: var(--citation-positive);
    --citation-button-weight: 700;
}
.wn-citation-action[data-citation-action]:not(:disabled):hover {
    --citation-button-bg: var(--lc-surface);
    --citation-button-line: var(--lc-control);
}
.wn-citation-action[data-citation-action="add"]:not(:disabled):hover {
    --citation-button-bg: var(--citation-positive);
    --citation-button-line: var(--citation-positive);
    --citation-button-ink: var(--citation-positive-bg);
}
.wn-citation-panel .wn-citation-action:focus-visible {
    outline: 2px solid var(--lc-focus);
    outline-offset: 2px;
}
.wn-citation-saved-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: .15rem .4rem;
    align-items: start;
    max-width: 100%;
    padding: .2rem;
}
:root .wn-citation-overlay .wn-citation-panel button.wn-citation-action[data-citation-action]::before {
    content: "";
    flex: 0 0 1.125em;
    width: 1.125em;
    height: 1.125em;
    background-color: currentColor;
    mask: var(--citation-glyph) center / contain no-repeat;
}
.wn-citation-action[data-citation-action="add"] {
    --citation-glyph: url(notes-add-81c5ef35.png);
}
.wn-citation-action[data-citation-action="review"] {
    --citation-glyph: url(view-29cdd38c.png);
}
.wn-citation-action[data-citation-action="another"] {
    --citation-glyph: url(notes-add-81c5ef35.png);
}
.wn-citation-action[data-citation-action="return"] {
    --citation-glyph: url(keyboard-arrow-left-ed488a45.png);
}
.wn-citation-action[data-citation-action="undo"] {
    --citation-glyph: url(undo-c39ae17a.png);
}
@media (forced-colors: active) {
    .wn-citation-action[data-citation-action] { --citation-button-line: ButtonText; }
    .wn-citation-panel .wn-citation-action::before { forced-color-adjust: none; background-color: ButtonText; }
    .wn-citation-panel .wn-citation-action:disabled::before { background-color: GrayText; }
}
@media (max-width: 360px) {
    .wn-citation-saved-actions { grid-template-columns: minmax(0, max-content); }
}
@media (max-height: 480px) {
    .wn-citation-primary:has(.wn-citation-saved-actions) { max-height: 46dvh; overflow-y: auto; }
}

/* The live region announces results. Warnings, errors and save confirmations remain visible. */
.wn-citation-inline .wn-citation-status:has(> .wn-citation-count) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* A named toolbar control in the private WikiText editor. */
body button:is(.wn-scratch-citation-search,.wn-source-librarian-selection).wn-librarian-book-trigger {
    width:auto;max-width:none;min-height:44px;height:auto;gap:.4rem;padding:.3rem .65rem!important;
    font:inherit!important;line-height:1.25!important;font-weight:600!important;
}
button:is(.wn-scratch-citation-search,.wn-source-librarian-selection).wn-librarian-book-trigger::before {width:1.1rem;height:1.1rem;flex-basis:1.1rem;}
.wn-source-librarian-selection { position:fixed;z-index:90;box-shadow:0 2px 8px rgba(0,0,0,.2); }
body .wn-source-librarian-selection[hidden] { display:none!important; }
.wn-scratch-librarian-status:not(:empty) {display:inline-block;margin:.35rem .5rem;}

@font-face{font-family:'TeX Gyre Pagella';src:url(pagella.woff2)}@font-face{font-family:'TeX Gyre Pagella';src:url(pagella-bold.woff2);font-weight:700}
@font-face{font-family:'TeX Gyre Pagella';src:url(pagella-italic.woff2);font-style:italic}
@font-face{font-family:'TeX Gyre Pagella';src:url(pagella-bolditalic.woff2);font-style:italic;font-weight:700}
@font-face{font-family:PalatinoPro;src:url(PalatinoProRoman.woff2)}
:root{--ink:#2a232c;--plum:#792974;--line:#d6cbd4;--paper:#fcfaf7;--wash:#f5eff4;font:16px/1.45 'TeX Gyre Pagella',Georgia,serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;padding:0 clamp(10px,2.3vw,32px);color:var(--ink);background:var(--paper)}
body,button,input,textarea,summary,select,dialog{font-family:'TeX Gyre Pagella',Georgia,serif}
.mast{min-height:45px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:12px}
.mast>a{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;font:24px PalatinoPro,serif}.mast img{width:27px;height:27px}
.mast-product{border-left:1px solid var(--line);padding-left:12px;font-size:.94rem;color:#645662}
.mast-client{margin-inline-start:auto;font-size:.94rem}
[hidden]{display:none!important}button,summary,a{touch-action:manipulation}button{cursor:pointer}
:focus-visible{outline:2px solid var(--plum);outline-offset:2px}
html body.cs-modern-review .cs-review-workspace.cg-docked-workspace{display:flex!important;flex-direction:column;align-items:stretch;margin:0;padding:0;max-width:none;gap:0;border:0}
html body .cs-review-workspace>.cs-review-toolbar,html body .cs-review-workspace>.cs-review-tools{display:none!important}
html body.wn-edit-plan .cg-reader-heading{
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;
 margin:0 0 10px;padding:10px 0 0;border:0;border-bottom:1px solid var(--line)
}
html body.wn-edit-plan .cg-reader-heading .cg-reader-title{
 grid-column:1/-1;grid-row:1;margin:0;font-size:clamp(1.5rem,2.8vw,2rem);line-height:1.15
}
html body.wn-edit-plan .cg-reader-heading .cg-reader-tabs{
 grid-column:1;grid-row:2;justify-self:start;align-items:stretch;display:flex;margin:0;border:0
}
html body.wn-edit-plan .cg-reader-tabs [role=tab]{font-size:1rem;min-height:40px;padding-inline:.65rem}
#tools{grid-column:2;grid-row:2;display:flex;align-items:center;gap:6px;align-self:center}
#plan-tools{position:relative}
#plan-tools summary,#tools #switch{min-height:40px;align-items:center;justify-content:center;gap:.45em;color:var(--plum);font-size:.95rem}
#plan-tools summary{list-style:none;display:inline-flex;cursor:pointer;padding:0 .45em;border-radius:4px}
#plan-tools summary::-webkit-details-marker{display:none}
#plan-tools summary::before{content:'';width:1.05em;height:1.05em;background:currentColor;mask:url(navigation-menu.png) center/contain no-repeat}
#plan-tools summary:hover,#plan-tools[open] summary{background:var(--wash)}
.plan-menu{position:absolute;z-index:50;right:0;top:100%;width:min(15.5rem,calc(100vw - 24px));padding:5px;background:white;border:1px solid var(--line);border-radius:7px;box-shadow:0 4px 15px #35223622}
#tools .plan-menu button{width:100%;text-align:start;border:0;background:transparent;min-height:44px;padding:6px 10px;gap:9px}
#tools .plan-menu button:is(:hover,:focus-visible){background:var(--wash)}
#hint{margin:4px 6px;padding:8px 2px 2px;border-top:1px solid var(--line);color:#554557;font-size:.86rem;line-height:1.35}
html body.cs-modern-review .cs-ep-review.cg-docked-workspace>.cs-review-panes{display:grid;grid-template-columns:minmax(0,1fr) clamp(195px,25%,320px);gap:clamp(10px,1.7vw,22px);padding:0;margin:0;height:max(180px,calc(100dvh - var(--cg-panes-top,140px) - 6px));max-height:none}
html body.cs-modern-review .cs-ep-review.cg-show-publication>.cs-review-panes{grid-template-columns:minmax(0,1fr)}
html body.cs-modern-review .cs-ep-review.cg-show-publication .cs-review-comments-column{display:none!important}
html body.cs-modern-review .cs-ep-review .cs-review-draft-column,html body.cs-modern-review .cs-ep-review .cs-review-comments-column{height:100%;min-height:0;min-width:0}
html body.cs-modern-review .cs-ep-review .cs-review-draft{padding:0 8px 3rem 0;margin:0;height:100%;max-height:none;overflow:auto;scrollbar-width:thin;background:var(--paper)}
/* Keep the wheel inside its viewport-height column. The shared workspace's
   unbounded panel otherwise expands to the height of every comment card. */
html body.cs-modern-review .cg-docked-workspace #cs-panel.cs-review-panel{display:flex;flex-direction:column;height:100%!important;min-height:0;border:1px solid var(--line);border-radius:5px;background:white;overflow:hidden!important}
html body.cs-modern-review .cs-ep-review .cs-review-comments{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;scrollbar-width:thin}
#threads{padding:8px}
.ep-wheel-head{padding:8px!important;background:var(--wash)!important}
.ep-wheel-title-row{display:flex;align-items:center;justify-content:space-between}
.ep-wheel-title-row h2{margin:0;font-size:1.15rem}.ep-wheel-guide{font-size:.86rem;margin:3px 0}
.cs-card{background:white;border:1px solid var(--line);border-radius:4px;padding:12px;margin-bottom:10px;font-size:1rem;overflow-wrap:anywhere}
.cs-card.cs-focus{border:2px solid var(--plum);padding:11px}.cs-card strong{color:var(--plum)}
.cs-card small,.shelf small{display:block;font-size:.8rem;color:#645666}
.cs-card p,.cs-card blockquote{margin:.6em 0}.cs-card blockquote{border-left:2px solid var(--plum);padding-left:.6rem}
.reply textarea,.general-form textarea,.dialog-body input{width:100%;font:inherit;padding:5px 7px}
.reply textarea{height:2.5rem}.reply{margin-top:.6rem}.reply button{display:none}.reply:focus-within button{display:inline-flex}
#cartograph .mw-parser-output{font-size:clamp(1.05rem,1.32vw,1.18rem);line-height:1.55;overflow-wrap:break-word}
#cartograph .cg-passage,#cartograph .cg-passage p{padding:0;margin:0 0 .95em;background:none;border:0;outline:none}
#cartograph h2{font-size:1.5rem;line-height:1.2;margin:1.2em 0 .5em;border-bottom:1px solid var(--line);padding-bottom:4px}
#cartograph a,.dialog-body a{color:#70286c;text-decoration:underline;text-underline-offset:2px}
#cartograph sup.reference{font-size:.72em;line-height:0}
#cartograph ol.references{font-size:.89em;padding-left:1.8em}ol.references li{margin-bottom:.65em}cite{font-style:normal}
body .cs-ep-marker{display:inline-flex;align-items:center;gap:2px;vertical-align:baseline;padding:0 3px;min-height:18px;min-width:23px;background:white;border:1px solid var(--plum);border-radius:12px;color:var(--plum);font:700 .74rem/1 'TeX Gyre Pagella',serif}
body .cs-ep-marker::after{content:attr(data-number)}.cs-ep-marker[aria-current]{box-shadow:0 0 0 2px #9b6196}
::highlight(current-comment){background:#efdaea}
#tools button,.cs-card button,.cs-bigbtns button,.dialog-body button,.general-form button{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;background:white;color:var(--plum);border:1px solid #ab8ca7;border-radius:4px;font:inherit}
#tools #switch{display:none}
:is(.comment-icon,.cs-ep-marker,.cs-comment-icon,.book-icon,.passage-icon)::before{content:'';display:inline-block;width:1em;height:1em;flex:0 0 1em;background:currentColor;mask:url(conversation-chat-text.png) center/contain no-repeat}
.book-icon::before{mask-image:url(book-star-1.png)}.passage-icon::before{mask-image:url(book-open-text.png)}
/* Both actions share one menu surface and one icon column. */
html body.wn-edit-plan .wn-comment-toolbar:not([hidden]){
 display:grid;grid-template-columns:max-content;max-width:calc(100vw - 16px);
 padding:4px;border:1px solid #c6b6c4;border-radius:7px;background:white;box-shadow:0 3px 12px #34223526
}
html body.wn-edit-plan:has(#cartograph) .wn-comment-toolbar > button:is(.wn-librarian-book-trigger,.cs-comment-icon){
 display:grid!important;grid-template-columns:20px auto;align-items:center;justify-content:start;gap:9px;
 width:100%!important;max-width:none!important;min-width:0;height:auto;min-height:44px;box-sizing:border-box;
 border:0;border-radius:4px;margin:0;padding:6px 11px!important;background:transparent;color:#542450;
 font:1rem/1.3 'TeX Gyre Pagella',Georgia,serif!important;text-align:start;white-space:nowrap
}
html body.wn-edit-plan:has(#cartograph) .wn-comment-toolbar > button:is(.wn-librarian-book-trigger,.cs-comment-icon)::before{
 content:'';display:block!important;width:20px;height:20px;border:0;margin:0;background:currentColor;
 mask:var(--menu-icon) center/contain no-repeat!important
}
.wn-comment-toolbar .cs-comment-icon{--menu-icon:url(conversation-chat-text.png)}
.wn-comment-toolbar .wn-librarian-book-trigger{--menu-icon:url(book-star-1.png)}
html body.wn-edit-plan:has(#cartograph) .wn-comment-toolbar > button::after{content:none!important;display:none!important}
html body.wn-edit-plan:has(#cartograph) .wn-comment-toolbar > button:is(:hover,:focus-visible){background:var(--wash);color:var(--plum)}
html body.wn-edit-plan .wn-comment-toolbar > button:focus-visible{outline-offset:-2px}
dialog{max-width:min(540px,calc(100% - 22px));width:100%;max-height:80dvh;color:var(--ink);border:1px solid #aa90aa;border-radius:7px;padding:0;background:var(--paper);box-shadow:0 8px 38px #2a1e2929}
dialog::backdrop{background:#34293247}.dialog-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:var(--wash);padding:8px 16px;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:1.3rem;margin:0}.dialog-head button{font-size:1.4rem;background:none;border:0;color:var(--plum);padding:0 .35em}
.dialog-body{padding:15px}.dialog-body>.reference-text{display:block;margin-bottom:12px}.shelf section{padding:10px 0;border-bottom:1px solid var(--line)}.shelf section p{margin:.35em 0}
#status{position:fixed;bottom:4px;left:8px;z-index:6;max-width:80vw;background:#fff;color:var(--plum);font-size:.83rem;border-radius:3px;pointer-events:none}
.wnie-add,.diff ins{color:#126357!important;text-decoration:underline}.diff del{color:#953333}
@media(max-width:720px){
  body{padding:0 9px}.mast{min-height:38px}.mast>a{font-size:21px}.mast img{width:23px;height:23px}
  html body.cs-modern-review .cs-ep-review.cg-docked-workspace>.cs-review-panes{display:block}
  #tools #switch{display:inline-flex}.mast-client{font-size:.86rem}
}
@media(max-width:520px){
  html body.wn-edit-plan .cg-reader-heading{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:0 4px;padding-top:6px;margin-bottom:6px}
  html body.wn-edit-plan .cg-reader-heading .cg-reader-title{grid-column:1;grid-row:1;align-self:center}
  html body.wn-edit-plan .cg-reader-heading .cg-reader-tabs{grid-column:1/-1}
  #tools{grid-row:1}
  #tools #switch,#plan-tools summary{width:44px;height:44px;min-width:44px;font-size:0;gap:0;padding:0;border:0;background:transparent}
  #tools #switch::before,#plan-tools summary::before{width:20px;height:20px;flex:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
html body .cs-review-workspace,html body .cs-review-workspace textarea,html body .cs-review-workspace button{font-family:'TeX Gyre Pagella',Georgia,serif}
.wn-embedded-reader:has(.facsimile){max-width:min(730px,calc(100% - 20px));max-height:90dvh}
.facsimile{width:100%;height:auto;display:block}.page-controls{display:flex;gap:5px;flex-wrap:wrap}.page-caption{margin:8px 0;font-weight:bold}
.reply:not(:focus-within) button{display:none}.cs-ep-review.cg-show-publication #tools,.cs-ep-review.cg-show-publication #hint{display:none}
.practice-preview .cs-ep-marker,.practice-preview .wnie-remove,.practice-preview .cs-review-comments-column,.practice-preview #switch,.cg-show-publication #tools{display:none!important}
html body.cs-modern-review .practice-preview.cg-docked-workspace>.cs-review-panes{grid-template-columns:minmax(0,1fr)}
.practice-preview .wnie-add{color:inherit!important;background:none!important;text-decoration:none!important}


.citation-placement{display:flex;align-items:center;gap:.6em;margin:0 0 .6em;padding:.45em .65em;background:var(--wash);font-size:.92rem}
.citation-placement button{margin-inline-start:auto;white-space:nowrap;font:inherit;color:var(--plum);background:transparent;border:0;text-decoration:underline}
.citation-placement button::after{content:'×';padding-inline-start:.3em}
.shelf section>button{margin-inline-start:.6em}

/* The draft uses the same dark Studio palette as Isidore's filmed workspace. */
:root[data-wn-theme="dark"] {
  color-scheme: dark;
  --paper: #19171c;
  --ink: #fff7e8;
  --plum: #eac0e2;
  --line: #514a53;
  --wash: #322a34;
  --draft-card: #232126;
  --draft-muted: #d2c7cd;
  --draft-control: #382d38;
  --draft-control-line: #877585;
  --draft-field: #1d1b20;
  --qe-paper: #29252b;
  --qe-surface: #24312f;
  --qe-raised: #252227;
  --qe-ink: var(--ink);
  --qe-action: var(--plum);
  --qe-focus: var(--plum);
  --qe-action-ink: #2c202c;
  --qe-control: var(--draft-control-line);
  --qe-line: var(--line);
}
html[data-wn-theme="dark"] body { min-height: 100dvh; }
html[data-wn-theme="dark"] body:has(#cartograph) {
  --cg-paper: var(--paper);
  --cg-ink: var(--ink);
  --cg-action: var(--plum);
  --cg-line: var(--draft-control-line);
}
:root[data-wn-theme="dark"] .mast-product,
:root[data-wn-theme="dark"] .mast-client,
:root[data-wn-theme="dark"] #hint,
:root[data-wn-theme="dark"] :is(.cs-card, .shelf) small { color: var(--draft-muted); }
:root[data-wn-theme="dark"] :is(#cs-panel, .cs-card, .plan-menu) {
  border-color: var(--line);
  background: var(--draft-card);
  color: var(--ink);
}
html[data-wn-theme="dark"] body.cs-modern-review .cs-ep-review .ep-wheel-head :is(h2, p) {
  color: var(--ink);
  font-family: 'TeX Gyre Pagella', Georgia, serif;
}
html[data-wn-theme="dark"] body.cs-modern-review .cs-ep-review .ep-wheel-actions button,
html[data-wn-theme="dark"] body.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-sound {
  font-family: 'TeX Gyre Pagella', Georgia, serif;
  border-color: var(--draft-control-line);
  color: var(--plum) !important;
  background: var(--draft-control) !important;
}
:root[data-wn-theme="dark"] :is(.reply, .general-form, .dialog-body) :is(input, textarea) {
  background: var(--draft-field);
  color: var(--ink);
  border: 1px solid var(--draft-control-line);
}
:root[data-wn-theme="dark"] :is(#tools, .cs-card, .cs-bigbtns, .dialog-body, .general-form) button,
:root[data-wn-theme="dark"] .cs-ep-marker {
  border-color: var(--draft-control-line);
  color: var(--plum);
  background-color: var(--draft-control);
}
:root[data-wn-theme="dark"] .cs-card.cs-focus,
:root[data-wn-theme="dark"] .cs-ep-marker[aria-current] { border-color: var(--plum); }
:root[data-wn-theme="dark"] :is(#cartograph, .dialog-body) a { color: var(--plum); }
:root[data-wn-theme="dark"] .wnie-add,
:root[data-wn-theme="dark"] .diff ins { color: #cce5d6 !important; background-color: #283a33; }
:root[data-wn-theme="dark"] .diff del { color: #f3bac2; }
:root[data-wn-theme="dark"] #status { background-color: var(--paper); }
:root[data-wn-theme="dark"] ::selection,
:root[data-wn-theme="dark"] ::highlight(current-comment) { background: #60475c; color: #fff9f1; }
html[data-wn-theme="dark"] body.wn-edit-plan .wn-comment-toolbar:not([hidden]) {
  border-color: var(--draft-control-line);
  background: var(--wash);
  box-shadow: 0 3px 12px #0006;
}
html[data-wn-theme="dark"] body.wn-edit-plan:has(#cartograph) .wn-comment-toolbar > button:is(.wn-librarian-book-trigger, .cs-comment-icon) {
  color: var(--plum);
}
:root[data-wn-theme="dark"] .wn-citation-overlay {
  --citation-positive: #cce5d6;
  --citation-positive-bg: #283a33;
}
:root[data-wn-theme="dark"] .wn-citation-inline .wn-citation-result { background: #28252a; }
html[data-wn-theme="dark"] body.cs-modern-review .cs-review-workspace,
html[data-wn-theme="dark"] body.cs-modern-review .cs-review-workspace #cs-panel.cs-review-panel,
html[data-wn-theme="dark"] body.cs-modern-review .cs-review-workspace :is(button, input, textarea, select, summary, h1, h2, h3, h4),
html[data-wn-theme="dark"] body.cs-modern-review .cs-ep-review .cs-ep-marker[data-cs-id]::after {
  font-family: 'TeX Gyre Pagella', Georgia, serif;
}
html[data-wn-theme="dark"] body.cs-modern-review .cs-review-workspace #cs-panel.cs-review-panel {
  color: var(--ink);
  background: var(--draft-field);
}
html[data-wn-theme="dark"] body.cs-modern-review .cs-review-workspace #cs-panel .cs-card :is(textarea, input, select) {
  color: var(--ink);
  border-color: var(--draft-control-line);
  background: var(--draft-field);
}
html[data-wn-theme="dark"] body.cs-modern-review #cs-panel.comment-wheel-shell::before {
  box-shadow: inset 0 1px 0 #71616a;
}
html[data-wn-theme="dark"] body.cs-modern-review #cs-panel .cs-card textarea::placeholder {
  color: var(--draft-muted);
  opacity: 1;
}
