:root{--hero:url('/creative-studio/assets/img/wolf-room.webp');--pillar-hero:url('/creative-studio/assets/img/pillar-hero.webp');--plague-hero:url('/creative-studio/assets/img/plague-hero.webp')}
:root {
  color-scheme: dark;
  --background: #080e0b;
  --panel: #101913;
  --raised: #132019;
  --border: #23392a;
  --line: #203227;
  --text: #f1f3eb;
  --muted: #aab8aa;
  --muted-strong: #c5d1c4;
  --green: #1dc456;
  --mint: #83e8a1;
  --green-ink: #062411;
  --heading: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 20% 0%, #142319 0, transparent 39rem), var(--background); color: var(--text); line-height: 1.5; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
a { color: inherit; }
button:disabled { opacity: .5; cursor: default; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; letter-spacing: -.047em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 5.2vw, 5rem); }
h2 { font-size: clamp(2.2rem, 3.35vw, 3.25rem); }
h3 { font-size: 1.06rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
p { color: var(--muted); }
[hidden] { display: none !important; }
svg.icon { width: 19px; height: 19px; display: inline-block; flex: none; vertical-align: middle; }
.wrap { width: min(100% - 88px, 1300px); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -72px; z-index: 6; background: var(--green); color: var(--green-ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 10px; }
.topbar { background: #080e0bed; border-bottom: 1px solid #203228; position: relative; z-index: 2; }
.topbar-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; gap: 10px; width: max-content; }
.brand-mark { width: 43px; height: 43px; flex: none; color: #bdf8c9; filter: drop-shadow(0 0 6px #43df7870); }
.wordmark { font-family: var(--heading); display: block; letter-spacing: .15em; font-size: 1.14rem; line-height: 1.05; }
.brand small { color: var(--muted); display: block; font-size: .72rem; letter-spacing: .04em; margin-top: 3px; }
.nav { display: flex; gap: 26px; justify-content: center; margin-inline: auto; white-space: nowrap; }
.nav a, .nav button { border: 0; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; background: none; padding: 6px 0; font-size: .87rem; font-weight: 600; }
.nav a:first-child { color: var(--text); border-color: #58cb75; }
.nav a:hover, .nav button:hover { color: var(--mint); }
.mode { display: flex; align-items: center; gap: 11px; }
.avatar { width: 37px; height: 37px; border-radius: 50%; background: #173723; border: 1px solid #2a5638; display: grid; place-items: center; color: #c6f4ce; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.btn { border: 1px solid #3a5842; color: var(--text); background: #142019; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 8px; padding: 9px 14px; font-size: .86rem; font-weight: 650; text-align: center; line-height: 1.25; text-decoration: none; }
.btn .icon { width: 16px; height: 16px; }
.btn:hover { background: #203929; border-color: #4b7555; }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn.primary:hover { background: #49dd72; border-color: #49dd72; }
.btn.quiet { background: transparent; }
.btn.small { min-height: 36px; padding: 7px 11px; font-size: .81rem; }
.kicker { color: var(--mint); text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .16em; display: flex; gap: 8px; align-items: center; }
.kicker .icon { height: 15px; width: 15px; }
.page { padding-block: 31px 54px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.room-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.skin-switch { display: flex; gap: 8px; flex: none; }
.skin-option { min-height: 44px; min-width: 44px; }
.skin-option[aria-pressed="true"] { border-color: #52c573; box-shadow: 0 0 0 1px #52c573; }
.skin-check { font-size: .85rem; line-height: 1; }
.intro .kicker { margin-bottom: 10px; }
.intro p { margin-top: 11px; font-size: 1rem; }
.demo-tag { color: var(--muted); border: 1px solid #2b3f30; border-radius: 999px; font-size: .74rem; padding: 5px 10px; margin-bottom: 4px; white-space: nowrap; }
.project-grid { display: grid; gap: 17px; grid-template-columns: minmax(0, 2.11fr) minmax(310px, .99fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 17px; min-width: 0; }
.hero { min-height: 310px; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--hero) right center / auto 139% no-repeat, #0a120d; filter: sepia(.15) hue-rotate(69deg); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0d180ffb 13%, #0c170ef1 32%, #0b160e9c 53%, #101e1426 79%, #14271e33), linear-gradient(0deg, #0b150ec4 1%, transparent 42%); }
.hero-copy { padding: 29px 30px 31px; max-width: 515px; }
.hero-copy .kicker { margin-bottom: 17px; }
.hero h2 { font-size: clamp(2.85rem, 4.5vw, 4.35rem); max-width: 440px; text-wrap: initial; }
.hero .description { color: var(--muted-strong); margin: 11px 0 19px; max-width: 292px; font-size: .95rem; }
.hero-caption { position: absolute; right: 16px; bottom: 15px; border: 1px solid #9ab5a34d; border-radius: 999px; padding: 4px 9px; color: #e6eee5; background: #101911d9; font-size: .72rem; }
.wiki { padding: 22px 22px 16px; }
.wiki-header { display: flex; align-items: center; gap: 11px; }
.wiki h2 { font-family: var(--heading); font-size: 2.05rem; letter-spacing: -.04em; }
.wiki > p { margin: 9px 0 12px; font-size: .88rem; max-width: 31ch; }
.stamp { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #2d5038; border-radius: 10px; background: #122f1d; color: var(--mint); flex: none; }
.stamp .icon { width: 19px; height: 19px; }
.wiki-list { display: grid; }
.wiki-row { color: var(--text); text-align: left; min-height: 49px; display: flex; gap: 10px; align-items: center; width: 100%; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 8px 1px; font-size: .88rem; font-weight: 620; }
.wiki-row:hover { color: var(--mint); }
.wiki-row .icon { color: #8fca9e; width: 16px; height: 16px; }
.wiki-row .icon:last-child { margin-left: auto; }
.process { margin-top: 35px; scroll-margin-top: 18px; }
.section-head { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-head p { margin-top: 9px; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.stage { min-width: 0; color: var(--text); background: #0f1712; border: 1px solid #25392b; border-radius: 13px; display: flex; flex-direction: column; overflow: hidden; text-align: left; padding: 0; position: relative; transition: border-color .2s, background .2s; }
.stage:hover { border-color: #548562; background: #16231a; }
.stage[aria-pressed=true] { border-color: #52c573; background: #13221a; box-shadow: 0 0 0 1px #52c57335; }
.stage-photo { display: block; width: 100%; height: 101px; background: linear-gradient(145deg,#213c2b,#101913); overflow: hidden; position: relative; }
.stage-photo img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .8; filter: saturate(.45) sepia(.2) hue-rotate(69deg); }
.stage-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#101d1669,transparent 45%); }
.stage-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 0 0 5px; }
.stage-meta .icon { width: 16px; height: 16px; color: #9dd8ad; }
.chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 7px; border: 1px solid #304335; border-radius: 999px; color: #b4c6b5; font-size: .68rem; font-weight: 650; line-height: 1.2; }
.chip.live { border-color: #3e8051; color: var(--mint); background: #1a3825; }
.chip.confirmed { border-color: #3c6848; color: #c2ebcd; background: #172d20; }
.stage-content { display: block; padding: 12px 13px 14px; }
.stage-title { display: block; font-family: var(--heading); font-size: clamp(1.22rem, 1.8vw, 1.56rem); line-height: 1.15; letter-spacing: -.034em; }
.stage-hint { display: block; color: var(--muted); margin-top: 4px; font-size: .79rem; line-height: 1.35; }
.workbench { margin-top: 24px; padding: 24px; scroll-margin-top: 13px; }
.workbench-header h2 { margin-top: 5px; font-size: clamp(2rem,3vw,2.8rem); }
.workbench-header p { margin-top: 9px; max-width: 72ch; }
.workbench-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 17px; align-items: start; }
.subcard { background: #0c1510; border: 1px solid #233b2a; border-radius: 12px; padding: 15px; min-width: 0; }
.subcard h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.subcard h3 .icon { color: var(--mint); width: 16px; height: 16px; }
.subcard p { font-size: .9rem; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; }
.subcard .example { display: block; width: 100%; border-radius: 8px; max-height: 235px; object-fit: contain; background: #131c16; margin-top: 11px; }
.art-preview { margin: 0; }
.art-preview figcaption { margin-top: 7px; }
.image-full { display: block; width: 100%; max-height: 72dvh; object-fit: contain; background: #0b1510; border-radius: 8px; }
.subcard fieldset { border: 0; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.subcard fieldset legend { font-size: .86rem; font-weight: 650; margin-bottom: 6px; }
.subcard .btn { margin-right: 5px; }
.field { display: grid; gap: 7px; margin-top: 12px; font-size: .84rem; font-weight: 650; }
textarea, input[type=file] { border: 1px solid #37513e; border-radius: 8px; background: #121e16; color: var(--text); padding: 9px 10px; min-width: 0; width: 100%; font-size: .87rem; font-weight: 400; }
textarea { resize: vertical; min-height: 96px; }
textarea::placeholder { color: #8eaa94; }
input::file-selector-button { color: var(--text); background: #243b2d; border: 1px solid #405a47; border-radius: 6px; padding: 4px 7px; margin-right: 8px; cursor: pointer; }
.check { display: flex; align-items: start; gap: 8px; font-size: .87rem; color: var(--muted-strong); margin-top: 10px; }
.check input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--green); flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.details { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .86rem; }
.details summary { cursor: pointer; color: var(--muted-strong); font-weight: 650; }
.details > p { margin-top: 8px; }
.pins { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pin { background: #192d20; border: 1px solid #2d4b34; border-radius: 20px; color: #b5e7be; padding: 5px 10px; font-size: .81rem; }
.pin:hover { background: #294a33; }
.help, .error { margin-top: 7px; font-size: .77rem; }
.error { color: #ffb9b3; }
.footer { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: .8rem; }
#toast { position: fixed; z-index: 7; bottom: 18px; right: 18px; max-width: calc(100% - 36px); background: #173a26; border: 1px solid #427753; padding: 10px 14px; color: var(--text); border-radius: 9px; font-size: .88rem; box-shadow: 0 8px 25px #0007; }
dialog { background: var(--panel); color: var(--text); border: 1px solid #3b6045; border-radius: 16px; width: min(620px, 100% - 30px); max-height: calc(100dvh - 30px); padding: 0; box-shadow: 0 15px 60px #000b; }
dialog::backdrop { background: #030805bb; }
.modal-inner { padding: 22px 23px; }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 13px; margin-bottom: 13px; }
.modal-header h2 { font-size: clamp(1.95rem, 4vw, 2.7rem); line-height: 1.05; margin-top: 5px; }
.close { padding: 0; width: 39px; flex: none; }
.article-copy { display: grid; gap: 11px; }
.article-copy p { color: var(--muted-strong); }
.article-prompt { padding: 11px 12px; border: 1px solid #30573a; border-radius: 9px; color: #d5f4db; background: #172c1c; font-size: .89rem; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 52px); }
  .hero-copy { padding-left: 24px; }
  .wiki { padding-inline: 17px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 34px); }
  .project-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .hero { min-height: 290px; }
  .wiki { padding: 17px; }
  .wiki > p { max-width: none; }
  .stages { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workbench-grid { grid-template-columns: 1fr; }
  .workbench { padding: 15px; }
  .stage-title { font-size: 1.37rem; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { min-height: 61px; gap: 8px; justify-content: space-between; }
  .brand-mark { width: 36px; height: 36px; }
  .brand { gap: 7px; }
  .brand small { font-size: .64rem; }
  .nav { display: none; }
  .mode { gap: 7px; }
  .avatar { display: none; }
  .page { padding-block: 23px 34px; }
  .intro { align-items: flex-start; gap: 5px; margin-bottom: 17px; }
  .skin-switch { width: 100%; }
  .skin-option { flex: 1; }
  .intro p { font-size: .88rem; }
  .intro .kicker { font-size: .67rem; }
  .demo-tag { display: none; }
  h1 { font-size: clamp(2.72rem, 10vw, 3.4rem); }
  .hero { min-height: 275px; }
  .hero-copy { padding: 19px 16px 31px; }
  .hero h2 { font-size: clamp(2.55rem, 9vw, 3.1rem); max-width: 300px; }
  .hero .description { max-width: 222px; font-size: .85rem; }
  .hero::before { background-size: auto 109%; background-position: 75% center; }
  .hero::after { background: linear-gradient(90deg,#0c170ef1 11%,#0c170ebf 49%,#0c170e58 93%),linear-gradient(0deg,#0b150eab 1%,transparent 50%); }
  .hero-caption { display: none; }
  .hero .article-art-credit { bottom: 13px; }
  .process { margin-top: 27px; }
  .section-head p { font-size: .88rem; }
  .stages { gap: 9px; }
  .stage-photo { height: 88px; }
  .stage-content { padding: 9px 8px 11px; }
  .stage-title { font-size: 1.17rem; }
  .stage-hint { font-size: .74rem; }
  .stage-meta .icon { width: 14px; height: 14px; }
  .chip { font-size: .61rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Pillars and motif library */
:root { --background:#090d0a; --panel:#111812; --border:#29372a; --line:#263228; --gold:#d6ae70; --copper:#e09679; --jade:#9de7b6; }
body { background:radial-gradient(ellipse at 78% 0%,#1c281c 0%,transparent 42rem),var(--background); }
.nav a:first-child { color:var(--muted); border-color:transparent; }
.nav a[aria-current=page] { color:var(--text); border-color:#79d18f; }
.nav a:hover { color:var(--mint); }
.page :is(h1,h2)[tabindex="-1"]:focus { outline:none; }
.pillars-page { padding-top:24px; }
.pillar-hero { position:relative; isolation:isolate; overflow:hidden; min-height:294px; display:flex; align-items:center; background:#0c110d; }
.pillar-hero::before, .pillar-hero::after { position:absolute; content:""; inset:0; z-index:-1; }
.pillar-hero::before { background:var(--pillar-hero) right 54% / auto 170% no-repeat; }
.pillar-hero::after { background:linear-gradient(90deg,#0a100c 3%,#0a100cec 34%,#0d160fa6 54%,#101b1133 79%,#11191004); }
.pillar-hero-copy { padding:29px 33px; display:grid; justify-items:start; gap:10px; }
.pillar-hero-copy .kicker { color:#c0e1bd; }
.pillar-hero h1 { font-size:clamp(4rem,8vw,7.25rem); line-height:.92; letter-spacing:-.068em; }
.pillar-hero p { color:var(--muted-strong); font-size:1.04rem; margin-block:4px 7px; }
.pillar-section { margin-top:28px; }
.pillar-section .section-head { margin-bottom:15px; }
.pillar-section h2, .catalogue-section h2 { font-size:clamp(2rem,3.3vw,3.05rem); }
.pillar-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pillar-cover { border:1px solid var(--border); border-radius:13px; min-height:254px; isolation:isolate; overflow:hidden; position:relative; display:flex; justify-content:space-between; align-items:flex-end; text-align:left; color:var(--text); padding:16px; background:#0f1610; }
.pillar-cover::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#090d0a 1%,#090d0aee 11%,#090d0a81 38%,transparent 70%),linear-gradient(145deg,#09100b5e,transparent 40%); }
.pillar-cover img { position:absolute; z-index:-2; width:100%; height:100%; inset:0; object-fit:cover; object-position:50% 47%; transition:transform .35s ease,opacity .2s ease; opacity:.88; }
.pillar-cover.copper img { object-position:50% 6%; }
.pillar-cover:hover img { transform:scale(1.045); opacity:1; }
.pillar-cover:hover { border-color:var(--accent); }
.gold { --accent: var(--gold); }
.copper { --accent: var(--copper); }
.jade { --accent: var(--jade); }
.neutral { --accent:var(--muted-strong); }
.pillar-cover-copy { max-width:90%; }
.pillar-cover-top { position:absolute; left:13px; top:12px; display:grid; place-items:center; width:34px; height:34px; border:1px solid color-mix(in srgb,var(--accent) 40%, transparent); border-radius:8px; background:#0c120ed9; color:var(--accent); }
.pillar-cover-top .icon { width:17px; height:17px; }
.pillar-name { display:block; color:#f7f1e3; font:400 clamp(2rem,3.2vw,3.05rem)/.99 var(--heading); letter-spacing:-.049em; }
.pillar-desc { display:block; margin-top:6px; font-size:.83rem; color:#cbd0c4; }
.pillar-count { font-size:.7rem; line-height:1; border:1px solid color-mix(in srgb,var(--accent) 33%,transparent); color:var(--accent); background:#0c130ee7; padding:5px 7px; border-radius:999px; margin-left:6px; white-space:nowrap; }
.catalogue-section { margin-top:33px; scroll-margin-top:13px; }
.catalogue-section .section-head .kicker { margin-bottom:7px; }
.catalogue-section .section-head p { margin-top:7px; }
.catalogue { overflow:hidden; }
.catalogue-controls { padding:15px 16px 12px; display:grid; gap:12px; background:#121b14; border-bottom:1px solid var(--line); }
.filter-tokens { display:flex; flex-wrap:wrap; gap:6px; }
.filter-token { font-size:.82rem; font-weight:650; border-radius:999px; border:1px solid #324936; color:#c7d2c6; background:#142016; padding:5px 10px; min-height:34px; }
.filter-token:hover { border-color:#7fba8c; color:#eef6eb; }
.filter-token[aria-pressed=true] { background:#20452c; border-color:#6dbd83; color:#e5f7e9; }
.filter-grid { display:grid; grid-template-columns:minmax(0,1.9fr) repeat(2,minmax(0,1fr)); gap:9px; }
.filter-grid:has(> :only-child) { grid-template-columns:1fr; }
.filter-field { margin-top:0; }
.filter-field input, .filter-field select { min-height:40px; border-radius:8px; background:#0e1710; border:1px solid #34513a; color:var(--text); font:inherit; padding:7px 9px; min-width:0; }
.filter-field input::placeholder { color:#90a894; }
.catalogue-count { padding:8px 16px; font-size:.8rem; }
.catalogue-row { width:100%; display:grid; align-items:center; grid-template-columns:auto minmax(0,1fr) auto auto; gap:12px; text-align:left; color:var(--text); padding:12px 16px; border:0; border-top:1px solid var(--line); background:#111812; }
.catalogue-row:hover { background:#1a261d; }
.catalogue-icon { border:1px solid #33433a; border-radius:8px; width:37px; height:37px; display:grid; place-items:center; color:var(--accent); background:#17221a; }
.catalogue-icon .icon { width:18px; height:18px; }
.catalogue-entry { min-width:0; }
.catalogue-entry strong { display:block; font-size:.94rem; font-weight:650; overflow-wrap:anywhere; }
.catalogue-preview { display:block; font-size:.81rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catalogue-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.chip.hold { background:#2e2118; color:#f2c99f; border-color:#654c36; }
.open-row { color:var(--mint); }
.open-row .icon { height:16px; width:16px; }
.empty-state { padding:18px 16px; }
.empty-state .btn { margin-top:8px; }
.room-wiki-link { margin-top:9px; }
.motif-detail { padding-bottom:23px; }
.motif-badges { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.motif-copy h3 { margin-bottom:4px; }
.motif-illustration { display:block; object-fit:cover; object-position:center 39%; width:100%; height:144px; border:1px solid var(--line); border-radius:9px; margin-bottom:14px; }
.motif-related { margin-top:14px; }
.motif-related .pins { margin-top:7px; }
.motif-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0; margin:10px 0; }
.motif-meta dt { color:var(--muted); font-size:.76rem; }
.motif-meta dd { margin:0; color:#eef4e9; }
.motif-form { margin-top:17px; padding-top:3px; border-top:1px solid var(--line); }
.motif-shortlist { margin-top:16px; background:#0d1710; border:1px solid #2a402f; padding:13px 14px; border-radius:11px; }
.shortlist-title { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.shortlist-title p { font-size:.85rem; margin-top:3px; }
.shortlist-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; margin-top:10px; }
.shortlist-grid section { background:#152218; border:1px solid #2c4030; padding:10px; border-radius:8px; }
.shortlist-grid .note { color:var(--muted-strong); margin-top:6px; font-size:.84rem; }
.working-motif { display:flex; align-items:center; flex-wrap:wrap; gap:7px; color:var(--muted-strong); font-size:.82rem; margin-top:11px; }
@media(max-width:930px) {
  .pillar-cover { min-height:225px; padding:12px; flex-wrap:wrap; align-content:flex-end; gap:5px; }
  .pillar-count { margin-left:0; }
  .pillar-cover-copy { max-width:100%; }
  .pillar-hero::before { background-size:auto 150%; }
}
@media(max-width:660px) {
  .topbar-inner { flex-wrap:wrap; gap:0 10px; padding-top:7px; }
  .nav { display:flex; order:3; width:100%; gap:22px; justify-content:flex-start; margin:4px 0 0; }
  .nav a { padding-block:5px; }
  .pillar-grid { grid-template-columns:1fr; gap:9px; }
  .pillar-cover { min-height:156px; flex-wrap:nowrap; align-content:normal; }
  .pillar-cover img { object-position:50% 45%; }
  .pillar-cover::before { background:linear-gradient(0deg,#090d0af9,transparent 63%),linear-gradient(90deg,#090d0ad1,#090d0a29 75%); }
  .pillar-cover-copy { max-width:80%; }
  .pillar-name { font-size:2.15rem; }
  .pillar-desc { font-size:.78rem; }
  .catalogue-section .section-head { flex-wrap:wrap; }
  .filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-field:first-child { grid-column:1/-1; }
  .catalogue-row { gap:7px; padding:10px 9px; grid-template-columns:auto minmax(0,1fr) auto; }
  .catalogue-entry { order:0; }
  .catalogue-tags { grid-column:2; grid-row:2; justify-content:flex-start; }
  .open-row { grid-column:3; grid-row:1; }
}
@media(max-width:470px) {
  .pillars-page { padding-top:14px; }
  .pillar-hero { min-height:268px; }
  .pillar-hero-copy { padding:20px 13px; gap:10px; }
  .pillar-hero p { font-size:.88rem; }
  .pillar-hero::before { background-position:67% 50%; background-size:auto 113%; }
  .pillar-hero::after { background:linear-gradient(90deg,#0a100cec 10%,#0a100cc0 50%,#0d160f51 100%); }
  .pillar-section { margin-top:23px; }
  .pillar-cover .pillar-count { white-space:nowrap; margin-left:3px; align-self:end; }
  .catalogue-controls { padding-inline:10px; }
  .filter-token { font-size:.75rem; padding-inline:8px; }
  .shortlist-title { flex-wrap:wrap; }
}

/* Wiki article, concept builder and CMS pilot */
.nav a:first-child[aria-current=page] { color:var(--text); border-color:#79d18f; }


/* Paid Workbench pilot */
.wiki-workbench-cta {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:clamp(16px,3vw,27px); background:linear-gradient(108deg,#17291c,#0c1610);
}
.wiki-workbench-cta h2 { margin-top:7px; }
.wiki-workbench-cta p { margin-top:8px; }
.cta-actions { display:grid; justify-items:end; gap:7px; flex:none; }
.cta-actions .chip { border-color:#6b5537; color:#efd2a3; background:#2c2518; }
.workbench-mast { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.workbench-mast h1 { margin:6px 0 7px; font-size:clamp(2.8rem,5.5vw,4.95rem); }
.workbench-demo { padding:9px 12px; border:1px solid #4a442f; border-radius:8px; background:#221e15; color:#e2c99b; font-size:.8rem; margin-bottom:15px; }
.workbench-entry { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:14px; align-items:start; }
.workbench-access, .workbench-journey, .studio-campaigns, .workbench-proposal, .campaign-panel, .private-proposal { padding:clamp(14px,2.5vw,23px); }
.workbench-access h2, .workbench-journey h2, .workbench-proposal h2, .private-proposal h2, .campaign-panel h2 { font-size:clamp(1.8rem,3vw,2.65rem); }
.workbench-access h1 { font-size:clamp(2.6rem,4.2vw,3.8rem); }
.workbench-access h2 { margin:5px 0 9px; }
.workbench-access p, .workbench-proposal p { margin-top:6px; }
.workbench-access input, .workbench-proposal input:not([type=checkbox]) {
  min-width:0; width:100%; min-height:41px; color:var(--text); background:#0d1710; border:1px solid #365140; border-radius:8px; padding:8px 9px;
}
.workbench-access input::placeholder { color:#8eaa96; }
.workbench-access .field { max-width:410px; }
.workbench-steps { list-style:none; padding:0; margin:15px 0 0; display:grid; gap:11px; }
.workbench-steps li { display:flex; align-items:start; gap:9px; padding-top:9px; border-top:1px solid var(--line); }
.workbench-steps li>span { color:var(--mint); font-size:.78rem; padding-top:2px; }
.workbench-steps p { font-size:.86rem; margin-top:3px; }
.demo-inbox { background:#172c1e; border:1px solid #355e41; border-radius:9px; padding:12px; margin-top:13px; }
.demo-inbox h3 { margin-top:4px; }
.demo-inbox p { margin-top:5px; color:var(--muted-strong); font-size:.86rem; }
.workbench-session { display:flex; justify-content:space-between; gap:12px; align-items:center; color:var(--muted); font-size:.86rem; margin-bottom:10px; overflow-wrap:anywhere; }
.workbench-session strong { color:var(--mint); }
.reel-fixed-label { display:flex; align-items:flex-end; min-height:70px; color:var(--muted); font-size:.76rem; padding:4px 0; }
.reel-fixed .reel-icon { color:var(--gold); }
.reel-fixed .reel-current { border-color:#686040; background:#241f16; color:#efd2a3; }
.reel-neighbor { line-height:1.2; }
.reel-current { line-height:1.25; }
.save-help { color:var(--muted); font-size:.83rem; margin-top:9px; }
.campaign-panel { margin-top:14px; }
.campaign-panel header { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:start; gap:9px; }
.campaign-panel h2 { margin-top:5px; }
.campaign-panel p { margin-top:6px; }
.workbench-studio { display:grid; grid-template-columns:minmax(220px,295px) minmax(0,1fr); gap:14px; align-items:start; }
.studio-campaigns h2 { font-size:1.55rem; margin:0 0 8px; }
.studio-campaigns .queue-link { margin-top:4px; }
.workbench-proposal textarea { min-height:125px; }
.workbench-proposal .field:has(input[type=number]) { max-width:250px; }
.private-proposal .proposal-text { color:var(--muted-strong); white-space:pre-wrap; overflow-wrap:anywhere; margin-top:14px; }
.proposal-amount { display:flex; align-items:baseline; justify-content:space-between; gap:8px; border-top:1px solid var(--line); margin-top:18px; padding-top:10px; }
.proposal-amount strong { font-size:1.7rem; color:#d7efce; }
@media(max-width:680px) {
  .wiki-workbench-cta, .workbench-mast { align-items:start; flex-direction:column; }
  .cta-actions { justify-items:start; }
  .workbench-entry, .workbench-studio { grid-template-columns:1fr; }
  .workbench-demo { margin-bottom:11px; }
}
.article-hero { position:relative; isolation:isolate; display:flex; align-items:center; min-height:362px; overflow:hidden; background:#0d1510; }
.article-hero::after, .article-hero.has-art::before { content:""; position:absolute; inset:0; z-index:-2; }
.article-hero.has-art::before { background:var(--plague-hero) right 49% / auto 154% no-repeat; }
.article-hero::after { z-index:-1; background:linear-gradient(90deg,#0a110de8 8%,#0a110de3 35%,#0c140f75 59%,#10190f11 84%),linear-gradient(0deg,#081009b0,transparent 62%); }
.article-hero-copy { padding:28px 34px; max-width:645px; }
.article-labels { display:flex; align-items:center; flex-wrap:wrap; gap:11px; margin-bottom:12px; }
.article-labels .chip { color:#e1c394; border-color:#594931; background:#33271aa6; padding:5px 8px; }
.article-hero h1 { font-size:clamp(3.45rem,6.8vw,6.3rem); text-wrap:initial; line-height:.91; margin-bottom:12px; }
.article-subtitle { font-family:var(--heading); font-size:clamp(1.26rem,2vw,1.8rem); color:#e3d5bb; line-height:1.16; margin-bottom:8px; }
.article-dek { max-width:49ch; color:#c6d1c4; font-size:.96rem; }
.article-hero .actions { margin-top:16px; }
.preview-status { display:block; font-size:.73rem; color:#b4c3b1; margin-top:11px; }
.article-art-credit { position:absolute; bottom:13px; right:14px; border:1px solid #8aa58c4d; color:#e1e9dd; background:#0b130dca; padding:4px 8px; border-radius:99px; font-size:.72rem; }
.pillar-cover .article-art-credit { top:12px; right:12px; bottom:auto; }
.hero .article-art-credit { right:16px; bottom:46px; }
.wiki-body { display:grid; grid-template-columns:minmax(190px,265px) minmax(0,1fr); gap:clamp(18px,4vw,56px); margin-top:28px; align-items:start; }
.wiki-aside { position:sticky; top:14px; display:grid; gap:13px; }
.article-contents { padding:17px 15px; }
.article-contents h2 { font-size:1.42rem; margin-bottom:10px; }
.article-contents ol { margin:0; padding-left:21px; }
.article-contents li { padding:3px 0; font-size:.81rem; color:var(--mint); }
.article-contents li button, .content-ref { text-align:left; color:#ccdace; border:0; padding:4px 0; background:transparent; font-size:.83rem; line-height:1.35; }
.article-contents button:hover { color:var(--mint); text-decoration:underline; }
.content-ref { display:flex; gap:7px; align-items:center; margin-top:10px; }
.content-ref .icon { width:15px; }
.wiki-aside-idea { padding:6px 14px 12px; color:#e8f0e3; }
.wiki-aside-idea p { margin-top:5px; margin-bottom:10px; font-size:.83rem; }
.wiki-article { font-size:1.02rem; max-width:81ch; min-width:0; }
.wiki-chapter, .wiki-sources li { scroll-margin-top:18px; }
.wiki-chapter:focus, .wiki-sources li:focus { outline:none; }
.wiki-chapter { margin-bottom:25px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.wiki-chapter h2 { font-size:clamp(1.9rem,3.4vw,3rem); margin-bottom:13px; text-wrap:initial; }
.wiki-chapter p { color:#cbd4c8; line-height:1.73; margin-block:7px; overflow-wrap:anywhere; }
.wiki-chapter .chapter-number { color:var(--gold); font-size:.78rem; font-weight:700; letter-spacing:.13em; }
.wiki-sources h2 { margin-bottom:8px; }
.wiki-sources ol { color:var(--muted); margin:0; padding-left:24px; display:grid; gap:7px; font-size:.85rem; }
.wiki-sources li { padding-left:4px; overflow-wrap:anywhere; }
.wiki-sources a { color:#c4e3bf; text-underline-offset:3px; }
.citation { display:inline; font-size:.73em; font-weight:700; background:#1a3322; border:0; color:#acecb9; border-radius:4px; vertical-align:super; line-height:1; padding:2px 4px; }
.citation:hover { background:#2e623a; }
.concept-builder { color:var(--text); padding:22px; margin:3px 0 0; }
.concept-builder .section-head .kicker { margin-bottom:7px; }
.concept-builder .section-head h2 { font-size:clamp(2.1rem,3.35vw,3.05rem); scroll-margin-top:16px; }
.reels { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.reel { background:#0c150f; min-width:0; border:1px solid #334237; border-radius:11px; padding:11px; display:grid; align-content:start; gap:5px; }
.reel header { display:flex; justify-content:space-between; align-items:center; gap:5px; padding-bottom:3px; }
.reel header h3 { font-size:.92rem; }
.reel-icon, .reel-step { border:1px solid #2e4735; color:#cbe0ca; background:#17241b; border-radius:7px; }
.reel-icon { display:grid; place-items:center; width:35px; height:33px; }
.reel-icon[aria-pressed=true] { color:var(--mint); border-color:#6dbb7b; background:#193523; }
.reel-step { display:grid; width:100%; place-items:center; min-height:29px; }
.reel-icon:hover, .reel-step:hover:enabled { background:#23462e; border-color:#5c9569; }
.reel-step .icon, .reel-icon .icon { width:15px; height:15px; }
.reel-neighbor, .reel-current { display:flex; align-items:center; min-height:36px; border-radius:7px; padding:5px 8px; overflow-wrap:anywhere; }
.reel-neighbor { color:#8aa294; background:#111c15; font-size:.79rem; }
.reel-current { border:1px solid #5bcc7c; background:#183627; color:#def9e3; min-height:49px; font-weight:700; font-size:.89rem; }
.reel-hint { font-size:.69rem; color:var(--muted); }
.concept-result, .wiki-project-concept { margin-top:15px; padding:13px; border:1px solid var(--line); border-radius:10px; background:#0d1811; }
.concept-line { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:10px 0 0; }
.concept-line div { padding:7px; border:1px solid #2c4030; border-radius:7px; background:#15231a; }
.concept-line dt { color:#a5beaa; font-size:.74rem; }
.concept-line dd { color:#eef6e8; margin:3px 0 0; font-size:.88rem; font-weight:650; overflow-wrap:anywhere; }
.cms-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 0 18px; }
.cms-heading .kicker { margin-bottom:8px; }
.cms-heading p { margin-top:6px; }
.cms-heading h1 { font-size:clamp(3rem,5.4vw,4.9rem); }
.cms-layout { display:grid; grid-template-columns:minmax(210px,255px) minmax(0,1fr); gap:13px; align-items:start; }
.cms-form { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,280px); gap:13px; align-items:start; }
.queue-panel, .draft-panel, .review-panel { padding:14px; min-width:0; }
.queue-panel { position:sticky; top:12px; }
.queue-panel header, .draft-top { display:flex; justify-content:space-between; gap:7px; align-items:start; }
.queue-panel h2, .review-panel h2 { font-size:1.55rem; }
.queue-results { margin-top:10px; max-height: min(69vh,650px); overflow:auto; overscroll-behavior:contain; padding:1px 4px 2px 1px; }
.wave-group h3 { font-size:.76rem; font-weight:700; letter-spacing:.07em; color:#b0cab2; margin:9px 0 4px; }
.queue-link { display:grid; gap:2px; min-width:0; text-decoration:none; border:1px solid transparent; border-bottom-color:#2a382a; color:var(--text); border-radius:7px; padding:6px 7px; }
.queue-link strong { font-size:.83rem; line-height:1.2; overflow-wrap:anywhere; }
.queue-link span { color:var(--muted); font-size:.71rem; }
.queue-link:hover, .queue-link[aria-current=page] { background:#203c28; border-color:#4d7756; }
.queue-link .queue-dot { color:var(--mint); }
.queue-empty { font-size:.85rem; margin:7px 0; }
.draft-meta { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:7px; }
.draft-top h2 { font-size:clamp(1.8rem,2.7vw,2.45rem); text-wrap:initial; overflow-wrap:anywhere; }
.draft-controls { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:12px 0 4px; }
#draft-state { color:var(--muted); font-size:.75rem; margin:3px 0 3px 2px; }
.cms-layout input:not([type=checkbox]), .cms-layout select, .cms-layout textarea { min-width:0; width:100%; color:var(--text); background:#0d1710; border:1px solid #35523a; font:inherit; font-weight:400; border-radius:7px; padding:8px; }
.cms-layout input:not([type=checkbox]), .cms-layout select { min-height:37px; }
.cms-layout textarea { min-height:76px; }
.cms-layout textarea[name^=chapter-copy] { min-height:155px; }
.chapter-edits { display:grid; gap:8px; margin-top:12px; }
.editor-block { border:1px solid #334339; background:#101912; border-radius:8px; }
.editor-block summary { padding:8px 10px; cursor:pointer; color:#e6f0e4; font-size:.86rem; font-weight:650; }
.editor-block summary span { font-weight:400; color:var(--muted); margin-left:5px; overflow-wrap:anywhere; }
.editor-block-body, .editor-research { padding:0 10px 10px; }
.editor-research { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.82rem; }
.source-edit { border-bottom:1px solid var(--line); padding:9px 0; }
.source-edit:last-of-type { margin-bottom:9px; }
.review-column { min-width:0; position:sticky; top:12px; }
.review-status { padding:0; list-style:none; display:grid; gap:8px; margin:11px 0; }
.review-status li { display:grid; grid-template-columns:16px minmax(0,1fr) auto; align-items:center; gap:4px; font-size:.76rem; color:#d7e3d5; }
.review-mark { color:#e3b580; font-weight:700; }
.review-mark.met { color:var(--mint); }
.status-word { color:var(--muted); font-size:.68rem; }
.rights-hint, #export-note { font-size:.76rem; overflow-wrap:anywhere; }
.rights-hint code { color:#e4bc8e; font-size:.73rem; }
.review-actions { display:grid; justify-items:start; margin-bottom:9px; }
@media(max-width:1110px) {
  .cms-form { grid-template-columns:minmax(0,1fr); }
  .review-column { position:static; }
}
@media(max-width:650px) {
  .article-hero { min-height:338px; }
  .article-hero-copy { padding:20px 15px 23px; }
  .article-hero.has-art::before { background-size:auto 114%; background-position:70% center; }
  .article-hero::after { background:linear-gradient(90deg,#09110df2 4%,#0a120dd9 44%,#0c140f75 93%); }
  .article-dek { font-size:.86rem; }
  .article-hero h1 { font-size:clamp(3.12rem,10vw,4.1rem); }
  .article-hero .btn { min-height:39px; padding:7px 11px; font-size:.78rem; }
  .wiki-body { display:block; margin-top:15px; }
  .wiki-aside { position:static; display:block; margin-bottom:15px; }
  .wiki-aside-idea { display:none; }
  .article-contents { padding:12px; }
  .wiki-article { font-size:.92rem; }
  .wiki-chapter { margin-bottom:15px; padding-bottom:15px; }
  .reels, .concept-line { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .concept-builder { padding:12px; }
  .cms-layout { grid-template-columns:1fr; }
  .queue-panel { position:static; }
  .queue-results { max-height:210px; }
  .cms-heading { align-items:start; flex-wrap:wrap; }
}
@media(max-width:540px) {
  .mode .btn { min-height:34px; font-size:.75rem; padding-inline:7px; }
  .mode .btn svg { display:none; }
}
@media(max-width:385px) {
  .topbar-inner .brand { gap:5px; }
  .brand-mark { width:32px; height:32px; }
  .mode .btn { font-size:.69rem; padding-inline:5px; }
  .mode .btn svg { display:none; }
  .nav { gap:16px; }
}
