/* Reading shell. Keep these rules separate from the original artwork skin. */
@font-face {
  font-family: "Ciki Readable Pixel";
  src: url("/_assets/fonts/ciki/Unifont-17.0.05.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ciki-font-machine: "Ciki Readable Pixel", "Microsoft YaHei", sans-serif;
  --ciki-font-body: "Ciki Readable Pixel", "Microsoft YaHei", sans-serif;
}
html body .contents,
html body .contents :is(p, li, td, th, dd, dt, small, span, div, a, button, label, input, textarea, time, strong, b),
html body .ck-content,
html body .ck-content :is(p, li, td, th, span),
html body .ciki-forum :is(p, small, span, a, button, input, textarea) {
  font-family: var(--ciki-font-body) !important;
  letter-spacing: 0 !important;
}
html body .contents :is(h1, h2, h3, h4),
html body .contents :is(h1, h2, h3, h4) *,
html body .ck-content :is(h1, h2, h3, h4) {
  font-family: var(--ciki-font-display) !important;
}
html body .contents :is(p, li, td, dd) { font-size: 16px; line-height: 1.75 !important; }
html body .ck-content :is(p, li, td, th) { font-size: 16px; line-height: 1.75 !important; }
html body .contents .ciki-readable-small,
html body .ck-content .ciki-readable-small,
html body .contents small { font-size: 16px !important; line-height: 1.5 !important; }
/* Directory names are display labels, not article body text or TOC headings. */
html body :is(.contents, .ck-content) .case-index > a > strong,
html body :is(.contents, .ck-content) .case-index > a > strong :is(span, b, em) {
  font-family: var(--ciki-font-display) !important;
  font-size: 22px !important;
  font-weight: 400;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}
html body .contents [hidden] { display: none !important; }
html body .contents :is(.mdi, .v-icon), html body .ck-content .mdi { font-family: "Material Design Icons" !important; }
.contents pre, .contents pre *, .contents code { font-family: Consolas, monospace !important; }
.ciki-brand-link { display: flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none; font-size: 20px; white-space: nowrap; }
.ciki-brand-link img { width: 34px; height: 34px; object-fit: contain; }
.nav-header-inner:has(.ciki-brand-link) .v-avatar { display: none; }
.nav-header .ciki-brand-link:focus-visible { outline: 2px solid #345e51; outline-offset: 4px; }

html body footer.v-footer.ciki-footer { height: auto !important; min-height: 40px; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 12px 20px; }
.ciki-site-info { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; min-width: 0; }
html body footer.v-footer .ciki-site-info :is(a, span) { color: #bac4c3 !important; font: 14px/1.7 var(--ciki-font-body); letter-spacing: 0; text-decoration: none; overflow-wrap: anywhere; }
html body footer.v-footer .ciki-site-info a:hover { text-decoration: underline; }
.ciki-site-info a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 760px) {
  html body footer.v-footer.ciki-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Portraits stay in Vue's original fixed avatar boxes; only the paint changes. */
nav.v-navigation-drawer.primary .v-list-item { min-height: 42px; padding-inline: 12px !important; border-bottom: 0 !important; }
nav.v-navigation-drawer.primary .v-list-item__avatar { margin-right: 10px !important; }
nav.v-navigation-drawer.primary .v-list-item__title {
  font-family: var(--ciki-font-display) !important; font-size: 19px !important;
  line-height: 1.3 !important; letter-spacing: 0 !important;
}
nav.v-navigation-drawer.primary .v-list-item:is([href="/zh/home"], [href="/zh/prequel"], [href="/zh/mirage"]) { min-height: 50px; }
nav.v-navigation-drawer.primary .v-list-item:is([href="/zh/home"], [href="/zh/prequel"], [href="/zh/mirage"]) .v-list-item__title { font-size: 23px !important; }
nav.v-navigation-drawer.primary .v-list-item[aria-current="page"] { background: #939fa1 !important; box-shadow: inset 4px 0 #506e63; }
nav.v-navigation-drawer.primary .v-list-item:hover { box-shadow: inset 4px 0 #657c7a; }
nav.v-navigation-drawer.primary .v-list-item:focus-visible { outline: 2px solid #4a6a5e; outline-offset: -3px; }
nav.v-navigation-drawer.primary .v-subheader {
  gap: 8px; min-height: 36px; height: auto; padding: 14px 12px 8px;
  font-family: var(--ciki-font-display) !important; font-size: 17px; color: #455357 !important;
}
nav.v-navigation-drawer.primary .v-subheader::after { content: ""; flex: 1; height: 3px; background: #879497; border-top: 1px solid #bbc4c4; }
nav.v-navigation-drawer .v-subheader.ciki-nav-section { padding: 8px 6px 3px; }
nav.v-navigation-drawer .v-subheader.ciki-nav-section::after { display: none; }
.ciki-nav-section-toggle {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 39px; padding: 6px;
  border: 0; border-bottom: 1px solid #829092; border-radius: 0; color: inherit; background: transparent;
  font: inherit; text-align: left; cursor: pointer;
}
.ciki-nav-section-toggle > .mdi { font-family: "Material Design Icons" !important; font-size: 20px; }
.ciki-nav-section-toggle > span { flex: 1; }
.ciki-nav-section-toggle:hover { background: #45535712; }
.ciki-nav-section-toggle:focus-visible { outline: 2px solid #4a6a5e; outline-offset: -2px; }
.ciki-nav-section-arrow { transition: transform 140ms ease; }
.ciki-nav-section-toggle[aria-expanded="false"] .ciki-nav-section-arrow { transform: rotate(-90deg); }
nav.v-navigation-drawer .ciki-nav-section-item { padding-left: 20px !important; }
nav.v-navigation-drawer .ciki-nav-section-item[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ciki-nav-section-arrow { transition: none; } }
.ciki-brand-link span { font-family: var(--ciki-font-display) !important; font-size: 26px; }

html body .contents :is(.work-selector, .project-switcher) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
  gap: 14px; padding: 0; margin: 0; background: none; border: 0;
}
html body .contents .project-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
html body .contents :is(.work-key, .project-switcher a) {
  --work-accent: #9cbead;
  min-width: 0; min-height: 78px; padding: 12px 32px 12px 66px !important;
  display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start;
  position: relative; color: #dde1dc !important; background: #414c4e !important;
  border: 2px solid #677779 !important; border-bottom: 5px solid #252e30 !important;
  box-shadow: 3px 4px 0 #242d30, inset 0 2px #859291 !important;
  text-decoration: none !important; font-family: var(--ciki-font-display) !important; font-size: 32px !important;
  transition: background-color 160ms, border-color 160ms, box-shadow 160ms;
}
html body .contents :is(.work-key, .project-switcher a):nth-child(2) { --work-accent: #d1b49c; }
html body .contents :is(.work-key, .project-switcher a):nth-child(3) { --work-accent: #c1a9c4; }
html body .contents :is(.work-key, .project-switcher a).is-active { background: #4b5c55 !important; border-color: #879c91 !important; }
html body .contents :is(.work-key, .project-switcher a):is(:hover, :focus-visible, .is-preview) {
  background: #526060 !important; border-color: var(--work-accent) !important;
  box-shadow: 3px 4px 0 #242d30, inset 0 -3px var(--work-accent) !important;
}
html body .contents :is(.work-key, .project-switcher a):focus-visible { outline: 2px solid var(--work-accent); outline-offset: 4px; }
html body .contents :is(.work-key, .project-switcher a)::after {
  content: ""; position: absolute; width: 12px; height: 12px; right: 12px; top: 14px;
  background: transparent; border: 2px solid #889692; box-shadow: none;
}
html body .contents :is(.work-key, .project-switcher a).is-active::after { background: var(--work-accent); box-shadow: inset 0 0 0 2px #48534f; }
html body .contents :is(.work-key, .project-switcher a) > :is(span, small) { display: none; }
html body .contents :is(.work-key, .project-switcher a) .ciki-work-icon {
  position: absolute; width: 40px; height: 40px; left: 12px; top: 50%; transform: translateY(-50%); margin: 0; object-fit: contain;
  border: 2px solid #303b3d; box-shadow: 3px 3px 0 #303b3d;
}
html body .contents .work-key strong { font-family: var(--ciki-font-display) !important; font-size: 32px !important; font-weight: 400; margin: 0 !important; padding: 0 !important; align-self: auto !important; }
.work-selector .hardware-key {
  align-self: center; min-width: 44px; width: 44px; height: 44px; padding: 4px;
  color: #ccd5d1 !important; background: #444f52; border: 2px solid #697779; box-shadow: 3px 3px #252e30;
}
.work-selector .hardware-key[aria-pressed="true"] { color: #b5d6c4 !important; border-bottom: 4px solid #8da99b; }
.work-selector .hardware-key .mdi { font-size: 22px; }
.work-selector .hardware-key > span { display: none; }

/* Static backplane texture; hardware is CSS-only and never enters article HTML. */
html body .contents .ops-home {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  padding: 0 8px 16px 0 !important; border: 0 !important; box-shadow: none !important;
  background: linear-gradient(90deg, #a8b5aa09 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(#a8b5aa09 1px, transparent 1px) 0 0 / 48px 48px,
    repeating-linear-gradient(135deg, #1d282908 0 1px, transparent 1px 5px) !important;
}
.ops-home::before, .ops-home::after, .ops-home .rig-rail, .ops-home .ops-prop-strip { display: none !important; }
.ops-home .surveillance-rig::before, .ops-home .surveillance-rig::after { display: none !important; }
html body .contents .ops-home .ops-overview-grid { display: contents; }
html body .ops-home :is(.ops-window, .work-selector, .monitor-shell, .ops-masthead, .ops-protocol) { grid-area: auto !important; }
body:has(.ops-home) .ciki-scene-banner { height: 236px; }
html body .contents .ops-masthead {
  min-height: 72px; padding: 0 0 16px; margin: 0; align-items: center;
  background: none !important; border: 0 !important; border-bottom: 3px solid #697578 !important; box-shadow: none !important;
}
.ops-masthead:has(.ciki-home-imprint) .ops-masthead__id { display: none; }
.ciki-home-imprint { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ciki-home-imprint img { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
html body .contents .ciki-home-imprint strong { display: block; color: #e0e1d9; font: 400 46px/1.1 var(--ciki-font-display) !important; text-shadow: 3px 3px #222d2f; }
.ciki-home-imprint small { display: block; margin-top: 6px; color: #b4c3bf; }
.ops-masthead .ops-clock { flex: 0 0 122px; min-width: 0; padding: 6px 0 6px 16px; background: none; border-left: 3px solid #657676; }
.ops-masthead .ops-clock strong { margin: 0; font-size: 22px; font-variant-numeric: tabular-nums; color: #d3bea4; }
.ops-masthead .ops-clock span { color: #b8c3c2; }
html body .contents .monitor-screen { min-height: 0 !important; height: auto !important; aspect-ratio: 16 / 9; border: 1px solid #7d8f88 !important; }
html body .contents .monitor-shell {
  padding: 8px; margin: 0; background: #253234 !important; border: 3px solid #74827d !important;
  box-shadow: 5px 6px 0 #242c2e, 0 10px 20px #20282b66 !important;
}
.ops-home .work-feed-image { filter: brightness(.97) saturate(.92); transition: transform 320ms ease; }
.ops-home .work-feed-image::after { background: linear-gradient(180deg, #17221b77, transparent 32%, transparent 80%, #17221b66); }
.ops-home .monitor-screen.is-switching { animation: none; }
.ops-home .monitor-screen:hover .work-feed-image { transform: translate(var(--look-x), var(--look-y)) scale(1.1); }
.ops-home .monitor-readout--top { font-size: 16px; padding: 10px; gap: 4px; }
.ops-home .monitor-readout--top > b { display: none; }
html body .contents .monitor-caption { display: flex; flex-direction: column; align-items: stretch; padding: 14px 8px 6px; gap: 12px; margin: 0; background: none !important; }
html body .contents .monitor-caption a { padding: 9px 10px !important; color: #dce5dc !important; background: #4a6758; border: 2px solid #89a08f !important; text-align: center; }
html body .contents .monitor-caption a { display: flex; align-items: center; justify-content: center; gap: 8px; }
.monitor-caption a::after { content: "\F0054"; font: 18px "Material Design Icons"; }
.monitor-caption p { margin: 0 !important; }
.monitor-caption > span, .monitor-readout--bottom { display: none; }
.ciki-scene-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 8; }
.ciki-scene-zoom, .ciki-scene-dialog button { display: grid; place-items: center; width: 40px; height: 40px; color: #e5eae1; background: #283936eb; border: 2px solid #a5b6ab; cursor: pointer; }
.ciki-scene-zoom .mdi, .ciki-scene-dialog .mdi { font-family: "Material Design Icons" !important; font-size: 22px; }
.ciki-scene-zoom:is(:hover, :focus-visible), .ciki-scene-dialog button:is(:hover, :focus-visible) { color: #1c3028; background: #b2cbbb; outline: 2px solid #d5e6db; outline-offset: 2px; }
.ciki-scene-dialog { position: fixed; padding: 8px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; background: #263333; border: 3px solid #92a79c; color: #e5e6dc; box-shadow: 12px 12px #111a1a99; }
.ciki-scene-dialog::backdrop { background: #111a1be8; }
.ciki-scene-dialog > img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 118px); object-fit: contain; }
.ciki-scene-dialog > strong { display: block; padding: 8px 48px 0 8px; font: 28px/1.2 var(--ciki-font-display); }
.ciki-scene-dialog > button { position: absolute; right: 16px; top: 16px; }
/* Each module is a panel. Depth was previously reserved for entries and the
   monitor, which left the sections themselves hard to separate at a glance;
   the frame reuses the monitor's hardware treatment and the --panel-accent that
   was already declared but never consumed, so every section reads as its own
   instrument without changing the palette. */
html body .contents .ops-window {
  --panel-accent: #9ebcb7;
  position: relative;
  margin: 0; min-width: 0; padding: 18px 20px 20px;
  background: linear-gradient(110deg, #53605b22, transparent 45%), #303b3d !important;
  border: 3px solid #5d6b6c !important;
  border-top: 4px solid var(--panel-accent) !important;
  box-shadow: 5px 7px 0 #20292b, inset 0 0 0 2px #87958b25, 0 12px 18px #16202026 !important;
  clip-path: none !important;
}
.ops-window::before, .ops-window::after { display: none !important; }
/* Mounting plates, fasteners and insulated inter-module cable runs. */
html body .contents .ops-home .ops-window::after {
  content: ""; display: block !important; position: absolute; right: 18px; top: -10px;
  width: 54px; height: 16px; border: 1px solid #253234; border-radius: 2px;
  background: radial-gradient(circle at 7px 7px, #233030 0 2px, #9da69b 2px 3px, transparent 3px),
    radial-gradient(circle at 45px 7px, #233030 0 2px, #9da69b 2px 3px, transparent 3px),
    linear-gradient(#889389, #4d5b58 45%, #718079 50%, #3a4847);
  box-shadow: 0 2px 0 #1f2b2d; pointer-events: none;
}
html body .contents .ops-home :is(.ops-window--library, .ops-window--evidence, .ops-window--accounts, .ops-side > .ops-window + .ops-window)::before {
  content: ""; display: block !important; position: absolute; top: -34px; left: 24px;
  width: 22px; height: 32px; border-inline: 2px solid #202b2b; border-block: 0;
  background: repeating-linear-gradient(0deg, transparent 0 6px, #1e292bd9 6px 9px),
    linear-gradient(90deg, #263433 0 15%, #819086 18% 25%, #4a5e54 30% 54%, #b0a179 60% 68%, #374b47 75%);
  box-shadow: 3px 0 #1d292c55; pointer-events: none;
}
html body .contents .ops-window--ticker { --panel-accent: #c19758; }
html body .contents .ops-window--feed { --panel-accent: #8fada7; }
html body .contents .ops-window--announce { --panel-accent: #c9a05c; }
html body .contents .ops-window--library { --panel-accent: #a6c2b3; }
html body .contents .ops-window--newcomer { --panel-accent: #8fa8c7; }
html body .contents .ops-window--evidence { --panel-accent: #b3b5ce; }
html body .contents .ops-window--community { --panel-accent: #9bb8a6; }

/* The right column stacks the entry feed and the notice board, so both share
   one column width and the notice board sits directly under the feed. */
.ops-home .ops-side { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.ops-home .ops-side > .ops-window { min-width: 0; }

/* The screen and selector rack share one mechanically joined chassis. */
html body .contents .ops-home .monitor-shell { width: 100%; max-width: none; margin-inline: 0; }
/* Screen and tuning keys share one chassis, even when edited as separate blocks. */
html body .contents .ops-home .surveillance-rig {
  display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 52px;
  grid-template-areas: "screen keys"; align-items: stretch; min-width: 0;
  position: relative; margin: 0; padding: 22px 18px 18px;
  background: repeating-linear-gradient(0deg, #88938708 0 1px, transparent 1px 4px), #293638;
  border: 3px solid #7b8981; border-bottom: 7px solid #202e30;
  box-shadow: 6px 7px #20292c, inset 0 3px #a3ada0, inset 0 -2px #819080, 0 14px 24px #17222240;
}
html body .contents .ops-home .surveillance-rig::before,
html body .contents .ops-home .surveillance-rig::after {
  content: ""; display: block !important; position: absolute; width: 28px; height: 8px;
  border: 0; border-radius: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, #a3a38c 0 3px, #233130 3px 7px);
  box-shadow: 0 1px #bdc1a1, 0 3px #172626;
}
html body .contents .ops-home .surveillance-rig::before { left: 18px; top: 7px; }
html body .contents .ops-home .surveillance-rig::after { right: 18px; bottom: 5px; }
html body .contents .ops-home .surveillance-rig .monitor-screen {
  border: 5px solid #1f2c2d !important; outline: 2px solid #7c8b7b; outline-offset: 1px;
  box-shadow: 0 0 0 5px #111e20, 0 6px 10px #14212388;
}
html body .contents .ops-home .surveillance-rig .monitor-shell {
  grid-area: screen !important; align-self: start; padding: 0;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body .contents .ops-home .surveillance-rig .work-selector {
  grid-area: keys !important; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(70px, 1fr)) 40px; gap: 10px;
  position: relative; padding: 0; border: 0; overflow: visible;
}
html body .contents .ops-home .surveillance-rig .work-selector::before {
  content: ""; position: absolute; top: 5px; bottom: 52px; left: -19px; width: 12px;
  background: linear-gradient(90deg, #b0b5a0, #65786a 30% 65%, #273c37 70%);
  border: 2px solid #263432; box-shadow: 3px 3px #18272a; pointer-events: none;
}
html body .contents .ops-home .surveillance-rig .work-selector::after {
  content: ""; position: absolute; top: 24px; bottom: 67px; left: -43px; width: 15px;
  border: 4px solid #74897b; border-right: 0; border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 #1c2b2b, inset 3px 0 #1b2b2b, -6px 0 #ae9b6c;
  pointer-events: none;
}
html body .contents .ops-home .surveillance-rig .work-key {
  min-height: 70px; padding: 12px 20px 12px 49px !important;
  background: linear-gradient(115deg, #87988a22, transparent 60%), #465351 !important;
  border: 3px solid #819180 !important; border-right: 6px solid #293c36 !important;
  border-bottom: 6px solid #23342f !important; border-radius: 3px;
  box-shadow: 3px 4px #18282a, inset 0 2px #bdc3ac55, inset -2px 0 #bac2ab33 !important;
  transition: background-color 160ms, border-color 160ms, box-shadow 160ms, transform 160ms;
}
html body .contents .ops-home .surveillance-rig .work-key::before {
  content: ""; position: absolute; top: calc(50% - 9px); left: -55px; width: 52px; height: 18px;
  border: 2px solid #23302f; border-radius: 2px; pointer-events: none;
  background: linear-gradient(0deg, transparent 0 5px, var(--work-accent) 5px 8px, transparent 8px),
    repeating-linear-gradient(90deg, #81917f 0 4px, #45574f 4px 7px);
  box-shadow: 0 3px #162727, inset 0 2px #aeb69f;
}
html body .contents .ops-home .surveillance-rig .work-key:is(:hover, :focus-visible) { transform: translateX(2px); }
html body .contents .ops-home .surveillance-rig .work-key:is(.is-active, .is-preview)::before {
  border-bottom-color: var(--work-accent); filter: brightness(1.15);
}
html body .contents .ops-home .surveillance-rig .work-key strong { font-size: 26px !important; line-height: 1.2; }
html body .contents .ops-home .surveillance-rig .work-key .ciki-work-icon { width: 30px; height: 30px; left: 8px; }
html body .contents .ops-home .surveillance-rig .work-key::after { width: 7px; height: 7px; right: 7px; top: 9px; }
html body .contents .ops-home .surveillance-rig .work-key.is-preview {
  background: #50655e !important; border-color: var(--work-accent) !important;
  box-shadow: 1px 2px #1c282b, inset 0 -3px var(--work-accent) !important;
}
html body .contents .ops-home .surveillance-rig .work-key.is-preview::after { background: var(--work-accent); }
html body .contents .ops-home .surveillance-rig .hardware-key {
  display: grid; place-items: center; grid-column: auto; width: 40px; height: 40px;
  min-height: 40px; min-width: 40px; justify-self: end;
}
.ops-home .monitor-screen.is-tuning .work-feed-image { animation: ciki-channel-tune 240ms steps(4, end); }
@keyframes ciki-channel-tune { 0% { opacity: .25; transform: translateX(-3px); } 50% { opacity: .7; transform: translateX(2px); } 100% { opacity: 1; transform: none; } }
html body .contents .monitor-caption { padding: 10px 8px 4px; gap: 8px; }
html body .contents .monitor-caption a { padding: 8px 10px !important; }

/* Contact details close the page as a full-width strip. */
html body .contents .account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html body .contents .account-card {
  display: grid; gap: 4px; align-content: start; min-width: 0;
  padding: 12px 14px; background: #46544f;
  border: 1px solid #75847c; border-left: 3px solid var(--panel-accent, #9ebcb7);
  box-shadow: 3px 3px #283134;
}
html body .contents .account-card > span { color: #c8bda3; font-size: 15px; letter-spacing: .06em; }
html body .contents .account-card > strong { color: #e2e5da; font: 400 21px/1.25 var(--ciki-font-display) !important; overflow-wrap: anywhere; }
html body .contents .account-card > small { color: #b9c6c0; font-size: 16px; }
html body .contents .account-card[href]:is(:hover, :focus-visible) { background: #516264; outline: 2px solid #9bb8a6; outline-offset: -2px; }

/* The right column stacks five modules; it carries the slack when the left
   column is the taller one, so its own spacing stays fixed. */
@media (min-width: 701px) {
  html body .contents .ops-home .ops-window--accounts { --panel-accent: #9ebcb7; }
}
html body .contents :is(.ops-window__head, .rack-heading, .bench-label) {
  display: flex; align-items: center; justify-content: space-between; padding: 0 0 12px;
  margin: 0 0 14px; min-height: 36px; flex-wrap: wrap; gap: 4px 12px;
  background: none !important; border: 0 !important; border-bottom: 3px solid var(--panel-accent, #627273) !important; box-shadow: none;
}
html body .contents :is(.ops-window__head, .rack-heading, .bench-label) > span { font: 400 26px/1.2 var(--ciki-font-display) !important; color: #d8dfd9; }
html body .contents :is(.ops-window__head, .rack-heading, .bench-label) > :is(b, strong) { color: #acbab8; font-size: 16px !important; font-weight: 400; }
.ops-window__head span::before { width: 10px; height: 10px; border: 2px solid #94afa6; border-right: 0; border-bottom: 0; background: none; box-shadow: none; vertical-align: 5px; }
.ops-window__head span::after { display: none; }
html body .contents .ops-home :is(.ops-window__head, .rack-heading, .bench-label) > :is(b, strong) {
  padding: 3px 8px; border: 1px solid #75827966; background: #1f2e2f80;
  box-shadow: inset 1px 1px #172527; font-size: 14px !important;
}
.ops-home .ops-window__action { margin-top: 12px; padding: 10px 0 !important; border: 0 !important; background: none !important; color: #bcd2c8 !important; text-align: left; }
.ops-home .ops-window__action::after { content: "\F0054"; font: 18px "Material Design Icons"; margin-left: 8px; }

/* A short line of supporting copy under a module heading. */
html body .contents .ops-window__note { margin: -4px 0 14px !important; color: #bac7c1; font-size: 17px; }

/* Announcements are dated notices, structurally the same list as the update
   feed so both read as the same kind of instrument. Both sit in the narrow
   right column, so their rows are tightened rather than left at feed width. */
html body .contents .announce-list { display: grid; gap: 10px; margin: 0; }
html body .contents .announce-list article {
  display: grid; gap: 4px; align-content: start;
  padding: 10px 12px; background: #46544f;
  border: 1px solid #75847c; border-left: 3px solid #c9a05c;
  box-shadow: 3px 3px #283134;
}
html body .contents .announce-list__tag { color: #c8bda3; font-size: 15px; letter-spacing: .06em; }
html body .contents .announce-list strong { color: #e2e5da; font: 400 20px/1.25 var(--ciki-font-display) !important; }
html body .contents .announce-list p { margin: 0 !important; color: #c3cdc7; font-size: 16px; }
html body .contents .announce-list a { color: #cfe0d4 !important; font-size: 16px; }

/* Exactly five recent entries fit the column without stretching it. */
.ops-home .ops-side .ciki-update-list li { margin-bottom: 7px; padding: 8px 10px 8px 13px; }
html body .contents .ops-home .ops-side .ciki-update-list a { font-size: 19px !important; }
.ops-home .ops-side .ciki-update-list time { font-size: 15px; }
.ops-home .ops-side .ops-window__action { margin-top: 10px; padding: 8px 0 !important; }

/* Announcements sit in the narrow column below the newcomer grid, so the tag
   shares the title's row and only the body wraps underneath. */
html body .contents .ops-side .announce-list { gap: 8px; }
html body .contents .ops-side .announce-list article {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px; align-items: baseline;
}
html body .contents .ops-side .announce-list__tag { grid-column: 1; grid-row: 1; }
html body .contents .ops-side .announce-list strong { grid-column: 2; grid-row: 1; }
html body .contents .ops-side .announce-list :is(p, a) { grid-column: 1 / -1; }
html body .contents .ops-side .announce-list p { font-size: 16px; line-height: 1.5; }

/* Project notice board. The source list stays in the page for editors; this
   viewport is generated at runtime and alternates one message at a time. */
.ops-ticker { margin: 0; }
html body .contents .ops-window--ticker { padding: 12px 20px 14px; }
html body .contents .ops-window--ticker .ops-window__head { min-height: 28px; margin-bottom: 10px; padding-bottom: 8px; }
.ops-ticker__viewport {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 42px; padding: 0 16px;
  background: #161f1d; border: 2px solid #6d7a6a;
  box-shadow: inset 0 0 0 2px #0d1413, inset 0 0 24px #00000099, 3px 3px 0 #1f2729;
}
.ops-ticker__viewport::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, #ffffff08 0 1px, transparent 1px 4px);
}
.ops-ticker__line {
  display: block; flex: 0 0 auto; white-space: nowrap; will-change: transform;
  color: #dcc487; font: 400 19px/1.4 var(--ciki-font-machine, Consolas, monospace);
  text-shadow: 0 0 10px #d9b96c55;
}
.ops-ticker__line.is-swapping { opacity: 0; }
.ops-ticker__viewport.is-still .ops-ticker__line { white-space: normal; flex: 1; overflow-wrap: anywhere; }
.ops-ticker__status { color: #8fa39a; font: 400 22px/1.5 var(--ciki-font-machine, Consolas, monospace); }

/* The monitor shows the project scene only; the live counters that used to sit
   over it were removed, so no status styling is needed here. */
.ciki-update-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.ciki-update-list li::before { display: none !important; }
.ciki-update-list li { position: relative; margin-bottom: 10px; padding: 10px 12px 10px 16px; border: 1px solid #627779; border-left: 3px solid #8fada7; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; background: #465557; box-shadow: 3px 3px #283235; }
.ciki-update-list li:nth-child(even) { background: #414d51; }
.ciki-update-list li:hover { border-left-color: #c0d3c2; background: #516264; }
html body .contents .ciki-update-list a { overflow-wrap: anywhere; font: 22px/1.3 var(--ciki-font-display) !important; color: #d6e4dc !important; }
.ciki-update-list time { color: #bfcbc6; font-size: 16px; white-space: nowrap; }
.ciki-updates-status { padding: 12px; }
html body .contents button[data-publications-more] { display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:34px;padding:6px 11px;border:1px solid #5d666b;border-radius:3px;background:#30383d;color:#dfe2e1!important;font-size:13px!important;white-space:nowrap;box-shadow:none; }
html body .contents button[data-publications-more]:hover { background:#3a444a;border-color:#7e8587; }
.ciki-announcements { padding: 16px 0 0; margin-top: 12px; border-top: 3px solid #6e7770; }
.ciki-announcements h3 { margin: 0 0 8px !important; font-size: 22px !important; }
.ciki-announcements a { display: block; margin: 6px 0; color: #cccfb8 !important; }
html body .contents .version-matrix { padding: 0; }
html body .contents .version-matrix > div { grid-template-columns: auto minmax(0, 1fr); padding: 10px; margin-bottom: 6px; background: #4d5250; border: 0; border-left: 3px solid #9c9982; }
html body .contents .version-matrix :is(dt, dd) { margin: 0; font-size: 16px; }
html body .contents .version-matrix dd { text-align: right; color: #daddcc; }
html body .contents .version-note { display: block; margin: 8px 0 0; padding: 0; color: #b6c0ba; background: none !important; }
html body .contents .archive-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; background: none; border: 0; box-shadow: none; }
html body .contents .archive-slot {
  --entry-accent: #a6c2b3; --entry-art: url("/_assets/art/ciki/props/nine_phase_scroll.png");
  position: relative; isolation: isolate; min-height: 132px; padding: 16px 78px 16px 16px !important;
  clip-path: none !important;
  display: flex !important; align-items: center; gap: 12px; background: #465750 !important;
  border: 2px solid #71897d !important; border-bottom: 5px solid #283632 !important;
  box-shadow: 5px 5px 0 #263130, inset 0 2px #82958b !important; transition: transform 180ms ease, box-shadow 180ms ease;
}
html body .contents .archive-slot:nth-child(2) { --entry-accent: #b3b5ce; --entry-art: url("/_assets/art/ciki/props/mago_tarot.png"); }
html body .contents .archive-slot:nth-child(3) { --entry-accent: #d4b1bf; --entry-art: url("/_assets/art/ciki/props/ema_sakura.png"); }
html body .contents .archive-slot:nth-child(4) { --entry-accent: #cfbea1; --entry-art: url("/_assets/art/ciki/props/hiro_pen.png"); }
html body .contents .archive-slot:nth-child(2) { background: #4a4f5c !important; border-color: #777e91 !important; border-bottom-color: #2c3440 !important; }
html body .contents .archive-slot:nth-child(3) { background: #584e56 !important; border-color: #907d88 !important; border-bottom-color: #352e36 !important; }
html body .contents .archive-slot:nth-child(4) { background: #55544c !important; border-color: #8a8876 !important; border-bottom-color: #343830 !important; }
html body .contents .archive-slot::after { content: ""; position: absolute; right: 12px; bottom: 22px; width: 64px; height: 64px; background: var(--entry-art) center / contain no-repeat; image-rendering: pixelated; transform: rotate(-8deg); transition: transform 180ms ease; pointer-events: none; }
html body .contents .archive-slot > i { display: none; }
html body .contents .archive-slot > span { min-width: 0; flex: 1; }
html body .contents .archive-slot > b { position: absolute; top: 8px; right: 12px; color: var(--entry-accent); font: 18px var(--ciki-font-display) !important; }
html body .contents .archive-slot strong { color: #e0e1d8; font: 26px/1.2 var(--ciki-font-display) !important; }
html body .contents .archive-slot small { color: #c1cac4; margin-top: 8px; }
html body .contents .archive-slot:is(:hover, :focus-visible) { transform: translateY(-3px); box-shadow: 5px 8px 0 #25302e, inset 0 2px var(--entry-accent) !important; outline: 2px solid var(--entry-accent); outline-offset: 2px; }
.archive-slot:is(:hover, :focus-visible)::after { transform: rotate(4deg) translateY(-3px) !important; }
html body .contents .common-entry-grid { background: none; padding: 0; gap: 10px; }
html body .contents .common-entry-grid a { padding: 12px !important; background: #4c5353; border: 1px solid #748080 !important; box-shadow: 3px 3px #293235; }
html body .contents .common-entry-grid a:nth-child(2n) { background: #50564f; }
html body .contents .common-entry-grid strong { font: 22px/1.25 var(--ciki-font-display) !important; color: #dce0d4; }
.common-entry-grid small { color: #b7c4bb; }
.common-entry-grid a:hover { outline: 2px solid #9bb8a6; outline-offset: -2px; }
html body .contents .ops-window--evidence .bench-layout { padding: 18px 0; border-block: 3px solid #726f67; background: none; }
html body .contents .ops-window--evidence .evidence-copy p { color: #d0d3cc !important; }
.ops-window--evidence .evidence-cassette { box-shadow: 6px 8px 0 #252d2c; }
.ops-home .home-topic-list { min-height: 96px; padding: 12px; background: #45534d; border-left: 3px solid #8da897; box-shadow: 3px 3px #29332f; }
.ops-home .community-shortcuts { margin-top: 14px; gap: 8px; border: 0; }
.ops-home .community-shortcuts a { padding: 10px 6px !important; font: 21px/1.25 var(--ciki-font-display) !important; border: 1px solid #718578 !important; background: #414e48; }
.ops-home .ops-protocol { background: none !important; border: 0 !important; border-top: 3px solid #616f6e !important; margin: 0; padding: 16px 0; }
.project-hero { height: auto !important; min-height: 0 !important; }
.project-hero__readout { position: relative !important; top: auto !important; left: auto !important; transform: none !important; width: min(600px, 100%) !important; padding: 24px 28px; }
html body .contents .project-hero__readout h1 { margin: 8px 0 14px !important; line-height: 1.15 !important; }
.project-hero__readout p { margin: 0 !important; }
.project-route-grid > article { min-width: 0; }
html body .contents .ciki-generated { font-size: 16px; }
body:has([data-ciki-forum]) .comments-container { display: none !important; }
body.ciki-layout-editing .ciki-generated { display: none !important; }

@media (min-width: 701px) {
  html body .contents .ops-home {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr) minmax(240px, .76fr); gap: 30px 26px;
    grid-template-areas:
      "mast     mast     mast"
      "ticker   ticker   ticker"
      "screen   screen   side"
      "library  library  side"
      "evidence evidence side"
      "accounts accounts accounts"
      "footer   footer   footer";
    align-items: start;
  }
  html body .ops-home > .ops-masthead { grid-area: mast !important; }
  .ops-home::before, .ops-home::after { display: none; }
  html body .contents .ops-home .ops-overview-grid { display: contents; }
  .ops-home .rig-rail { display: none; }
  html body .contents .ops-home .surveillance-rig { grid-area: screen !important; }
  html body .ops-home .ops-window--ticker { grid-area: ticker !important; }
  html body .ops-home .monitor-shell { grid-area: screen !important; align-self: start; }
  html body .ops-home .ops-side { grid-area: side !important; }
  html body .ops-home .ops-window--library { grid-area: library !important; }
  html body .ops-home .ops-window--evidence { grid-area: evidence !important; }
  html body .ops-home .ops-window--accounts { grid-area: accounts !important; }
  html body .ops-home .ops-prop-strip { grid-area: props !important; }
  html body .ops-home .ops-protocol { grid-area: footer !important; min-width: 0; }
}
@media (min-width: 701px) and (max-width: 1099px) {
  html body .contents .ops-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "mast     mast"
      "ticker   ticker"
      "screen   screen"
      "side     side"
      "library  library"
      "evidence evidence"
      "accounts accounts"
      "footer   footer";
  }
  .ciki-update-list li { grid-template-columns: minmax(0, 1fr); }
  html body .contents .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #app:not(.editor) .nav-header { height: 100px !important; }
  #app:not(.editor) .nav-header > .v-toolbar__content { height: 100px !important; padding: 0 8px !important; }
  #app:not(.editor) .nav-header .layout.row { display: grid !important; grid-template-columns: minmax(0, 1fr); width: 100%; margin: 0 !important; }
  #app:not(.editor) .nav-header .layout.row > .flex { max-width: 100% !important; min-width: 0; width: 100%; }
  #app:not(.editor) .nav-header .nav-header-inner,
  #app:not(.editor) .nav-header .nav-header-inner > .v-toolbar__content { height: 46px !important; padding: 0 !important; }
  #app:not(.editor) .nav-header .nav-header-inner.pr-4 .v-btn--icon { width: 40px !important; min-width: 40px !important; max-width: 40px !important; }
  #app:not(.editor) .v-main { padding-top: 100px !important; }
  #app:not(.editor) .v-navigation-drawer { top: 100px !important; height: calc(100vh - 100px) !important; }
  .ops-home .rig-rail { display: none; }
  html body .contents .ops-home { gap: 24px; padding-right: 4px !important; }
  html body .contents .ops-window { padding: 14px 14px 16px; box-shadow: 4px 4px 0 #1f2729 !important; }
  html body .contents .ops-ticker__viewport { min-height: 38px; padding: 0 12px; }
  html body .contents .ops-ticker__line { font-size: 16px; }
  html body .contents .announce-list strong { font-size: 18px !important; }
  html body .contents .account-grid { grid-template-columns: minmax(0, 1fr); }
  body:has(.ops-home) .ciki-scene-banner { height: 180px; }
  .ciki-home-imprint { gap: 10px; }
  .ciki-home-imprint img { width: 40px; height: 40px; }
  html body .contents .ciki-home-imprint strong { font-size: 34px !important; }
  .ops-masthead .ops-clock { display: none; }
  html body .contents :is(.work-selector, .project-switcher) { gap: 8px; }
  html body .contents :is(.work-key, .project-switcher a) { padding: 10px 4px !important; align-items: center; min-height: 92px; font-size: 24px !important; }
  html body .contents .work-key strong { font-size: 24px !important; }
  html body .contents :is(.work-key, .project-switcher a)::after { width: 8px; height: 8px; right: 5px; top: 5px; }
  html body .contents :is(.work-key, .project-switcher a) .ciki-work-icon { position: static; transform: none; width: 32px; height: 32px; margin-bottom: 6px; }
  .work-selector .hardware-key { display: none; }
  html body .contents .work-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .contents .ops-home .surveillance-rig { grid-template-columns: minmax(0, 1fr); grid-template-areas: "screen" "keys"; padding: 20px 12px 16px; gap: 12px; }
  html body .contents .ops-home .surveillance-rig .work-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; border: 0; padding: 26px 0 0; }
  html body .contents .ops-home .surveillance-rig .work-selector::before { top: 6px; bottom: auto; left: 8%; width: 84%; height: 9px; }
  html body .contents .ops-home .surveillance-rig .work-selector::after { display: none; }
  html body .contents .ops-home .surveillance-rig .work-key::before { top: -17px; left: calc(50% - 7px); height: 14px; width: 14px; }
  html body .contents .ops-home .surveillance-rig .work-key:is(:hover, :focus-visible) { transform: translateY(2px); }
  html body .contents .ops-home .surveillance-rig .work-key { min-height: 88px; padding: 10px 4px !important; }
  html body .contents .ops-home .surveillance-rig .work-key strong { font-size: 22px !important; }
  html body .contents .ops-home .surveillance-rig .work-key .ciki-work-icon { width: 28px; height: 28px; }
  html body .contents .ops-home .surveillance-rig .hardware-key { display: none; }
  html body .contents .archive-slots { grid-template-columns: 1fr; }
  .ciki-brand-link { font-size: 16px; gap: 6px; }
  .ciki-brand-link img { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .contents :is(.work-key, .project-switcher a, .archive-slot, .work-feed-image),
  html body .contents .archive-slot::after { transition: none !important; }
  html body .contents .ops-ticker__line { transition: none !important; }
  html body .contents .archive-slot:is(:hover, :focus-visible) { transform: none; }
  html body .contents .archive-slot:is(:hover, :focus-visible)::after { transform: none !important; }
  .ops-home .monitor-screen:hover .work-feed-image { transform: none; }
  .ops-home .monitor-screen.is-tuning .work-feed-image { animation: none; }
  html body .contents .ops-home .surveillance-rig .work-key:is(:hover, :focus-visible) { transform: none; }
}
/* The manual's category pages are its first-level article headings. */
html body .contents .guide-branch { display: block; margin-top: 38px; padding: 0; border: 0; min-width: 0; }
html body .contents .guide-branch h2 { margin: 0 0 10px !important; padding: 0 !important; font-size: 28px !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html body .contents .guide-branch h2::before, html body .contents .guide-branch h2::after { display: none; }
html body .contents .guide-branch h2 a { color: #dae4dc !important; text-decoration: none; }
.guide-branch ul { list-style: none; padding: 0 0 0 16px !important; border-left: 3px solid #768d82; margin: 0 0 0 52px !important; }
.guide-branch li { padding: 3px 0; margin: 0 !important; }
.guide-branch a:focus-visible { outline: 2px solid #b8cebe; outline-offset: 3px; }
html body .contents .guide-branch a:hover { color: #e8d6ad !important; }
/* Draft titles remain visible in activity lists without exposing their content. */
.ciki-update-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ciki-draft-badge { display: inline-block; padding: 1px 6px; border: 1px solid #929884; border-radius: 3px; color: #ddd6ad; background: #4b5045; font: 14px/1.5 var(--ciki-font-body, sans-serif); white-space: nowrap; }
.ciki-page-unavailable { color: #bcc5c3; overflow-wrap: anywhere; cursor: default; }
