:root {
  --ciki-bg: #dfe4e6;
  --ciki-surface: #f5f6f5;
  --ciki-surface-2: #e9eef0;
  --ciki-line: #aeb8bd;
  --ciki-line-strong: #68777f;
  --ciki-text: #20292e;
  --ciki-muted: #65737a;
  --ciki-green: #297a59;
  --ciki-amber: #a36c22;
  --ciki-red: #a84f5f;
  --ciki-cyan: #3f788f;
}

@font-face {
  font-family: "Ciki Pixel Console";
  src: url("/_assets/fonts/ciki/FusionPixel10-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "Ciki Pixel Console";
  src: url("/_assets/fonts/ciki/FusionPixel10-ZhHans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

html,
body,
.v-application,
.v-application .v-main {
  background: var(--ciki-bg) !important;
  color: var(--ciki-text) !important;
}

.v-application,
.v-application button,
.v-application input,
.v-application textarea {
  font-family: Consolas, "Noto Sans SC", "Microsoft YaHei", monospace !important;
  letter-spacing: 0 !important;
}

.nav-header,
.nav-header-inner {
  background: #070908 !important;
  border-bottom: 1px solid var(--ciki-line) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.nav-header .v-toolbar__title,
.nav-header .v-btn,
.nav-header-inner .v-btn {
  color: var(--ciki-text) !important;
}

.nav-header-inner .v-toolbar__content {
  position: relative;
}

.nav-header-inner .v-toolbar__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ciki-green) 0 28px, transparent 28px 36px);
  opacity: 0.28;
  pointer-events: none;
}

.v-navigation-drawer.primary,
.v-navigation-drawer .primary,
.v-navigation-drawer .v-list.primary {
  background: #090c0b !important;
}

html body #app.v-application nav.v-navigation-drawer.primary,
html body #app.v-application nav.v-navigation-drawer.primary .v-navigation-drawer__content {
  background-color: #090c0b !important;
  background-image: none !important;
  border-color: var(--ciki-line) !important;
}

.v-navigation-drawer {
  border-right: 1px solid var(--ciki-line) !important;
}

.v-navigation-drawer .blue,
.v-navigation-drawer .blue.darken-2,
.v-navigation-drawer .blue.darken-3 {
  background: var(--ciki-surface) !important;
}

.v-navigation-drawer .v-btn {
  color: var(--ciki-text) !important;
  border: 1px solid var(--ciki-line) !important;
  box-shadow: none !important;
}

.page-header-section {
  position: relative;
  height: auto !important;
  min-height: 94px;
  background: var(--ciki-surface) !important;
  border-bottom: 1px solid var(--ciki-line) !important;
}

.page-header-headings .headline {
  color: var(--ciki-text) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

.page-header-headings .caption {
  color: var(--ciki-muted) !important;
  margin-top: 5px;
}

.page-header-headings .headline.grey--text,
.page-header-headings .caption.grey--text {
  color: var(--ciki-text) !important;
}

.page-header-headings .caption.grey--text {
  color: var(--ciki-muted) !important;
}

body:has(.case-home) .page-header-section,
body:has(.ops-home) .page-header-section,
body:has(.case-dossier) .page-header-section {
  display: none !important;
}

.v-main > .v-main__wrap > .container.grid-list-xl {
  background: var(--ciki-bg) !important;
  padding-right: 28px !important;
}

.contents {
  color: var(--ciki-text) !important;
  font-size: 15px;
  line-height: 1.8;
  max-width: 1180px;
  margin: 0 auto;
}

.contents h1,
.contents h2,
.contents h3,
.contents h4 {
  color: var(--ciki-text) !important;
  font-weight: 700;
  letter-spacing: 0 !important;
}

.contents h1 {
  border-bottom: 1px solid var(--ciki-line) !important;
}

.contents h2 {
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ciki-line) !important;
}

.contents h2::before {
  content: "// ";
  color: var(--ciki-green);
}

.contents a {
  color: var(--ciki-green) !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--ciki-amber) !important;
  border-bottom-color: var(--ciki-amber);
}

.contents blockquote {
  color: var(--ciki-text) !important;
  background: #111815 !important;
  border-left: 3px solid var(--ciki-amber) !important;
  border-radius: 0 !important;
}

.contents code {
  color: var(--ciki-green) !important;
  background: #0b100e !important;
  border: 1px solid var(--ciki-line);
  border-radius: 3px;
}

.contents table {
  background: var(--ciki-surface);
  border-color: var(--ciki-line);
}

.contents th {
  color: var(--ciki-amber);
  background: #151b18;
}

.contents td,
.contents th {
  border-color: var(--ciki-line);
}

.case-home,
.case-dossier {
  position: relative;
  width: 100%;
}

.case-hero {
  position: relative;
  min-height: 280px;
  padding: 46px 42px 38px;
  overflow: hidden;
  background: #0d1310;
  border: 1px solid var(--ciki-line-strong);
  border-left: 5px solid var(--ciki-green);
}

.case-eyebrow,
.case-code {
  margin: 0 0 16px !important;
  color: var(--ciki-green) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-hero h1,
.case-dossier__head h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: #f1f5f2 !important;
  border: 0 !important;
  font-size: 36px !important;
  line-height: 1.25 !important;
}

.case-hero h1::after,
.case-dossier__head h1::after {
  display: none !important;
}

.case-lead {
  max-width: 760px;
  margin: 22px 0 0 !important;
  color: #bcc9c2;
  font-size: 16px;
}

.case-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--ciki-line);
  color: var(--ciki-muted);
  font-size: 12px;
}

.case-status-line strong {
  color: var(--ciki-amber);
}

.case-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--ciki-green);
  animation: ciki-blink 1.1s steps(1, end) infinite;
}

@keyframes ciki-blink {
  50% { opacity: 0; }
}

.case-section {
  margin-top: 34px;
}

.case-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ciki-line);
}

.case-section__head h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 20px !important;
}

.case-section__head h2::before {
  content: "// ";
}

.case-section__head span {
  color: var(--ciki-muted);
  font-size: 11px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-link,
.case-panel,
.case-entry {
  background: var(--ciki-surface);
  border: 1px solid var(--ciki-line);
  border-radius: 4px;
}

.case-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 18px !important;
  color: var(--ciki-text) !important;
  border-bottom: 1px solid var(--ciki-line) !important;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.case-link:hover,
.case-link:focus-visible {
  background: var(--ciki-surface-2);
  border-color: var(--ciki-amber) !important;
  transform: translateY(-2px);
}

.case-link__code {
  color: var(--ciki-green);
  font-size: 12px;
  font-weight: 700;
}

.case-link__body strong {
  display: block;
  margin-bottom: 4px;
  color: #eef4f0;
  font-size: 16px;
}

.case-link__body small {
  display: block;
  color: var(--ciki-muted);
  font-size: 12px;
  line-height: 1.55;
}

.case-link__arrow {
  color: var(--ciki-amber);
  font-size: 19px;
}

.case-panel {
  padding: 22px;
}

.case-panel--warning {
  border-left: 4px solid var(--ciki-amber);
}

.case-panel--signal {
  border-left: 4px solid var(--ciki-cyan);
}

.case-panel h3,
.case-entry h3 {
  margin: 0 0 10px !important;
  color: #eff4f1 !important;
  font-size: 16px !important;
}

.case-panel p:last-child,
.case-entry p:last-child {
  margin-bottom: 0 !important;
}

.case-dossier__head {
  padding: 30px 32px;
  background: #0d1310;
  border: 1px solid var(--ciki-line-strong);
  border-top: 4px solid var(--ciki-green);
}

.case-dossier__head h1 {
  font-size: 30px !important;
}

.case-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.case-index a {
  display: block;
  min-height: 78px;
  padding: 14px !important;
  color: var(--ciki-text) !important;
  background: var(--ciki-surface);
  border: 1px solid var(--ciki-line) !important;
  border-radius: 4px;
}

.case-index a:hover {
  border-color: var(--ciki-green) !important;
}

.case-index strong,
.case-index small {
  display: block;
}

.case-index small {
  margin-top: 5px;
  color: var(--ciki-muted);
}

.case-log {
  display: grid;
  gap: 10px;
}

.case-entry {
  position: relative;
  padding: 18px 20px 18px 62px;
}

.case-entry::before {
  content: attr(data-index);
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--ciki-green);
  font-size: 12px;
  font-weight: 700;
}

.case-entry__meta {
  color: var(--ciki-amber);
  font-size: 11px;
}

.case-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--ciki-line);
  border: 1px solid var(--ciki-line);
}

.case-field {
  min-height: 72px;
  padding: 14px 16px;
  background: var(--ciki-surface);
}

.case-field span,
.case-field strong {
  display: block;
}

.case-field span {
  color: var(--ciki-muted);
  font-size: 11px;
}

.case-field strong {
  margin-top: 4px;
  color: var(--ciki-text);
}

.comments-container {
  margin-top: 42px;
  background: var(--ciki-surface) !important;
  border: 1px solid var(--ciki-line) !important;
  border-radius: 4px !important;
}

.page-col-sd .v-card,
.page-col-sd .v-sheet,
.page-col-sd .v-list {
  color: var(--ciki-text) !important;
  background: var(--ciki-surface) !important;
  border-color: var(--ciki-line) !important;
  box-shadow: none !important;
}

.page-col-sd .v-card {
  border: 1px solid var(--ciki-line) !important;
  border-radius: 4px !important;
}

.page-col-sd .v-card__title,
.page-col-sd .v-card__text,
.page-col-sd .v-list-item,
.page-col-sd .v-list-item__title,
.page-col-sd .caption,
.page-col-sd strong {
  color: var(--ciki-text) !important;
}

.page-col-sd .v-btn {
  color: var(--ciki-text) !important;
  background: #0d1310 !important;
  border-color: var(--ciki-line) !important;
  box-shadow: none !important;
}

.page-shortcuts-card .v-toolbar.grey,
.page-shortcuts-card .v-toolbar.grey.lighten-3 {
  background: var(--ciki-surface) !important;
}

.page-shortcuts-card .v-icon {
  color: var(--ciki-muted) !important;
}

.page-col-sd .primary--text,
.page-col-sd .blue--text,
.page-col-sd .blue-grey--text {
  color: var(--ciki-green) !important;
}

/* Public reading mode: keep developer metadata and the auto-outline out of the UI. */
.page-col-sd { display: none !important; }
.page-col-content {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 1264px) {
  html body #app.v-application:not(.admin):not(.editor) nav.v-navigation-drawer {
    width: 208px !important;
  }

  html body #app.v-application:not(.admin):not(.editor) .v-main {
    padding-left: 208px !important;
  }

  body.ciki-admin-mode .page-col-sd {
    display: block !important;
    flex: 0 0 188px !important;
    width: 188px !important;
    max-width: 188px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.ciki-admin-mode .page-col-content {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: calc(100% - 188px) !important;
  }

  body.ciki-admin-mode .page-col-sd .v-card__title,
  body.ciki-admin-mode .page-col-sd .v-card__text {
    padding: 10px 12px !important;
  }

  body.ciki-admin-mode .page-col-sd .v-list-item {
    min-height: 34px !important;
    padding: 0 10px !important;
  }

  body.ciki-admin-mode .page-col-sd .v-list-item__title,
  body.ciki-admin-mode .page-col-sd .caption {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
}

.ciki-mode-switch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  margin-right: 12px;
  overflow: hidden;
  background: #0a0e0c;
  border: 1px solid #3e5148;
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.ciki-mode-switch::before {
  content: "MODE";
  display: grid;
  min-width: 42px;
  place-items: center;
  padding: 0 8px;
  color: #6f8279;
  background: #080b0a;
  border-right: 1px solid #3e5148;
  font: 9px/1 var(--ciki-font-machine, Consolas, monospace);
}

.ciki-mode-switch__item {
  display: inline-flex;
  min-width: 78px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #9eaea6 !important;
  background: transparent;
  border: 0 !important;
  border-right: 1px solid #26332d !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font: 12px/1 var(--ciki-font-machine, Consolas, monospace) !important;
  text-decoration: none !important;
  cursor: pointer;
}

.ciki-mode-switch__item:last-child { border-right: 0 !important; }
.ciki-mode-switch__item .mdi { font-size: 16px; }

.ciki-mode-switch__item:hover,
.ciki-mode-switch__item:focus-visible {
  color: var(--ciki-text) !important;
  background: #17221d;
}

.ciki-mode-switch__item.is-active {
  color: #06100a !important;
  background: var(--ciki-green);
}

.ciki-mode-switch__item:disabled,
.ciki-mode-switch__item.is-disabled {
  color: #56635d !important;
  background: #0b0f0d;
  cursor: not-allowed;
  opacity: 0.72;
}

#app.v-application:not(.editor) .nav-header-inner.pr-4 .v-btn--icon {
  width: 44px !important;
  min-width: 44px !important;
}

#app.editor .ciki-mode-switch::before,
#app.editor .ciki-mode-switch__label {
  display: none;
}

#app.editor .ciki-mode-switch__item {
  min-width: 42px;
  padding: 0 8px;
}

.ciki-mode-switch.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(126, 226, 168, 0.16) 18px 28px);
  animation: ciki-mode-scan 600ms linear infinite;
  pointer-events: none;
}

@keyframes ciki-mode-scan {
  to { transform: translateX(28px); }
}

.ciki-mode-toast {
  position: fixed;
  z-index: 220;
  top: 76px;
  right: 18px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 11px 14px;
  color: var(--ciki-text);
  background: #0b110e;
  border: 1px solid var(--ciki-amber);
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  font: 12px/1.55 var(--ciki-font-machine, Consolas, monospace);
}

#app.editor .editor-ckeditor > div:first-child {
  position: sticky;
  z-index: 25;
  top: 64px;
  background: #090d0b;
  border-bottom: 1px solid var(--ciki-line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

#app.editor .ck.ck-toolbar {
  border-color: var(--ciki-line) !important;
  border-radius: 0 !important;
}

#app.editor {
  --ck-color-base-background: #111713;
  --ck-color-base-foreground: #0b100d;
  --ck-color-base-border: #3b4b42;
  --ck-color-base-text: #dbe5df;
  --ck-color-focus-border: #7ee2a8;
  --ck-color-text: #dbe5df;
  --ck-color-button-default-hover-background: #1b2821;
  --ck-color-button-default-active-background: #22352b;
  --ck-color-button-on-background: #28583c;
  --ck-color-button-on-hover-background: #336c4a;
  --ck-color-dropdown-panel-background: #0d1310;
  --ck-color-dropdown-panel-border: #46594f;
  --ck-color-input-background: #0a0f0c;
  --ck-color-input-border: #46594f;
  --ck-color-input-text: #e5ece8;
  --ck-color-list-background: #0d1310;
  --ck-color-list-button-hover-background: #1b2821;
  --ck-color-list-button-on-background: #28583c;
  --ck-color-panel-background: #0d1310;
  --ck-color-panel-border: #46594f;
  --ck-color-toolbar-background: #101612;
  --ck-color-toolbar-border: #3b4b42;
  --ck-color-tooltip-background: #050806;
  --ck-color-tooltip-text: #e4ece8;
  --ck-color-widget-blurred-border: #60756b;
  --ck-color-widget-hover-border: #f0bd66;
  --ck-color-widget-type-around-button-active: #7ee2a8;
  --ck-color-widget-type-around-button-hover: #f0bd66;
}

#app.editor .editor-ckeditor {
  background-color: #080b0a !important;
  background-image:
    linear-gradient(rgba(126, 226, 168, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 226, 168, 0.025) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}

.ciki-editor-commandbar {
  display: flex;
  min-height: 44px;
  align-items: stretch;
  gap: 1px;
  overflow-x: auto;
  color: #c7d2cc;
  background: #090d0b;
  border-bottom: 1px solid #33413b;
  scrollbar-width: thin;
}

.ciki-editor-commandbar__mark {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 112px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #72847b;
  background: #070a08;
  border-right: 1px solid #33413b;
  font: 10px/1 var(--ciki-font-machine, Consolas, monospace);
}

.ciki-editor-commandbar__mark i {
  width: 7px;
  height: 7px;
  background: var(--ciki-green);
  box-shadow: 0 0 8px rgba(126, 226, 168, 0.55);
}

.ciki-editor-command {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #b6c4bd;
  background: #101612;
  border: 0;
  border-right: 1px solid #29362f;
  font: 11px/1 var(--ciki-font-machine, Consolas, monospace);
  cursor: pointer;
}

.ciki-editor-command:hover,
.ciki-editor-command:focus-visible {
  color: #07100b;
  background: var(--ciki-green);
  outline: 0;
}

.ciki-editor-command .mdi { font-size: 18px; }

#app.editor .editor-ckeditor .ck.ck-toolbar {
  padding: 5px 10px !important;
  background: #101612 !important;
}

#app.editor .editor-ckeditor .ck-toolbar__items {
  min-width: 0;
}

#app.editor .editor-ckeditor .ck.ck-button,
#app.editor .editor-ckeditor a.ck.ck-button {
  min-width: 34px;
  min-height: 34px;
}

#app.editor .editor-ckeditor .ck-editor__editable_inline {
  width: min(1180px, calc(100% - 32px)) !important;
  min-height: calc(100vh - 190px) !important;
  margin: 18px auto 42px !important;
  padding: 34px clamp(24px, 4vw, 64px) 90px !important;
  color: #d8e1dc !important;
  caret-color: var(--ciki-green);
  background: #101513 !important;
  border: 1px solid #405148 !important;
  border-top: 4px solid #315f46 !important;
  border-radius: 0 !important;
  box-shadow: 10px 10px 0 #050706 !important;
}

#app.editor .editor-ckeditor .ck-editor__editable_inline.ck-focused {
  border-color: #6fa988 !important;
  box-shadow: 10px 10px 0 #050706, inset 0 0 0 1px #315f46 !important;
}

#app.editor .editor-ckeditor .ck-content,
#app.editor .editor-ckeditor .ck-content p,
#app.editor .editor-ckeditor .ck-content li,
#app.editor .editor-ckeditor .ck-content td {
  color: #d8e1dc !important;
}

