:root {
  --bg: #000;
  --panel: #050505;
  --text: #f7f7f7;
  --muted: #6f767e;
  --muted-strong: #8b939b;
  --accent: #17018d;
  --line: #181818;
  --danger: #bf0d0d;
  --body-font: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, Helvetica, sans-serif;
  --display-font: "Aptos Display", "Segoe UI Semibold", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #000;
  border-bottom: 1px solid #101010;
  padding: 0 28px;
  font-family: var(--display-font);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  white-space: nowrap;
}

.nav a {
  padding: 8px 12px;
  transition: background .18s ease, color .18s ease;
}

.nav a:hover,
.nav a.active {
  background: #101010;
}

.nav a[data-nav="panel"] {
  border-left: 1px solid #191919;
}

.icon-button,
.floating-edit,
.play-button {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 34px;
  height: 34px;
  background: transparent;
  color: white;
}

.icon-button svg,
.floating-edit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  --map-opacity: 1;
  --map-y: 0px;
  --map-scale: 1.04;
  --dot-opacity: .82;
  --veil-opacity: 0;
  --hero-content-y: 38px;
  --hero-content-opacity: 1;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 100px 22px 70px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
  opacity: var(--veil-opacity);
  pointer-events: none;
}

.page-hero {
  min-height: 100vh;
}

.map-layer,
.dot-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.map-layer {
  background:
    linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)),
    url("assets/world-map.jpg") center / cover;
  filter: grayscale(1) contrast(1.2) brightness(.55);
  opacity: var(--map-opacity);
  transform: translate3d(0, var(--map-y), 0) scale(var(--map-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.dot-layer {
  z-index: -2;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .78) 0 3px, transparent 3.5px) 0 0 / 13px 13px,
    linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25));
  opacity: var(--dot-opacity);
  will-change: opacity;
}

.hero-content {
  width: min(1140px, 100%);
  text-align: center;
  opacity: var(--hero-content-opacity);
  transform: translate3d(0, var(--hero-content-y), 0);
  will-change: transform, opacity;
}

h1,
h2,
h3,
.motto,
.hero p {
  font-family: var(--display-font);
}

h1 {
  margin: 0;
  font-size: clamp(46px, 4.4vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .45);
  text-transform: uppercase;
}

.rule {
  width: min(1140px, 86vw);
  height: 11px;
  margin: 18px auto 22px;
  background: var(--accent);
}

.hero p {
  margin: 0;
  font-size: clamp(30px, 2.8vw, 41px);
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #777;
  opacity: var(--hero-content-opacity);
}

.scroll-cue svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(1090px, calc(100% - 42px));
}

.intro {
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 68px 0 48px;
  background: #000;
  text-align: center;
}

.intro h2,
.officers h2,
.recruitment h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.5vw, 36px);
  text-transform: uppercase;
}

.intro p {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 2.15;
}

.intro .emphasis {
  color: #7f868e;
  letter-spacing: .01em;
}

.unit-mark {
  width: 150px;
  height: 150px;
  margin: 54px auto 34px;
  object-fit: contain;
}

.motto {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cards-section {
  padding: 52px 0 70px;
  background: #000;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.feature {
  min-width: 0;
}

.feature img,
.video-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #101010;
}

.feature h3 {
  margin: 14px 6px 24px;
  font-size: clamp(22px, 1.75vw, 27px);
  line-height: 1.12;
  text-align: center;
}

.feature p {
  margin: 0 6px;
  color: #5f5f5f;
  font-size: 16px;
  line-height: 1.6;
}

.video-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, transparent 0 22%, var(--danger) 22% 42%, #350303 42% 53%, var(--danger) 53% 72%, transparent 72%),
    linear-gradient(#080808 0 28%, #190000 28% 100%);
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 26% 8% 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, .45) 49% 51%, transparent 52%),
    linear-gradient(rgba(255, 255, 255, .09), transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 1px) 0 0 / 44px 100%;
  transform: perspective(420px) rotateX(54deg);
  transform-origin: bottom;
}

.tiny-mark {
  position: absolute;
  top: 14px;
  left: 56px;
  font-size: 15px;
  line-height: 1.12;
  color: white;
}

