/* Imperial chart room: static instrument surfaces over the existing map. */
:root {
  --void: #080a08;
  --void-2: #10120f;
  --amber: #c2aa78;
  --amber-soft: #a99570;
  --rust: #82683e;
  --bone: #e6dcc5;
  --muted: #b0ac9e;
  --cold: #a9c4cb;
  --panel: #11130f;
  --line: #494334;
  --display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --prose: "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Liberation Mono", monospace;
  --instrument: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
}
.topbar,
.panel,
.era-switch,
.layer-controls,
.map-navigation,
.debug {
  border-radius: 0;
  backdrop-filter: none;
  box-shadow:
    0 8px 24px #0005,
    inset 0 0 0 3px #080a0899;
}
.topbar {
  z-index: 40;
  height: 76px;
  min-height: 76px;
  padding: 0 24px;
  background: linear-gradient(180deg, #1b1c17, #10120f 72%);
  border-bottom: 1px solid #75613d;
  box-shadow:
    0 3px #090b08,
    0 4px #373225;
}
.brand {
  gap: 13px;
  color: var(--bone);
  flex: 1 1 auto;
}
.brand-mark {
  width: 62px;
  height: 62px;
  opacity: 1;
  filter: none;
}
.brand-inscription {
  min-width: 0;
}
.brand-kicker {
  margin: 0 0 5px;
  color: #b5a17a;
  font: 10px/1.15 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.17em;
}
.brand h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 29px);
  line-height: 1.05;
  letter-spacing: 0.065em;
  text-shadow: 0 2px #000;
}
.archive-utilities {
  position: relative;
  flex: 0 0 auto;
}
.archive-utilities > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  color: #c3b38e;
  cursor: pointer;
  list-style: none;
  border-left: 1px solid #484030;
  font: 12px var(--instrument);
  letter-spacing: 0.04em;
}
.archive-utilities > summary::-webkit-details-marker {
  display: none;
}
.archive-utilities[open] > summary {
  color: #eee0c2;
  background: #b79d6910;
}
.archive-utilities .banner-actions {
  position: absolute;
  inset: auto;
  z-index: 45;
  top: calc(100% + 13px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 264px;
  padding: 10px;
  gap: 0;
  pointer-events: auto;
  background: #171911;
  border: 1px solid #786440;
  box-shadow:
    0 12px 30px #0008,
    inset 0 0 0 3px #080a08;
}
.archive-utilities .banner-actions > .kofi-link {
  flex: none;
  width: 100%;
  justify-items: start;
  align-self: stretch;
  min-height: 48px;
  margin: 0;
  padding: 14px 12px;
  font: 13px/20px var(--instrument);
  letter-spacing: 0.025em;
  color: var(--bone);
  text-align: left;
  border: 0;
}
.archive-utilities .banner-actions > .contact-link {
  border-top: 1px solid #494334;
}
.archive-utilities .contact-link .contact-email {
  font: 12px var(--mono);
}
.controls {
  top: 94px;
  left: 312px;
  right: 24px;
  gap: 18px;
}
.era-switch,
.layer-controls,
.map-navigation {
  border: 1px solid #635338;
  background: linear-gradient(180deg, #22231b, #11140f);
  height: 38px;
}
.era-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #a49d8d;
  border-radius: 0;
  min-height: 36px;
}
.era-century {
  font: 18px/1 var(--display);
  letter-spacing: 0;
}
.era-caption {
  font: 10px/1.2 var(--instrument);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.era-option.active {
  color: #e5d8b6;
  background: #aa8e4929;
  box-shadow:
    inset 0 -3px #b79d69,
    inset 0 1px #b79d6950;
  border-radius: 0;
}
.era-option[data-era="m42"].active {
  color: #f2d0b4;
  background: #6d322c77;
  box-shadow:
    inset 0 -3px #b77761,
    inset 0 1px #b777613d;
}
.layer-controls > button {
  position: relative;
  padding: 0 11px;
  gap: 7px;
  font: 11px var(--instrument);
  letter-spacing: 0.025em;
  border-radius: 0;
}
.layer-controls > button + button {
  border-left: 1px solid #494334;
}
.layer-controls .control-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.layer-controls .toggle::after {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border: 1px solid #6b604a;
  background: #15180f;
}
.layer-controls .toggle[aria-pressed="true"]::after {
  background: #c1a366;
  border-color: #d2b782;
}
.toggle[aria-pressed="true"] {
  color: #e3d6b6;
  background: #b79d6912;
  box-shadow: none;
}
.toggle:not([aria-pressed="true"]) {
  color: #a8a393;
  background: #080a0833;
}
.toggle[aria-pressed="true"] .control-icon {
  color: #b79d69;
}
.icon-button,
.toggle,
.field,
.range-field {
  border-radius: 0;
}
.icon-button:hover,
.toggle:hover {
  color: #fff1d1;
  background: #c2aa781c;
  border-color: #b79d69;
}
#resetCamera {
  color: #c6b990;
  font: 11px var(--instrument);
}
.map-navigation {
  height: 40px;
  border-radius: 0;
  box-shadow:
    inset 0 0 0 3px #080a08,
    0 8px 20px #0007;
}
.map-navigation button {
  width: 48px;
  color: #d2bd90;
}
.map-navigation button + button {
  border-color: #494334;
}
.panel {
  border: 1px solid #695839;
  background: #11130f;
  box-shadow:
    0 14px 32px #0007,
    inset 0 0 0 3px #080a08;
  transition-duration: 180ms;
}
.panel-head {
  background: linear-gradient(180deg, #272820, #1a1c15);
  border-bottom: 1px solid #716040;
  color: #d7c59e;
  padding-left: 16px;
  font: 13px var(--display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.panel-numeral {
  color: #aa915f;
  font: 18px var(--display);
  padding-right: 10px;
  border-right: 1px solid #655636;
}
.collapse {
  color: #cbbd9c;
  border: 1px solid #655636;
  width: 27px;
  height: 27px;
  font-size: 18px;
}
.panel.collapsed .panel-head {
  border-radius: 0;
  background: #1b1e15;
  border-color: #77613e;
}
.panel.collapsed.left-panel {
  transform: translateX(calc(-100% + 68px));
}
.panel.collapsed.right-panel {
  transform: translateX(calc(100% - 68px));
}
.left-panel.collapsed .panel-head {
  justify-content: flex-end;
  gap: 6px;
}
.right-panel.collapsed .panel-head {
  justify-content: flex-start;
  gap: 6px;
  padding-left: 8px;
}
.left-panel.collapsed .panel-head::before {
  content: "INDEX";
  font: 10px var(--instrument);
  letter-spacing: 0.05em;
}
.right-panel.collapsed .panel-head::after {
  content: "RECORD";
  font: 10px var(--instrument);
  letter-spacing: 0.03em;
}
.left-panel {
  top: 94px;
  left: 24px;
  width: 264px;
  max-height: min(72vh, 730px);
}
.left-panel .panel-body {
  padding: 14px 12px 10px;
}
.left-panel .row-list {
  max-height: min(40vh, 390px);
}
.index-tools {
  gap: 10px;
  margin-bottom: 10px;
}
.index-filter {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.index-filter > span {
  color: #b5a47f;
  font: 10px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.index-tools .field {
  height: 36px;
  min-width: 0;
  border: 1px solid #494738;
  border-bottom-color: #706344;
  background-color: #080b07;
  color: #e3dbc8;
  font-family: var(--instrument);
  font-size: 12px;
  letter-spacing: 0.025em;
}
.index-tools .field:focus {
  outline: 2px solid #bca471;
  outline-offset: 2px;
  box-shadow: none;
}
#searchInput {
  height: 40px;
  font-family: var(--prose);
  font-size: 13px;
  background-color: #070a06;
}
#searchInput::placeholder {
  color: #b6b1a1;
}
select.field option {
  background: #171a12;
  color: #e3dbc8;
}
.index-note {
  color: #aca48e;
  border-color: #484332;
  font: 10px/1.4 var(--mono);
  padding-top: 9px;
}
.result-count {
  margin: 3px 0 9px;
  padding: 8px 0 7px;
  border-top: 1px solid #665637;
  border-bottom: 1px solid #393b2d;
  color: #c2af84;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
}
.row-list {
  gap: 0;
  scrollbar-color: #78684a #11130f;
}
.archive-row {
  min-height: 55px;
  padding: 8px 9px;
  gap: 10px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #35392b;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: none;
}
.archive-row:nth-child(even) {
  background: #c5b58504;
}
.archive-row:hover {
  border-color: #b79d6940;
  border-left-color: #a48b54;
  background: #b79d6914;
}
.archive-row.active {
  border-left-color: #cdb47a;
  background: #b79d6925;
  box-shadow: inset 0 -1px #88704080;
}
.archive-row .row-name {
  color: #e2d5b7;
  font: 14px/1.35 var(--display);
  letter-spacing: 0.025em;
  text-transform: none;
}
.archive-row .row-meta {
  color: #b1b19f;
  font: 11px/1.35 var(--prose);
  letter-spacing: 0;
  margin-top: 3px;
}
.archive-row:hover .row-name,
.archive-row.active .row-name {
  color: #fff0cc;
}
.archive-row canvas {
  opacity: 0.8;
  filter: sepia(0.65) saturate(0.65);
}
.bottombar {
  color: #aaa897;
}
.footer-guides {
  color: #c2ad7c;
  font-family: var(--instrument);
}
.coord-readout {
  color: #c1af89;
  border-color: #6d5d3c;
  font: 11px var(--mono);
  letter-spacing: 0.03em;
}
.debug {
  color: #dfd2b0;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid #dcc28a;
  outline-offset: 3px;
}
::-webkit-scrollbar-thumb {
  background: #75664b;
  border-radius: 0;
}

@media (max-width: 1220px) and (min-width: 701px) {
  .brand h1 {
    font-size: 23px;
  }
  .brand-kicker {
    font-size: 9px;
    letter-spacing: 0.13em;
  }
  .left-panel {
    left: 20px;
    width: 250px;
  }
  .controls {
    left: 290px;
    right: 20px;
    gap: 10px;
  }
  .era-option {
    padding: 0 9px;
    gap: 5px;
  }
  .era-century {
    font-size: 16px;
  }
  .era-caption {
    font-size: 9px;
  }
  .layer-controls > button {
    padding: 0 9px;
    font-size: 10px;
    gap: 5px;
  }
}
@media (max-width: 980px) and (min-width: 701px) {
  .topbar {
    height: 76px;
    min-height: 76px;
    flex-wrap: nowrap;
    padding: 0 20px;
    gap: 12px;
  }
  .brand {
    width: auto;
    flex-basis: auto;
  }
  .brand h1 {
    font-size: 22px;
  }
  .controls {
    top: 94px;
    left: 20px;
    right: 20px;
  }
  .left-panel,
  .right-panel {
    top: 152px;
  }
  .archive-utilities > summary {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: calc(82px + env(safe-area-inset-top, 0px));
    min-height: 82px;
    flex-wrap: nowrap;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    gap: 7px;
  }
  .brand {
    width: auto;
    flex-basis: auto;
    gap: 8px;
  }
  .brand-mark {
    width: 43px;
    height: 54px;
  }
  .brand-kicker {
    font-size: 7px;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
  }
  .brand h1 {
    font-size: clamp(13px, 3.65vw, 21px);
    letter-spacing: 0.045em;
    line-height: 1.15;
  }
  .archive-utilities > summary {
    width: 34px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
    border-left: 1px solid #484030;
    gap: 0;
  }
  .archive-utilities > summary::before {
    content: "≡";
    font: 24px var(--display);
  }
  .archive-utilities > summary > span {
    display: none;
  }
  .archive-utilities .banner-actions {
    top: calc(100% + 12px);
    right: 0;
    width: min(264px, calc(100vw - 24px));
  }
  .controls {
    top: calc(94px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    gap: 7px;
  }
  .era-switch,
  .layer-controls {
    height: 38px;
  }
  .era-option {
    min-height: 36px;
    padding: 0 13px;
    gap: 7px;
  }
  .era-century {
    font-size: 17px;
  }
  .era-caption {
    font-size: 10px;
  }
  .layer-controls > button {
    padding: 0 9px;
    font-size: 10px;
    gap: 6px;
  }
  .panel,
  .left-panel,
  .right-panel,
  .right-panel:not(.collapsed) {
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    height: min(55dvh, 490px);
    border-radius: 0;
  }
  .left-panel {
    max-height: none;
  }
  .panel::before {
    background: #9c8659;
    border-radius: 0;
  }
  .panel-head {
    font-size: 13px;
  }
  .panel.collapsed.left-panel {
    transform: translateY(calc(100% - 48px));
  }
  .panel.collapsed.right-panel {
    transform: translateY(calc(100% + 40px + env(safe-area-inset-bottom, 0px)));
  }
  .left-panel.collapsed .panel-head::before,
  .right-panel.collapsed .panel-head::after {
    content: none;
  }
  .left-panel.collapsed .panel-head,
  .right-panel.collapsed .panel-head {
    justify-content: space-between;
  }
  .panel.collapsed .panel-head .panel-title {
    display: inline-flex;
  }
  .panel.collapsed .panel-head .panel-numeral {
    display: inline;
  }
  .left-panel .panel-body {
    padding: 12px 14px;
  }
  .index-tools {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .index-filter {
    gap: 4px;
  }
  .index-filter > span {
    font-size: 9px;
  }
  .index-tools .field {
    height: 36px;
  }
  .result-count {
    margin: 0 0 4px;
    padding: 5px 0;
  }
  .left-panel .row-list {
    max-height: none;
  }
  .archive-row {
    min-height: 50px;
    padding: 7px 9px;
  }
  .index-note {
    font-size: 9px;
    padding-top: 6px;
  }
  .map-navigation {
    height: 38px;
  }
  .map-navigation button {
    width: 44px;
  }
  .bottombar {
    background: #10130e;
    border-color: #685535;
  }
}
@media (max-height: 570px) and (min-width: 701px) {
  .panel,
  .left-panel,
  .right-panel {
    top: 152px;
  }
  .left-panel .row-list {
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel,
  .archive-utilities,
  .archive-row {
    transition: none;
  }
}

@media (max-width: 700px) and (max-height: 650px) {
  .panel,
  .left-panel,
  .right-panel,
  .right-panel:not(.collapsed) {
    height: 45dvh;
  }
}

/* Imperial archive dossier. Geometry, collapse and sticky-header behavior are
   inherited from observatory.css; this sheet only changes the record surface. */
.right-panel {
  --record-paper: #ded2b5;
  --record-ink: #29251e;
  --record-muted: #5c5141;
  --record-rule: #a89b7f;
  --record-brass: #a9915e;
  --record-housing: #10120f;
  --record-crimson: #843a35;
  background: var(--record-housing);
  border-color: #62543b;
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px #1c1e18;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.right-panel .panel-head {
  padding-inline: 16px 8px;
  color: #c3b591;
  background: #1c1e18;
  border-bottom: 1px solid #62543b;
  font:
    11px Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.14em;
}

.right-panel.collapsed .panel-head {
  background: #1c1e18;
  border-color: #62543b;
  border-radius: 2px;
}

.right-panel .collapse {
  color: #ded2b5;
  border-color: #62543b;
  border-radius: 1px;
  background: #10120f;
}

.right-panel .panel-body {
  background: var(--record-housing);
}

.right-panel .dossier {
  padding: 0 16px 18px;
  background: var(--record-housing);
  color: var(--record-paper);
  scrollbar-color: #807153 #171913;
}

.right-panel .dossier > *,
.right-panel .tab-content > * {
  animation: none !important;
}

.right-panel .doc-bar {
  padding: 14px 0 10px;
  color: #b9ab8a;
  font:
    10px/1.6 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.035em;
  white-space: normal;
}

.right-panel .doc-banner {
  margin: 0 0 17px;
  max-width: 100%;
  background: #050705;
  border: 1px solid #62543b;
  border-radius: 0;
  box-shadow: none;
}

.right-panel .doc-banner::after {
  background: linear-gradient(180deg, transparent 75%, rgba(16, 18, 15, 0.8));
}

.right-panel .portrait-caption {
  color: #c3b591;
  font:
    10px/1.3 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0;
  opacity: 1;
}

.right-panel .doc-identity {
  gap: 10px;
  padding-bottom: 17px;
}

.right-panel .dossier .doc-identity h2 {
  flex-basis: 100%;
  color: #e5d9bb;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.12;
  text-shadow: none;
}

.right-panel .badge {
  padding: 4px 7px;
  color: var(--record-ink);
  background: #cbbfa3;
  border: 1px solid #b6a16f;
  border-radius: 0;
  font:
    700 10px/1.35 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.1em;
  box-shadow:
    inset 0 0 0 2px #cbbfa3,
    inset 0 0 0 3px #8f7a50;
}

.right-panel .classification {
  padding: 12px 0;
  margin-bottom: 17px;
  gap: 13px;
  border-block: 1px solid #62543b;
}

.right-panel .classification .kv + .kv {
  padding-left: 13px;
  border-color: #62543b;
}

.right-panel .classification .kv span {
  color: #b9ab8a;
  font:
    10px/1.5 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.08em;
}

.right-panel .classification .kv strong {
  color: #ded2b5;
  font:
    14px/1.45 "Segoe UI",
    Arial,
    sans-serif;
}

.right-panel .doc-mini {
  margin-inline: 0;
  background: #10120f;
  border-color: #62543b;
  transition: none;
}

.right-panel .doc-mini strong {
  color: #ded2b5;
  font:
    16px Georgia,
    "Palatino Linotype",
    serif;
  letter-spacing: 0.04em;
}

.right-panel .tabs {
  margin-bottom: 0;
  border-bottom: 0;
  background: #10120f;
}

.right-panel .tab {
  color: #bbae8d;
  border: 0;
  border-top: 2px solid transparent;
  background: #1c1e18;
  font:
    11px Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.025em;
}

.right-panel .tab + .tab {
  border-left: 1px solid #62543b;
}

.right-panel .tab:hover {
  color: #f0e7d1;
  background: #2b2d23;
}

.right-panel .tab.active {
  color: #29251e;
  background: #ded2b5;
  border-top-color: #a9915e;
}

.right-panel .tab-content,
.right-panel .dossier-meta,
.right-panel .chips,
.right-panel .doc-ref,
.right-panel .dossier-actions {
  margin: 0;
  padding-inline: 16px;
  color: var(--record-ink);
  background: var(--record-paper);
  border-radius: 0;
}

.right-panel .tab-content {
  padding-block: 19px 16px;
}

.right-panel .copy,
.right-panel .section-copy p,
.right-panel .tl-event p {
  color: #29251e;
  font:
    15px/1.72 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

.right-panel .section-block,
.right-panel .section-block[open] {
  background: transparent;
  border-color: #a89b7f;
}

.right-panel .section-title {
  padding: 14px 0;
  color: #403626;
  font:
    17px/1.35 Georgia,
    "Palatino Linotype",
    serif;
  letter-spacing: 0;
  text-transform: none;
}

.right-panel .section-title::marker {
  color: #76603a;
}

.right-panel .era-note {
  color: #843a35;
  font:
    700 11px Consolas,
    "Liberation Mono",
    monospace;
}

.right-panel .lore-link,
.right-panel .dossier-page-link {
  color: #71352f;
  text-decoration-color: #843a35;
  text-decoration-style: solid;
  text-underline-offset: 3px;
}

.right-panel .lore-link:hover,
.right-panel .dossier-page-link:hover {
  color: #40251f;
  text-decoration-thickness: 2px;
  text-shadow: none;
}

.right-panel .dossier-meta {
  padding-bottom: 12px;
  border: 0;
}

.right-panel .dossier-meta .kv {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding-block: 10px;
  border-color: #a89b7f;
}

.right-panel .dossier-meta .kv:first-child {
  border-top: 1px solid #a89b7f;
}

.right-panel .dossier-meta .kv span {
  color: #5c5141;
  font:
    10px/1.5 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.04em;
}

.right-panel .dossier-meta .kv strong {
  color: #29251e;
  font:
    13px/1.55 "Segoe UI",
    Arial,
    sans-serif;
}

.right-panel .chips {
  gap: 6px 12px;
  padding-bottom: 18px;
}

.right-panel .chip {
  padding: 0 0 2px;
  color: #5c5141;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a89b7f;
  border-radius: 0;
  font:
    11px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}

.right-panel .doc-ref {
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 18px;
  border-top: 1px solid #a89b7f;
  color: #5c5141;
  font:
    10px/1.65 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.right-panel .doc-ref > span:first-child,
.right-panel .dossier-page-link {
  flex-basis: 100%;
}

.right-panel .doc-stamp {
  position: static;
  padding: 5px 7px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: #65502e;
  background: transparent;
  font:
    700 10px/1.3 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.06em;
  transform: none;
  box-shadow: none;
}

.right-panel .stamp-crimson {
  color: #843a35;
}

.right-panel .stamp-cold {
  color: #3b5660;
}

.right-panel .dossier-actions {
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 3px solid #a9915e;
}

.right-panel .dossier-action {
  padding: 8px;
  min-height: 40px;
  color: #403626;
  background: transparent;
  border: 1px solid #8e7e60;
  border-radius: 0;
  font:
    10px/1.45 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.025em;
}

.right-panel .dossier-action:hover {
  color: #29251e;
  background: #cfc1a1;
  border-color: #65502e;
}

.right-panel .share-status {
  color: #5c5141;
  font:
    12px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}

.right-panel .timeline2::before {
  background: #a89b7f;
}

.right-panel .tl-event {
  margin-bottom: 24px;
}

.right-panel .tl-event strong {
  color: #65502e;
  font:
    700 12px/1.5 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0;
}

.right-panel .tl-node {
  background: #ded2b5;
  border-color: #76603a;
}

.right-panel .tl-nihilus strong,
.right-panel .tl-nihilus .tl-node {
  color: #3b5660;
  border-color: #3b5660;
}

.right-panel .rift-break {
  padding: 9px 8px 9px 18px;
  color: #843a35;
  border-color: #a77b68;
  background: #d3c2a5;
  font:
    700 10px/1.5 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.03em;
}

.right-panel #relationChart {
  background: #10120f;
  border-color: #8e7e60;
  border-radius: 0;
}

.right-panel .relation {
  min-height: 42px;
  padding: 11px 0;
  margin-bottom: 0;
  color: #71352f;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a89b7f;
  border-radius: 0;
  font:
    15px/1.4 Georgia,
    "Palatino Linotype",
    serif;
}

.right-panel .relation:hover {
  color: #29251e;
  background: #cfc1a1;
  border-color: #76603a;
}

.right-panel .tab-content :focus-visible,
.right-panel .dossier-action:focus-visible,
.right-panel .dossier-page-link:focus-visible {
  outline: 2px solid #65502e;
  outline-offset: 3px;
}

.right-panel .tab:focus-visible,
.right-panel .collapse:focus-visible {
  outline: 2px solid #ded2b5;
  outline-offset: -4px;
}

.right-panel .dossier-empty {
  padding: 24px;
  color: #ded2b5;
  background: #10120f;
  font:
    16px/1.65 Georgia,
    "Palatino Linotype",
    serif;
}

.right-panel .empty-sub {
  color: #b9ab8a;
  font:
    10px/1.65 Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0.06em;
}

.right-panel .empty-glyph {
  color: #a9915e;
  text-shadow: none;
}

@media (max-width: 700px) {
  .right-panel .dossier {
    padding: 0 12px 16px;
  }

  .right-panel .doc-banner {
    float: right;
    width: 88px;
    max-width: 88px;
    margin: 2px 0 10px 12px;
  }

  .right-panel .portrait-caption {
    font-size: 8px;
    right: 3px;
    bottom: 3px;
  }

  .right-panel .doc-bar {
    padding-top: 11px;
    padding-bottom: 9px;
  }

  .right-panel .doc-identity {
    min-height: 76px;
    padding-bottom: 12px;
  }

  .right-panel .dossier .doc-identity h2 {
    font-size: clamp(22px, 6.3vw, 27px);
  }

  .right-panel .classification {
    clear: both;
    padding-block: 10px;
    margin-bottom: 13px;
  }

  .right-panel .tab-content {
    padding-top: 17px;
  }
}

@media (max-height: 570px) and (min-width: 701px) {
  .right-panel .doc-banner {
    max-width: 230px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) and (max-height: 650px) {
  .right-panel .doc-banner {
    max-width: 160px;
  }
}