#app.editor .editor-ckeditor .ck-content h1,
#app.editor .editor-ckeditor .ck-content h2,
#app.editor .editor-ckeditor .ck-content h3,
#app.editor .editor-ckeditor .ck-content h4,
#app.editor .editor-ckeditor .ck-content h5,
#app.editor .editor-ckeditor .ck-content h6 {
  color: #eef4f1 !important;
}

#app.editor .editor-ckeditor .ck-content a { color: #7ee2a8 !important; }
#app.editor .editor-ckeditor .ck-content blockquote { background: #151b17 !important; }
#app.editor .editor-ckeditor .ck-placeholder::before { color: #708078 !important; }

#app.editor .editor-ckeditor .ck-content figure.table {
  max-width: 100%;
  margin: 24px 0 !important;
  overflow-x: auto;
  background: #0b100d;
  border: 1px solid #4a5c52;
  box-shadow: 5px 5px 0 #060806;
}

#app.editor .editor-ckeditor .ck-content figure.table table {
  width: 100%;
  min-width: 420px;
  margin: 0 !important;
  table-layout: auto;
}

#app.editor .editor-ckeditor .ck-content figure.table th,
#app.editor .editor-ckeditor .ck-content figure.table td {
  min-width: 96px;
  padding: 10px 12px !important;
  color: #d8e1dc !important;
  background: #101713 !important;
  border-color: #46584e !important;
}

#app.editor .editor-ckeditor .ck-content figure.table th {
  color: #f0bd66 !important;
  background: #151b17 !important;
}

#app.editor .editor-ckeditor .ck-editor__nested-editable_focused {
  background: #1a2b22 !important;
  outline: 2px solid #7ee2a8 !important;
  outline-offset: -2px;
}

#app.editor .ck-insert-table-dropdown-grid-box {
  width: 26px !important;
  height: 26px !important;
  border-color: #52675b !important;
}

#app.editor .ck-insert-table-dropdown-grid-box.ck-on {
  background: #28583c !important;
  border-color: #7ee2a8 !important;
}

#app.editor .editor-ckeditor .ck-content figure.image {
  max-width: 100%;
  margin-top: 26px !important;
  margin-bottom: 26px !important;
  padding: 8px;
  background: #0a0f0c;
  border: 1px solid #3f5147;
}

#app.editor .editor-ckeditor .ck-content figure.image img {
  display: block;
  max-width: 100%;
  height: auto;
}

#app.editor .editor-ckeditor .ck-content figure.image.image-style-align-left {
  max-width: 50%;
  margin-right: 24px !important;
}

#app.editor .editor-ckeditor .ck-content figure.image.image-style-align-right {
  max-width: 50%;
  margin-left: 24px !important;
}

#app.editor .editor-ckeditor .ck-content figure.image.ck-widget_selected {
  outline: 2px solid var(--ciki-green) !important;
  outline-offset: 3px;
}

#app.editor .ck-widget__resizer__handle {
  width: 13px !important;
  height: 13px !important;
  background: var(--ciki-green) !important;
  border: 2px solid #07100b !important;
}

#app.editor .ck-balloon-panel {
  border-color: #53675c !important;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45) !important;
}

#app.editor .editor-modal-media {
  color: #d8e1dc !important;
  background: rgba(5, 8, 6, 0.94) !important;
  backdrop-filter: blur(3px);
}

#app.editor .editor-modal-media .v-card,
#app.editor .editor-modal-media .v-sheet,
#app.editor .editor-modal-media .v-data-table,
#app.editor .editor-modal-media .v-data-table__wrapper,
#app.editor .editor-modal-media .v-data-footer,
#app.editor .editor-modal-media .v-input__slot {
  color: #d8e1dc !important;
  background: #101513 !important;
  border-color: #405148 !important;
  box-shadow: none !important;
}

#app.editor .editor-modal-media .v-card {
  overflow: hidden;
  border: 1px solid #405148 !important;
  border-radius: 3px !important;
  box-shadow: 6px 6px 0 #050706 !important;
}

#app.editor .editor-modal-media .v-toolbar,
#app.editor .editor-modal-media .teal.lighten-5,
#app.editor .editor-modal-media .blue-grey.lighten-5 {
  color: #d8e1dc !important;
  background: #151d18 !important;
  border-bottom: 1px solid #405148 !important;
}

#app.editor .editor-modal-media .v-data-table th,
#app.editor .editor-modal-media .v-data-table td {
  color: #cdd8d2 !important;
  background: #101513 !important;
  border-color: #33413b !important;
}

#app.editor .editor-modal-media .v-data-table tbody tr:hover td,
#app.editor .editor-modal-media .v-data-table tbody tr.v-data-table__selected td {
  color: #eef4f1 !important;
  background: #1b2b23 !important;
}

#app.editor .editor-modal-media .v-input input,
#app.editor .editor-modal-media .v-input textarea,
#app.editor .editor-modal-media .v-select__selection,
#app.editor .editor-modal-media .v-label {
  color: #d8e1dc !important;
}

#app.editor .editor-modal-media [class*="upload"],
#app.editor .editor-modal-media .dropzone {
  border-color: #53675c !important;
}

#app.editor .editor-modal-media .teal--text,
#app.editor .editor-modal-media .primary--text {
  color: var(--ciki-green) !important;
}

@media (max-width: 900px) {
  .ciki-editor-commandbar__mark { min-width: 44px; padding: 0 12px; font-size: 0; }
  .ciki-editor-command { min-width: 44px; padding: 0 10px; }
  .ciki-editor-command > span:last-child { display: none; }
  #app.editor .editor-ckeditor .ck.ck-toolbar {
    max-width: 100vw;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  #app.editor .editor-ckeditor .ck.ck-toolbar::-webkit-scrollbar,
  .ciki-editor-commandbar::-webkit-scrollbar { display: none; }
  .ciki-editor-commandbar { scrollbar-width: none; }
  #app.editor .editor-ckeditor .ck-toolbar__items {
    width: max-content;
    min-width: max-content;
    flex-wrap: nowrap !important;
  }
  #app.editor .editor-ckeditor .ck-editor__editable_inline {
    width: calc(100% - 16px) !important;
    margin-top: 8px !important;
    padding: 22px 16px 72px !important;
    box-shadow: 5px 5px 0 #050706 !important;
  }
  #app.editor .editor-ckeditor .ck-content figure.table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: auto !important;
  }
  #app.editor .nav-header-inner,
  #app.editor .nav-header-inner .v-toolbar__content {
    max-width: 100vw;
    overflow: hidden;
  }
  #app.editor .editor-ckeditor .ck-content figure.image.image-style-align-left,
  #app.editor .editor-ckeditor .ck-content figure.image.image-style-align-right {
    float: none;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 1500px) {
  .ciki-mode-switch::before { display: none; }
  .ciki-mode-switch__item { min-width: 42px; padding: 0 8px; }
  .ciki-mode-switch__label { display: none; }
}

@media (max-width: 700px) {
  .ciki-mode-switch { height: 32px; margin-right: 4px; }
  .ciki-mode-switch__item { min-width: 36px; padding: 0 6px; }
}

.template-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.template-directory a {
  display: block;
  min-height: 92px;
  padding: 16px !important;
  background: #0d120f;
  border: 1px solid var(--case-line, var(--ciki-line)) !important;
}

.template-directory strong,
.template-directory small { display: block; font-family: var(--ciki-font-machine) !important; }
.template-directory strong { color: var(--case-accent, var(--ciki-green)); }
.template-directory small { margin-top: 8px; color: #8f9e97; line-height: 1.6; }

.ciki-entry-edit-fab {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #07100b !important;
  background: var(--ciki-green);
  border: 1px solid #b7f6d1 !important;
  border-radius: 50%;
  box-shadow: 5px 5px 0 #050706, 0 0 0 3px #173326;
  text-decoration: none !important;
  transition: transform 140ms ease, background-color 140ms ease;
}

.ciki-entry-edit-fab::before {
  content: "编辑本页";
  position: absolute;
  right: 66px;
  padding: 8px 10px;
  color: var(--ciki-text);
  background: #090d0b;
  border: 1px solid var(--ciki-line-strong);
  box-shadow: 3px 3px 0 #050706;
  font: 10px/1 var(--ciki-font-machine);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(5px);
  transition: opacity 120ms ease, transform 120ms ease;
}

body:has(.ciki-entry-edit-fab) button[aria-label="编辑页面"] {
  display: none !important;
}

.ciki-entry-edit-fab:hover,
.ciki-entry-edit-fab:focus-visible {
  color: #07100b !important;
  background: var(--ciki-amber);
  border-bottom-color: #b7f6d1 !important;
  transform: translateY(-2px);
}

.ciki-entry-edit-fab:hover::before,
.ciki-entry-edit-fab:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.ciki-entry-edit-fab .mdi { font-size: 26px; line-height: 1; }

@media (max-width: 700px) {
  .template-directory { grid-template-columns: 1fr; }
  .ciki-entry-edit-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .ciki-entry-edit-fab::before { display: none; }
}

.v-main .v-btn.primary,
.v-main .v-speed-dial .v-btn.primary {
  color: var(--ciki-green) !important;
  background: #173326 !important;
}

footer.v-footer,
footer.v-footer.grey,
footer.v-footer.grey.lighten-3 {
  color: var(--ciki-muted) !important;
  background: #070908 !important;
  border-top: 1px solid var(--ciki-line) !important;
}

footer.v-footer a,
footer.v-footer .caption {
  color: var(--ciki-muted) !important;
}

.comments-header {
  background: #0d1310 !important;
  border-bottom: 1px solid var(--ciki-line) !important;
}

.comments-main,
.comments-main .v-input__slot {
  background: var(--ciki-surface) !important;
  color: var(--ciki-text) !important;
}

@media (max-width: 620px) {
  .comments-main .d-flex.align-center.pt-3 {
    flex-wrap: wrap;
    gap: 6px;
  }
  .comments-main .d-flex.align-center.pt-3 > .caption {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.contents .toc-anchor {
  color: var(--ciki-muted) !important;
}

.is-invalid-page {
  color: var(--ciki-red) !important;
}

@media (max-width: 960px) {
  .page-header-section::before {
    display: none;
  }

  .v-main > .v-main__wrap > .container.grid-list-xl {
    padding: 18px !important;
  }

  .case-hero,
  .case-dossier__head {
    padding: 28px 22px;
  }

  .case-hero h1,
  .case-dossier__head h1 {
    font-size: 28px !important;
  }

  .case-grid,
  .case-index,
  .case-fields {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-cursor {
    animation: none;
  }

  .case-link {
    transition: none;
  }
}

/* Interactive observation terminal */
.ops-home {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ciki-text);
}

.ops-masthead {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 66px;
  margin-bottom: 12px;
  background: #0b100e;
  border: 1px solid var(--ciki-line);
  box-shadow: 5px 5px 0 #050706;
}

.ops-masthead__id {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
}

.ops-rune {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #07100b;
  background: var(--ciki-green);
  border: 3px solid #b7f6d1;
  box-shadow: 3px 3px 0 #244d35;
  font-weight: 900;
}

.ops-masthead b,
.ops-masthead small,
.ops-clock span,
.ops-clock strong {
  display: block;
}

.ops-masthead b {
  color: #eff6f1;
  font-size: 13px;
}

.ops-masthead small,
.ops-clock span {
  color: var(--ciki-muted);
  font-size: 10px;
}

.ops-clock {
  min-width: 152px;
  padding: 10px 16px;
  text-align: right;
  background: #101714;
  border-left: 1px solid var(--ciki-line);
}

.ops-clock strong {
  margin-top: 4px;
  color: var(--ciki-amber);
  font-size: 19px;
}

.surveillance-rig {
  position: relative;
  padding: 12px;
  background: #181d1a;
  border: 2px solid #3e4843;
  box-shadow: inset 0 0 0 3px #090c0b, 8px 8px 0 #050706;
}

.surveillance-rig::before,
.surveillance-rig::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #070908;
  border: 1px solid #65746c;
  box-shadow: inset 1px 1px 0 #252d29;
}

.surveillance-rig::before { top: 7px; left: 7px; }
.surveillance-rig::after { right: 7px; bottom: 7px; }

.rig-rail {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 16px;
  color: var(--ciki-muted);
  background: #0a0e0c;
  border: 1px solid #303a35;
  font-size: 10px;
}

.rig-rail b {
  margin-left: auto;
  color: var(--ciki-green);
  font-size: 10px;
}

.rig-rail i {
  width: 6px;
  height: 6px;
  background: #25302b;
  border: 1px solid #4c5a53;
}

.rig-rail i:first-of-type { background: var(--ciki-green); box-shadow: 0 0 8px rgba(126, 226, 168, 0.7); }

.monitor-shell {
  padding: 10px;
  background: #050706;
  border: 1px solid #36413b;
  border-top: 0;
}

.monitor-screen {
  --look-x: 0px;
  --look-y: 0px;
  position: relative;
  aspect-ratio: 16 / 8.3;
  overflow: hidden;
  background: #08100c;
  border: 2px solid #53645a;
  box-shadow: inset 0 0 42px #000;
  image-rendering: pixelated;
}

.pixel-room {
  position: absolute;
  inset: -8px;
  transform: translate(var(--look-x), var(--look-y)) scale(1.03);
  transition: transform 180ms ease;
}

.pixel-room i {
  position: absolute;
  display: block;
}

.room-ceiling {
  inset: 0 0 auto;
  height: 26%;
  background: #161f1a;
  border-bottom: 4px solid #34433a;
}

.room-wall--left {
  top: 24%;
  bottom: 17%;
  left: 0;
  width: 44%;
  background: #1b2821;
  border-right: 6px solid #405246;
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%);
}

.room-wall--right {
  top: 24%;
  right: 0;
  bottom: 17%;
  width: 44%;
  background: #17231d;
  border-left: 6px solid #34453b;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 86%);
}

.room-floor {
  right: 0;
  bottom: 0;
  left: 0;
  height: 29%;
  background: #111915;
  border-top: 5px solid #29362f;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

.room-door {
  top: 24%;
  left: 42%;
  width: 16%;
  height: 51%;
  background: #080c0a;
  border: 5px solid #425248;
  box-shadow: inset 0 0 0 2px #151e19;
}

.room-door::before {
  content: "03";
  position: absolute;
  top: 12%;
  left: 50%;
  color: #6e8176;
  font-size: 14px;
  transform: translateX(-50%);
}

.room-door-light {
  top: 19%;
  left: calc(50% - 18px);
  width: 36px;
  height: 5px;
  background: var(--ciki-amber);
  box-shadow: 0 0 14px rgba(240, 189, 102, 0.65);
}

.room-pipe {
  height: 7px;
  background: #55645c;
  border-bottom: 2px solid #202a25;
}

.room-pipe--a { top: 30%; right: -5%; width: 42%; transform: rotate(-8deg); }
.room-pipe--b { top: 36%; left: -4%; width: 34%; transform: rotate(7deg); }

.room-anomaly {
  display: none !important;
  top: 42%;
  left: 48%;
  width: 4%;
  aspect-ratio: 1;
  background: var(--ciki-cyan);
  box-shadow: 0 0 8px var(--ciki-cyan), 13px -8px 0 rgba(112, 201, 208, 0.55), -10px 11px 0 rgba(112, 201, 208, 0.4);
  animation: ciki-anomaly 900ms steps(2, end) infinite;
}

.monitor-screen[data-channel="2"] .room-door { left: 18%; width: 20%; }
.monitor-screen[data-channel="2"] .room-door-light { left: 25%; background: var(--ciki-red); }
.monitor-screen[data-channel="2"] .room-pipe--a { top: 48%; width: 75%; }
.monitor-screen[data-channel="2"] .pixel-room { filter: sepia(0.25) saturate(0.65); }
.monitor-screen[data-channel="3"] .room-door { left: 62%; width: 22%; background: #101811; border-color: #597166; }
.monitor-screen[data-channel="3"] .room-door-light { left: 69%; background: var(--ciki-cyan); }
.monitor-screen[data-channel="3"] .room-anomaly { display: block !important; }

@keyframes ciki-anomaly {
  50% { transform: translate(3px, -2px) scale(1.25); opacity: 0.55; }
}

.signal-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
  image-rendering: pixelated;
  mix-blend-mode: screen;
}

.crt-disabled .signal-noise { display: none; }

.monitor-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 10px solid rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.72);
}

.monitor-reticle i {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-color: rgba(184, 225, 200, 0.48);
  border-style: solid;
}

.monitor-reticle i:nth-child(1) { top: 38px; left: 38px; border-width: 1px 0 0 1px; }
.monitor-reticle i:nth-child(2) { top: 38px; right: 38px; border-width: 1px 1px 0 0; }
.monitor-reticle i:nth-child(3) { right: 38px; bottom: 38px; border-width: 0 1px 1px 0; }
.monitor-reticle i:nth-child(4) { bottom: 38px; left: 38px; border-width: 0 0 1px 1px; }

.monitor-readout {
  position: absolute;
  z-index: 4;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  color: #b8d7c5;
  font-size: 10px;
  text-shadow: 2px 2px 0 #000;
}

.monitor-readout--top { top: 15px; }
.monitor-readout--bottom { bottom: 14px; }
.monitor-readout b { color: var(--ciki-red); }

.monitor-screen.is-switching { animation: ciki-switch 240ms steps(2, end); }

@keyframes ciki-switch {
  50% { filter: brightness(2.1) contrast(1.8); transform: translateX(2px); }
}

.monitor-caption {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: 58px;
  margin-top: 8px;
  background: #0e1411;
  border: 1px solid #2c3731;
}

.monitor-caption__key {
  display: grid;
  place-items: center;
  color: var(--ciki-amber);
  border-right: 1px solid #2c3731;
  font-size: 10px;
}

.monitor-caption p {
  min-width: 0;
  align-self: center;
  margin: 0 !important;
  padding: 10px 14px;
  color: #aebdb5;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rig-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0 0;
}

.hardware-key {
  position: relative;
  min-height: 54px;
  padding: 8px 12px;
  color: #9baaa2;
  background: #111713;
  border: 1px solid #4b5750;
  border-bottom: 4px solid #050706;
  box-shadow: inset 0 0 0 1px #202923;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.hardware-key span {
  display: block;
  color: var(--ciki-muted);
  font-size: 9px;
}