.tiny-mark::before {
  content: "";
  position: absolute;
  left: -42px;
  top: -1px;
  width: 31px;
  height: 31px;
  background: url("assets/scp-logo.png") center / contain no-repeat;
  opacity: .55;
}

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 44px;
  border-radius: 12px;
  background: #ff1010;
  color: white;
}

.play-button svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.youtube {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 17px;
}

.seal {
  margin: 84px auto 0;
  text-align: center;
}

.seal strong {
  display: block;
  margin-bottom: 22px;
  font-family: var(--display-font);
  font-size: 17px;
}

.seal img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  object-fit: contain;
}

.officers,
.recruitment {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 74px 0;
}

.officers h2,
.recruitment h2 {
  text-align: center;
}

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

.rank-grid article {
  border: 1px solid #181818;
  border-radius: 6px;
  padding: 24px;
  background: #020202;
}

.rank-grid span {
  display: block;
  color: #898989;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rank-grid h3 {
  margin: 9px 0 12px;
  font-size: 22px;
}

.rank-grid p,
.recruitment p {
  color: #777;
  line-height: 1.65;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
}

.split h2 {
  text-align: left;
  margin-bottom: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: #fff;
  color: #000;
  border-radius: 4px;
  font-family: var(--display-font);
  font-weight: 800;
  white-space: nowrap;
}

.floating-edit {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 25;
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #5f5f5f;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

body.admin-authenticated .floating-edit {
  display: grid;
}

body.editor-active .floating-edit {
  background: #b51616;
  color: #fff;
}

.editor-toolbar {
  position: fixed;
  z-index: 30;
  right: 86px;
  bottom: 22px;
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid #262626;
  border-radius: 6px;
  background: rgba(0, 0, 0, .92);
  color: #e8e8e8;
  padding: 10px 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}

body.admin-authenticated .editor-toolbar {
  display: flex;
}

.editor-image-panel {
  position: fixed;
  z-index: 31;
  right: 22px;
  bottom: 92px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 126px));
  overflow: auto;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  background: rgba(0, 0, 0, .96);
  color: white;
  padding: 14px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .68);
}

.editor-image-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.editor-image-panel button {
  min-height: 32px;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #090909;
  color: white;
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}

.editor-image-list {
  display: grid;
  gap: 12px;
}

.editor-image-list label {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid #1c1c1c;
  border-radius: 5px;
  padding: 10px;
  background: #050505;
}

.editor-image-list img {
  grid-row: span 2;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 4px;
  background: #111;
}

.editor-image-list span {
  color: #bfc5cc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.editor-image-list input {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #292929;
  border-radius: 4px;
  background: #070707;
  color: white;
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
}

.editor-toolbar span {
  color: #8b939b;
  font-size: 13px;
}

.editor-toolbar button {
  min-height: 32px;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #090909;
  color: white;
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}

.editor-toolbar button:hover {
  background: #151515;
}

[contenteditable="true"] {
  outline: 1px dashed rgba(181, 22, 22, .8);
  outline-offset: 4px;
  background: rgba(181, 22, 22, .08);
  cursor: text;
}

.editor-selected {
  outline-color: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 0 0 4px rgba(181, 22, 22, .16);
}

body.editor-active img[data-image-edit-id] {
  cursor: pointer;
  outline: 1px dashed rgba(181, 22, 22, .75);
  outline-offset: 5px;
}

.custom-text-block {
  width: min(1040px, calc(100% - 40px));
  margin: 28px auto;
  border: 1px solid #242424;
  border-radius: 6px;
  background: #030303;
  color: #bfc5cc;
  padding: 22px;
  line-height: 1.65;
}

.officer-page,
.recruit-page {
  background: #000;
  min-height: 100vh;
  padding: 76px 0 82px;
}

.roster-shell {
  width: min(1120px, calc(100% - 40px));
}

.officer-page h2 {
  margin: 0 0 48px;
  color: #b51616;
  font-family: var(--display-font);
  font-size: 28px;
  text-align: center;
  text-transform: uppercase;
}

.officer-page h3 {
  margin: 0 0 12px 6px;
  color: #ba1a1a;
  font-family: var(--display-font);
  font-size: 24px;
  text-transform: uppercase;
}

.lead {
  margin: 0 0 42px 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 78px;
  row-gap: 70px;
  margin-top: 56px;
}

.officer-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.officer-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  filter: brightness(.32) saturate(.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px #111;
}

.officer-card strong,
.officer-card span,
.officer-card p {
  display: block;
}

.officer-card strong {
  margin: 0 0 10px;
  color: #b51616;
  font-family: var(--display-font);
  font-size: 14px;
  text-transform: uppercase;
}

.officer-card span {
  margin-bottom: 14px;
  color: #89919b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.officer-card p {
  margin: 0;
  color: #68717b;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
}

.recruit-top {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  gap: 80px;
  align-items: start;
}

.recruit-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 180px;
  color: white;
  font-size: 25px;
  line-height: 1.05;
}

.recruit-logos img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.recruit-logos small {
  font-size: 12px;
}

.recruit-copy h2,
.recruit-rules h2,
.recruit-final h2 {
  margin: 0 0 42px;
  font-size: clamp(31px, 2.8vw, 42px);
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.recruit-copy p {
  color: #f2f2f2;
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.45;
}

.recruit-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  margin-top: 66px;
  color: #5e656d;
  font-size: 16px;
  font-weight: 600;
}

.recruit-links span,
.recruit-links p {
  display: block;
  margin: 0 0 18px;
}

.recruit-links a {
  color: white;
  text-decoration: underline;
}

.recruit-links li {
  margin-bottom: 14px;
  color: #7b1cc7;
}

.recruit-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 78px;
  align-items: start;
  margin-top: 76px;
}

.recruit-rules h2 {
  margin-bottom: 18px;
}

.recruit-rules ul,
.recruit-final ul {
  margin: 0 0 22px;
  padding-left: 18px;
  color: #6f767e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

.recruit-rules img {
  width: 430px;
  max-width: 100%;
  margin: 8px auto 0;
}

.recruit-final {
  margin-top: 56px;
  text-align: center;
}

.recruit-final ul {
  display: inline-block;
  max-width: 820px;
  margin-bottom: 58px;
  text-align: left;
  font-size: 20px;
}

.recruit-final .cta {
  min-height: 32px;
  margin-bottom: 50px;
  padding: 0 14px;
  color: var(--accent);
}

.panel-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden auto;
  padding: 112px 20px 56px;
}

.panel-page .map-layer {
  filter: grayscale(1) contrast(1.25) brightness(.28);
}

.login-screen {
  min-height: calc(100vh - 168px);
  display: grid;
  place-items: center;
}

.login-box {
  width: min(420px, 100%);
  border: 1px solid #202020;
  border-radius: 6px;
  padding: 34px;
  background: rgba(0, 0, 0, .84);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .65);
}

.login-box img {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.login-box h1,
.operator-dashboard h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 44px);
  text-align: center;
}

.login-box p,
.operator-dashboard p {
  margin: 0 0 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.login-box label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfc5cc;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-box input {
  width: 100%;
  height: 44px;
  border: 1px solid #292929;
  border-radius: 4px;
  background: #050505;
  color: white;
  padding: 0 12px;
  font: inherit;
}

.login-box .cta {
  width: 100%;
  border: 0;
  margin-top: 6px;
  cursor: pointer;
}

.login-box .cta:disabled {
  cursor: wait;
  opacity: .65;
}

.auth-progress {
  margin-top: 16px;
  color: #aeb6bf;
  font-size: 13px;
}

.auth-progress span {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-progress div {
  height: 8px;
  overflow: hidden;
  border: 1px solid #222;
  border-radius: 999px;
  background: #050505;
}

.auth-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #400909, #b51616, #eee);
  transition: width .38s ease;
}

.login-error {
  display: block;
  min-height: 22px;
  margin-top: 14px;
  color: #d53333;
  text-align: center;
}

.operator-dashboard {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  padding: 32px;
  background: rgba(0, 0, 0, .86);
  box-shadow: 0 20px 90px rgba(0, 0, 0, .6);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  border-bottom: 1px solid #181818;
  padding-bottom: 12px;
}

.panel-tabs button {
  min-height: 38px;
  border: 1px solid #242424;
  border-radius: 4px;
  background: #050505;
  color: #aeb6bf;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.panel-tabs button:hover,
.panel-tabs button.active {
  background: #151515;
  color: #fff;
}

.panel-view {
  display: none;
}

.panel-view.active {
  display: block;
}

.dashboard-head h1,
.dashboard-head p {
  text-align: left;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #b71818;
  font-size: 13px;
  letter-spacing: .14em;
}

.ghost-button {
  min-height: 40px;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #050505;
  color: white;
  padding: 0 16px;
  font: inherit;
  cursor: pointer;
}

.danger-button {
  border-color: rgba(191, 13, 13, .72);
  color: #ffdddd;
}

.danger-button:hover {
  background: rgba(191, 13, 13, .2);
}

.dashboard-grid,
.dashboard-panels {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-panels {
  grid-template-columns: 1.2fr .8fr;
}

.status-card,
.dashboard-panels article {
  border: 1px solid #1b1b1b;
  border-radius: 6px;
  background: #030303;
  padding: 22px;
}

.status-card span {
  color: #8b939b;
  font-size: 13px;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--display-font);
  font-size: 24px;
}

.status-card p {
  margin: 0;
  text-align: left;
}

.status-card .log-list {
  margin-top: 10px;
}

.log-list.compact {
  line-height: 1.55;
}

.log-list.compact li {
  margin-bottom: 8px;
}

.dashboard-panels h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #8b939b;
  line-height: 1.9;
}

.log-list time {
  display: inline-block;
  min-width: 52px;
  color: white;
}

.panel-form {
  border: 1px solid #1d1d1d;
  border-radius: 6px;
  background: #020202;
  padding: 22px;
  margin-bottom: 22px;
}

.panel-form h2,
.database-head h2 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
}