.hardware-key:hover,
.hardware-key:focus-visible {
  color: #fff;
  border-color: var(--ciki-green);
  outline: 0;
}

.hardware-key.is-active {
  color: #07100b;
  background: var(--ciki-green);
  border-color: #b7f6d1;
  border-bottom-color: #28583c;
  transform: translateY(2px);
}

.hardware-key.is-active span { color: #173b27; }
.hardware-key--switch { color: var(--ciki-amber); }

.archive-rack,
.evidence-bench {
  margin-top: 36px;
}

.rack-heading,
.bench-label {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  color: var(--ciki-muted);
  background: #0a0e0c;
  border: 1px solid var(--ciki-line);
  font-size: 10px;
}

.rack-heading b,
.bench-label b { color: var(--ciki-green); }

.archive-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 10px;
  background: #191f1b;
  border: 1px solid #4b5851;
  border-top: 0;
  box-shadow: 7px 7px 0 #050706;
}

.archive-slot {
  position: relative;
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  min-height: 128px;
  padding: 12px 10px !important;
  color: var(--ciki-text) !important;
  background: #0d1310;
  border: 1px solid #35413b !important;
  border-bottom: 5px solid #050706 !important;
  box-shadow: inset -3px 0 0 #151d19;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: transform 140ms ease, background-color 140ms ease;
}

.archive-slot:hover,
.archive-slot:focus-visible {
  z-index: 2;
  color: #fff !important;
  background: #18241d;
  border-color: var(--ciki-amber) !important;
  outline: 0;
  transform: translateY(-7px);
}

.archive-slot i {
  color: var(--ciki-green);
  font-style: normal;
  font-size: 10px;
}

.archive-slot span {
  align-self: center;
  writing-mode: horizontal-tb;
}

.archive-slot strong,
.archive-slot small { display: block; }
.archive-slot strong { color: #eef4f0; font-size: 15px; }
.archive-slot small { margin-left: 5px; color: var(--ciki-muted); font-size: 9px; }
.archive-slot > b { color: var(--ciki-amber); font-size: 20px; text-align: right; }

.evidence-bench {
  background: #131815;
  border: 1px solid #48544d;
  box-shadow: 7px 7px 0 #050706;
}

.bench-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 28px;
  padding: 26px;
}

.evidence-cassette {
  position: relative;
  min-height: 172px;
  padding: 22px;
  color: #131713;
  background: #a8a78d;
  border: 6px solid #272d28;
  box-shadow: inset 0 0 0 3px #d3d0a8, 6px 7px 0 #050706;
  cursor: pointer;
  transform: rotate(-1.5deg);
  transition: transform 180ms ease, filter 180ms ease;
}

.evidence-cassette:hover,
.evidence-cassette:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--ciki-amber);
  transform: rotate(0deg) translateY(-3px);
}

.evidence-cassette.is-loaded { transform: translateX(12px) rotate(1deg); }

.cassette-window {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 72%;
  height: 54px;
  margin: 0 auto 16px;
  background: #202620;
  border: 5px solid #4a4d42;
}

.cassette-window i {
  width: 34px;
  height: 34px;
  background: #080a08;
  border: 7px dotted #8a8b73;
  border-radius: 50%;
}

.evidence-cassette.is-loaded .cassette-window i { animation: ciki-reel 1.2s linear infinite; }
@keyframes ciki-reel { to { transform: rotate(360deg); } }

.cassette-label {
  display: block;
  padding: 7px;
  background: #d8d1a4;
  border-top: 2px solid #696953;
  border-bottom: 2px solid #696953;
  font-size: 10px;
  font-weight: 900;
}

.cassette-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #252a25;
  border: 1px solid #777866;
}
.cassette-screw--a { top: 8px; left: 8px; }
.cassette-screw--b { right: 8px; bottom: 8px; }

.evidence-copy { align-self: center; }
.evidence-copy > span { color: var(--ciki-green); font-size: 10px; }
.evidence-copy h2 { margin: 8px 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 25px !important; }
.evidence-copy h2::before { content: none !important; }
.evidence-copy p { color: #acbab2; }
.evidence-copy small { color: var(--ciki-amber); }

.hidden-log {
  margin: 0 18px 18px;
  padding: 14px 18px 18px;
  color: #bfe8cf;
  background: #050907;
  border: 1px solid #3e6650;
  box-shadow: inset 4px 0 0 var(--ciki-green);
  animation: ciki-log-open 220ms steps(3, end);
}

.hidden-log[hidden] { display: none; }
.hidden-log__bar { display: flex; justify-content: space-between; margin: -2px 0 12px; padding-bottom: 8px; border-bottom: 1px dashed #365140; font-size: 10px; }
.hidden-log__bar b { color: var(--ciki-amber); }
.hidden-log p { margin: 6px 0 !important; font-size: 12px; }
.hidden-log p span { color: var(--ciki-green); }
.hidden-log a { display: inline-block; margin-top: 10px; }

@keyframes ciki-log-open {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

.ops-protocol {
  display: grid;
  grid-template-columns: 140px 1fr;
  margin-top: 34px;
  color: var(--ciki-muted);
  background: #0a0e0c;
  border: 1px dashed #46544d;
}

.ops-protocol span { padding: 12px; color: var(--ciki-amber); border-right: 1px dashed #46544d; font-size: 10px; }
.ops-protocol p { margin: 0 !important; padding: 12px 16px; font-size: 11px; }

@media (max-width: 960px) {
  .archive-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-slot { min-height: 142px; }
  .archive-slot span { writing-mode: horizontal-tb; }
  .bench-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ops-masthead { min-height: 58px; }
  .ops-masthead__id { padding: 8px 10px; }
  .ops-masthead__id b { font-size: 10px; }
  .ops-masthead__id small { display: none; }
  .ops-clock { min-width: 104px; padding: 9px; }
  .ops-clock strong { font-size: 14px; }
  .surveillance-rig { padding: 8px; box-shadow: 4px 4px 0 #050706; }
  .monitor-screen { aspect-ratio: 4 / 3; }
  .monitor-reticle i { width: 16px; height: 16px; }
  .monitor-reticle i:nth-child(1) { top: 30px; left: 22px; }
  .monitor-reticle i:nth-child(2) { top: 30px; right: 22px; }
  .monitor-reticle i:nth-child(3) { right: 22px; bottom: 30px; }
  .monitor-reticle i:nth-child(4) { bottom: 30px; left: 22px; }
  .monitor-caption { grid-template-columns: 1fr; }
  .monitor-caption__key { display: none; }
  .rig-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-slots { grid-template-columns: 1fr; }
  .archive-slot { grid-template-columns: 44px 1fr 34px; grid-template-rows: 1fr; min-height: 78px; align-items: center; }
  .archive-slot span { writing-mode: horizontal-tb; }
  .archive-slot small { margin: 2px 0 0; }
  .archive-slot > b { text-align: center; }
  .bench-layout { padding: 18px; gap: 22px; }
  .evidence-cassette { min-height: 150px; }
  .ops-protocol { grid-template-columns: 1fr; }
  .ops-protocol span { border-right: 0; border-bottom: 1px dashed #46544d; }
}

@media (prefers-reduced-motion: reduce) {
  .room-anomaly,
  .evidence-cassette.is-loaded .cassette-window i,
  .monitor-screen.is-switching,
  .hidden-log {
    animation: none;
  }
}

/* Typography and dossier detail pass */
:root {
  --ciki-font-ui: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ciki-font-display: "Ciki Archive Display", "SimHei", sans-serif;
  --ciki-font-machine: "Ciki Pixel Console", "Bahnschrift", Consolas, monospace;
}

.v-application,
.v-application button,
.v-application input,
.v-application textarea { font-family: var(--ciki-font-ui) !important; }

.contents { font-family: var(--ciki-font-ui); line-height: 1.86; }

.contents h1,
.contents h2,
.contents h3,
.contents h4,
.case-link__body strong,
.archive-slot strong,
.evidence-copy h2 {
  font-family: var(--ciki-font-display) !important;
  font-stretch: semi-condensed;
}

.case-code,
.case-eyebrow,
.case-section__head span,
.case-entry__meta,
.case-entry::before,
.case-field span,
.case-link__code,
.ops-home,
.breadcrumbs-nav,
.page-header-section::before {
  font-family: var(--ciki-font-machine) !important;
  font-variant-numeric: tabular-nums slashed-zero;
}

.contents blockquote,
.case-panel--warning p { font-family: var(--ciki-font-ui); }

.v-toolbar.grey.lighten-3:has(.breadcrumbs-nav) {
  min-height: 40px !important;
  background: #0c100e !important;
  border-bottom: 1px solid #29342f !important;
}

.breadcrumbs-nav {
  min-height: 40px;
  padding: 0 18px !important;
  color: #77867f !important;
  font-size: 10px;
  text-transform: uppercase;
}

.breadcrumbs-nav::before { content: "PATH //"; margin-right: 10px; color: var(--ciki-green); }
.breadcrumbs-nav a,
.breadcrumbs-nav .v-breadcrumbs__divider { color: #9caaa3 !important; }

.case-dossier {
  isolation: isolate;
  padding-bottom: 14px;
  counter-reset: dossier-section;
}

.case-dossier::before {
  content: "●\A●\A●";
  position: absolute;
  z-index: 2;
  top: 118px;
  left: -5px;
  color: #050706;
  font: 9px/44px var(--ciki-font-machine);
  white-space: pre;
}

.case-dossier__head {
  position: relative;
  min-height: 238px;
  padding: 42px 38px 34px;
  overflow: hidden;
  background: #0d1210;
  border: 1px solid #506159;
  border-top: 0;
  border-left: 7px solid var(--ciki-green);
  border-radius: 0;
  box-shadow: inset 0 0 0 5px #111815, 8px 8px 0 #050706;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.case-dossier__head::after {
  content: "II III I  IIII II I  II IIII I";
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: #596961;
  font: 12px/1 var(--ciki-font-machine);
  word-spacing: 2px;
}

.case-code {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 22px !important;
  padding: 4px 9px;
  color: #07100b !important;
  background: var(--ciki-green);
  border-left: 12px solid #2f7450;
  font-size: 10px;
}

.case-dossier__head h1 {
  max-width: 76%;
  color: #f4f7f5 !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  text-shadow: 2px 2px 0 #26322c;
}

.case-dossier__head .case-lead {
  max-width: 82%;
  margin-top: 20px !important;
  color: #afbbb5;
  font-size: 14px;
  line-height: 1.9;
}

.case-section {
  position: relative;
  margin-top: 38px;
  counter-increment: dossier-section;
}

.case-section__head {
  position: relative;
  align-items: center;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 0 0 0 52px;
  border-bottom: 1px solid #4a5a52;
}

.case-section__head::before {
  content: "0" counter(dossier-section);
  position: absolute;
  bottom: -1px;
  left: 0;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #07100b;
  background: var(--ciki-green);
  border-bottom: 3px solid #316d4d;
  font: 700 11px/1 var(--ciki-font-machine);
}

.case-section__head h2 {
  color: #eff4f1 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.case-section__head h2::before { display: none; }

.case-section__head span {
  padding: 4px 7px;
  color: var(--ciki-amber);
  background: #131915;
  border: 1px solid #35423b;
  font-size: 9px;
}

.case-fields {
  gap: 6px;
  padding: 8px;
  background: #0b0f0d;
  border: 1px solid #46564e;
  box-shadow: 6px 6px 0 #050706;
}

.case-field {
  position: relative;
  min-height: 82px;
  padding: 15px 16px 13px 44px;
  background: #111713;
  border: 1px solid #27332d;
}

.case-field::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 15px;
  width: 13px;
  height: 13px;
  background: var(--ciki-green);
  border: 1px solid #617169;
  box-shadow: inset 0 0 0 3px #111713;
}

.case-field span { color: #7f9087; font-size: 9px; }
.case-field strong { margin-top: 7px; font-size: 14px; }

.case-log {
  gap: 8px;
  padding-left: 14px;
  border-left: 1px dashed #415149;
}

.case-entry {
  min-height: 112px;
  padding: 20px 48px 20px 76px;
  overflow: hidden;
  background: #111713;
  border: 1px solid #34433c;
  border-left: 0;
  border-radius: 0;
  box-shadow: 5px 5px 0 #050706;
  transition: border-color 140ms ease, transform 140ms ease;
}

.case-entry:hover { border-color: #60746a; transform: translateX(3px); }

.case-entry::before {
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 52px;
  place-items: center;
  color: #07100b;
  background: #76d49e;
  font-size: 15px;
}

.case-entry::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent #607169 transparent transparent;
}

.case-entry__meta {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 6px;
  color: var(--ciki-amber);
  background: #1b1b13;
  border: 1px solid #4e4930;
  font-size: 9px;
}

.case-entry h3 { font-size: 17px !important; font-weight: 800 !important; }
.case-entry p { color: #aebbb4; font-size: 13px; }

.case-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 5px 5px 0 #050706;
}

.case-panel--warning {
  padding: 26px;
  background: #151611;
  border: 1px solid #5e5332;
  border-left: 5px solid var(--ciki-amber);
}

.comments-container { border-radius: 0 !important; box-shadow: 6px 6px 0 #050706 !important; }

@media (max-width: 600px) {
  .case-dossier__head {
    min-height: 224px;
    padding: 42px 22px 28px;
    border-left-width: 5px;
    box-shadow: inset 0 0 0 3px #111815, 5px 5px 0 #050706;
  }

  .case-dossier__head::before { top: 12px; right: 18px; font-size: 8px; }
  .case-dossier__head::after { display: none; }
  .case-dossier__head h1 { max-width: 100%; font-size: 29px !important; }
  .case-dossier__head .case-lead { max-width: 100%; font-size: 13px; }
  .case-code { max-width: 100%; font-size: 8px; }
  .case-section__head { padding-left: 46px; }
  .case-section__head span { display: none; }
  .case-fields { grid-template-columns: 1fr; }
  .case-field { min-height: 68px; }
  .case-log { padding-left: 8px; }
  .case-entry { padding: 18px 26px 18px 61px; }
  .case-entry::before { width: 43px; }
  .case-panel--warning { padding: 24px 22px; }
}

/* Child dossiers use the same pixel-console voice as the home terminal. */
.case-dossier p,
.case-dossier li,
.case-dossier dt,
.case-dossier dd,
.case-dossier small,
.case-dossier code,
.case-dossier td,
.case-dossier th,
.case-dossier .case-field strong,
.case-dossier .case-index strong,
.case-dossier .case-link__body strong {
  font-family: var(--ciki-font-machine) !important;
  font-weight: 400;
}

.case-dossier p,
.case-dossier li,
.case-dossier dd {
  line-height: 1.9;
}

/* Community forum information architecture */
.forum-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  padding: 1px;
  background: #3c4a43;
  border: 1px solid #3c4a43;
  box-shadow: 5px 5px 0 #050706;
}

.forum-status-strip > span {
  min-width: 0;
  padding: 10px 12px;
  background: #0e1411;
}

.forum-status-strip small,
.forum-status-strip strong {
  display: block;
  overflow-wrap: anywhere;
}

.forum-status-strip small {
  color: #718179;
  font-size: 8px;
}

.forum-status-strip strong {
  margin-top: 4px;
  color: var(--ciki-green);
  font: 400 9px/1.45 var(--ciki-font-machine);
}

.forum-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.forum-board {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  min-height: 126px;
  overflow: hidden;
  background: #111713;
  border: 1px solid #35443c;
  box-shadow: 4px 4px 0 #050706;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.forum-board__index {
  display: grid;
  place-items: center;
  color: #07100b;
  background: #77d9a0;
  border-right: 4px solid #37694d;
  font: 400 12px/1 var(--ciki-font-machine);
}

.forum-board__body {
  min-width: 0;
  padding: 16px 12px;
}

.forum-board__body > span {
  color: var(--ciki-amber);
  font: 400 8px/1 var(--ciki-font-machine);
}

.forum-board__body h3 {
  margin: 7px 0 6px !important;
  color: #f0f4f2 !important;
  font-size: 17px !important;
}

.forum-board__body p {
  margin: 0 !important;
  color: #9caaa3;
  font-size: 11px;
  line-height: 1.75;
}

.forum-board > small {
  align-self: end;
  margin: 0 10px 10px 0;
  color: #65756d;
  font: 400 7px/1 var(--ciki-font-machine);
  writing-mode: vertical-rl;
}

.forum-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.forum-action-grid article {
  position: relative;
  min-height: 174px;
  padding: 18px 15px;
  overflow: hidden;
  background: #101512;
  border: 1px solid #35423c;
  border-bottom: 4px solid #1d2923;
}

.forum-action-grid article::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 5px;
  height: 5px;
  background: var(--ciki-green);
  box-shadow: 0 0 0 2px #24342c;
}

.forum-action-grid article > span {
  color: var(--ciki-green);
  font: 400 8px/1 var(--ciki-font-machine);
}

.forum-action-grid h3 {
  margin: 18px 0 9px !important;
  color: #f0f4f2 !important;
  font-size: 16px !important;
}

.forum-action-grid p {
  margin: 0 !important;
  color: #96a59d;
  font-size: 10px;
  line-height: 1.8;
}

/* Character-card schema */
.case-fields--character .case-field {
  min-height: 126px;
  padding-right: 18px;
}

.case-fields--character .case-field small {
  display: block;
  margin-top: 10px;
  color: #8e9e96;
  font-size: 10px;
  line-height: 1.75;
}

@media (max-width: 960px) {
  .forum-status-strip,
  .forum-board-grid,
  .forum-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .forum-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-board-grid,
  .forum-action-grid {
    grid-template-columns: 1fr;
  }

  .forum-board {
    grid-template-columns: 43px minmax(0, 1fr);
    min-height: 118px;
  }

  .forum-board > small { display: none; }
  .forum-action-grid article { min-height: 142px; }
  .case-fields--character .case-field { min-height: 112px; }
}

/* Page memory window: a sharp archive frame over an enlarged, defocused echo. */
.ciki-scene-banner {
  --scene-shift-x: 0px;
  --scene-shift-y: 0px;
  --scene-accent: #7ee2a8;
  position: relative;
  z-index: 0;
  height: clamp(238px, 23vw, 320px);
  overflow: hidden;
  isolation: isolate;
  background: #070908;
  border-bottom: 1px solid #405048;
  box-shadow: inset 0 -28px 40px rgba(0, 0, 0, .64);
}

.ciki-scene-banner--2 { --scene-accent: #d88ca6; }
.ciki-scene-banner--3 { --scene-accent: #72bfca; }
.ciki-scene-banner--4 { --scene-accent: #d0a35e; }

/* Hub pages already have their own title panel and environmental backdrop. */
.ciki-scene-banner[data-layout="catalogue"] { height: clamp(132px, 12vw, 168px); }

#app.editor .ciki-scene-banner--editor {
  flex: 0 0 clamp(200px, 19vw, 260px);
  width: min(1180px, calc(100% - 32px));
  height: clamp(200px, 19vw, 260px);
  margin: 18px auto 0;
  border: 1px solid #405048;
  border-bottom-color: var(--scene-accent);
  box-shadow: 10px 10px 0 #050706;
}

#app.editor .editor-ckeditor:has(> .ciki-scene-banner--editor) {
  height: auto !important;
  min-height: calc(100vh - 64px);
  overflow: visible !important;
}

#app.editor .ciki-scene-banner--editor + .ck-editor__editable_inline {
  flex: 0 0 auto;
  height: auto !important;
  min-height: calc(100vh - 220px) !important;
  margin-top: 18px !important;
  overflow-y: visible !important;
}

#app.editor .editor-ckeditor .ck-editor__editable_inline:has(> .case-dossier),
#app.editor .editor-ckeditor .ck-editor__editable_inline:has(> .ops-home) {
  padding: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top-color: transparent !important;
  box-shadow: none !important;
}

.ciki-scene-banner__depth,
.ciki-scene-banner__focus,
.ciki-scene-banner__scan {
  position: absolute;
  pointer-events: none;
}

.ciki-scene-banner__depth {
  inset: -34px;
  z-index: -3;
  background-color: #080b09;
  background-image: var(--ciki-scene-image);
  background-position: center;
  background-size: cover;
  filter: blur(19px) brightness(.38) saturate(.72);
  transform: scale(1.12);
}

.ciki-scene-banner__focus {
  inset: 12px 3% -12px;
  z-index: -2;
  background-image: var(--ciki-scene-image);
  background-position: center;
  background-size: cover;
  clip-path: polygon(3% 0, 97% 0, 100% 84%, 94% 100%, 6% 100%, 0 84%);
  filter: brightness(.72) saturate(.82) contrast(1.08);
  opacity: .9;
  transform: translate3d(var(--scene-shift-x), var(--scene-shift-y), 0) scale(1.015);
  transition: transform 180ms ease-out;
}

.ciki-scene-banner--1 .ciki-scene-banner__focus { background-position: 58% 62%; }
.ciki-scene-banner--2 .ciki-scene-banner__focus { background-position: 50% 52%; }
.ciki-scene-banner--3 .ciki-scene-banner__focus { background-position: 52% 54%; }
.ciki-scene-banner--4 .ciki-scene-banner__focus { background-position: 50% 52%; }

.ciki-scene-banner__scan {
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(3, 5, 4, .8) 0, transparent 26%, transparent 66%, rgba(3, 5, 4, .94) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(4, 7, 5, .72), transparent 25%, transparent 74%, rgba(4, 7, 5, .72));
}

.ciki-scene-banner__obstruction {
  position: absolute;
  bottom: -1px;
  height: 43px;
  background: #090d0b;
  border-top: 2px solid color-mix(in srgb, var(--scene-accent) 55%, #354039);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, .45);
}

.ciki-scene-banner__obstruction--left {
  left: 0;
  width: 16%;
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
}

.ciki-scene-banner__obstruction--right {
  right: 0;
  width: 23%;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.ciki-scene-banner__meta {
  position: absolute;
  bottom: 12px;
  left: clamp(18px, 4vw, 62px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 25px;
  padding: 5px 9px;
  color: #c8d4ce;
  background: rgba(6, 9, 7, .84);
  border: 1px solid #46534d;
  font: 9px/1 var(--ciki-font-machine);
}

.ciki-scene-banner__meta i {
  width: 7px;
  height: 7px;
  background: var(--scene-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--scene-accent) 60%, transparent);
}

.ciki-scene-banner__meta b {
  padding-left: 10px;
  color: var(--scene-accent);
  border-left: 1px solid #46534d;
  font-weight: 400;
}

.ciki-scene-banner__relics {
  position: absolute;
  top: 18px;
  right: clamp(18px, 4vw, 60px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(6, 9, 7, .64);
  border-top: 1px solid color-mix(in srgb, var(--scene-accent) 55%, #354039);
}

.ciki-scene-banner__relics img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .62));
  opacity: .82;
}

body:has(.ciki-scene-banner) .v-main__wrap {
  background-image:
    repeating-linear-gradient(0deg, rgba(126, 226, 168, .018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(126, 226, 168, .022) 0 1px, transparent 1px 28px) !important;
}

body:has(.ciki-scene-banner) .v-main > .v-main__wrap > .container.grid-list-xl {
  padding-top: 30px !important;
  background-color: rgba(7, 10, 8, .86) !important;
  background-image:
    linear-gradient(90deg, rgba(126, 226, 168, .025) 1px, transparent 1px),
    linear-gradient(rgba(126, 226, 168, .018) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}

body.ciki-admin-mode:has(.ciki-scene-banner) .page-col-sd {
  margin-top: 0 !important;
}

/* Page-specific archive boards and evidence props. */
.case-dossier--performances {
  --case-accent: #d3a257;
  --case-accent-dark: #76501f;
  --case-secondary: #69b9b0;
  --case-board: #15120d;
  --case-board-deep: #100e0b;
  --case-line: #51432d;
  --case-prop-image: url("/_assets/art/ciki/props/Clue_001_005.png");
  --case-prop-x: -200px;
  --case-prop-y: 0;
}

.case-dossier--lore {
  --case-accent: #69bfd0;
  --case-accent-dark: #2f6874;
  --case-secondary: #cc7f8f;
  --case-board: #0e1517;
  --case-board-deep: #0a1012;
  --case-line: #34515a;
  --case-prop-image: url("/_assets/art/ciki/props/Clue_002_004.png");
  --case-prop-x: -400px;
  --case-prop-y: -200px;
}

.case-dossier--characters {
  --case-accent: #d57b8b;
  --case-accent-dark: #773846;
  --case-secondary: #77d0a0;
  --case-board: #171012;
  --case-board-deep: #110b0d;
  --case-line: #56333a;
  --case-prop-image: url("/_assets/art/ciki/props/Clue_006_008.png");
  --case-prop-x: 0;
  --case-prop-y: -200px;
}

.case-dossier--guides {
  --case-accent: #d1b35f;
  --case-accent-dark: #74612b;
  --case-secondary: #75a8d2;
  --case-board: #17160f;
  --case-board-deep: #11100b;
  --case-line: #554d31;
  --case-prop-image: url("/_assets/art/ciki/props/Clue_010_001.png");
  --case-prop-x: 0;
  --case-prop-y: 0;
}

.case-dossier--forum-app {
  --case-accent: #74d49d;
  --case-accent-dark: #356e4d;
  --case-secondary: #d2a85d;
  --case-board: #0e1511;
  --case-board-deep: #0a100c;
  --case-line: #345142;
  --case-prop-image: url("/_assets/art/ciki/props/Clue_008_005.png");
  --case-prop-x: -400px;
  --case-prop-y: 0;
}

.case-dossier--legal {
  --case-accent: #a9b4b0;
  --case-accent-dark: #4d5753;
  --case-secondary: #7ec6b4;
  --case-board: #101313;
  --case-board-deep: #0b0e0e;
  --case-line: #3a4541;
  --case-prop-image: url("/_assets/art/ciki/props/Clue_005_001.png");
  --case-prop-x: -400px;
  --case-prop-y: 0;
}

.case-dossier[class*="case-dossier--"] {
  --ciki-green: var(--case-accent);
  --ciki-amber: var(--case-secondary);
  --ciki-line: var(--case-line);
  position: relative;
  padding: 18px clamp(12px, 2vw, 24px) 30px;
  overflow: hidden;
  background-color: var(--case-board);
  border: 1px solid var(--case-line);
  border-top: 5px solid var(--case-accent-dark);
  box-shadow: 10px 10px 0 #050706, inset 0 0 0 4px var(--case-board-deep);
}

.case-dossier[class*="case-dossier--"] .case-dossier__head {
  background-color: var(--case-board-deep);
  border-color: var(--case-line);
  border-left-color: var(--case-accent);
  box-shadow: inset 0 0 0 5px var(--case-board), 8px 8px 0 #050706;
}

.case-dossier[class*="case-dossier--"] .case-dossier__head > *:not(.case-pixel-prop) {
  position: relative;
  z-index: 2;
}

.case-dossier[class*="case-dossier--"] .case-code,
.case-dossier[class*="case-dossier--"] .case-section__head::before,
.case-dossier[class*="case-dossier--"] .case-field::before,
.case-dossier[class*="case-dossier--"] .case-entry::before {
  background-color: var(--case-accent);
}

.case-dossier[class*="case-dossier--"] .case-code {
  border-left-color: var(--case-accent-dark);
}

.case-dossier[class*="case-dossier--"] .case-section__head::before {
  border-bottom-color: var(--case-accent-dark);
}

.case-dossier[class*="case-dossier--"] .case-section__head {
  border-bottom-color: var(--case-line);
}

.case-dossier[class*="case-dossier--"] .case-panel,
.case-dossier[class*="case-dossier--"] .case-entry,
.case-dossier[class*="case-dossier--"] .case-field,
.case-dossier[class*="case-dossier--"] .case-index a {
  background-color: color-mix(in srgb, var(--case-board) 78%, #202823);
  border-color: var(--case-line) !important;
}

.case-pixel-prop {
  position: absolute !important;
  z-index: 1 !important;
  top: 38px;
  right: 35px;
  display: block;
  width: 200px;
  height: 190px;
  background-image: var(--case-prop-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: saturate(.78) contrast(1.06) drop-shadow(8px 9px 0 rgba(0, 0, 0, .42));
  opacity: .64;
  pointer-events: none;
}

body:has(.case-dossier--performances) .v-main__wrap { background-color: #100e0a !important; }
body:has(.case-dossier--lore) .v-main__wrap { background-color: #091214 !important; }
body:has(.case-dossier--characters) .v-main__wrap { background-color: #130b0e !important; }
body:has(.case-dossier--guides) .v-main__wrap { background-color: #121108 !important; }
body:has(.case-dossier--forum-app) .v-main__wrap { background-color: #09110c !important; }
body:has(.case-dossier--legal) .v-main__wrap { background-color: #0b0f0e !important; }

body:has(.case-dossier--performances) .breadcrumbs-nav::before { color: #d3a257; }
body:has(.case-dossier--lore) .breadcrumbs-nav::before { color: #69bfd0; }
body:has(.case-dossier--characters) .breadcrumbs-nav::before { color: #d57b8b; }
body:has(.case-dossier--guides) .breadcrumbs-nav::before { color: #d1b35f; }
body:has(.case-dossier--forum-app) .breadcrumbs-nav::before { color: #74d49d; }
body:has(.case-dossier--legal) .breadcrumbs-nav::before { color: #a9b4b0; }

.ops-home {
  padding: 16px;
  overflow: hidden;
  background-color: #0b100d;
  border: 1px solid #34463d;
  box-shadow: 10px 10px 0 #050706, inset 0 0 0 4px #0e1511;
}

.ops-prop-strip {
  position: relative;
  height: 164px;
  margin-top: 22px;
  overflow: hidden;
  background-color: #090d0b;
  border-top: 1px solid #3e5147;
  border-bottom: 1px solid #3e5147;
}

.ops-prop-strip::before {
  display: none;
}

.ops-prop-strip__items {
  position: absolute;
  inset: 16px 18px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
}

.ops-prop-strip__items > span {
  position: relative;
  display: grid;
  width: clamp(42px, 6vw, 72px);
  height: 108px;
  place-items: end center;
  padding-bottom: 25px;
  border-bottom: 3px solid #35443c;
}

.ops-prop-strip__items img {
  width: clamp(34px, 4vw, 58px);
  height: clamp(34px, 4vw, 58px);
  object-fit: contain;
  image-rendering: pixelated;
  filter: saturate(.72) drop-shadow(4px 6px 0 #020302);
  opacity: .76;
}

.ops-prop-strip__items i {
  position: absolute;
  right: 1px;
  bottom: 5px;
  color: #718078;
  font: 8px/1 var(--ciki-font-machine);
}

@media (max-width: 760px) {
  .ciki-scene-banner { height: 188px; }
  #app.editor .ciki-scene-banner--editor {
    flex-basis: 160px;
    width: calc(100% - 16px);
    height: 160px;
    margin-top: 8px;
    box-shadow: 5px 5px 0 #050706;
  }
  #app.editor .ciki-scene-banner--editor + .ck-editor__editable_inline { margin-top: 8px !important; }
  .ciki-scene-banner__focus {
    inset: 6px 0 -6px;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 6% 100%, 0 88%);
  }
  .ciki-scene-banner__meta {
    bottom: 8px;
    left: 9px;
    max-width: calc(100% - 86px);
    overflow: hidden;
    white-space: nowrap;
  }
  .ciki-scene-banner__meta span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ciki-scene-banner__meta b { display: none; }
  .ciki-scene-banner__relics { top: 10px; right: 9px; gap: 7px; padding: 6px 7px; }
  .ciki-scene-banner__relics img { width: 30px; height: 30px; }
  .ciki-scene-banner__relics img:nth-child(n + 3) { display: none; }
  .ciki-scene-banner__obstruction { height: 31px; }
  body:has(.ciki-scene-banner) .v-main > .v-main__wrap > .container.grid-list-xl { padding-top: 18px !important; }

  .case-dossier[class*="case-dossier--"] {
    padding: 10px 9px 22px;
    box-shadow: 6px 6px 0 #050706, inset 0 0 0 3px var(--case-board-deep);
  }

  .case-pixel-prop {
    top: 28px;
    right: -22px;
    transform: scale(.78);
    transform-origin: top right;
    opacity: .2;
  }

  .ops-home { padding: 8px; box-shadow: 6px 6px 0 #050706; }
  .ops-prop-strip { height: 132px; }
  .ops-prop-strip__items { inset: 10px 8px 18px; gap: 5px; }
  .ops-prop-strip__items > span { width: 46px; height: 92px; }
  .ops-prop-strip__items > span:nth-child(n + 7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ciki-scene-banner__focus { transition: none; }
}

/* Layout-preserving visual editor for decorated section pages. */
body.ciki-layout-editing .contents {
  padding-top: 78px !important;
}

body.ciki-layout-editing .contents > div[contenteditable="true"] {
  min-height: 420px;
  outline: 1px solid var(--case-accent, var(--ciki-green));
  outline-offset: 8px;
  caret-color: #fff;
}

body.ciki-layout-editing .contents > div[contenteditable="true"] :is(p, h1, h2, h3, h4, li, td, th, figcaption):hover {
  box-shadow: inset 3px 0 0 rgba(126, 226, 168, .55);
}

body.ciki-layout-editing .contents > div[contenteditable="true"] :focus {
  outline: 1px dashed rgba(126, 226, 168, .72);
  outline-offset: 3px;
}

.ciki-layout-editor {
  position: fixed;
  z-index: 320;
  top: 68px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1180px, calc(100vw - 28px));
  min-height: 58px;
  padding: 8px 10px;
  color: #dce8e1;
  background: rgba(8, 12, 10, .97);
  border: 1px solid #4b6256;
  border-bottom: 2px solid var(--case-accent, var(--ciki-green));
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .72);
  transform: translateX(-50%);
}

.ciki-layout-editor__tools {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
}

.ciki-layout-editor__tool {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 9px;
  color: #bac8c0;
  background: #111914;
  border: 1px solid #35473d;
  font: 9px/1 var(--ciki-font-machine) !important;
}

.ciki-layout-editor__tool:hover,
.ciki-layout-editor__tool:focus-visible {
  color: #07100b;
  background: var(--case-accent, var(--ciki-green));
  border-color: var(--case-accent, var(--ciki-green));
}

.ciki-layout-editor__tool.is-primary {
  color: #07100b;
  background: var(--case-accent, var(--ciki-green));
  border-color: var(--case-accent, var(--ciki-green));
}

.ciki-layout-editor__tool:disabled { opacity: .52; cursor: wait; }
.ciki-layout-editor__tool .mdi { font-size: 17px; }
.ciki-layout-editor__status {
  flex: 0 0 auto;
  max-width: 240px;
  color: #7ee2a8;
  font: 8px/1.45 var(--ciki-font-machine) !important;
  text-align: right;
}
.ciki-layout-editor__status.is-dirty { color: #d6bb77; }

@media (max-width: 760px) {
  body.ciki-layout-editing .contents { padding-top: 68px !important; }
  .ciki-layout-editor { top: 58px; align-items: stretch; flex-direction: column; min-height: 0; }
  .ciki-layout-editor__status { display: none; }
  .ciki-layout-editor__tool { min-width: 40px; justify-content: center; padding: 0 8px; }
  .ciki-layout-editor__tool > span:last-child { display: none; }
}

/* Community editorial workflow and responsive article media. */
.contents img,
.contents video,
.contents iframe,
.contents object,
.contents embed {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto;
}

.contents video { width: min(100%, 920px); background: #050706; }
.contents audio { display: block; width: min(100%, 680px); margin: 18px 0; }
.contents iframe { width: min(100%, 920px); aspect-ratio: 16 / 9; border: 1px solid var(--ciki-line); }
.contents figure { max-width: 100%; margin: 22px 0; }
.contents figcaption { margin-top: 8px; color: var(--ciki-muted); font: 10px/1.7 var(--ciki-font-machine); }

.editorial-console {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 38px;
  padding: 12px;
  background: #090d0b;
  border: 1px dashed var(--case-line, var(--ciki-line));
  box-shadow: 5px 5px 0 #050706;
}

.editorial-console__status,
.editorial-console > a {
  padding: 8px 10px;
  color: #07100b !important;
  background: var(--case-accent, var(--ciki-green));
  border: 0 !important;
  font: 9px/1 var(--ciki-font-machine);
}

.editorial-console strong,
.editorial-console small { display: block; font-family: var(--ciki-font-machine) !important; }
.editorial-console strong { color: #edf3ef; font-size: 12px; }
.editorial-console small { margin-top: 5px; color: #8f9e97; font-size: 9px; line-height: 1.7; }

.editorial-workflow,
.editorial-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.editorial-workflow article {
  position: relative;
  min-height: 146px;
  padding: 20px 20px 18px 62px;
  background: #11130e;
  border: 1px solid var(--case-line, var(--ciki-line));
}

.editorial-workflow article > span {
  position: absolute;
  top: 18px;
  left: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #07100b;
  background: var(--case-accent, var(--ciki-green));
  font: 10px/1 var(--ciki-font-machine);
}

.editorial-workflow h3 { margin: 0 0 10px !important; font-size: 16px !important; }
.editorial-workflow p { margin: 0 !important; color: #9eaaa4; font-size: 11px; }
.editorial-policy-grid { margin-top: 18px; }
.editorial-policy-grid .case-panel { padding: 22px; }
.editorial-format { margin-top: 18px; padding: 24px; }
.editorial-format dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1px; margin: 18px 0 0; background: #3b453f; }
.editorial-format dt,
.editorial-format dd { margin: 0; padding: 10px 12px; background: #0d120f; font-family: var(--ciki-font-machine); }
.editorial-format dt { color: var(--case-secondary, var(--ciki-amber)); }
.editorial-format dd { color: #aab6b0; }

.editorial-template {
  margin-top: 8px;
  background: #0b100d;
  border: 1px solid var(--case-line, var(--ciki-line));
}

.editorial-template summary { padding: 13px 16px; color: var(--case-accent, var(--ciki-green)); cursor: pointer; font: 11px/1.4 var(--ciki-font-machine); }
.editorial-template pre { margin: 0 !important; border: 0 !important; border-top: 1px solid var(--case-line, var(--ciki-line)) !important; }

@media (max-width: 700px) {
  .editorial-console { grid-template-columns: 1fr; align-items: stretch; }
  .editorial-console__status,
  .editorial-console > a { text-align: center; }
  .editorial-workflow,
  .editorial-policy-grid { grid-template-columns: 1fr; }
  .editorial-format dl { grid-template-columns: 1fr; }
  .editorial-format dt { padding-bottom: 4px; }
  .editorial-format dd { padding-top: 4px; }
}
/* Community stays inside the Wiki page; the API service is visually invisible. */
.community-page-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-block: 1px solid color-mix(in srgb, var(--ciki-accent, #88d7c5) 36%, transparent);
  font-size: 13px;
}

.community-page-tools a {
  color: var(--ciki-accent, #88d7c5);
  font-weight: 700;
}

.community-page-tools span {
  margin-left: auto;
  opacity: .72;
}

@media (max-width: 720px) {
  .community-page-tools span { width: 100%; margin-left: 0; }
}

/* Multi-work archive selector and home information console. */
.work-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(118px, .52fr);
  gap: 5px;
  padding: 8px 0;
}

.work-key {
  position: relative;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 66px;
  padding: 10px 12px !important;
  color: #aab7b0 !important;
  background: #101713;
  border: 1px solid #46544c !important;
  border-bottom: 4px solid #050706 !important;
  box-shadow: inset 0 0 0 1px #1d2822;
  text-decoration: none !important;
}

.work-key::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #344039;
  border: 1px solid #66766d;
}

.work-key > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #6e7d75;
  font: 8px/1.5 var(--ciki-font-machine);
  writing-mode: vertical-rl;
}

.work-key strong,
.work-key small { display: block; min-width: 0; font-family: var(--ciki-font-machine) !important; }
.work-key strong { align-self: end; color: #edf4f0; font-size: 15px; }
.work-key small { color: #819088; font-size: 9px; }

.work-key:hover,
.work-key:focus-visible,
.work-key.is-preview {
  color: #fff !important;
  background: #18251e;
  border-color: var(--ciki-green) !important;
  outline: 0;
}

.work-key.is-active {
  background: #173526;
  border-color: #8be6b0 !important;
  border-bottom-color: #28583c !important;
}

.work-key.is-active::after,
.work-key.is-preview::after {
  background: var(--ciki-green);
  box-shadow: 0 0 9px rgba(126, 226, 168, .7);
}

.work-feed-image {
  position: absolute;
  inset: -7px;
  background-image: var(--work-feed-image);
  background-position: center;
  background-size: cover;
  filter: brightness(.66) saturate(.78) contrast(1.1);
  transform: translate(var(--look-x), var(--look-y)) scale(1.045);
  transition: background-image 120ms linear, transform 180ms ease;
}

.work-feed-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(2, 4, 3, .42), transparent 34%, transparent 62%, rgba(2, 4, 3, .74)),
    linear-gradient(90deg, rgba(4, 8, 6, .48), transparent 23%, transparent 77%, rgba(4, 8, 6, .5));
}

.monitor-screen[data-work="cmagic"] { --work-feed-image: url("/_assets/art/ciki/background/web-20261107/4.webp"); }
.monitor-screen[data-work="prequel"] { --work-feed-image: url("/_assets/art/ciki/background/web-20261107/3.webp"); }
.monitor-screen[data-work="mirage"] { --work-feed-image: url("/_assets/art/ciki/background/web-20261107/2.webp"); }
.crt-disabled .work-feed-image { filter: brightness(.86) saturate(.9) contrast(1.02); }

.monitor-caption {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.monitor-caption > a {
  display: grid;
  min-width: 170px;
  padding: 0 18px !important;
  place-items: center;
  color: #07100b !important;
  background: var(--ciki-green);
  border-left: 1px solid #5ea879 !important;
  font: 10px/1.4 var(--ciki-font-machine);
  text-align: center;
}

.monitor-caption > a:hover,
.monitor-caption > a:focus-visible { background: var(--ciki-amber); outline: 0; }

.ops-overview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.ops-window {
  position: relative;
  min-width: 0;
  background: #0c120f;
  border: 1px solid #3a4941;
  box-shadow: 6px 6px 0 #050706;
}

.ops-window--updates { grid-column: span 8; }
.ops-window--version { grid-column: span 4; }
.ops-window--library { grid-column: span 7; }
.ops-window--common { grid-column: span 5; }
.ops-window--evidence { grid-column: span 7; }
.ops-window--community { grid-column: span 5; }

.ops-window__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 12px;
  color: #dce6e0;
  background: #101814;
  border-bottom: 1px solid #3a4941;
  font: 10px/1.4 var(--ciki-font-machine);
}

.ops-window__head span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--ciki-green);
  box-shadow: 0 0 7px rgba(126, 226, 168, .5);
}

.ops-window__head b { color: var(--ciki-amber); font-weight: 400; font-size: 8px; }

.ops-window__action {
  display: block !important;
  padding: 9px 12px !important;
  color: var(--ciki-green) !important;
  background: #080c0a;
  border-top: 1px solid #303d36 !important;
  font: 9px/1.4 var(--ciki-font-machine);
  text-align: right;
}

.update-tape {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.update-tape article {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid #2e3a34;
}

.update-tape article:last-child { border-right: 0; }
.update-tape time { color: var(--ciki-amber); font: 8px/1 var(--ciki-font-machine); }
.update-tape strong { display: block; margin-top: 10px; color: #edf3ef; font: 13px/1.4 var(--ciki-font-machine); }
.update-tape p { margin: 9px 0 0 !important; color: #93a198; font-size: 10px; line-height: 1.8; }

.version-matrix { margin: 0; padding: 8px 14px; }
.version-matrix > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed #2d3933; }
.version-matrix > div:last-child { border-bottom: 0; }
.version-matrix dt { color: #829188; font-size: 9px; }
.version-matrix dd { margin: 0; color: #d4e1da; font: 9px/1.5 var(--ciki-font-machine); text-align: right; }
.version-note { display: block; padding: 10px 14px; color: #7d8983; background: #090d0b; font-size: 8px; line-height: 1.7; }

.ops-overview-grid > .archive-rack,
.ops-overview-grid > .evidence-bench { margin-top: 0; }
.ops-window--library .archive-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; }
.ops-window--library .archive-slot { min-height: 112px; }

.common-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: #334039;
}

.common-entry-grid a {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 70px;
  padding: 11px 12px !important;
  color: #dae4df !important;
  background: #0c120f;
  border: 0 !important;
}

.common-entry-grid a:hover,
.common-entry-grid a:focus-visible { background: #17231d; outline: 1px solid var(--ciki-amber); }
.common-entry-grid a > span { grid-row: 1 / 3; align-self: center; color: var(--ciki-amber); font: 9px/1 var(--ciki-font-machine); }
.common-entry-grid strong { align-self: end; font: 11px/1.4 var(--ciki-font-machine); }
.common-entry-grid small { color: #7f8e86; font-size: 8px; }

.ops-window--evidence .bench-layout { grid-template-columns: minmax(174px, .65fr) 1.35fr; gap: 20px; padding: 20px; }
.ops-window--evidence .evidence-cassette { min-height: 146px; }
.ops-window--evidence .evidence-copy h2 { font-size: 20px !important; }
.ops-window--evidence .evidence-copy p { font-size: 10px; line-height: 1.8; }
.ops-window--evidence .hidden-log { margin: 0 20px 20px; }

.home-topic-list { min-height: 204px; padding: 8px; }
.home-topic-list > p { margin: 0 !important; padding: 28px 12px; color: #77867e; font-size: 9px; text-align: center; }
.home-topic-list > a {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-height: 56px;
  padding: 9px 8px !important;
  color: #dce6e1 !important;
  border-bottom: 1px solid #2e3a34 !important;
}
.home-topic-list > a:last-child { border-bottom: 0 !important; }
.home-topic-list > a:hover,
.home-topic-list > a:focus-visible { background: #16221b; outline: 0; }
.home-topic-list > a > span:first-child { display: grid; place-items: center; color: #07100b; background: var(--ciki-green); font: 8px/1 var(--ciki-font-machine); }
.home-topic-list strong,
.home-topic-list small { display: block; min-width: 0; overflow: hidden; font-family: var(--ciki-font-machine) !important; text-overflow: ellipsis; white-space: nowrap; }
.home-topic-list strong { color: #e1e9e5; font-size: 10px; }
.home-topic-list small { margin-top: 5px; color: #75847c; font-size: 8px; }

.community-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #303d36; }
.community-shortcuts a { padding: 9px 5px !important; color: #9aaba2 !important; background: #101713; border-right: 1px solid #303d36 !important; font-size: 8px; text-align: center; }
.community-shortcuts a:last-child { border-right: 0 !important; }
.community-shortcuts a:hover,
.community-shortcuts a:focus-visible { color: #07100b !important; background: var(--ciki-amber); outline: 0; }

.ops-overview-grid + .ops-prop-strip { margin-top: 24px; }

/* Derivative work portals share common records but keep their own namespaces. */
.project-portal {
  --project-accent: #d8ad62;
  --project-secondary: #7bc1b0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px;
  color: #dce5e0;
  background: #0b100d;
  border: 1px solid #3c4942;
  box-shadow: 10px 10px 0 #050706, inset 0 0 0 4px #101713;
}

.project-portal--mirage { --project-accent: #c9819c; --project-secondary: #77b9ce; }
.project-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 9px; }
.project-switcher a { display: flex !important; align-items: center; gap: 12px; min-height: 48px; padding: 9px 13px !important; color: #9ba9a1 !important; background: #101713; border: 1px solid #3e4a44 !important; border-bottom: 4px solid #050706 !important; font: 11px/1 var(--ciki-font-machine); }
.project-switcher a span { color: #6c7b73; font-size: 8px; }
.project-switcher a:hover,
.project-switcher a:focus-visible { color: #fff !important; border-color: var(--project-accent) !important; outline: 0; }
.project-switcher a.is-active { color: #0a0e0c !important; background: var(--project-accent); border-color: color-mix(in srgb, var(--project-accent) 70%, #fff) !important; border-bottom-color: color-mix(in srgb, var(--project-accent) 46%, #050706) !important; }
.project-switcher a.is-active span { color: #27302b; }

.project-hero { position: relative; min-height: 390px; overflow: hidden; border: 1px solid #4b5851; box-shadow: inset 0 0 64px #000; }
.project-hero__image { position: absolute; inset: -10px; background-position: center; background-size: cover; filter: brightness(.64) saturate(.82); transform: scale(1.025); }
.project-portal--prequel .project-hero__image { background-image: url("/_assets/art/ciki/background/web-20261107/3.webp"); }
.project-portal--mirage .project-hero__image { background-image: url("/_assets/art/ciki/background/web-20261107/2.webp"); }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 6, .94) 0, rgba(5, 8, 6, .68) 42%, transparent 78%), linear-gradient(180deg, transparent 55%, rgba(5, 8, 6, .82)); pointer-events: none; }
.project-hero__readout { position: absolute; z-index: 1; top: 50%; left: clamp(24px, 6vw, 72px); width: min(480px, calc(100% - 48px)); transform: translateY(-50%); }
.project-hero__readout small { color: var(--project-secondary); font: 9px/1 var(--ciki-font-machine); }
.project-hero__readout h1 { margin: 12px 0 14px !important; padding: 0 !important; color: #f2f5f3 !important; border: 0 !important; font-size: clamp(40px, 7vw, 76px) !important; }
.project-hero__readout p { margin: 0 !important; color: #b6c2bc; font-size: 12px; line-height: 1.9; }

.project-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.project-route-grid article { padding: 22px; background: #0e1511; border: 1px solid #39463f; }
.project-route-grid article > span { color: var(--project-accent); font: 8px/1 var(--ciki-font-machine); }
.project-route-grid h2 { margin: 10px 0 !important; padding: 0 0 9px !important; color: #e4ebe7 !important; border-bottom: 1px solid #35413b !important; font-size: 21px !important; }
.project-route-grid p { color: #8f9e96; font-size: 10px; line-height: 1.8; }
.project-route-grid nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 18px; }
.project-route-grid nav a { display: grid !important; min-height: 58px; padding: 8px !important; place-items: center; color: #bdc9c3 !important; background: #090d0b; border: 1px solid #344039 !important; font-size: 8px; text-align: center; }
.project-route-grid nav a:hover,
.project-route-grid nav a:focus-visible { color: #07100b !important; background: var(--project-accent); outline: 0; }
.project-route-note { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; margin-top: 8px; padding: 10px 14px; background: #090d0b; border: 1px solid #35413b; font: 9px/1.5 var(--ciki-font-machine); }
.project-route-note b { color: var(--project-accent); }
.project-route-note code { color: #d8e2dd; background: #131a16; }
.project-route-note span { color: #7d8b84; text-align: right; }

body:has(.project-portal--prequel) .v-main__wrap { background-color: #10100a !important; }
body:has(.project-portal--mirage) .v-main__wrap { background-color: #120b10 !important; }
body:has(.project-portal) .page-header-section,
body:has(.project-portal) .ciki-scene-banner { display: none !important; }
body:has(.project-portal) .v-main > .v-main__wrap > .container.grid-list-xl { padding-top: 28px !important; }

@media (max-width: 900px) {
  .work-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-selector .hardware-key--switch { grid-column: 1 / -1; min-height: 40px; text-align: center; }
  .ops-window--updates,
  .ops-window--version,
  .ops-window--library,
  .ops-window--common,
  .ops-window--evidence,
  .ops-window--community { grid-column: span 12; }
  .project-hero { min-height: 330px; }
}

@media (max-width: 620px) {
  .work-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-selector .hardware-key--switch { grid-column: 1 / -1; min-height: 38px; }
  .work-key { display: block !important; min-height: 62px; padding: 8px 6px !important; text-align: center; }
  .work-key > span { display: block; margin-bottom: 6px; font-size: 7px; writing-mode: horizontal-tb; }
  .work-key strong { font-size: 12px; }
  .work-key small { display: none; }
  .monitor-caption { grid-template-columns: 78px minmax(0, 1fr); }
  .monitor-caption > a { grid-column: 1 / -1; min-height: 42px; border-top: 1px solid #5ea879 !important; border-left: 0 !important; }
  .update-tape { grid-template-columns: 1fr; }
  .update-tape article { border-right: 0; border-bottom: 1px solid #2e3a34; }
  .update-tape article:last-child { border-bottom: 0; }
  .ops-window--library .archive-slots,
  .common-entry-grid { grid-template-columns: 1fr; }
  .ops-window--evidence .bench-layout { grid-template-columns: 1fr; }
  .ops-window--evidence .evidence-cassette { min-height: 128px; }
  .project-switcher { grid-template-columns: 1fr; }
  .project-hero { min-height: 300px; }
  .project-hero__readout { left: 20px; width: calc(100% - 40px); }
  .project-hero__readout h1 { font-size: 38px !important; }
  .project-route-grid { grid-template-columns: 1fr; }
  .project-route-grid nav { grid-template-columns: 1fr; }
  .project-route-note { grid-template-columns: 1fr; gap: 5px; }
  .project-route-note span { text-align: left; }
}

/* Silver archive workbench -------------------------------------------------- */
:root {
  --ciki-paper: #f7f8f7;
  --ciki-paper-cool: #edf2f4;
  --ciki-paper-warm: #f1f0eb;
  --ciki-paper-green: #eaf1ed;
  --ciki-paper-rose: #f2eaed;
  --ciki-graphite: #263137;
  --ciki-shadow: #aab4b8;
  --ciki-shadow-strong: #89969c;
}

html,
body,
.v-application,
.v-application .v-main,
.v-main__wrap {
  color: var(--ciki-text) !important;
  background-color: var(--ciki-bg) !important;
}

.v-main__wrap {
  background-image:
    linear-gradient(rgba(63, 80, 88, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 80, 88, .04) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
}

.nav-header,
.nav-header-inner {
  color: var(--ciki-text) !important;
  background: #eef1f2 !important;
  border-bottom: 1px solid #8d9aa0 !important;
  box-shadow: 0 5px 0 rgba(78, 91, 98, .16) !important;
}

html body #app.v-application .nav-header.black,
html body #app.v-application .nav-header-inner.black {
  background-color: #eef1f2 !important;
}

.nav-header .v-toolbar__title,
.nav-header .v-btn,
.nav-header-inner .v-btn,
.nav-header .v-icon,
.nav-header-inner .v-icon {
  color: var(--ciki-graphite) !important;
}

.nav-header-inner .v-toolbar__content::after {
  height: 3px;
  background: repeating-linear-gradient(90deg, #3d7683 0 30px, #a84f5f 30px 36px, transparent 36px 44px);
  opacity: .72;
}

.nav-header .v-input__slot,
.nav-header-inner .v-input__slot {
  color: #263238 !important;
  background: #f8f9f8 !important;
  border: 1px solid #a4b0b5;
  box-shadow: inset 0 0 0 2px #e1e6e8 !important;
}

.nav-header .v-input input,
.nav-header-inner .v-input input,
.nav-header .v-input .v-icon,
.nav-header-inner .v-input .v-icon { color: #354249 !important; }

.nav-header .v-input input::placeholder,
.nav-header-inner .v-input input::placeholder {
  color: #69767c !important;
  opacity: 1;
}

html body #app.v-application nav.v-navigation-drawer.primary,
html body #app.v-application nav.v-navigation-drawer.primary .v-navigation-drawer__content,
.v-navigation-drawer.primary,
.v-navigation-drawer .primary,
.v-navigation-drawer .v-list.primary {
  color: var(--ciki-text) !important;
  background-color: #e8ecee !important;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(73, 91, 99, .05) 31px 32px) !important;
  border-color: #a1adb2 !important;
}

.v-navigation-drawer .v-list-item,
.v-navigation-drawer .v-list-item__title,
.v-navigation-drawer .v-list-item__subtitle,
.v-navigation-drawer .v-icon,
.v-navigation-drawer .v-btn {
  color: #354249 !important;
}

.v-navigation-drawer .v-list-item--active,
.v-navigation-drawer .v-list-item:hover {
  background: #f8f9f8 !important;
  box-shadow: inset 4px 0 0 var(--ciki-green);
}

.v-navigation-drawer .blue,
.v-navigation-drawer .blue.darken-2,
.v-navigation-drawer .blue.darken-3 {
  background: #d9e0e3 !important;
}

.v-navigation-drawer .v-btn {
  background: #f7f8f7 !important;
  border-color: #9fabb0 !important;
}

.page-header-section {
  background: #f2f4f4 !important;
  border-bottom-color: #a8b3b8 !important;
}

.page-header-headings .headline,
.page-header-headings .headline.grey--text { color: var(--ciki-graphite) !important; }
.page-header-headings .caption,
.page-header-headings .caption.grey--text { color: var(--ciki-muted) !important; }

.v-toolbar.grey.lighten-3:has(.breadcrumbs-nav) {
  background: #d7dde0 !important;
  border-bottom-color: #9ba7ad !important;
}

.breadcrumbs-nav,
.breadcrumbs-nav a,
.breadcrumbs-nav .v-breadcrumbs__divider { color: #526169 !important; }

.v-main > .v-main__wrap > .container.grid-list-xl,
body:has(.ciki-scene-banner) .v-main > .v-main__wrap > .container.grid-list-xl {
  background-color: rgba(239, 242, 242, .94) !important;
  background-image:
    linear-gradient(rgba(73, 91, 99, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 91, 99, .04) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}

.contents,
.contents h1,
.contents h2,
.contents h3,
.contents h4,
.contents p,
.contents li { color: var(--ciki-text) !important; }
.contents a { color: #276f71 !important; }
.contents a:hover,
.contents a:focus-visible { color: #8b4e2b !important; border-bottom-color: currentColor; }

.contents blockquote {
  color: #39464c !important;
  background: #edf1f2 !important;
  border: 1px solid #b4c0c5 !important;
  border-left: 5px solid #9f6d2d !important;
  box-shadow: 4px 4px 0 #cbd2d5;
}

.contents code,
.editorial-template pre,
.contents pre {
  color: #215e4b !important;
  background: #eef3f0 !important;
  border-color: #afbbb6 !important;
}

.contents table { background: #fafbfa; border-color: #aeb9be; }
.contents th { color: #314149; background: #dce3e6; }
.contents td:nth-child(even) { background: #f0f3f4; }
.contents td,
.contents th { border-color: #afb9be; }

body:has(.case-dossier--performances) .v-main__wrap { background-color: #e9e8e3 !important; }
body:has(.case-dossier--lore) .v-main__wrap { background-color: #e2eaed !important; }
body:has(.case-dossier--characters) .v-main__wrap { background-color: #eee5e8 !important; }
body:has(.case-dossier--guides) .v-main__wrap { background-color: #ecebe2 !important; }
body:has(.case-dossier--forum-app) .v-main__wrap { background-color: #e2ebe6 !important; }
body:has(.case-dossier--legal) .v-main__wrap { background-color: #e8ebea !important; }
body:has(.project-portal--prequel) .v-main__wrap { background-color: #e9e8e1 !important; }
body:has(.project-portal--mirage) .v-main__wrap { background-color: #eee5ea !important; }

/* Dossier boards use paper layers, registration marks and checked fields. */
.case-dossier[class*="case-dossier--"] {
  --case-board: #eef1f1;
  --case-board-deep: #f8f9f8;
  color: var(--ciki-text);
  background-color: var(--case-board) !important;
  border-color: color-mix(in srgb, var(--case-accent) 36%, #89969c) !important;
  box-shadow: 10px 10px 0 var(--ciki-shadow), inset 0 0 0 4px #f8f9f8 !important;
}

.case-dossier--performances { --case-board: #efeee9; --case-board-deep: #faf9f5; }
.case-dossier--lore { --case-board: #e9f0f2; --case-board-deep: #f7fafb; }
.case-dossier--characters { --case-board: #f1e9ec; --case-board-deep: #fbf7f8; }
.case-dossier--guides { --case-board: #f0efe7; --case-board-deep: #faf9f4; }
.case-dossier--forum-app { --case-board: #e9f1ed; --case-board-deep: #f7faf8; }
.case-dossier--legal { --case-board: #edf0ef; --case-board-deep: #fafbfa; }
.case-dossier[class*="case-dossier--"]::after { color: #7d8a90; }

.case-dossier[class*="case-dossier--"] .case-dossier__head,
.case-dossier__head,
.case-hero {
  color: var(--ciki-text);
  background-color: var(--case-board-deep, #f7f8f7) !important;
  border-color: color-mix(in srgb, var(--case-accent, var(--ciki-green)) 42%, #9ba7ad) !important;
  border-left-color: var(--case-accent, var(--ciki-green)) !important;
  box-shadow: inset 0 0 0 5px var(--case-board, #edf1f1), 8px 8px 0 var(--ciki-shadow) !important;
}

.case-dossier__head h1,
.case-hero h1,
.case-dossier[class*="case-dossier--"] .case-dossier__head h1 {
  color: #202a30 !important;
  text-shadow: 2px 2px 0 #d1d8db !important;
}
.case-dossier__head .case-lead,
.case-hero .case-lead { color: #536169 !important; }
.case-dossier__head::after { color: #7b898f; }
.case-section__head { border-bottom-color: #a9b5ba !important; }
.case-section__head h2 { color: #263238 !important; }
.case-section__head span { color: #5f4f30; background: #f4f1e8; border-color: #b9aa8b; }

.case-fields {
  gap: 7px;
  padding: 9px;
  background: #c8d0d3 !important;
  border-color: #98a6ac !important;
  box-shadow: 7px 7px 0 var(--ciki-shadow) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.case-dossier[class*="case-dossier--"] .case-field,
.case-field {
  color: var(--ciki-text);
  background: #f9faf9 !important;
  border: 1px solid #b6c0c4 !important;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--case-accent, var(--ciki-green)) 35%, transparent);
}

.case-field::before {
  background: #f9faf9 !important;
  border: 1px solid #617077;
  box-shadow: inset 0 0 0 3px #f9faf9 !important;
}

.case-field::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 18px;
  width: 7px;
  height: 4px;
  border-bottom: 2px solid var(--case-accent, var(--ciki-green));
  border-left: 2px solid var(--case-accent, var(--ciki-green));
  transform: rotate(-45deg);
}

.case-field span { color: #67757c !important; }
.case-field strong { color: #263138 !important; }

.case-dossier[class*="case-dossier--"] .case-entry,
.case-entry,
.case-dossier[class*="case-dossier--"] .case-panel,
.case-panel,
.case-dossier[class*="case-dossier--"] .case-index a,
.case-index a,
.case-link {
  color: var(--ciki-text) !important;
  background: #f8f9f8 !important;
  border-color: #aeb9be !important;
  box-shadow: 5px 5px 0 #bdc6c9 !important;
}

.case-entry:hover,
.case-link:hover,
.case-link:focus-visible { background: #edf3f4 !important; border-color: var(--case-accent, var(--ciki-cyan)) !important; }
.case-entry h3,
.case-panel h3,
.case-link__body strong { color: #263138 !important; }
.case-entry p,
.case-panel p,
.case-link__body small { color: #5d6a71 !important; }
.case-entry__meta { color: #76541d; background: #f5f0e2; border-color: #c4b184; }

.case-panel--warning { color: #433c2d !important; background: #f3f0e5 !important; border-color: #c2ad7f !important; border-left-color: var(--ciki-amber) !important; }
.case-panel--signal { background: #e9f1f3 !important; border-left-color: var(--ciki-cyan) !important; }
.comments-container { background: #f6f8f7 !important; border-color: #aab6bb !important; box-shadow: 6px 6px 0 var(--ciki-shadow) !important; }

.page-col-sd .v-card,
.page-col-sd .v-sheet,
.page-col-sd .v-list { color: var(--ciki-text) !important; background: #eef2f3 !important; border-color: #aab5ba !important; }
.page-col-sd .v-card__title,
.page-col-sd .v-card__text,
.page-col-sd .v-list-item,
.page-col-sd .v-list-item__title,
.page-col-sd .caption,
.page-col-sd strong { color: #354249 !important; }

/* Home console: silver hardware outside, dark optical display inside. */
.ops-home {
  color: var(--ciki-text);
  background-color: #e9edef !important;
  border-color: #9ba8ae !important;
  box-shadow: 10px 10px 0 var(--ciki-shadow-strong), inset 0 0 0 4px #f7f8f7 !important;
}

.ops-masthead {
  color: var(--ciki-text);
  background: #f5f7f7 !important;
  border-color: #9daab0 !important;
  box-shadow: 5px 5px 0 #b4bec2 !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.ops-masthead b { color: #263238; }
.ops-clock { background: #dfe5e7; border-left-color: #a8b3b8; }
.ops-clock strong { color: #875623; }

.work-key,
.hardware-key:not(.hardware-key--switch) {
  color: #536168 !important;
  background: #f5f7f7 !important;
  border-color: #9fabb0 !important;
  border-bottom-color: #87949a !important;
  box-shadow: inset 0 0 0 1px #d6dde0 !important;
}
.work-key strong { color: #29343a; }
.work-key small,
.work-key > span { color: #67747a; }
.work-key::after { background: #e7ebed; border-color: #738087; }
.work-key:hover,
.work-key:focus-visible,
.work-key.is-preview { color: #253238 !important; background: #e4eeea !important; }
.work-key.is-active { background: #d5e8df !important; border-color: #54836d !important; border-bottom-color: #48715f !important; }
.surveillance-rig { box-shadow: inset 0 0 0 3px #090c0b, 8px 8px 0 #9ca7ac; }
.contents .monitor-caption p { color: #aebdb5 !important; }
.contents .monitor-caption > a { color: #17251f !important; }
.contents .monitor-readout,
.contents .rig-rail { color: #b8d7c5 !important; }

.ops-window {
  z-index: 0;
  background: var(--ciki-paper) !important;
  border-color: #9daab0 !important;
  box-shadow: 7px 7px 0 var(--ciki-shadow) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.ops-window--updates { background: #edf3f5 !important; }
.ops-window--version { background: #f1f2f2 !important; }
.ops-window--library { background: #ebf2ee !important; }
.ops-window--common { background: #f3f0e9 !important; }
.ops-window--evidence { background: #f0efea !important; }
.ops-window--community { background: #eaf2ef !important; }

.ops-window__head {
  color: #27343a;
  background: rgba(217, 225, 228, .82) !important;
  border-bottom-color: #9ba8ae !important;
  box-shadow: inset 0 -3px 0 rgba(100, 118, 126, .08);
}

.ops-window__head span { position: relative; }
.ops-window__head span::before {
  width: 12px;
  height: 12px;
  margin-right: 9px;
  vertical-align: -2px;
  background: #f8f9f8;
  border: 1px solid #5f6e75;
  box-shadow: inset 0 0 0 3px #f8f9f8;
}
.ops-window__head span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 7px;
  height: 4px;
  border-bottom: 2px solid var(--ciki-green);
  border-left: 2px solid var(--ciki-green);
  transform: rotate(-45deg);
}
.ops-window__head b { color: #865b28; }
.ops-window__action { color: #286954 !important; background: rgba(220, 228, 229, .7) !important; border-top-color: #aab5ba !important; }

.update-tape article { border-right-color: #b2bdc1; }
.update-tape article:nth-child(even) { background: rgba(255, 255, 255, .48); }
.update-tape time { color: #8b5b22; }
.update-tape strong { color: #29343a; }
.update-tape p { color: #5c6a71; }
.version-matrix > div { border-bottom-color: #b1bcc0; }
.version-matrix dt { color: #64727a; }
.version-matrix dd { color: #2d3a40; }
.version-note { color: #606d74; background: #e2e7e9; }

.rack-heading,
.bench-label { color: #58666d; background: #dce3e5; border-color: #9daab0; }
.archive-slots { background: #d4dcdf; border-color: #9ba8ae; box-shadow: 7px 7px 0 #aeb8bc; }
.archive-slot { color: #2c383e !important; background: #f7f8f7 !important; border-color: #a8b3b8 !important; border-bottom-color: #7f8c92 !important; box-shadow: inset -3px 0 0 #e2e7e9 !important; }
.archive-slot strong { color: #29343a; }
.archive-slot small { color: #68767d; }
.archive-slot:hover,
.archive-slot:focus-visible { color: #263238 !important; background: #e7f0ec !important; }

.common-entry-grid { background: #aab5ba; }
.common-entry-grid a { color: #29353b !important; background: #fafaf8; }
.common-entry-grid a:nth-child(4n + 2),
.common-entry-grid a:nth-child(4n + 3) { background: #ecefea; }
.common-entry-grid a:hover,
.common-entry-grid a:focus-visible { background: #e5eeea; }
.common-entry-grid small { color: #66747b; }

.evidence-bench { background: #e1e5e4; border-color: #9da9ae; box-shadow: 7px 7px 0 #aeb8bc; }
.evidence-copy h2 { color: #29343a !important; }
.evidence-copy p { color: #5b686f !important; }
.hidden-log { color: #324047 !important; background: #e8edeb !important; border-color: #a5b0b4 !important; }

.home-topic-list > p { color: #68767d; }
.home-topic-list > a { color: #2c383e !important; border-bottom-color: #b3bdc1 !important; }
.home-topic-list > a:nth-child(even) { background: rgba(255, 255, 255, .48); }
.home-topic-list > a:hover,
.home-topic-list > a:focus-visible { background: #dfeae5; }
.home-topic-list strong { color: #29353b; }
.home-topic-list small { color: #68767d; }
.community-shortcuts { border-top-color: #aab5ba; }
.community-shortcuts a { color: #536168 !important; background: #edf1f2; border-right-color: #aab5ba !important; }

/* Derivative portal frame is light; the media hero remains a dark display. */
.project-portal { color: var(--ciki-text); background: #edf1f2 !important; border-color: #9daab0 !important; box-shadow: 10px 10px 0 var(--ciki-shadow), inset 0 0 0 4px #fafbfa !important; }
.contents .project-hero__readout h1 { color: #f2f5f3 !important; text-shadow: 2px 2px 0 #111915 !important; }
.contents .project-hero__readout p { color: #b6c2bc !important; }
.project-switcher a { color: #536168 !important; background: #f6f7f6; border-color: #a5b1b6 !important; border-bottom-color: #7f8c92 !important; }
.project-switcher a:hover,
.project-switcher a:focus-visible { color: #263238 !important; }
.project-route-grid article { background: #f8f9f8; border-color: #abb6ba; box-shadow: 5px 5px 0 #c0c8cb; }
.project-route-grid h2 { color: #29343a !important; border-bottom-color: #aeb9be !important; }
.project-route-grid p { color: #5e6b72; }
.project-route-grid nav a { color: #435159 !important; background: #e7ecee; border-color: #a7b2b7 !important; }
.project-route-note { background: #dfe5e7; border-color: #a5b1b6; }
.project-route-note code { color: #2d604f; background: #f7f9f8; }
.project-route-note span { color: #647279; }

/* Editor uses the same paper values as reading mode. */
#app.editor,
#app.editor .v-main,
#app.editor .v-main__wrap,
#app.editor .editor-ckeditor { color: var(--ciki-text) !important; background: #dfe4e6 !important; }
#app.editor .editor-ckeditor .ck.ck-toolbar,
#app.editor .editor-ckeditor > div:first-child { color: #263238 !important; background: #e8edef !important; border-color: #9eabb0 !important; }
#app.editor .editor-ckeditor .ck.ck-button,
#app.editor .editor-ckeditor a.ck.ck-button { color: #354249 !important; background: #f7f8f7 !important; border-color: #b1bcc0 !important; }
#app.editor .editor-ckeditor .ck.ck-button:hover,
#app.editor .editor-ckeditor .ck.ck-button.ck-on { color: #183d31 !important; background: #d8e9e1 !important; }
#app.editor .editor-ckeditor .ck-editor__editable_inline,
#app.editor .editor-ckeditor .ck-content { color: var(--ciki-text) !important; background-color: #f8f9f8 !important; border-color: #9ca9af !important; box-shadow: 8px 8px 0 #adb7bb !important; }
#app.editor .editor-ckeditor .ck-content,
#app.editor .editor-ckeditor .ck-content p,
#app.editor .editor-ckeditor .ck-content li,
#app.editor .editor-ckeditor .ck-content td,
#app.editor .editor-ckeditor .ck-content h1,
#app.editor .editor-ckeditor .ck-content h2,
#app.editor .editor-ckeditor .ck-content h3,
#app.editor .editor-ckeditor .ck-content h4,
#app.editor .editor-ckeditor .ck-content h5,
#app.editor .editor-ckeditor .ck-content h6 { color: #202a30 !important; }
#app.editor .editor-ckeditor .ck-content a { color: #276f71 !important; }
#app.editor .editor-ckeditor .ck-content blockquote { color: #39464c !important; background: #edf1f2 !important; border-left-color: #9f6d2d !important; }
#app.editor .editor-ckeditor .ck-placeholder::before { color: #718087 !important; }
#app.editor .editor-ckeditor .ck-content figure.table table { background: #fafbfa !important; }
#app.editor .editor-ckeditor .ck-content figure.table th { color: #314149 !important; background: #dce3e6 !important; }
#app.editor .editor-ckeditor .ck-content figure.table td { color: #263238 !important; background: #f8f9f8 !important; }
#app.editor .editor-ckeditor .ck-content figure.table th,
#app.editor .editor-ckeditor .ck-content figure.table td { border-color: #aeb9be !important; }

#app.editor .editor-modal-media .v-card,
#app.editor .editor-modal-media .v-sheet,
#app.editor .editor-modal-media .v-data-table,
#app.editor .editor-modal-media .v-data-table__wrapper,
#app.editor .editor-modal-media .v-data-footer,
#app.editor .editor-modal-media .v-input__slot { color: #263238 !important; background: #f4f6f6 !important; border-color: #a5b1b6 !important; }
#app.editor .editor-modal-media .v-input input,
#app.editor .editor-modal-media .v-input textarea,
#app.editor .editor-modal-media .v-select__selection,
#app.editor .editor-modal-media .v-label { color: #263238 !important; }

.ciki-mode-switch { background: #dce3e5 !important; border-color: #95a3a9 !important; }
.ciki-mode-switch__item { color: #435159 !important; background: #eef2f3 !important; border-right-color: #a5b1b6 !important; }
.ciki-mode-switch__item.is-active { color: #153b2e !important; background: #d6e8df !important; }

@media (max-width: 620px) {
  .ops-window { box-shadow: 4px 4px 0 var(--ciki-shadow) !important; }
  .case-dossier[class*="case-dossier--"] { box-shadow: 6px 6px 0 var(--ciki-shadow), inset 0 0 0 3px #f8f9f8 !important; }
  .update-tape article { border-bottom-color: #b2bdc1; }
}

/* Balanced graphite workspace: light navigation, low-glare content area. */
:root {
  --ciki-bg: #252a2c;
  --ciki-surface: #303638;
  --ciki-surface-2: #373f42;
  --ciki-line: #596469;
  --ciki-line-strong: #78858a;
  --ciki-text: #c7ced0;
  --ciki-muted: #8e999d;
  --ciki-green: #69ad8e;
  --ciki-amber: #c19758;
  --ciki-red: #c47783;
  --ciki-cyan: #72a7b6;
  --ciki-shadow: #191d1f;
  --ciki-shadow-strong: #121618;
}

html,
body,
.v-application,
.v-application .v-main,
.v-main__wrap {
  color: var(--ciki-text) !important;
  background-color: #252a2c !important;
}

.v-main__wrap {
  background-image:
    linear-gradient(rgba(202, 214, 218, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 214, 218, .02) 1px, transparent 1px) !important;
}

html body #app.v-application .nav-header.black,
html body #app.v-application .nav-header-inner.black,
.nav-header,
.nav-header-inner {
  color: #2c373c !important;
  background-color: #d3d8da !important;
  border-bottom-color: #929da2 !important;
  box-shadow: 0 5px 0 rgba(12, 17, 19, .26) !important;
}

.nav-header .v-input__slot,
.nav-header-inner .v-input__slot { background: #e4e7e8 !important; box-shadow: inset 0 0 0 2px #c8ced1 !important; }

html body #app.v-application nav.v-navigation-drawer.primary,
html body #app.v-application nav.v-navigation-drawer.primary .v-navigation-drawer__content,
.v-navigation-drawer.primary,
.v-navigation-drawer .primary,
.v-navigation-drawer .v-list.primary { background-color: #d9dee0 !important; }

.v-toolbar.grey.lighten-3:has(.breadcrumbs-nav) {
  background: #303638 !important;
  border-bottom-color: #505b60 !important;
}
.breadcrumbs-nav,
.breadcrumbs-nav a,
.breadcrumbs-nav .v-breadcrumbs__divider { color: #9ca7ab !important; }

.page-header-section { background: #303638 !important; border-bottom-color: #505b60 !important; }
.page-header-headings .headline,
.page-header-headings .headline.grey--text { color: #cbd2d4 !important; }
.page-header-headings .caption,
.page-header-headings .caption.grey--text { color: #8e999d !important; }

.v-main > .v-main__wrap > .container.grid-list-xl,
body:has(.ciki-scene-banner) .v-main > .v-main__wrap > .container.grid-list-xl {
  background-color: rgba(39, 44, 46, .96) !important;
  background-image:
    linear-gradient(rgba(202, 214, 218, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 214, 218, .02) 1px, transparent 1px) !important;
}

.contents,
.contents h1,
.contents h2,
.contents h3,
.contents h4,
.contents p,
.contents li { color: #c5ccce !important; }
.contents a { color: #7fb6b1 !important; }
.contents a:hover,
.contents a:focus-visible { color: #d0aa72 !important; }
.contents blockquote { color: #b9c1c3 !important; background: #343a3c !important; border-color: #5a6569 !important; border-left-color: #b48b50 !important; box-shadow: 4px 4px 0 #1b2022; }
.contents code,
.editorial-template pre,
.contents pre { color: #8cc4ab !important; background: #2b3230 !important; border-color: #56635e !important; }
.contents table { background: #303638; border-color: #596469; }
.contents th { color: #d0b17f; background: #3a4143; }
.contents td:nth-child(even) { background: #343a3c; }
.contents td,
.contents th { border-color: #596469; }

body:has(.case-dossier--performances) .v-main__wrap { background-color: #2e2c28 !important; }
body:has(.case-dossier--lore) .v-main__wrap { background-color: #273237 !important; }
body:has(.case-dossier--characters) .v-main__wrap { background-color: #322a2d !important; }
body:has(.case-dossier--guides) .v-main__wrap { background-color: #312f28 !important; }
body:has(.case-dossier--forum-app) .v-main__wrap { background-color: #28322e !important; }
body:has(.case-dossier--legal) .v-main__wrap { background-color: #2b3031 !important; }
body:has(.project-portal--prequel) .v-main__wrap { background-color: #302e29 !important; }
body:has(.project-portal--mirage) .v-main__wrap { background-color: #332a30 !important; }

.case-dossier[class*="case-dossier--"] {
  --case-board: #303638;
  --case-board-deep: #373e40;
  color: var(--ciki-text);
  background-color: var(--case-board) !important;
  box-shadow: 10px 10px 0 #171b1d, inset 0 0 0 4px #343a3c !important;
}
.case-dossier--performances { --case-board: #34312b; --case-board-deep: #3b3730; }
.case-dossier--lore { --case-board: #2d383c; --case-board-deep: #344146; }
.case-dossier--characters { --case-board: #382f33; --case-board-deep: #40363a; }
.case-dossier--guides { --case-board: #37352e; --case-board-deep: #403d34; }
.case-dossier--forum-app { --case-board: #2e3934; --case-board-deep: #35423c; }
.case-dossier--legal { --case-board: #313739; --case-board-deep: #394043; }
.case-dossier[class*="case-dossier--"]::after { color: #707b7f; }

.case-dossier[class*="case-dossier--"] .case-dossier__head,
.case-dossier__head,
.case-hero {
  color: #c7ced0;
  background-color: var(--case-board-deep, #373e40) !important;
  box-shadow: inset 0 0 0 5px var(--case-board, #303638), 8px 8px 0 #191d1f !important;
}
.case-dossier__head h1,
.case-hero h1,
.case-dossier[class*="case-dossier--"] .case-dossier__head h1 { color: #d2d7d9 !important; text-shadow: 2px 2px 0 #202628 !important; }
.case-dossier__head .case-lead,
.case-hero .case-lead { color: #a4afb3 !important; }
.case-dossier__head::after { color: #737f83; }
.case-section__head { border-bottom-color: #596469 !important; }
.case-section__head h2 { color: #cbd2d4 !important; }
.case-section__head span { color: #c5a46f; background: #343530; border-color: #5e5b4d; }

.case-fields { background: #252a2c !important; border-color: #596469 !important; box-shadow: 7px 7px 0 #181c1e !important; }
.case-dossier[class*="case-dossier--"] .case-field,
.case-field { color: #c7ced0; background: #363d3f !important; border-color: #515c60 !important; box-shadow: inset 4px 0 0 color-mix(in srgb, var(--case-accent, var(--ciki-green)) 32%, transparent); }
.case-field::before { background: #363d3f !important; border-color: #7a878c; box-shadow: inset 0 0 0 3px #363d3f !important; }
.case-field span { color: #909ca0 !important; }
.case-field strong { color: #cbd2d4 !important; }

.case-dossier[class*="case-dossier--"] .case-entry,
.case-entry,
.case-dossier[class*="case-dossier--"] .case-panel,
.case-panel,
.case-dossier[class*="case-dossier--"] .case-index a,
.case-index a,
.case-link { color: #c7ced0 !important; background: #343a3c !important; border-color: #566166 !important; box-shadow: 5px 5px 0 #1b2022 !important; }
.case-entry:hover,
.case-link:hover,
.case-link:focus-visible { background: #3a4346 !important; }
.case-entry h3,
.case-panel h3,
.case-link__body strong { color: #cdd3d5 !important; }
.case-entry p,
.case-panel p,
.case-link__body small { color: #a1acb0 !important; }
.case-entry__meta { color: #c6a46b; background: #3d392f; border-color: #655b45; }
.case-panel--warning { color: #c6bcaa !important; background: #3b382f !important; border-color: #675d49 !important; border-left-color: var(--ciki-amber) !important; }
.case-panel--signal { background: #303b3e !important; }
.comments-container { background: #303638 !important; border-color: #596469 !important; box-shadow: 6px 6px 0 #191d1f !important; }

/* Keep both left-side navigation surfaces light. */
.page-col-sd .v-card,
.page-col-sd .v-sheet,
.page-col-sd .v-list { color: #354249 !important; background: #dce1e3 !important; border-color: #9ca8ad !important; }
.page-col-sd .v-card__title,
.page-col-sd .v-card__text,
.page-col-sd .v-list-item,
.page-col-sd .v-list-item__title,
.page-col-sd .caption,
.page-col-sd strong { color: #405057 !important; }

.ops-home { color: #c7ced0; background-color: #2c3234 !important; border-color: #566166 !important; box-shadow: 10px 10px 0 #15191b, inset 0 0 0 4px #343a3c !important; }
.ops-masthead { color: #c7ced0; background: #373e40 !important; border-color: #596469 !important; box-shadow: 5px 5px 0 #1b2022 !important; }
.ops-masthead b { color: #cbd2d4; }
.ops-clock { background: #313739; border-left-color: #596469; }
.ops-clock strong { color: #c39a60; }
.work-key,
.hardware-key:not(.hardware-key--switch) { color: #9da8ac !important; background: #343b3d !important; border-color: #596469 !important; border-bottom-color: #1c2224 !important; box-shadow: inset 0 0 0 1px #424a4d !important; }
.work-key strong { color: #c9d0d2; }
.work-key small,
.work-key > span { color: #8e999d; }
.work-key::after { background: #3e4649; border-color: #6d797e; }
.work-key:hover,
.work-key:focus-visible,
.work-key.is-preview { color: #cbd2d4 !important; background: #3a4642 !important; }
.work-key.is-active { background: #385046 !important; border-color: #65947e !important; border-bottom-color: #263c33 !important; }

.ops-window { color: #c7ced0; background: #32383a !important; border-color: #596469 !important; box-shadow: 7px 7px 0 #191d1f !important; }
.ops-window--updates { background: #313a3e !important; }
.ops-window--version { background: #353a3c !important; }
.ops-window--library { background: #303a36 !important; }
.ops-window--common { background: #39362f !important; }
.ops-window--evidence { background: #38352f !important; }
.ops-window--community { background: #2f3935 !important; }
.ops-window__head { color: #c9d0d2; background: rgba(61, 69, 72, .88) !important; border-bottom-color: #596469 !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .11); }
.ops-window__head span::before { background: #343b3d; border-color: #8a979c; box-shadow: inset 0 0 0 3px #343b3d; }
.ops-window__head b { color: #c49c62; }
.ops-window__action { color: #7db49d !important; background: rgba(38, 44, 46, .74) !important; border-top-color: #566166 !important; }
.update-tape article { border-right-color: #515c60; }
.update-tape article:nth-child(even) { background: rgba(255, 255, 255, .025); }
.update-tape time { color: #c0985e; }
.update-tape strong { color: #cbd2d4; }
.update-tape p { color: #9ca7ab !important; }
.version-matrix > div { border-bottom-color: #515c60; }
.version-matrix dt { color: #929da1; }
.version-matrix dd { color: #c3cbcd; }
.version-note { color: #8e999d; background: #2b3032; }

.rack-heading,
.bench-label { color: #9ca7ab; background: #303638; border-color: #566166; }
.archive-slots { background: #292f31; border-color: #566166; box-shadow: 7px 7px 0 #191d1f; }
.archive-slot { color: #c4ccce !important; background: #353c3e !important; border-color: #515c60 !important; border-bottom-color: #1c2224 !important; box-shadow: inset -3px 0 0 #40484b !important; }
.archive-slot strong { color: #cbd2d4; }
.archive-slot small { color: #8f9a9e; }
.archive-slot:hover,
.archive-slot:focus-visible { color: #d1d6d8 !important; background: #3b4742 !important; }
.common-entry-grid { background: #505b60; }
.common-entry-grid a { color: #c7ced0 !important; background: #353a3b; }
.common-entry-grid a:nth-child(4n + 2),
.common-entry-grid a:nth-child(4n + 3) { background: #3a3b37; }
.common-entry-grid a:hover,
.common-entry-grid a:focus-visible { background: #414a45; }
.common-entry-grid small { color: #909b9f; }
.evidence-bench { background: #333735; border-color: #596469; box-shadow: 7px 7px 0 #191d1f; }
.evidence-copy h2 { color: #cbd2d4 !important; }
.evidence-copy p { color: #9da8ac !important; }
.hidden-log { color: #b8c0c2 !important; background: #303735 !important; border-color: #56615d !important; }
.home-topic-list > p { color: #8e999d !important; }
.home-topic-list > a { color: #c5ccce !important; border-bottom-color: #505b60 !important; }
.home-topic-list > a:nth-child(even) { background: rgba(255,255,255,.025); }
.home-topic-list > a:hover,
.home-topic-list > a:focus-visible { background: #3a4540; }
.home-topic-list strong { color: #cbd2d4; }
.home-topic-list small { color: #899599; }
.community-shortcuts { border-top-color: #566166; }
.community-shortcuts a { color: #a1acb0 !important; background: #32383a; border-right-color: #566166 !important; }

.project-portal { color: #c7ced0; background: #2e3436 !important; border-color: #596469 !important; box-shadow: 10px 10px 0 #171b1d, inset 0 0 0 4px #363d3f !important; }
.project-switcher a { color: #9da8ac !important; background: #343b3d; border-color: #596469 !important; border-bottom-color: #1c2224 !important; }
.project-switcher a:hover,
.project-switcher a:focus-visible { color: #cbd2d4 !important; }
.project-route-grid article { background: #343a3c; border-color: #566166; box-shadow: 5px 5px 0 #1b2022; }
.project-route-grid h2 { color: #cbd2d4 !important; border-bottom-color: #566166 !important; }
.project-route-grid p { color: #9ca7ab !important; }
.project-route-grid nav a { color: #b2bcbf !important; background: #2c3234; border-color: #505b60 !important; }
.project-route-note { background: #2c3234; border-color: #566166; }
.project-route-note code { color: #8bc2aa; background: #363d3b; }
.project-route-note span { color: #8e999d; }

#app.editor,
#app.editor .v-main,
#app.editor .v-main__wrap,
#app.editor .editor-ckeditor { color: #c7ced0 !important; background: #252a2c !important; }
#app.editor .editor-ckeditor .ck.ck-toolbar,
#app.editor .editor-ckeditor > div:first-child { color: #c7ced0 !important; background: #343b3d !important; border-color: #596469 !important; }
#app.editor .editor-ckeditor .ck.ck-button,
#app.editor .editor-ckeditor a.ck.ck-button { color: #b7c0c3 !important; background: #3a4143 !important; border-color: #566166 !important; }
#app.editor .editor-ckeditor .ck.ck-button:hover,
#app.editor .editor-ckeditor .ck.ck-button.ck-on { color: #cdd4d6 !important; background: #405047 !important; }
#app.editor .editor-ckeditor .ck-editor__editable_inline,
#app.editor .editor-ckeditor .ck-content { color: #c7ced0 !important; background-color: #303638 !important; border-color: #596469 !important; box-shadow: 8px 8px 0 #171b1d !important; }
#app.editor .editor-ckeditor .ck-content,
#app.editor .editor-ckeditor .ck-content p,
#app.editor .editor-ckeditor .ck-content li,
#app.editor .editor-ckeditor .ck-content td,
#app.editor .editor-ckeditor .ck-content h1,
#app.editor .editor-ckeditor .ck-content h2,
#app.editor .editor-ckeditor .ck-content h3,
#app.editor .editor-ckeditor .ck-content h4,
#app.editor .editor-ckeditor .ck-content h5,
#app.editor .editor-ckeditor .ck-content h6 { color: #c7ced0 !important; }
#app.editor .editor-ckeditor .ck-content blockquote { color: #b9c1c3 !important; background: #383e40 !important; }
#app.editor .editor-ckeditor .ck-content figure.table table { background: #303638 !important; }
#app.editor .editor-ckeditor .ck-content figure.table th { color: #d0b17f !important; background: #3d4446 !important; }
#app.editor .editor-ckeditor .ck-content figure.table td { color: #c7ced0 !important; background: #343a3c !important; }
.ciki-mode-switch { background: #3a4143 !important; border-color: #596469 !important; }
.ciki-mode-switch__item { color: #b6bfc2 !important; background: #32383a !important; border-right-color: #596469 !important; }
.ciki-mode-switch__item.is-active { color: #cbd2d4 !important; background: #405047 !important; }

@media (max-width: 620px) {
  .case-dossier[class*="case-dossier--"] { box-shadow: 6px 6px 0 #171b1d, inset 0 0 0 3px #343a3c !important; }
  .ops-window { box-shadow: 4px 4px 0 #191d1f !important; }
}

/* Mid-grey contrast and heavy archive frames. */
:root {
  --ciki-bg: #343a3d;
  --ciki-surface: #3e4548;
  --ciki-surface-2: #475053;
  --ciki-line: #252c2f;
  --ciki-line-strong: #68757a;
  --ciki-text: #cdd3d5;
  --ciki-muted: #9ca6aa;
  --ciki-shadow: #202628;
  --ciki-shadow-strong: #181d1f;
}

html,
body,
.v-application,
.v-application .v-main,
.v-main__wrap { background-color: #343a3d !important; }

html body #app.v-application .nav-header.black,
html body #app.v-application .nav-header-inner.black,
.nav-header,
.nav-header-inner {
  color: #283237 !important;
  background-color: #b9c0c3 !important;
  border-bottom: 2px solid #737f84 !important;
}

.nav-header .v-input__slot,
.nav-header-inner .v-input__slot {
  background: #cbd0d2 !important;
  border: 2px solid #899499;
  box-shadow: inset 0 0 0 2px #b7bec1 !important;
}

html body #app.v-application nav.v-navigation-drawer.primary,
html body #app.v-application nav.v-navigation-drawer.primary .v-navigation-drawer__content,
.v-navigation-drawer.primary,
.v-navigation-drawer .primary,
.v-navigation-drawer .v-list.primary {
  background-color: #aeb6b9 !important;
  border-right: 2px solid #707c81 !important;
}

.v-navigation-drawer .v-list-item,
.v-navigation-drawer .v-list-item__title,
.v-navigation-drawer .v-list-item__subtitle,
.v-navigation-drawer .v-icon,
.v-navigation-drawer .v-btn { color: #2e3a40 !important; }
.v-navigation-drawer .v-list-item--active,
.v-navigation-drawer .v-list-item:hover { background: #c3c9cb !important; }

.v-toolbar.grey.lighten-3:has(.breadcrumbs-nav),
.page-header-section { background: #41484b !important; border-bottom: 2px solid #242a2d !important; }

.v-main > .v-main__wrap > .container.grid-list-xl,
body:has(.ciki-scene-banner) .v-main > .v-main__wrap > .container.grid-list-xl {
  background-color: rgba(52, 58, 61, .97) !important;
}

body:has(.case-dossier--performances) .v-main__wrap { background-color: #3b3934 !important; }
body:has(.case-dossier--lore) .v-main__wrap { background-color: #344145 !important; }
body:has(.case-dossier--characters) .v-main__wrap { background-color: #40363a !important; }
body:has(.case-dossier--guides) .v-main__wrap { background-color: #3e3c35 !important; }
body:has(.case-dossier--forum-app) .v-main__wrap { background-color: #35413c !important; }
body:has(.case-dossier--legal) .v-main__wrap { background-color: #383e40 !important; }
body:has(.project-portal--prequel) .v-main__wrap { background-color: #3d3a34 !important; }
body:has(.project-portal--mirage) .v-main__wrap { background-color: #40363c !important; }

.page-col-sd .v-card,
.page-col-sd .v-sheet,
.page-col-sd .v-list {
  background: #b5bcbf !important;
  border: 2px solid #737f84 !important;
}
.page-col-sd .v-card__title,
.page-col-sd .v-card__text,
.page-col-sd .v-list-item,
.page-col-sd .v-list-item__title,
.page-col-sd .caption,
.page-col-sd strong { color: #344147 !important; }

.case-dossier[class*="case-dossier--"] {
  --case-board: #3d4447;
  --case-board-deep: #454d50;
  border-width: 3px !important;
  border-color: #242a2d !important;
  box-shadow: 9px 9px 0 #202628, inset 0 0 0 5px #495154 !important;
}
.case-dossier--performances { --case-board: #454138; --case-board-deep: #4d483e; }
.case-dossier--lore { --case-board: #3b484d; --case-board-deep: #435158; }
.case-dossier--characters { --case-board: #493e42; --case-board-deep: #52474b; }
.case-dossier--guides { --case-board: #47443b; --case-board-deep: #514d42; }
.case-dossier--forum-app { --case-board: #3b4842; --case-board-deep: #43524b; }
.case-dossier--legal { --case-board: #40484a; --case-board-deep: #485154; }

.case-dossier[class*="case-dossier--"] .case-dossier__head,
.case-dossier__head,
.case-hero {
  border-width: 3px !important;
  border-left-width: 8px !important;
  box-shadow: inset 0 0 0 5px var(--case-board, #3d4447), 7px 7px 0 #202628 !important;
}

.case-section__head { border-bottom-width: 3px !important; border-bottom-color: #252c2f !important; }
.case-section__head span { background: #343a3c; border: 2px solid #252c2f; }

.case-fields {
  gap: 6px;
  padding: 7px;
  background: #252c2f !important;
  border: 3px solid #202628 !important;
  box-shadow: 6px 6px 0 #202628 !important;
}

.case-dossier[class*="case-dossier--"] .case-field,
.case-field {
  background: #454c4f !important;
  border: 2px solid #252c2f !important;
}
.case-field::before { background: #454c4f !important; border-width: 2px; box-shadow: inset 0 0 0 3px #454c4f !important; }

.case-dossier[class*="case-dossier--"] .case-entry,
.case-entry,
.case-dossier[class*="case-dossier--"] .case-panel,
.case-panel,
.case-dossier[class*="case-dossier--"] .case-index a,
.case-index a,
.case-link {
  background: #41484b !important;
  border: 2px solid #252c2f !important;
  box-shadow: 5px 5px 0 #202628 !important;
}
.case-panel--warning { background: #48443a !important; border-left-width: 7px !important; }
.case-panel--signal { background: #3d494d !important; border-left-width: 7px !important; }
.comments-container { background: #3e4548 !important; border: 3px solid #252c2f !important; box-shadow: 6px 6px 0 #202628 !important; }

.ops-home {
  background-color: #3a4144 !important;
  border: 3px solid #202628 !important;
  box-shadow: 9px 9px 0 #202628, inset 0 0 0 5px #464e51 !important;
}
.ops-masthead { background: #454d50 !important; border: 2px solid #252c2f !important; box-shadow: 5px 5px 0 #202628 !important; }
.ops-clock { background: #3d4447; border-left: 3px solid #252c2f; }

.work-key,
.hardware-key:not(.hardware-key--switch) {
  background: #42494c !important;
  border: 2px solid #252c2f !important;
  border-bottom-width: 5px !important;
}
.work-key.is-active { background: #455c52 !important; }

.ops-window {
  background: #41484b !important;
  border: 3px solid #22282b !important;
  box-shadow: 7px 7px 0 #202628 !important;
}
.ops-window--updates { background: #404b4f !important; }
.ops-window--version { background: #454b4d !important; }
.ops-window--library { background: #3e4944 !important; }
.ops-window--common { background: #49463f !important; }
.ops-window--evidence { background: #48453f !important; }
.ops-window--community { background: #3d4944 !important; }
.ops-window__head {
  background: #343a3d !important;
  border-bottom: 3px solid #202628 !important;
  box-shadow: inset 0 -2px 0 #4c5558;
}
.ops-window__action { background: #353c3e !important; border-top: 3px solid #202628 !important; }

.rack-heading,
.bench-label { background: #343a3d; border: 2px solid #202628; }
.archive-slots { background: #252c2f; border: 3px solid #202628; box-shadow: 6px 6px 0 #202628; }
.archive-slot { background: #424a4d !important; border: 2px solid #242a2d !important; border-bottom-width: 5px !important; }
.common-entry-grid { gap: 2px; padding: 2px; background: #242a2d; }
.common-entry-grid a { background: #43494b; }
.common-entry-grid a:nth-child(4n + 2),
.common-entry-grid a:nth-child(4n + 3) { background: #484842; }
.evidence-bench { background: #424440; border: 3px solid #202628; box-shadow: 7px 7px 0 #202628; }
.hidden-log { background: #3c4541 !important; border: 2px solid #202628 !important; }
.home-topic-list > a { border-bottom: 2px solid #252c2f !important; }
.community-shortcuts { border-top: 3px solid #202628; }
.community-shortcuts a { background: #3d4447; border-right: 2px solid #202628 !important; }

.project-portal { background: #3a4144 !important; border: 3px solid #202628 !important; box-shadow: 9px 9px 0 #202628, inset 0 0 0 5px #464e51 !important; }
.project-switcher a { background: #42494c; border: 2px solid #252c2f !important; border-bottom-width: 5px !important; }
.project-route-grid article { background: #41484b; border: 2px solid #252c2f; box-shadow: 5px 5px 0 #202628; }
.project-route-grid nav a { background: #373e41; border: 2px solid #252c2f !important; }
.project-route-note { background: #373e41; border: 2px solid #252c2f; }

#app.editor,
#app.editor .v-main,
#app.editor .v-main__wrap,
#app.editor .editor-ckeditor { background: #343a3d !important; }
#app.editor .editor-ckeditor .ck.ck-toolbar,
#app.editor .editor-ckeditor > div:first-child { background: #42494c !important; border: 2px solid #252c2f !important; }
#app.editor .editor-ckeditor .ck-editor__editable_inline,
#app.editor .editor-ckeditor .ck-content { background-color: #41484b !important; border: 3px solid #252c2f !important; box-shadow: 7px 7px 0 #202628 !important; }

@media (max-width: 620px) {
  .case-dossier[class*="case-dossier--"],
  .ops-home,
  .project-portal { box-shadow: 6px 6px 0 #202628, inset 0 0 0 4px #464e51 !important; }
  .ops-window { box-shadow: 4px 4px 0 #202628 !important; }
}

/* Desktop reading width: compact navigation and metadata rails. */
@media (min-width: 1264px) {
  html body #app.v-application:not(.editor) nav.v-navigation-drawer {
    width: 176px !important;
  }

  html body #app.v-application:not(.admin):not(.editor) nav.v-navigation-drawer {
    width: 176px !important;
  }

  html body #app.v-application:not(.editor) .v-main {
    padding-left: 176px !important;
  }

  html body #app.v-application:not(.admin):not(.editor) .v-main {
    padding-left: 176px !important;
  }

  .v-main > .v-main__wrap > .container.grid-list-xl {
    padding-right: 18px !important;
    padding-left: 12px !important;
  }

  body.ciki-admin-mode .page-col-sd {
    flex: 0 0 148px !important;
    width: 148px !important;
    max-width: 148px !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  body.ciki-admin-mode .page-col-content {
    max-width: calc(100% - 148px) !important;
    padding-left: 5px !important;
  }

  body.ciki-admin-mode .page-col-content > div,
  body.ciki-admin-mode .page-col-content .contents,
  body.ciki-admin-mode .page-col-content .case-dossier,
  body.ciki-admin-mode .page-col-content .ops-home,
  body.ciki-admin-mode .page-col-content .project-portal,
  .page-col-content .contents,
  .page-col-content .case-dossier,
  .page-col-content .ops-home,
  .page-col-content .project-portal {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.ciki-admin-mode .page-col-sd .v-card {
    margin-bottom: 10px !important;
  }

  body.ciki-admin-mode .page-col-sd .v-card__title,
  body.ciki-admin-mode .page-col-sd .v-card__text {
    padding: 8px 9px !important;
  }

  body.ciki-admin-mode .page-col-sd .v-list-item {
    min-height: 30px !important;
    padding: 0 7px !important;
  }

  body.ciki-admin-mode .page-col-sd .v-list-item__title,
  body.ciki-admin-mode .page-col-sd .caption {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  body.ciki-admin-mode .page-col-sd .v-btn {
    min-width: 32px !important;
    min-height: 34px !important;
    padding: 0 7px !important;
  }
}

.ciki-route-redirect {
  max-width: 760px;
  margin: 48px auto;
  padding: 30px 34px;
  border: 2px solid rgba(179, 190, 197, 0.46);
  background: rgba(27, 31, 34, 0.92);
  box-shadow: 10px 10px 0 rgba(5, 7, 8, 0.32);
}

.ciki-route-redirect__label {
  margin: 0 0 12px;
  color: #aebbc1;
  font-family: "Ciki Pixel Console", monospace;
  letter-spacing: 0;
}

/* Work identity portraits use the supplied 8px pixel art at integer scales. */
.ciki-work-icon {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

nav.v-navigation-drawer.primary .v-list-item[href="/zh/home"] { --work-portrait: url("/_assets/art/ciki/ema_cmagic.png"); }
nav.v-navigation-drawer.primary .v-list-item[href="/zh/prequel"] { --work-portrait: url("/_assets/art/ciki/feima_proquel.png"); }
nav.v-navigation-drawer.primary .v-list-item[href="/zh/mirage"] { --work-portrait: url("/_assets/art/ciki/anan_illusion.png"); }
nav.v-navigation-drawer.primary .v-list-item:is([href="/zh/home"], [href="/zh/prequel"], [href="/zh/mirage"]) .v-list-item__avatar {
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  background: #454e51 var(--work-portrait) center / 24px 24px no-repeat;
  border: 2px solid #79898b;
  box-shadow: 2px 2px 0 #657174;
  image-rendering: pixelated;
  transform: none !important;
  animation: none !important;
}
nav.v-navigation-drawer.primary .v-list-item:is([href="/zh/home"], [href="/zh/prequel"], [href="/zh/mirage"]) .v-list-item__avatar > .v-icon {
  visibility: hidden !important;
}

.work-key.has-ciki-work-icon {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px;
}

.work-key.has-ciki-work-icon .ciki-work-icon--selector {
  grid-row: 1 / 4;
  align-self: center;
  width: 32px;
  height: 32px;
  border: 2px solid #22282b;
  box-shadow: 3px 3px 0 rgba(14, 17, 18, .62);
}

.work-key.has-ciki-work-icon > span {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  writing-mode: horizontal-tb;
}

.work-key.has-ciki-work-icon > strong { grid-column: 2; grid-row: 2; }
.work-key.has-ciki-work-icon > small { grid-column: 2; grid-row: 3; }

.project-switcher a.has-ciki-work-icon .ciki-work-icon--project {
  width: 24px;
  height: 24px;
  border: 2px solid #22282b;
}

/* Readability floor for content metadata and supporting copy. */
.contents small,
.contents figcaption,
.editorial-workflow p,
.editorial-template summary,
.update-tape p,
.version-matrix dt,
.version-matrix dd,
.version-note,
.ops-window--evidence .evidence-copy p,
.home-topic-list > p,
.home-topic-list strong,
.home-topic-list small,
.project-hero__readout p,
.project-route-grid p,
.project-route-grid nav a,
.project-route-note,
body.ciki-admin-mode .page-col-sd .v-list-item__title,
body.ciki-admin-mode .page-col-sd .caption {
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.work-key > span,
.work-key small,
.monitor-caption > a,
.ops-window__head,
.ops-window__head b,
.ops-window__action,
.update-tape time,
.common-entry-grid a > span,
.common-entry-grid small,
.home-topic-list > a > span:first-child,
.community-shortcuts a,
.project-switcher a span,
.project-hero__readout small,
.project-route-grid article > span {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.breadcrumbs-nav,
.ciki-scene-banner__meta,
.ciki-scene-banner__meta span,
.ciki-scene-banner__meta b,
.page-col-sd .overline,
.case-code,
.case-field span,
.editorial-console__status,
.editorial-console small,
.editorial-console a,
.archive-slot small,
.evidence-copy > span,
.hidden-log__bar,
.ops-protocol span,
.ops-protocol p {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.ops-clock span,
.rig-rail,
.rig-rail span,
.rig-rail b,
.hardware-key,
.monitor-readout,
.monitor-readout span,
.monitor-readout b,
.monitor-caption__key,
.rack-heading,
.rack-heading span,
.rack-heading b,
.bench-label,
.bench-label span,
.bench-label b,
.cassette-label,
.archive-slot i {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

html body #app.v-application .page-col-sd .overline,
html body #app.v-application .page-col-sd .overline span {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

html body #app.v-application .hardware-key > span {
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.ops-window--evidence .evidence-copy--synopsis p {
  margin: 0 0 14px !important;
  color: #c6cfca !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

.evidence-copy--synopsis .synopsis-pause {
  margin: -4px 0 8px !important;
  color: var(--case-accent, var(--ciki-green)) !important;
  font-family: var(--ciki-font-machine) !important;
}

.project-synopsis { margin-top: 14px; }
.project-synopsis .bench-layout { grid-template-columns: minmax(174px, .55fr) minmax(0, 1.45fr); }
.ops-overview-grid > .work-synopsis,
.ops-overview-grid > .work-synopsis + .ops-window--community { grid-column: span 12; }
.work-synopsis .bench-layout { grid-template-columns: minmax(190px, .35fr) minmax(0, 1.65fr); }
.work-synopsis .evidence-cassette { align-self: start; min-height: 220px; }

@media (max-width: 620px) {
  .ops-window--evidence .evidence-copy--synopsis p { font-size: 13px !important; }
  .work-synopsis .bench-layout,
  .project-synopsis .bench-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .work-key.has-ciki-work-icon {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 5px;
    min-height: 64px;
    padding: 8px 5px !important;
    text-align: left;
  }

  .work-key.has-ciki-work-icon .ciki-work-icon--selector {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    box-shadow: 2px 2px 0 rgba(14, 17, 18, .62);
  }

  .work-key.has-ciki-work-icon > span {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 4px;
    font-size: 10px !important;
  }

  .work-key.has-ciki-work-icon > strong {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 12px;
  }

  .work-key.has-ciki-work-icon > small { display: none; }
}