.form-hint {
  margin: 10px 0 0;
  color: #89919b;
  line-height: 1.45;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.form-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-form label,
.report-sheet label,
.operator-file label,
.report-edit-form label {
  display: grid;
  gap: 7px;
  color: #b7bec6;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.panel-form input,
.panel-form select,
.panel-form textarea,
.report-sheet input,
.report-sheet select,
.report-sheet textarea,
.operator-file input,
.operator-file select,
.operator-file textarea,
.report-edit-form input,
.report-edit-form select,
.report-edit-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  background: #060606;
  color: #fff;
  padding: 9px 10px;
  font: inherit;
  font-weight: 600;
}

.panel-form input[readonly] {
  color: #dcdcdc;
  background: #111;
  border-color: #3a3a3a;
  letter-spacing: .08em;
}

.panel-form textarea,
.report-sheet textarea,
.operator-file textarea,
.report-edit-form textarea {
  resize: vertical;
}

.form-message {
  display: block;
  min-height: 24px;
  margin-top: 12px;
  color: #8aa871;
}

.report-sheet {
  position: relative;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 6px;
  background:
    linear-gradient(rgba(0, 0, 0, .88), rgba(0, 0, 0, .9)),
    url("assets/nu7-logo.png") center 58% / 520px auto no-repeat;
  padding: 24px;
}

.report-sheet header,
.operator-file header {
  display: grid;
  grid-template-columns: 72px 1fr 1fr 72px;
  gap: 14px;
  align-items: center;
  border-bottom: 2px solid #222;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.report-sheet header img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.report-sheet header div {
  display: grid;
  gap: 7px;
  background: rgba(255, 255, 255, .04);
  padding: 10px;
}

.report-sheet h2 {
  margin: 0 0 14px;
  font-size: 30px;
  text-transform: uppercase;
}

.database-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 0 16px;
}

.database-head span {
  color: #89919b;
}

.report-list,
.record-list,
.account-list {
  display: grid;
  gap: 14px;
}

.report-browser {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.report-sidebar {
  display: grid;
  gap: 10px;
  max-height: 68vh;
  overflow: auto;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  background: rgba(0, 0, 0, .45);
  padding: 10px;
}

.report-detail {
  min-width: 0;
}

.report-accordion {
  border: 1px solid #242424;
  border-radius: 5px;
  background: #040404;
}

.report-accordion[open] {
  border-color: #3a3a3a;
  background: #080808;
}

.report-accordion summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.report-accordion summary::-webkit-details-marker {
  display: none;
}

.report-accordion summary::after {
  content: "⌄";
  color: #aeb6bf;
  font-size: 18px;
}

.report-accordion[open] summary::after {
  content: "⌃";
}

.report-accordion summary span,
.report-mini span {
  color: #89919b;
  font-size: 12px;
  text-transform: uppercase;
}

.report-accordion summary strong {
  grid-column: 1 / -1;
  font-size: 15px;
  text-transform: uppercase;
}

.report-mini {
  display: grid;
  gap: 6px;
  border-top: 1px solid #171717;
  padding: 10px 12px;
}

.report-accordion .ghost-button {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

.database-card,
.account-card {
  border: 1px solid #242424;
  border-radius: 6px;
  background: #040404;
  padding: 18px;
}

.database-card header {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #202020;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.database-card header span,
.database-card header em {
  color: #aeb6bf;
  font-style: normal;
  font-size: 13px;
  text-transform: uppercase;
}

.database-card header strong {
  font-size: 20px;
  text-transform: uppercase;
}

.database-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.database-card dl div {
  border-left: 2px solid #303030;
  padding-left: 10px;
}

.database-card dt {
  color: #777f88;
  font-size: 12px;
  text-transform: uppercase;
}

.database-card dd {
  margin: 2px 0 0;
  color: #fff;
}

.database-card p,
.database-card b,
.database-card small {
  display: block;
  margin: 0 0 10px;
  color: #a0a8b1;
  line-height: 1.55;
  text-align: left;
}

.database-card b {
  color: #fff;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

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

.documentation-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  border: 1px solid #242424;
  border-radius: 6px;
  background: #040404;
  padding: 18px;
  color: #fff;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

a.documentation-card:hover {
  border-color: #3b3b3b;
  background: #090909;
  transform: translateY(-1px);
}

.documentation-card strong {
  font-family: var(--display-font);
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
}

.documentation-card span:not(.doc-badge) {
  color: #89919b;
  line-height: 1.45;
}

.documentation-card.unavailable {
  opacity: .66;
}

.doc-badge {
  width: max-content;
  border: 1px solid #303030;
  border-radius: 999px;
  background: #090909;
  color: #bfc5cc;
  padding: 4px 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.report-edit-form {
  display: grid;
  gap: 14px;
}

.report-edit-form header {
  margin-bottom: 0;
}

.inline-control {
  display: grid;
  gap: 7px;
  max-width: 340px;
  margin-top: 14px;
  color: #aeb6bf;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.inline-control select {
  min-height: 38px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  background: #060606;
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.account-card {
  display: grid;
  gap: 6px;
}

.account-card strong {
  color: #fff;
}

.account-card span,
.empty-state {
  color: #89919b;
}

.operator-file {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 6, 6, .94), rgba(6, 6, 6, .94)),
    url("assets/scp-logo.png") center / 520px auto no-repeat;
}

.operator-file header {
  grid-template-columns: 1fr 1.2fr 1fr;
  background: #111;
  border: 1px solid #2c2c2c;
  padding: 14px;
}

.operator-file header strong {
  text-align: center;
  font-size: 24px;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 8px 14px 10px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    font-size: 15px;
  }

  .nav a {
    padding: 7px 9px;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-content {
    --hero-content-y: 0px;
  }

  .feature-grid,
  .rank-grid,
  .split,
  .officer-grid,
  .recruit-top,
  .recruit-links,
  .recruit-rules,
  .dashboard-grid,
  .dashboard-panels,
  .report-browser,
  .documentation-list,
  .form-grid,
  .form-grid.compact,
  .database-card dl {
    grid-template-columns: 1fr;
  }

  .report-sheet header,
  .operator-file header,
  .database-card header {
    grid-template-columns: 1fr;
  }

  .report-sheet header img {
    margin: 0 auto;
  }

  .operator-file header strong,
  .operator-file header span {
    text-align: center;
  }

  .officer-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
  }

  .officer-card img {
    width: 88px;
    height: 88px;
  }

  .recruit-logos {
    flex-wrap: wrap;
  }

  .dashboard-head {
    display: grid;
  }

  .feature {
    max-width: 420px;
    margin: 0 auto;
  }

  .split h2 {
    text-align: center;
  }

  .cta {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .narrow {
    width: min(100% - 28px, 1040px);
  }

  h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 25px;
  }

  .rule {
    height: 8px;
  }

  .intro p {
    line-height: 1.75;
  }

  .floating-edit {
    width: 48px;
    height: 48px;
  }

  .officer-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .recruit-final ul {
    font-size: 17px;
  }

  .operator-dashboard,
  .login-box {
    padding: 24px;
  }
}
