@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root {
  color-scheme: dark;
  --bg: #101722;
  --surface: #192331;
  --surface2: #1e2c3e;
  --text: #e1e8f0;
  --muted: #96a7bc;
  --line: #a7bdd520;
  --accent: #96bde9;
  --accent-soft: #90b8f016;
  --nav: #121c2a;
  --shadow: 0 16px 45px #040a141c;
  --mono: 'IBM Plex Mono', monospace;
  --radius: 22px;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #fff;
  --surface2: #e9eef5;
  --text: #233349;
  --muted: #61758e;
  --line: #39567724;
  --accent: #325e96;
  --accent-soft: #4065a00d;
  --nav: #fff;
  --shadow: 0 12px 35px #253f6010;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.65 'Noto Sans KR',
    sans-serif;
  transition:
    background 0.35s,
    color 0.35s;
}
body[data-viewer='staff'] {
  --bg: #0c1724;
  --surface: #142334;
  --surface2: #1b3044;
  --line: #8dbbd72c;
  --accent: #80d8d4;
  --accent-soft: #79d0d216;
  --nav: #101d2c;
  background-image:
    linear-gradient(#7aacd704 1px, transparent 1px),
    linear-gradient(90deg, #7aacd704 1px, transparent 1px);
  background-size: 32px 32px;
}
:root[data-theme='light'] body[data-viewer='staff'] {
  --bg: #e6eef1;
  --surface: #f7fcfd;
  --surface2: #dbe8ed;
  --text: #193745;
  --muted: #516e7b;
  --accent: #217277;
  --line: #205b722a;
  --nav: #edf5f6;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 15px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
button:hover {
  background: var(--accent-soft);
  box-shadow: 0 4px 18px #0001;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a,
button,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input,
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
input {
  min-width: 0;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  margin-bottom: 13px;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.5;
  margin-bottom: 12px;
}
h3 {
  font-size: 18px;
  line-height: 1.5;
}
p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
small {
  font-size: 11px;
}
button,
select,
a {
  font-weight: 500;
}
[hidden] {
  display: none !important;
}
.muted,
.description {
  color: var(--muted);
}
.mono,
.eyebrow {
  font-family: var(--mono);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
}
.primary:hover {
  background: var(--text);
  color: var(--bg);
}
.subtle {
  background: none;
  border: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted);
}
.badge,
.access-pill {
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 5px 10px;
  font: 9px var(--mono);
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
}
.access-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}
.access-pill i,
.status-dot {
  display: inline-block;
  background: #76cbb0;
  box-shadow: 0 0 8px #74d5b933;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  top: -100px;
  padding: 14px;
  background: var(--surface);
}
.skip-link:focus {
  top: 0;
}
.agency-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 9px max(4vw, calc((100vw - 1420px) / 2));
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--nav);
}
.agency-strip #access-label {
  margin-left: auto;
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.site-header {
  max-width: 1536px;
  padding: 26px 4vw 23px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand b {
  font:
    700 35px/1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: var(--muted);
}
.header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-controls button {
  font-size: 11px;
  background: transparent;
  border-radius: 30px;
  padding: 9px 13px;
}
#viewer-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
}
body[data-viewer='staff'] #viewer-toggle {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.8vw, 48px);
  padding: 0 4vw;
  background: var(--nav);
  border-block: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav a {
  padding: 17px 0;
  white-space: nowrap;
  position: relative;
  color: var(--muted);
  font-size: 12px;
}
.site-nav a[aria-current] {
  color: var(--text);
  font-weight: 700;
}
.site-nav a[aria-current]:after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 10%;
  right: 10%;
}
.staff-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4vw;
  background: var(--accent-soft);
  font: 9px var(--mono);
  color: var(--accent);
}
.staff-ribbon button {
  font: 9px var(--mono);
  padding: 0;
  border: 0;
  background: none;
}
main {
  max-width: 1420px;
  margin: 0 auto;
  padding: 42px 32px 60px;
  min-height: 65vh;
  animation: page-enter 0.45s ease both;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.page-heading .description {
  font-size: 12px;
  margin-bottom: 0;
  max-width: 700px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin-bottom: 0;
  font-size: 17px;
}
.section-title .eyebrow {
  margin-bottom: 5px;
}
.section-title > .mono {
  font-size: 10px;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px max(4vw, calc((100vw - 1356px) / 2));
  background: var(--nav);
}
.footer-top {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 23px;
}
.footer-top .brand b {
  font-size: 26px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}
.site-footer > p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.visitor-count {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.visitor-count > span {
  font: 8px var(--mono);
  letter-spacing: 1px;
}
.visitor-count b {
  font: 20px var(--mono);
  color: var(--accent);
}
.visitor-count small {
  font-size: 9px;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 2000;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 10px 50px #0004;
  font-size: 12px;
  transition: 0.25s;
}
#toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
#cursor-radar {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  z-index: 5000;
  opacity: 0;
}
#cursor-radar i {
  position: absolute;
  inset: -14px 14px 14px -14px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: conic-gradient(transparent 60%, #86bfd950);
  animation: radar-orbit 3s linear infinite;
}
#cursor-radar i:after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dotted var(--accent);
  border-radius: 50%;
}
#cursor-radar span {
  position: absolute;
  left: 20px;
  top: 8px;
  font: 7px var(--mono);
  color: var(--accent);
}
.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 20px;
}
.map-panel {
  padding: 24px 0 0;
  overflow: hidden;
}
.map-panel > .section-title {
  padding-inline: 24px;
}
.map-wrap {
  position: relative;
  overflow: hidden;
}
.seoul-map {
  height: 390px;
  background: #28313b;
  isolation: isolate;
  z-index: 0;
}
.leaflet-tile-pane {
  filter: saturate(0.18) brightness(0.78) contrast(1.12);
}
:root[data-theme='dark'] .leaflet-tile-pane {
  filter: invert(0.9) hue-rotate(175deg) saturate(0.4) brightness(0.85);
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-container a {
  color: #365e7d;
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
}
.leaflet-control-zoom {
  border-radius: 12px !important;
  overflow: hidden;
}
.map-target {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid #9fded4aa;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 450;
  box-shadow: 0 0 30px #65c2b244;
}
.map-target:before,
.map-target:after {
  content: '';
  position: absolute;
  background: #a3e9dc88;
}
.map-target:before {
  left: 50%;
  top: -400px;
  height: 850px;
  width: 1px;
}
.map-target:after {
  top: 50%;
  left: -800px;
  width: 1650px;
  height: 1px;
}
.map-target i {
  position: absolute;
  inset: 7px;
  border: 1px dashed #adf0df;
  border-radius: 50%;
  animation: radar-orbit 8s linear infinite;
}
.map-target span {
  position: absolute;
  left: 50px;
  top: 0;
  font: 7px var(--mono);
  color: #c7ffee;
  white-space: nowrap;
  background: #0b2734ad;
  padding: 3px;
}
.map-coordinate {
  position: absolute;
  bottom: 28px;
  left: 14px;
  color: #c4dce0;
  background: #142536ce;
  font: 8px var(--mono);
  padding: 7px;
  border-radius: 6px;
  z-index: 450;
  pointer-events: none;
}
.map-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  font-size: 10px;
  color: var(--muted);
}
.map-legend button {
  margin-left: auto;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.green {
  background: #75cdb2;
}
.red {
  background: #ea7481;
}
.control-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.readout {
  flex: 1;
}
.readout-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}
.readout-label h2 {
  font-size: 15px;
  margin: 0;
}
.readout-label > a {
  font-size: 10px;
  color: var(--muted);
}
.readout-body {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 12px 0;
}
.ring-gauge {
  --value: 0;
  width: 114px;
  height: 114px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 7px;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), var(--surface2) 0);
  box-shadow: inset 0 0 0 1px var(--line);
  rotate: -90deg;
}
.ring-gauge > span {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  rotate: 90deg;
}
.ring-gauge strong {
  font:
    40px/1.1 'Barlow Condensed',
    sans-serif;
}
.ring-gauge small {
  font: 7px var(--mono);
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 1px;
}
.grade-chart {
  flex: 1;
}
.grade-chart > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  font: 9px var(--mono);
}
.grade-chart i {
  height: 4px;
  flex: 1;
  background: var(--surface2);
  border-radius: 10px;
  position: relative;
}
.grade-chart i:after {
  content: '';
  width: var(--bar);
  height: 100%;
  position: absolute;
  left: 0;
  background: var(--accent);
  border-radius: 10px;
}
.readout > small {
  font-size: 9px;
  color: var(--muted);
}
.count-readout {
  font: 28px var(--mono);
  color: var(--accent);
}
.count-readout small {
  font-size: 12px;
  color: var(--muted);
}
.unit-lights a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.unit-lights a:last-child {
  border: 0;
}
.unit-lights b {
  font: 11px var(--mono);
}
.unit-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8b9db0;
  --status-color: #8b9db0;
}
.unit-status i {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--status-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color) 9%, transparent);
}
.unit-status[data-status='active'] {
  --status-color: #5abf96;
  color: var(--status-color);
}
.unit-status[data-status='sleep'] {
  --status-color: #a692d2;
  color: var(--status-color);
}
.unit-status[data-status='rest'] {
  --status-color: #cfa769;
  color: var(--status-color);
}
.unit-status[data-status='emergency'] {
  --status-color: #ef6979;
  color: var(--status-color);
}
.unit-status[data-status='emergency'] i {
  animation: pulse 1.4s ease infinite;
}
.environment-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.weather-reading {
  display: flex;
  gap: 24px;
  align-items: center;
}
.weather-illustration {
  width: 90px;
  height: 70px;
  filter: drop-shadow(0 10px 18px #adc6f01c);
}
.weather-reading > strong {
  font:
    52px/1 'Barlow Condensed',
    sans-serif;
}
.weather-reading > strong small {
  font:
    18px 'Barlow Condensed',
    sans-serif;
  margin-left: 5px;
}
.weather-reading b {
  font-size: 12px;
}
.weather-reading p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0;
}
.weather-chart {
  margin-top: 15px;
  height: 85px;
}
.weather-chart svg {
  width: 100%;
  height: 65px;
  overflow: visible;
}
.weather-chart > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 8px var(--mono);
}
.credit {
  display: block;
  margin-top: 12px;
  font-size: 8px;
  color: var(--muted);
}
.clock-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.clock-panel h2 {
  font-size: 16px;
}
.clock-panel time {
  font:
    clamp(30px, 3.5vw, 50px) 'Barlow Condensed',
    sans-serif;
  letter-spacing: 1px;
}
.clock-panel p {
  font: 11px var(--mono);
  color: var(--muted);
  margin: 10px 0;
}
.clock-panel small {
  font: 8px var(--mono);
  color: var(--accent);
}
.analog-clock {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, var(--surface) 59%, transparent 60%),
    repeating-conic-gradient(from 0deg, var(--muted) 0deg 1deg, transparent 1deg 30deg),
    var(--surface2);
  border: 8px solid var(--surface2);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 8px 20px #0001;
}
.analog-clock > span {
  position: absolute;
  width: 2px;
  left: calc(50% - 1px);
  bottom: 50%;
  background: var(--text);
  transform-origin: 50% 100%;
  border-radius: 4px;
}
.hour-hand {
  height: 26%;
  width: 3px !important;
}
.minute-hand {
  height: 35%;
}
.analog-clock > .second-hand {
  height: 40%;
  width: 1px;
  background: var(--accent);
}
.analog-clock i {
  position: absolute;
  top: calc(50% - 3px);
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.analog-clock b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 23%;
  text-align: center;
  font: 7px var(--mono);
  color: var(--muted);
  letter-spacing: 2px;
}
.bulletin-panel {
  margin-top: 20px;
}
.brief-feed {
  display: grid;
  gap: 10px;
}
.bulletin {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.bulletin small {
  font-size: 10px;
  color: var(--accent);
}
.bulletin time {
  font: 9px var(--mono);
  color: var(--muted);
  margin-left: 12px;
}
.bulletin p {
  font-size: 12px;
  margin: 6px 0 0;
}
.bulletin .badge {
  margin-left: auto;
}
.transmission-icon {
  border-radius: 12px;
  padding: 7px 14px;
  background: var(--surface2);
  color: var(--accent);
}
.service-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.service-links > a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.service-links span {
  display: block;
  font: 8px var(--mono);
  color: var(--muted);
  margin-bottom: 8px;
}
.service-links b {
  font-size: 14px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.directory-card {
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  color: var(--text);
}
.directory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px #0003;
  color: inherit;
}
.directory-logo {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 28px;
}
.directory-logo img {
  max-height: 130px;
  max-width: 90%;
  object-fit: contain;
}
.directory-logo strong {
  font:
    700 48px 'Barlow Condensed',
    sans-serif;
  letter-spacing: 6px;
}
.directory-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.directory-title h2 {
  font-size: 24px;
}
.directory-title small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.directory-title > span {
  font-size: 28px;
}
.directory-card p {
  font-size: 12px;
  line-height: 1.9;
  min-height: 90px;
  color: var(--muted);
}
.directory-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 10px;
  border-block: 1px solid var(--line);
  padding: 17px 0;
}
.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 22px;
}
.avatar-stack img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -7px;
}
.avatar-stack img:first-child {
  margin-left: 0;
}
.avatar-stack span {
  font: 8px var(--mono);
  margin-left: auto;
  color: var(--muted);
}
[data-viewer='public'] .avatar-stack img {
  filter: blur(3px) grayscale(0.6);
}
.organization-note {
  padding: 30px;
  margin-top: 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.organization-note p {
  font-size: 12px;
  color: var(--muted);
}
.organization-note a {
  font-size: 11px;
  color: var(--accent);
}
.org-branches {
  display: flex;
  gap: 15px;
  margin: 22px 0;
}
.org-branches span {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
}
.wide-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 27px;
  margin-top: 25px;
}
.wide-link > span {
  font: 9px var(--mono);
  color: var(--muted);
}
.wide-link b {
  font-size: 16px;
}
.unit-masthead {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.unit-masthead > div {
  max-width: 680px;
}
.unit-masthead h2 {
  font:
    600 clamp(40px, 5vw, 70px) / 1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 2px;
  margin: 15px 0 20px;
}
.unit-masthead p {
  font-size: 13px;
  color: var(--muted);
}
.unit-masthead > img {
  width: 200px;
  max-height: 175px;
  object-fit: contain;
}
.unit-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  font-size: 10px;
  color: var(--muted);
}
.beacon-mark {
  font:
    700 115px/1 'Barlow Condensed',
    sans-serif;
  text-align: center;
  width: 210px;
  color: #5e779c;
  text-shadow: 4px 5px 0 #a6b6ce40;
}
.beacon-mark span {
  display: block;
  font: 7px var(--mono);
  letter-spacing: 2px;
  margin-top: 10px;
}
.unit-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.unit-schedule > p {
  font-size: 9px;
  margin: 18px 0 0;
}
.day-track {
  height: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.day-track > span {
  position: absolute;
  top: 5px;
  height: 10px;
  border-radius: 3px;
  background: #79bfae;
}
.day-track > span.rest {
  background: #c2a77f;
}
.day-track > i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 8px var(--text);
}
.schedule-slot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  border-radius: 6px;
}
.schedule-slot time {
  font: 9px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.schedule-slot.current {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.schedule-slot i {
  font: 7px var(--mono);
  margin-left: auto;
}
.unit-communications {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.briefing {
  flex: 1;
}
.brief-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.brief-message img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 12px;
}
.brief-message small {
  font-size: 10px;
  color: var(--accent);
}
.brief-message time {
  margin-left: 10px;
  font: 8px var(--mono);
  color: var(--muted);
}
.brief-message p {
  font-size: 12px;
  margin: 6px 0 0;
}
.briefing > .muted {
  font-size: 9px;
  margin-left: 12px;
}
.messenger {
  padding: 0;
  overflow: hidden;
}
.messenger-launch {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 20px;
}
.messenger-launch > span:nth-child(2) {
  flex: 1;
}
.messenger-launch b {
  font-size: 13px;
}
.messenger-launch small {
  display: block;
  font: 8px var(--mono);
  color: var(--muted);
  margin-top: 5px;
}
.messenger-icon {
  font: 22px var(--mono);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}
.unread {
  font: 10px var(--mono);
  background: var(--accent);
  color: var(--bg);
  padding: 4px 7px;
  border-radius: 10px;
}
.messenger-body {
  border-top: 1px solid var(--line);
  padding: 15px;
  background: var(--accent-soft);
  animation: page-enter 0.3s ease both;
}
.messenger-caption {
  text-align: center;
  color: var(--muted);
  font-size: 9px;
}
.chat-log {
  max-height: 310px;
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px 0;
}
.chat-message {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.chat-message > img {
  width: 33px;
  height: 33px;
  object-fit: cover;
  border-radius: 11px;
}
.chat-message > div {
  max-width: 82%;
}
.chat-message small {
  font-size: 10px;
  color: var(--muted);
}
.chat-message p {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 3px 13px 13px;
  padding: 10px 12px;
  font-size: 11px;
  margin: 4px 0;
}
.chat-message time {
  font: 8px var(--mono);
  color: var(--muted);
}
.chat-message.self {
  justify-content: flex-end;
  text-align: right;
}
.chat-message.self p {
  background: var(--accent);
  color: var(--bg);
  border-radius: 13px 3px 13px 13px;
  text-align: left;
}
.chat-form {
  display: flex;
  gap: 8px;
}
.chat-form input {
  width: 100%;
  font-size: 12px;
}
.chat-form button {
  background: var(--accent);
  color: var(--bg);
  padding: 7px 15px;
}
.messenger-body > small {
  display: block;
  text-align: center;
  font-size: 8px;
  margin-top: 10px;
}
.personnel-heading {
  margin: 40px 0 24px;
}
.personnel-heading > .muted {
  font-size: 10px;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.person-card {
  min-width: 0;
  perspective: 1200px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --card-bg: #172338;
  --card-text: #e3edf9;
  --card-muted: #8ea4bd;
  --card-line: #a6bdde33;
  --card-accent: #b4c8e4;
  animation: page-enter 0.5s both;
  animation-delay: calc(var(--order) * 50ms);
}
.card-tilt {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}
.card-turner {
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
  aspect-ratio: 2/3.12;
  perspective: 1200px;
  touch-action: pan-y;
  text-align: left;
  position: relative;
  user-select: none;
  isolation: isolate;
}
.card-turner:hover {
  background: transparent;
  box-shadow: none;
}
.card-turner:active {
  transform: none;
}
.card-rotator {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.flipped .card-rotator {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 23px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--card-line);
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: 0 18px 35px #0002;
  display: flex;
  flex-direction: column;
}
.card-face.front {
  transform: rotateY(0deg) translateZ(1px);
}
.card-face.back {
  transform: rotateY(180deg) translateZ(1px);
  padding: 24px;
}
.card-face.front:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 3px;
  background: url('art/id-frame.png') center/115% 105%;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.75;
  z-index: 5;
}
.id-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 13px;
  font: 6px var(--mono);
  letter-spacing: 0.4px;
}
.id-card-head img {
  width: 20px;
  height: 20px;
  border-radius: 7px;
}
.id-card-head > span:last-child {
  margin-left: auto;
  font-size: 7px;
  color: var(--card-accent);
}
.id-photo {
  position: relative;
  display: block;
  margin: 0 10px;
  border-radius: 15px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background: linear-gradient(145deg, #617388, #293549);
}
.id-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  display: block;
  transition:
    filter 0.55s,
    scale 0.8s;
}
.person-card:hover .id-photo > img {
  scale: 1.035;
}
[data-viewer='public'] .id-photo > img {
  filter: blur(11px) grayscale(0.6) brightness(0.58);
  scale: 1.08;
}
.redaction-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce6ef;
  font: 7px var(--mono);
  letter-spacing: 1px;
  z-index: 2;
}
.id-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 17px 8px;
}
.id-caption small {
  font-size: 8px;
  color: var(--card-muted);
}
.id-caption strong {
  font:
    600 clamp(24px, 2.8vw, 37px) / 1.1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 1px;
  margin: 3px 0;
}
.id-caption > span {
  font-size: 9px;
  color: var(--card-muted);
}
.id-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 17px 16px;
  font: 6px var(--mono);
  color: var(--card-muted);
}
.barcode {
  display: block;
  width: 48px;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 3px,
    currentColor 3px 5px,
    transparent 5px 7px,
    currentColor 7px 8px,
    transparent 8px 12px
  );
  opacity: 0.5;
}
.id-card-foot > span:last-child {
  margin-left: auto;
}
.hologram {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), #ffffff38, transparent 45%),
    linear-gradient(
      115deg,
      transparent 20%,
      #e9b8ed17 33%,
      #b1f3dc33 40%,
      #b8cfee22 48%,
      transparent 64%
    );
  mix-blend-mode: screen;
  opacity: 0.25;
  transition: opacity 0.3s;
  background-size:
    100% 100%,
    200% 200%;
  background-position:
    center,
    var(--shine-x) var(--shine-y);
}
.person-card:hover .hologram {
  opacity: 0.7;
}
.back .eyebrow {
  color: var(--card-muted);
  font-size: 8px;
}
.back-emblem {
  width: 38px;
  height: 38px;
  margin: 12px 0 18px;
}
.back > strong {
  font:
    600 35px 'Barlow Condensed',
    sans-serif;
  letter-spacing: 1px;
}
.back > p {
  font-size: 11px;
  line-height: 1.85;
  margin: 12px 0;
  color: var(--card-muted);
}
.back dl {
  font-size: 10px;
  border-top: 1px solid var(--card-line);
  padding-top: 14px;
  margin: 0;
}
.back dt {
  font-size: 8px;
  color: var(--card-muted);
}
.back dd {
  margin: 4px 0 11px;
}
.back-bottom {
  font: 7px var(--mono);
  letter-spacing: 0.4px;
  margin-top: auto;
  color: var(--card-muted);
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 3px;
}
.card-actions button {
  padding: 6px 10px;
  font-size: 10px;
  border-radius: 10px;
}
.card-actions > a {
  font-size: 9px;
  color: var(--muted);
}
.coming-soon {
  font: 7px var(--mono);
  letter-spacing: 0.8px;
  color: var(--muted);
}
.hold-meter {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 5px;
  height: 3px;
  border-radius: 10px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.holding .hold-meter {
  transform: scaleX(1);
  transition: transform 0.8s linear;
}
[data-team='beacon'] {
  --card-bg: linear-gradient(160deg, #f5f8fc, #d8e2ee);
  --card-text: #243247;
  --card-muted: #5d7497;
  --card-line: #344c723f;
  --card-accent: #4c678e;
}
.directory-card[data-team='beacon'],
.unit-masthead[data-team='beacon'] {
  background: linear-gradient(155deg, #f5f7fa, #dbe4f0);
  color: #243247;
  --muted: #5d7497;
  --line: #344c722f;
  --accent: #456890;
}
.person-card[data-team='beacon'] .card-face {
  border: 2px solid #384b65;
  box-shadow:
    4px 5px 0 #6f89b540,
    0 15px 30px #11274422;
}
.person-card[data-team='beacon'] .id-photo {
  border: 1px solid #60779566;
}
.person-card[data-team='origin'] {
  --card-bg:
    radial-gradient(at 10% 0%, #8e2e833b, transparent 55%),
    linear-gradient(155deg, #130d26, #080916);
  --card-accent: #d5aaff;
  --card-text: #efe7ff;
  --card-muted: #b1a3c9;
  --card-line: #bd8de444;
}
.directory-card[data-team='origin'],
.unit-masthead[data-team='origin'] {
  background: radial-gradient(at 10% 0%, #58305740, transparent 70%), #141121;
  color: #f0e9ff;
  --muted: #b1a3c9;
  --accent: #ceaceb;
  --line: #d3a9e52b;
}
.person-card[data-team='shield'] {
  --card-bg: linear-gradient(155deg, #ebeff6, #bbc8d9);
  --card-text: #17263b;
  --card-muted: #586a82;
  --card-line: #faffff;
  --card-accent: #577cb2;
}
.directory-card[data-team='shield'],
.unit-masthead[data-team='shield'] {
  background: radial-gradient(at 75% 10%, #819bbb33, transparent 65%), #121c30;
  color: #eff4ff;
  --muted: #9eafc9;
  --accent: #cbd9eb;
  --line: #b4cbeb33;
}
.person-card[data-team='lucky'] {
  --card-bg: linear-gradient(145deg, #fff5f9, #efd6eb);
  --card-text: #673c62;
  --card-muted: #a56b91;
  --card-accent: #af668e;
  --card-line: #e7b5ce;
}
.directory-card[data-team='lucky'],
.unit-masthead[data-team='lucky'] {
  background: linear-gradient(135deg, #fcecf6, #eaddf3);
  color: #5c3f69;
  --muted: #916985;
  --accent: #995f92;
  --line: #95678233;
}
.person-card[data-team='obsidus'] {
  --card-bg: linear-gradient(150deg, #273047, #101522);
  --card-text: #e2ebfc;
  --card-muted: #9ba9c6;
  --card-accent: #a9bce8;
  --card-line: #9caadb55;
}
.directory-card[data-team='obsidus'],
.unit-masthead[data-team='obsidus'] {
  background: linear-gradient(130deg, #253247, #111a29);
  color: #edf3ff;
  --muted: #98aec9;
  --accent: #b8cef0;
}
.person-card[data-team='orpe'] {
  --card-bg: linear-gradient(150deg, #201822, #090d15);
  --card-text: #f2e5e9;
  --card-muted: #b394a0;
  --card-accent: #e5899a;
  --card-line: #b35a6b66;
}
.person-card[data-team='orpe'] .id-card-head {
  color: #dd889c;
}
.person-card[data-team='orpe'] .hologram {
  background: linear-gradient(110deg, transparent, #db27551c, transparent);
}
body[data-page='entertainment'] .directory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-page='entertainment'] .directory-logo {
  height: 180px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  color: var(--text);
  padding: 36px;
  max-width: min(95vw, 1000px);
  max-height: 90svh;
  overflow: auto;
  box-shadow: 0 30px 100px #0007;
}
dialog::backdrop {
  background: #030b19b5;
  backdrop-filter: blur(8px);
}
dialog[open] {
  animation: dialog-enter 0.3s ease both;
}
dialog h2 {
  font-size: 25px;
  padding-right: 30px;
}
dialog > p {
  font-size: 12px;
  color: var(--muted);
}
.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  z-index: 10;
  background: var(--surface2);
}
#staff-login {
  width: 420px;
}
.login-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #e0e9f3, #bbcde1);
  color: #28405c;
  border-radius: 19px;
  padding: 28px 22px;
  margin: 25px 0;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 25px #0002;
}
.login-badge:after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 40%, #fff7 48%, transparent 54%);
  animation: badge-shine 5s ease-in-out infinite;
}
.login-badge strong {
  font:
    600 25px 'Barlow Condensed',
    sans-serif;
}
.login-badge small {
  display: block;
  font:
    9px 'Noto Sans KR',
    sans-serif;
  margin-top: 6px;
}
.login-badge .barcode {
  position: absolute;
  bottom: 13px;
  right: 22px;
}
#login-progress {
  font: 10px var(--mono);
  min-height: 20px;
  color: var(--accent);
}
#login-submit {
  width: 100%;
  margin-bottom: 15px;
}
#staff-login > small {
  font-size: 10px;
}
.dossier-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 32px;
}
.dossier-photo {
  width: 100%;
  border-radius: 17px;
  max-height: 670px;
  object-fit: cover;
  object-position: top;
}
.dossier-layout h3 {
  font-size: 25px;
  margin: 12px 0;
}
.dossier-layout p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.facts {
  font-size: 12px;
  margin: 24px 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.facts dt {
  color: var(--muted);
  font-size: 10px;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.past-record {
  margin-top: 15px;
  font-size: 12px;
}
.past-record summary {
  cursor: pointer;
  padding: 10px;
}
.past-record figure {
  margin: 10px 0;
}
.past-record img {
  border-radius: 12px;
}
.past-record figcaption {
  font-size: 10px;
  color: var(--muted);
}
.access-lock {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  text-align: center;
  padding: 65px 25px;
}
.access-lock img {
  width: 65px;
  margin-bottom: 20px;
}
.access-lock p {
  color: var(--muted);
  font-size: 12px;
}
.receiver {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 24px;
}
.receiver h2 {
  font-size: 17px;
  margin: 0;
}
.receiver .eyebrow {
  font-size: 8px;
}
.receiver label {
  font-size: 10px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}
.receiver output {
  font: 15px var(--mono);
  color: var(--accent);
}
.receiver input {
  padding: 0;
  accent-color: var(--accent);
}
.receiver > span {
  font-size: 10px;
  color: var(--muted);
}
.receiver > button {
  font-size: 10px;
}
.wave {
  width: 130px;
  color: var(--accent);
  stroke-dasharray: 260;
  animation: wave-flow 5s linear infinite;
}
.records-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
}
.records-toolbar label {
  font-size: 11px;
  color: var(--muted);
}
.records-toolbar select {
  margin-left: 8px;
  font-size: 11px;
}
.records-toolbar > .primary {
  margin-left: auto;
  font-size: 11px;
}
.incident-summary {
  display: flex;
  gap: 30px;
  padding: 0 5px 20px;
  font-size: 11px;
  color: var(--muted);
}
.incident-summary b {
  margin-left: 8px;
  font: 18px var(--mono);
  color: var(--text);
}
#records-workspace {
  position: relative;
  --noise: 0.03;
}
#records-workspace:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('noise.svg');
  opacity: var(--noise);
  border-radius: 24px;
  z-index: 2;
}
.case-file {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 70px 1fr 170px;
  gap: 22px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: 0 5px 20px #0001;
}
.case-tab {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.case-tab > b {
  font:
    38px 'Barlow Condensed',
    sans-serif;
  color: var(--accent);
}
.case-tab > span {
  font-size: 9px;
  color: var(--muted);
}
.case-content > small {
  font-size: 8px;
  color: var(--muted);
}
.case-content h3 {
  font-size: 16px;
  margin: 6px 0;
}
.case-content p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.case-content time {
  font: 8px var(--mono);
  color: var(--muted);
}
.case-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.case-action > button {
  font-size: 11px;
}
.stamp {
  display: block;
  color: #ba4a58;
  border: 2px solid currentColor;
  border-radius: 8px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
  font:
    600 23px/1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 1.5px;
  padding: 8px 12px;
  rotate: -9deg;
  mask-image: url('noise.svg'), linear-gradient(#000, #000);
  box-shadow: inset 0 0 0 1px #a7415040;
  animation: stamp-in 0.35s ease both;
}
.stamp small {
  display: block;
  border-top: 1px solid currentColor;
  font: 6px var(--mono);
  letter-spacing: 0.8px;
  margin-top: 5px;
  padding-top: 5px;
}
.case-file.closed {
  background: var(--accent-soft);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 25px 0;
  font-size: 11px;
}
.pagination button {
  font-size: 11px;
}
.classified-board {
  background: radial-gradient(at 90% 0%, #381b292f, transparent 45%), #0c101a;
  color: #dfdce5;
  border: 1px solid #7443546b;
  border-radius: 25px;
  padding: 30px;
  --surface: #161724;
  --surface2: #242330;
  --line: #b4819630;
  --text: #ebe3eb;
  --muted: #a795a4;
  --accent: #dc8397;
}
.classified-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 30px;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: #b96d82;
}
.classified-header .status-dot {
  background: #e86e83;
  box-shadow: 0 0 15px #cf5879;
}
.threat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.2fr);
  gap: 50px;
}
.character-grid.single {
  display: block;
  max-width: 330px;
  margin: auto;
}
.threat-intelligence h2 {
  font:
    600 95px/1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 2px;
  margin: 14px 0 25px;
}
.threat-intelligence h2 > span {
  font:
    15px 'Noto Sans KR',
    sans-serif;
  letter-spacing: 0;
  margin-left: 17px;
  color: var(--muted);
}
.threat-intelligence > p {
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.threat-class {
  margin: 28px 0;
}
.threat-class > span {
  font: 8px var(--mono);
  display: block;
  color: var(--muted);
}
.threat-class strong {
  display: block;
  font:
    22px 'Barlow Condensed',
    sans-serif;
  letter-spacing: 2px;
  margin: 8px 0 15px;
  color: #e894a5;
}
.threat-meter {
  display: flex;
  gap: 5px;
}
.threat-meter i {
  height: 6px;
  border-radius: 2px;
  background: #8d435d;
  flex: 1;
}
.threat-meter i:nth-child(n + 6) {
  background: #e87b8e;
  box-shadow: 0 0 12px #f4879622;
  animation: pulse 3s infinite;
}
.danger-button {
  border-color: #c06f8655;
  background: #b24f6922;
  color: #e1a1b0;
  font-size: 11px;
}
.terminal-log {
  font: 10px/2 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--accent);
  padding: 20px;
  background: #050912;
  border: 1px solid #9c71852b;
  border-radius: 14px;
  margin-top: 20px;
}
.tracking-section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.tracking-section button {
  font-size: 10px;
}
.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
}
.tracking-layout .seoul-map {
  height: 325px;
  border-radius: 16px;
  overflow: hidden;
}
.tracking-layout .leaflet-tile-pane {
  filter: invert(0.9) hue-rotate(155deg) saturate(0.3) brightness(0.7);
}
#sighting-log {
  padding: 0;
  margin: 0;
  list-style: none;
}
#sighting-log li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
#sighting-log li:first-child {
  padding-top: 0;
}
#sighting-log time {
  font: 8px var(--mono);
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
#sighting-log p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.footprint-marker {
  color: #eb99a8;
}
.footprint-marker svg {
  fill: #e799ab;
  width: 29px;
  filter: drop-shadow(0 0 4px #fa7f93);
}
.footprint-marker span {
  font: 8px var(--mono);
  position: absolute;
  left: 24px;
}
.danger {
  color: #d8889c;
  border-color: #92566a55;
}
dialog[data-kind='orpe'] {
  --surface: #10131e;
  --text: #eadbe3;
  --muted: #b49aa5;
  --accent: #e599ab;
  --line: #97576c55;
}
.building-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.building-layout > aside {
  position: sticky;
  top: 20px;
}
.building-floor-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding: 10px 0;
}
.building-floor-list:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80px;
  width: 200px;
  background: linear-gradient(90deg, transparent, #91b6d208, transparent);
  pointer-events: none;
}
.floor-row {
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  position: relative;
}
.floor-row > b {
  font: 12px var(--mono);
  width: 32px;
  color: var(--muted);
}
.floor-row > span:nth-of-type(2) {
  font-size: 10px;
  flex: 1;
}
.floor-row em {
  font: 7px var(--mono);
  color: var(--accent);
}
.floor-slab {
  display: flex;
  gap: 3px;
  background: linear-gradient(130deg, #70869b55, #b8cadd22);
  border-top: 2px solid #b4c8db55;
  border-bottom: 4px solid #10233133;
  transform: skewY(-4deg);
  height: 23px;
  width: 150px;
  padding: 4px 9px;
  border-radius: 3px;
  transition:
    transform 0.3s,
    background 0.3s;
  box-shadow: 5px 4px 0 #03101c22;
}
.floor-slab i {
  flex: 1;
  border: 1px solid #7e9db036;
  border-radius: 1px;
  background: #4b647c33;
}
.floor-row[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--accent);
}
.floor-row[aria-pressed='true'] .floor-slab {
  transform: skewY(-4deg) translateX(6px);
  background: #7399af7a;
  border-top-color: var(--accent);
}
.floor-row[data-floor='B1'] {
  margin-top: 20px;
}
.floor-row[data-floor='B1']:before {
  content: 'GROUND LEVEL';
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed var(--line);
  font: 6px var(--mono);
  color: var(--muted);
  text-align: right;
  padding-top: 1px;
}
.floor-row[data-underground='true'] .floor-slab {
  opacity: 0.65;
}
.building-section > p {
  font-size: 9px;
  margin: 20px 0 0;
}
.floor-detail {
  min-height: 360px;
}
.floor-number {
  font:
    600 80px/1 'Barlow Condensed',
    sans-serif;
  color: var(--accent);
  display: block;
  margin: 18px 0;
}
.floor-detail p {
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}
.floor-plan {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 50px 30px;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 22px 0;
  background: var(--bg);
  transform: perspective(800px) rotateX(15deg);
  font: 8px var(--mono);
  color: var(--muted);
}
.floor-plan div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface2);
}
.floor-plan div:first-child {
  grid-row: span 2;
}
.assignment-note {
  margin-top: 22px;
}
.assignment-note a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.assignment-note span {
  font-size: 10px;
  color: var(--muted);
}
.assignment-note > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 18px;
}
.manual-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.manual-index {
  position: sticky;
  top: 20px;
  padding: 20px;
}
.manual-index label {
  font-size: 10px;
  color: var(--muted);
}
.manual-index input {
  width: 100%;
  font-size: 10px;
  margin-top: 8px;
}
.manual-index nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
}
.manual-index nav a {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
}
.manual-index nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.guide-entry {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 8px 0 35px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  scroll-margin-top: 30px;
}
.guide-number {
  font:
    24px 'Barlow Condensed',
    sans-serif;
  color: var(--muted);
  border-top: 1px solid var(--accent);
  padding-top: 8px;
}
.guide-entry .eyebrow {
  font-size: 9px;
  margin-top: 7px;
}
.guide-entry h2 {
  font-size: 24px;
}
.guide-entry p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
.guide-entry .guide-lead {
  color: var(--text);
  font-weight: 500;
}
.guide-entry a {
  font-size: 11px;
  color: var(--accent);
}
.match-bars {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.match-bars span {
  font: 10px var(--mono);
  padding: 10px 15px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--accent-soft) var(--level), var(--surface) var(--level));
  border: 1px solid var(--line);
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
thead {
  color: var(--accent);
  background: var(--accent-soft);
}
tbody th {
  font:
    22px 'Barlow Condensed',
    sans-serif;
}
.command-list {
  display: grid;
  gap: 10px;
}
.command-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
}
.command-list code {
  color: var(--accent);
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
.command-list span {
  font-size: 10px;
  color: var(--muted);
  grid-row: 2;
}
.command-list small {
  grid-row: span 2;
  font-size: 9px;
  align-self: center;
}
.board-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.board-tabs a {
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 12px;
}
.board-tabs a.active {
  background: var(--accent);
  color: var(--bg);
}
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.board-heading h2 {
  margin: 0;
}
.board-search {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.board-search input {
  flex: 1;
}
.board-search button {
  font-size: 11px;
}
.board-list {
  border-top: 1px solid var(--line);
}
.post-row {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 18px;
  align-items: center;
  padding: 20px 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.post-row:hover {
  background: var(--accent-soft);
}
.post-row > span:first-child {
  flex: 1;
  min-width: 0;
}
.post-row b {
  font-size: 14px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
}
.post-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.post-row time {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 9px;
}
.post-count {
  font: 16px var(--mono);
  color: var(--accent);
  text-align: center;
}
.post-count small {
  font: 7px var(--mono);
}
.board-rules h3 {
  font-size: 16px;
}
.board-rules p,
.board-rules li {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.board-rules ul {
  padding-left: 17px;
}
.board-rules a {
  font-size: 11px;
  color: var(--accent);
}
.board-connection {
  margin-bottom: 22px;
  padding: 15px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 11px;
  color: var(--muted);
}
.board-form {
  display: grid;
  gap: 16px;
  min-width: min(550px, 65vw);
}
.form-row {
  display: flex;
  gap: 14px;
}
.form-row label {
  flex: 1;
  min-width: 0;
}
.board-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.board-form textarea {
  min-height: 140px;
}
.board-form input {
  width: 100%;
}
.board-form small {
  font-size: 10px;
  color: var(--muted);
}
.board-form .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
}
.consent input {
  width: auto;
  margin-top: 5px;
}
.post-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.post-body {
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  margin: 25px 0;
  overflow-wrap: anywhere;
}
.post-controls {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.post-controls button {
  font-size: 10px;
}
.comment-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comment-row p {
  font-size: 12px;
  white-space: pre-wrap;
  margin: 10px 0;
}
.comment-row small {
  font-size: 10px;
  color: var(--muted);
}
.comment-row button {
  font-size: 9px;
  padding: 4px 8px;
  margin-left: 7px;
}
.comment-form {
  margin-top: 20px;
}
.privacy-panel {
  margin-top: 35px;
  font-size: 12px;
  line-height: 2;
}
.privacy-panel h3 {
  margin-top: 22px;
}
.privacy-panel p {
  color: var(--muted);
}
.privacy-panel ul {
  color: var(--muted);
  padding-left: 20px;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 12px;
}
.form-error {
  color: #e88a98;
  font-size: 11px;
  min-height: 18px;
}
.board-status {
  font-size: 10px;
  color: var(--muted);
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes radar-orbit {
  to {
    rotate: 360deg;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@keyframes badge-shine {
  0%,
  35% {
    translate: -35% 0;
  }
  70%,
  100% {
    translate: 35% 0;
  }
}
@keyframes incoming {
  from {
    opacity: 0;
    transform: translate(15px, 14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.incoming {
  animation: incoming 0.45s cubic-bezier(0.18, 0.8, 0.25, 1) both;
}
@keyframes stamp-in {
  from {
    opacity: 0;
    scale: 1.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes wave-flow {
  to {
    stroke-dashoffset: -520;
  }
}
@media (min-width: 1600px) {
  .character-grid {
    gap: 30px;
  }
  .card-turner {
    aspect-ratio: 2/3;
  }
}
@media (max-width: 1150px) {
  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .directory-grid {
    gap: 15px;
  }
  .directory-card {
    padding: 22px;
  }
  .directory-meta {
    font-size: 9px;
  }
  .control-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  }
  .readout-body {
    gap: 16px;
  }
  .ring-gauge {
    width: 95px;
    height: 95px;
  }
  .analog-clock {
    width: 125px;
    height: 125px;
  }
  .receiver {
    gap: 16px;
  }
  .wave {
    width: 80px;
  }
  .building-layout {
    grid-template-columns: 1.4fr 1fr;
  }
  .floor-slab {
    width: 100px;
  }
  .floor-row {
    gap: 10px;
  }
  .floor-row em {
    display: none;
  }
  .manual-layout {
    gap: 25px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
}
@media (max-width: 850px) {
  main {
    padding: 30px 22px 45px;
  }
  .agency-strip {
    font-size: 8px;
    gap: 12px;
  }
  .agency-strip #access-label {
    display: none;
  }
  .site-header {
    padding: 20px 22px;
  }
  .brand b {
    font-size: 30px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .header-controls {
    gap: 4px;
  }
  .header-controls button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .site-nav {
    justify-content: flex-start;
    gap: 25px;
    padding: 0 22px;
  }
  .site-nav a {
    font-size: 11px;
    padding-block: 14px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading .access-pill {
    display: none;
  }
  .control-grid {
    grid-template-columns: 1fr;
  }
  .control-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .environment-grid {
    grid-template-columns: 1fr 1fr;
  }
  .weather-reading {
    gap: 12px;
  }
  .weather-illustration {
    width: 60px;
  }
  .weather-reading strong {
    font-size: 43px;
  }
  .weather-reading > div p {
    font-size: 9px;
  }
  .clock-panel {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    justify-content: center;
    overflow: hidden;
  }
  .clock-panel > div:first-child {
    z-index: 1;
  }
  .clock-panel .eyebrow {
    font-size: 8px;
  }
  .analog-clock {
    position: absolute;
    right: -20px;
    bottom: 25px;
    opacity: 0.3;
  }
  .clock-panel time {
    font-size: 46px;
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .directory-logo {
    height: 100px;
    margin: 5px 0 15px;
  }
  .directory-logo img {
    max-height: 100px;
  }
  .directory-card p {
    min-height: 0;
  }
  .directory-meta {
    flex-direction: row;
    justify-content: space-between;
  }
  .avatar-stack {
    justify-content: flex-start;
  }
  .avatar-stack > span {
    margin-left: 15px;
  }
  .unit-workspace {
    grid-template-columns: 1fr;
  }
  .unit-communications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .character-grid {
    gap: 17px;
  }
  .id-card-head {
    font-size: 5px;
    padding: 12px 10px;
  }
  .id-caption {
    padding: 10px 14px 6px;
  }
  .id-caption strong {
    font-size: 28px;
  }
  .id-card-foot {
    padding: 8px 14px 14px;
    font-size: 5px;
  }
  .back {
    padding: 20px !important;
  }
  .back > p {
    font-size: 10px;
  }
  .back dl {
    font-size: 9px;
  }
  .back > strong {
    font-size: 30px;
  }
  .back-emblem {
    width: 30px;
    height: 30px;
    margin: 5px 0 12px;
  }
  .personnel-heading > .muted {
    max-width: 170px;
    font-size: 9px;
    text-align: right;
  }
  .receiver .wave {
    display: none;
  }
  .threat-layout {
    gap: 25px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  }
  .threat-intelligence h2 {
    font-size: 75px;
  }
  .tracking-section > .section-title {
    flex-wrap: wrap;
  }
  .tracking-layout {
    grid-template-columns: 1fr;
  }
  .building-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
  }
  .building-section {
    padding: 18px 12px;
  }
  .floor-row > span:nth-of-type(2) {
    font-size: 9px;
  }
  .floor-slab {
    width: 65px;
  }
  .floor-row > b {
    font-size: 10px;
    width: 25px;
  }
  .assignment-note {
    padding: 20px 15px;
  }
  .assignment-note a {
    flex-direction: column;
    gap: 4px;
  }
  .manual-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }
  .manual-index {
    padding: 16px;
  }
  .guide-entry {
    grid-template-columns: 25px 1fr;
    gap: 15px;
  }
  .guide-entry p {
    font-size: 12px;
  }
  .guide-entry h2 {
    font-size: 22px;
  }
  .board-layout {
    grid-template-columns: 1fr;
  }
  .board-rules {
    display: none;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 20px;
  }
  .visitor-count {
    margin-left: 0;
  }
  .footer-links {
    margin-left: auto;
    gap: 15px;
    font-size: 10px;
  }
  .footer-top .brand {
    gap: 8px;
  }
  .case-file {
    grid-template-columns: 45px 1fr 140px;
    gap: 15px;
  }
  .stamp {
    font-size: 20px;
    padding: 7px 9px;
  }
  .receiver {
    flex-wrap: wrap;
  }
  .receiver label {
    margin-left: auto;
  }
  .dossier-layout {
    gap: 22px;
  }
}
@media (max-width: 580px) {
  main {
    padding: 25px 16px 40px;
  }
  .site-header {
    padding: 17px 16px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .header-controls {
    margin-left: auto;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-controls #sound-toggle {
    display: none;
  }
  .header-controls button {
    font-size: 9px;
    padding: 7px 9px;
  }
  .header-controls #motion-toggle {
    font-size: 8px;
  }
  .brand {
    gap: 9px;
  }
  .brand b {
    font-size: 27px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .agency-strip {
    padding: 7px 16px;
    font-size: 7px;
  }
  .site-nav {
    padding-inline: 16px;
    gap: 22px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading .description {
    font-size: 11px;
  }
  .panel {
    padding: 20px;
  }
  .control-sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .control-sidebar .readout {
    padding: 17px 13px;
    min-width: 0;
  }
  .readout h2 {
    font-size: 12px;
  }
  .readout-label > a {
    font-size: 8px;
  }
  .readout-body {
    gap: 10px;
    margin: 14px 0;
  }
  .ring-gauge {
    width: 70px;
    height: 70px;
    padding: 5px;
  }
  .ring-gauge strong {
    font-size: 29px;
  }
  .ring-gauge small {
    font-size: 5px;
    margin-top: 3px;
  }
  .grade-chart > div {
    font-size: 7px;
    gap: 5px;
    margin: 8px 0;
  }
  .readout > small {
    font-size: 8px;
  }
  .unit-lights a {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 9px 0;
  }
  .unit-lights b {
    font-size: 9px;
  }
  .unit-status {
    font-size: 8px;
    gap: 6px;
  }
  .count-readout {
    font-size: 20px;
  }
  .count-readout small {
    font-size: 9px;
  }
  .map-panel {
    padding: 20px 0 0;
  }
  .map-panel > .section-title {
    padding-inline: 20px;
  }
  .map-panel .seoul-map {
    height: 310px;
  }
  .map-legend {
    padding: 10px 12px;
    gap: 10px;
    font-size: 8px;
  }
  .map-legend button {
    font-size: 8px;
  }
  .environment-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .weather-panel {
    padding: 20px;
  }
  .weather-panel .section-title {
    flex-wrap: wrap;
    gap: 5px;
  }
  .weather-panel .eyebrow {
    font-size: 8px;
  }
  .weather-reading {
    gap: 24px;
  }
  .weather-illustration {
    width: 75px;
  }
  .weather-reading strong {
    font-size: 50px;
  }
  .weather-reading > div p {
    font-size: 10px;
  }
  .clock-panel {
    min-height: 190px;
  }
  .clock-panel time {
    font-size: 45px;
  }
  .analog-clock {
    right: 25px;
    bottom: 25px;
    opacity: 1;
    width: 115px;
    height: 115px;
  }
  .clock-panel .eyebrow {
    font-size: 7px;
  }
  .clock-panel h2 {
    font-size: 13px;
  }
  .bulletin-panel {
    padding: 20px 15px;
  }
  .bulletin {
    gap: 10px;
    padding: 12px;
  }
  .bulletin p {
    font-size: 11px;
  }
  .bulletin small {
    font-size: 9px;
  }
  .bulletin time {
    font-size: 7px;
    margin-left: 5px;
  }
  .bulletin .badge {
    display: none;
  }
  .transmission-icon {
    padding: 6px 9px;
    font-size: 12px;
  }
  .service-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-links > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
  }
  .service-links span {
    margin: 0;
    font-size: 7px;
  }
  .service-links b {
    font-size: 12px;
  }
  .directory-card {
    padding: 23px;
  }
  .directory-meta {
    flex-direction: column;
    gap: 12px;
  }
  .directory-card .unit-status {
    font-size: 10px;
  }
  .org-branches {
    gap: 7px;
    flex-wrap: wrap;
  }
  .org-branches span {
    font-size: 10px;
    padding: 9px 12px;
  }
  .organization-note {
    padding: 23px;
  }
  .wide-link {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wide-link b {
    font-size: 14px;
  }
  .unit-masthead {
    padding: 25px;
    position: relative;
    overflow: hidden;
    gap: 15px;
    min-height: 240px;
  }
  .unit-masthead > div {
    position: relative;
    z-index: 1;
  }
  .unit-masthead .eyebrow {
    font-size: 7px;
  }
  .unit-masthead h2 {
    font-size: 48px;
  }
  .unit-masthead p {
    font-size: 11px;
    max-width: 90%;
  }
  .unit-masthead > img {
    position: absolute;
    width: 140px;
    right: -20px;
    top: 5px;
    opacity: 0.15;
  }
  .unit-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    font-size: 9px;
  }
  .unit-meta .unit-status {
    font-size: 10px;
  }
  .beacon-mark {
    position: absolute !important;
    right: 10px;
    top: 10px;
    opacity: 0.1;
    width: 100px;
    font-size: 160px;
  }
  .beacon-mark span {
    display: none;
  }
  .unit-workspace {
    gap: 15px;
  }
  .unit-communications {
    display: flex;
    gap: 15px;
  }
  .unit-schedule .section-title h2 {
    font-size: 15px;
  }
  .schedule-slot {
    font-size: 10px;
    gap: 13px;
    padding: 10px 6px;
  }
  .schedule-slot time {
    font-size: 8px;
  }
  .unit-schedule .section-title .mono {
    font-size: 8px;
  }
  .personnel-heading {
    margin: 30px 0 20px;
  }
  .personnel-heading h2 {
    font-size: 17px;
  }
  .personnel-heading .eyebrow {
    font-size: 8px;
  }
  .personnel-heading > .muted {
    max-width: 135px;
    font-size: 8px;
  }
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 13px;
  }
  .card-face {
    border-radius: 18px;
  }
  .id-card-head {
    padding: 10px 9px;
    font-size: 4px;
    gap: 4px;
    letter-spacing: 0;
  }
  .id-card-head img {
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }
  .id-card-head > span:last-child {
    font-size: 6px;
  }
  .id-photo {
    margin: 0 7px;
    border-radius: 11px;
  }
  .id-caption {
    padding: 10px 11px 5px;
  }
  .id-caption small {
    font-size: 6px;
  }
  .id-caption strong {
    font-size: 27px;
  }
  .id-caption > span {
    font-size: 7px;
  }
  .id-card-foot {
    padding: 7px 11px 12px;
    gap: 6px;
    font-size: 4px;
  }
  .id-card-foot .barcode {
    width: 28px;
    height: 10px;
  }
  .id-card-foot small {
    font-size: 5px;
  }
  .redaction-label {
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .card-actions {
    padding: 10px 0;
    gap: 4px;
    flex-wrap: wrap;
  }
  .card-actions button {
    font-size: 8px;
    padding: 5px 7px;
    border-radius: 8px;
  }
  .card-actions > a {
    font-size: 7px;
  }
  .coming-soon {
    font-size: 5px;
  }
  .back {
    padding: 16px !important;
  }
  .back .eyebrow {
    font-size: 5px;
  }
  .back-emblem {
    width: 22px;
    height: 22px;
    margin: 5px 0 10px;
  }
  .back > strong {
    font-size: 28px;
  }
  .back > p {
    font-size: 8px;
    line-height: 1.75;
    margin: 8px 0;
  }
  .back dl {
    font-size: 7px;
    padding-top: 10px;
  }
  .back dt {
    font-size: 6px;
  }
  .back dd {
    margin-bottom: 8px;
  }
  .back-bottom {
    font-size: 5px;
  }
  .person-card[data-team='beacon'] .card-face {
    border-width: 1px;
    box-shadow:
      3px 4px 0 #6f89b538,
      0 10px 20px #11274422;
  }
  body[data-page='entertainment'] .directory-grid {
    grid-template-columns: 1fr;
  }
  .threat-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .classified-board {
    padding: 23px 18px;
  }
  .classified-header {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .character-grid.single {
    max-width: 265px;
  }
  .single .id-card-head {
    font-size: 7px;
    padding: 15px;
  }
  .single .id-caption strong {
    font-size: 42px;
  }
  .single .id-caption small {
    font-size: 9px;
  }
  .single .id-caption > span {
    font-size: 10px;
  }
  .single .id-card-foot {
    font-size: 7px;
    padding: 12px 15px;
  }
  .single .card-turner {
    aspect-ratio: 2/3.1;
  }
  .single .back > p {
    font-size: 12px;
  }
  .single .back dl {
    font-size: 11px;
  }
  .single .back > strong {
    font-size: 42px;
  }
  .single .back .eyebrow {
    font-size: 8px;
  }
  .single .back-bottom {
    font-size: 7px;
  }
  .single .back dt {
    font-size: 9px;
  }
  .single .card-actions button,
  .single .card-actions > a {
    font-size: 10px;
  }
  .tracking-section .section-title h2 {
    font-size: 16px;
  }
  .tracking-section .badge {
    font-size: 6px;
  }
  .tracking-section button {
    font-size: 9px;
  }
  .threat-intelligence h2 {
    font-size: 80px;
  }
  .threat-class strong {
    font-size: 23px;
  }
  .threat-intelligence .facts {
    font-size: 11px;
  }
  .terminal-log {
    font-size: 8px;
  }
  .receiver {
    padding: 20px;
    gap: 15px;
  }
  .receiver h2 {
    font-size: 15px;
  }
  .receiver > div {
    width: 100%;
  }
  .receiver label {
    margin-left: 0;
    flex: 1;
  }
  .receiver > span {
    font-size: 9px;
  }
  .receiver > button {
    font-size: 9px;
  }
  .records-toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .records-toolbar label {
    font-size: 10px;
    flex: 1;
  }
  .records-toolbar select {
    font-size: 10px;
    padding: 8px;
    margin-left: 4px;
  }
  .records-toolbar > .primary {
    font-size: 10px;
    width: 100%;
    margin-top: 4px;
  }
  .case-file {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 18px 14px;
    gap: 12px;
  }
  .case-tab > b {
    font-size: 28px;
  }
  .case-tab > span {
    font-size: 7px;
  }
  .case-content h3 {
    font-size: 14px;
  }
  .case-content p {
    font-size: 10px;
  }
  .case-content > small {
    font-size: 7px;
  }
  .case-content time {
    font-size: 7px;
  }
  .case-action {
    grid-column: 2;
    align-items: flex-end;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 5px;
  }
  .case-action button {
    font-size: 9px;
  }
  .case-action .stamp {
    margin: 6px;
    font-size: 20px;
  }
  .incident-summary {
    font-size: 10px;
    gap: 20px;
  }
  .incident-summary b {
    font-size: 16px;
  }
  .pagination {
    font-size: 10px;
    gap: 15px;
  }
  .pagination button {
    font-size: 10px;
  }
  .building-layout {
    grid-template-columns: 1fr;
  }
  .building-layout > aside {
    position: static;
  }
  .building-section {
    padding: 20px 12px;
  }
  .floor-row {
    gap: 12px;
    padding: 8px 7px;
  }
  .floor-slab {
    width: 115px;
  }
  .floor-row > b {
    width: 25px;
  }
  .floor-row > span:nth-of-type(2) {
    font-size: 10px;
  }
  .floor-row em {
    display: none;
  }
  .floor-detail {
    min-height: 0;
  }
  .floor-number {
    font-size: 65px;
  }
  .assignment-note a {
    flex-direction: row;
  }
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .manual-index {
    position: static;
    padding: 18px;
  }
  .manual-index nav {
    flex-direction: row;
    overflow: auto;
    gap: 8px;
    scrollbar-width: thin;
    padding-bottom: 7px;
  }
  .manual-index nav a {
    white-space: nowrap;
    font-size: 10px;
    padding: 5px;
  }
  .manual-index label {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
  }
  .manual-index input {
    margin-top: 0;
  }
  .guide-entry {
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding-top: 10px;
  }
  .guide-entry h2 {
    font-size: 22px;
  }
  .guide-entry p {
    font-size: 12px;
  }
  .guide-number {
    font-size: 20px;
  }
  .guide-entry .eyebrow {
    font-size: 8px;
  }
  th,
  td {
    font-size: 10px;
    min-width: 100px;
    padding: 10px;
  }
  th:first-child {
    min-width: 30px;
  }
  .command-list button {
    padding: 13px;
  }
  .command-list code {
    font-size: 9px;
  }
  .command-list span {
    font-size: 9px;
  }
  .command-list small {
    font-size: 8px;
  }
  .board-tabs {
    gap: 7px;
  }
  .board-tabs a {
    font-size: 10px;
    padding: 9px 12px;
  }
  .board-heading h2 {
    font-size: 17px;
  }
  .board-heading button {
    font-size: 10px;
    padding: 9px 13px;
  }
  .post-row {
    padding: 17px 4px;
    gap: 12px;
  }
  .post-row b {
    font-size: 13px;
  }
  .post-row small {
    font-size: 9px;
  }
  .post-row time {
    font-size: 8px;
    margin-left: 6px;
  }
  .post-count {
    font-size: 14px;
  }
  .board-form {
    min-width: 0;
  }
  .form-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .form-row label {
    min-width: 115px;
  }
  .board-form input,
  .board-form select,
  .board-form textarea {
    font-size: 13px;
  }
  .board-search input {
    font-size: 12px;
  }
  .post-meta {
    font-size: 10px;
    gap: 10px;
  }
  .post-body {
    font-size: 12px;
  }
  .privacy-panel {
    padding: 22px;
  }
  .privacy-panel p,
  .privacy-panel li {
    font-size: 11px;
  }
  .site-footer {
    padding: 25px 16px;
  }
  .footer-top {
    gap: 20px 15px;
  }
  .footer-links {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .visitor-count {
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .site-footer > p {
    font-size: 8px;
  }
  .staff-ribbon {
    font-size: 7px;
    padding: 8px 16px;
  }
  .staff-ribbon button {
    font-size: 7px;
  }
  .dossier-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dossier-photo {
    max-height: 470px;
    object-fit: contain;
    background: var(--surface2);
  }
  dialog {
    padding: 25px 20px;
    max-width: calc(100vw - 24px);
    max-height: 92svh;
    width: 100%;
  }
  dialog h2 {
    font-size: 23px;
  }
  .facts > div {
    grid-template-columns: 65px 1fr;
  }
  .facts dd {
    font-size: 11px;
  }
  #cursor-radar {
    display: none;
  }
}
@media (max-width: 360px) {
  .header-controls {
    gap: 3px;
  }
  .brand small {
    display: none;
  }
  .header-controls #motion-toggle {
    padding: 6px;
    font-size: 7px;
  }
  .header-controls #viewer-toggle {
    padding: 7px;
  }
  .ring-gauge {
    width: 59px;
    height: 59px;
  }
  .ring-gauge strong {
    font-size: 24px;
  }
  .readout-body {
    gap: 7px;
  }
  .control-sidebar .readout {
    padding: 15px 11px;
  }
  .clock-panel time {
    font-size: 38px;
  }
  .analog-clock {
    right: 15px;
    width: 100px;
    height: 100px;
  }
  .id-caption strong {
    font-size: 23px;
  }
  .id-card-head > span:last-child {
    font-size: 5px;
  }
  .card-turner {
    aspect-ratio: 2/3.3;
  }
  .floor-slab {
    width: 90px;
  }
  .floor-row > span:nth-of-type(2) {
    font-size: 9px;
  }
  .floor-row {
    gap: 10px;
  }
  .footer-links {
    gap: 8px;
  }
  .header-controls button {
    font-size: 8px;
  }
}
html[data-motion='off'] *,
html[data-motion='off'] *:before,
html[data-motion='off'] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion='off'] #cursor-radar {
  display: none;
}
html[data-motion='off'] .card-tilt {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #cursor-radar {
    display: none;
  }
  .card-tilt {
    transform: none !important;
  }
}

.manual-index,
.manual-content,
.guide-entry > div {
  min-width: 0;
}
.manual-index nav {
  max-width: 100%;
}
@media (max-width: 580px) {
  .back-emblem {
    width: 18px;
    height: 18px;
    margin: 0 0 8px;
  }
  .back > p {
    margin: 6px 0;
  }
  .back dl {
    padding-top: 8px;
  }
  .back dd {
    margin: 3px 0 7px;
  }
  .back .eyebrow {
    margin-bottom: 8px;
  }
}
@media (min-width: 1250px) {
  body[data-unit='beacon'] .character-grid,
  body[data-unit='shield'] .character-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .person-card .back > p {
    line-height: 1.75;
  }
}
[data-viewer='public'] .brief-message img {
  filter: blur(4px) grayscale(0.5);
}
@media (max-width: 580px) {
  .header-controls #sound-toggle {
    display: inline-flex;
    padding: 7px 9px;
  }
  .header-controls #sound-toggle span {
    display: none;
  }
}
/* Precision console / revision 03 */
:root {
  --radius: 22px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent, #91cbbb);
  outline-offset: 5px;
}
.brand img,
.id-card-head img,
.back-emblem,
.login-badge img {
  object-fit: cover;
  border-radius: 12px;
}
.site-header {
  gap: 20px;
}
.header-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.language-controls {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.language-controls button {
  padding: 5px 8px;
  min-height: 28px;
  font-size: 10px;
  border: 0;
  background: none;
}
.language-controls [aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
  border-radius: 16px;
}
.site-nav {
  scrollbar-width: thin;
}
.site-footer {
  padding-bottom: 150px;
}
.site-footer .footer-links button {
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.site-footer > p {
  font-size: 10px;
  opacity: 0.65;
}
.section-jumps {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.section-jumps a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}
.section-jumps a:hover {
  color: var(--text);
  background: var(--surface);
}
.merged-section {
  margin-top: 80px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.person-card {
  border-radius: 24px;
}
.card-face {
  border-radius: 24px;
}
.card-turner {
  touch-action: pan-y;
  border-radius: 24px;
}
.card-code {
  font-size: clamp(20px, 2vw, 29px) !important;
  letter-spacing: -0.05em !important;
}
.fixed-code {
  font: 10px/1.5 var(--mono, monospace);
  letter-spacing: 0.16em;
  opacity: 0.65;
}
.card-face.back {
  border-radius: 24px;
}
.person-card[data-team='beacon'] .card-face {
  border: 2px solid #63758b;
  box-shadow:
    inset 0 0 0 5px #ffffff15,
    0 15px 30px #0002;
}
.ent-directory {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ent-directory .directory-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 12px 26px;
  padding: 26px 30px;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  align-items: center;
}
.ent-directory .directory-card > .eyebrow {
  grid-column: 2;
  margin: 0;
  font-size: 9px;
}
.ent-directory .directory-logo {
  grid-column: 1;
  grid-row: 1 / 5;
  height: 110px;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff0b;
}
.ent-directory .directory-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ent-directory .directory-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}
.ent-directory h2 {
  font-size: 26px;
  letter-spacing: -0.06em;
}
.ent-directory .directory-title h2 small {
  font-size: 10px;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.ent-directory .directory-card > p {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  max-width: 58ch;
  font-size: 12px;
}
.ent-directory .directory-meta {
  grid-column: 2;
  grid-row: 4;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 8px;
  font-size: 9px;
}
.ent-directory .avatar-stack {
  grid-column: 3;
  grid-row: 1 / 5;
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 4px;
}
.ent-directory .avatar-stack img {
  width: 42px;
  height: 54px;
  margin: 0;
  border-radius: 8px;
}
.ent-directory .avatar-stack > span {
  grid-column: 1 / 3;
  margin: 2px 0 0;
  font-size: 8px;
}
.ent-directory [data-team='lucky'] {
  background: linear-gradient(115deg, #221c30, #37263b);
  color: #f1ddeb;
}
.ent-directory [data-team='obsidus'] {
  background: linear-gradient(115deg, #141b29, #222d43);
  color: #dce7ff;
}
.ent-directory .directory-card:hover {
  transform: translateX(4px);
}
[data-unit='lucky'] .unit-masthead,
[data-unit='obsidus'] .unit-masthead {
  padding: 26px 30px;
  min-height: 0;
}
[data-unit='lucky'] .unit-masthead h2,
[data-unit='obsidus'] .unit-masthead h2 {
  font-size: clamp(26px, 4vw, 48px);
}
[data-unit='lucky'] .unit-masthead > img,
[data-unit='obsidus'] .unit-masthead > img {
  max-height: 100px;
}
.unit-workspace {
  align-items: start;
}
.unit-schedule {
  padding: 26px;
  background: var(--surface);
  border-radius: 24px;
}
.unit-schedule .section-title h2 {
  font-size: 16px;
}
.day-track {
  height: 7px;
  margin: 22px 0 26px;
  overflow: visible;
  border-radius: 5px;
}
.day-track span {
  border-radius: 4px;
  opacity: 0.6;
}
.day-track > i {
  height: 17px;
  top: -5px;
  box-shadow: 0 0 8px #8ae3c6;
}
.schedule-slots {
  position: relative;
  padding-left: 4px;
}
.schedule-slot {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 28px;
  gap: 12px;
  padding: 11px 12px 11px 20px;
  border: 0;
  border-radius: 12px;
  font-size: 11px;
}
.schedule-slot:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}
.schedule-slot:not(:last-child):after {
  content: '';
  position: absolute;
  left: 4px;
  top: 25px;
  bottom: -11px;
  border-left: 1px solid var(--line);
}
.schedule-slot.current {
  background: #58be9614;
  color: var(--text);
}
.schedule-slot.current:before {
  background: #51ba8e;
  border-color: #51ba8e;
  box-shadow: 0 0 10px #51ba8e;
}
.schedule-slot time {
  font-size: 10px;
  color: var(--muted);
}
.schedule-slot i {
  font-size: 8px;
  align-self: center;
  color: #50b88a;
}
.unit-schedule > p {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 20px;
}
.briefing {
  min-height: 235px;
  border-radius: 24px;
}
.brief-message {
  border: 0;
  padding: 14px 0;
}
.brief-message p {
  font-size: 12px;
  line-height: 1.9;
}
.floating-comms {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: 330px;
  max-width: calc(100vw - 32px);
  z-index: 450;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 15px 60px #0004;
  background: var(--surface);
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.channel-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.channel-switch label {
  display: flex;
  gap: 10px;
  align-items: center;
}
.channel-switch select {
  min-height: 26px;
  padding: 3px 20px 3px 8px;
  font-size: 9px;
}
.channel-switch button {
  min-height: 26px;
  padding: 0 7px;
  border: 0;
}
.floating-comms .messenger-launch {
  padding: 12px 16px;
  background: transparent;
  border: 0;
  min-height: 60px;
  border-radius: 0;
}
.floating-comms .messenger-launch b {
  font-size: 11px;
}
.floating-comms .messenger-launch small {
  font-size: 8px;
}
.floating-comms .messenger-icon {
  width: 35px;
  height: 35px;
  background: url('art/community-icon.webp') center/cover;
  font-size: 0;
  border-radius: 10px;
}
.floating-comms .messenger-body {
  border-top: 1px solid var(--line);
  max-height: 60vh;
  overflow: auto;
}
.floating-comms .chat-log {
  max-height: 280px;
}
.floating-comms .chat-form {
  padding: 8px;
}
.floating-comms .chat-form input {
  min-width: 0;
}
.floating-comms.minimized {
  width: 190px;
}
.floating-comms.minimized #floating-messenger {
  display: none;
}
.log-terminal {
  background: #11191c;
  color: #b8d4c5;
  padding: 20px;
  border: 1px solid #50605a;
  border-radius: 16px;
  box-shadow: inset 0 0 50px #0008;
}
.terminal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font: 9px monospace;
  border-bottom: 1px solid #ffffff20;
  padding-bottom: 12px;
}
.activity-lines {
  list-style: none;
  padding: 0;
  max-height: 55vh;
  overflow: auto;
}
.activity-lines li {
  display: grid;
  grid-template-columns: 65px 70px 1fr;
  gap: 9px;
  font: 11px/1.8 monospace;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff08;
}
.activity-lines time {
  opacity: 0.6;
}
.activity-lines b {
  color: #7daa94;
  font-size: 9px;
}
.receiver {
  background: linear-gradient(125deg, #222a2c, #131819) !important;
  color: #c8d8ca;
  border: 1px solid #60625e;
  border-radius: 20px;
  box-shadow:
    inset 0 2px 3px #fff1,
    inset 0 -8px 15px #0007;
  position: relative;
}
.receiver:before,
.receiver:after {
  content: '+';
  position: absolute;
  top: 9px;
  color: #a5aaa3;
  line-height: 12px;
  background: #0004;
  border-radius: 50%;
  font: 11px monospace;
  width: 12px;
  height: 12px;
  text-align: center;
}
.receiver:before {
  left: 9px;
}
.receiver:after {
  right: 9px;
}
.receiver label {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 6px;
  font: 10px monospace;
}
.receiver label output {
  font-size: 23px;
  letter-spacing: 0.08em;
  color: #c8e8ae;
  text-shadow: 0 0 12px #9dc07d55;
}
.receiver input[type='range'] {
  grid-column: 1 / 3;
  max-width: 220px;
  accent-color: #a2b094;
}
.tuning-knob {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  cursor: ns-resize;
  touch-action: none;
  grid-row: 2 / 4;
  grid-column: 1;
  overflow: hidden;
}
.tuning-knob img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 50%;
}
.tuning-knob i {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: repeating-conic-gradient(#343a3b 0 3deg, #1b2223 3deg 9deg);
  box-shadow:
    inset 0 0 0 3px #adb3ad55,
    0 3px 10px #000;
  transform: rotate(var(--dial, -10deg));
}
.tuning-knob i:after {
  content: '';
  position: absolute;
  top: 3px;
  left: calc(50% - 1px);
  width: 2px;
  height: 15px;
  background: #e5e8dc;
}
.tuning-knob > span {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font: 5px monospace;
  color: #fff;
}
.receiver .wave {
  width: 120px;
  opacity: 0.65;
}
.case-file {
  border-radius: 15px;
  transition:
    transform 0.22s,
    border-color 0.22s;
  cursor: pointer;
}
.case-file:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}
.case-content h3 {
  margin-top: 6px;
}
.case-content p {
  font-size: 12px;
}
.stamp {
  font-size: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 105px;
  height: 92px;
  background: url('art/resolved-seal.webp') center/contain no-repeat;
  mix-blend-mode: screen;
}
.stamp small {
  display: none;
}
[data-theme='light'] .stamp {
  mix-blend-mode: multiply;
}
.record-dossier {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 18px;
  animation: file-open 0.45s ease both;
}
.dossier-strip {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  font: 9px monospace;
}

.record-dossier h3 {
  font-size: 24px;
}
.record-dossier .facts {
  font-size: 12px;
}
.typed-report {
  min-height: 60px;
  font: 13px/1.9 monospace;
  white-space: pre-wrap;
}
.typed-report:after {
  content: '▋';
  color: #8dc49d;
  animation: blink 1s steps(2) infinite;
}
.record-seal {
  display: block;
  width: 110px;
  border-radius: 50%;
  margin-left: auto;
  transform: rotate(-12deg);
}
.pending-tag {
  font: 9px monospace;
  color: #da8b7a;
}
.footprint-marker img {
  width: 24px;
  height: 27px;
  object-fit: cover;
  mix-blend-mode: screen;
}
.emergency-stack {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 800;
  width: 310px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emergency-window {
  display: grid;
  gap: 8px;
  background: #25181c;
  color: #f0d9dc;
  border: 1px solid #a13e52;

  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 10px 40px #0005;
  animation: alert-in 0.3s ease both;
}
.emergency-window .eyebrow {
  color: #f66f84;
  margin: 0;
}
.emergency-window strong {
  font-size: 14px;
}
.emergency-window small {
  font: 9px monospace;
  opacity: 0.6;
}
.emergency-stack > button {
  background: #9c3448;
  color: white;
  border: 0;
}
.detailed-plan {
  display: block !important;
  position: relative;
  aspect-ratio: 1.25;
  min-height: 300px;
  background-color: #101c26 !important;
  background-image:
    linear-gradient(#658bac0d 1px, transparent 1px),
    linear-gradient(90deg, #658bac0d 1px, transparent 1px) !important;
  background-size: 15px 15px !important;
  border: 1px solid #526575;
  border-radius: 12px;
  margin: 20px 0;
  overflow: hidden;
}
.detailed-plan .plan-room {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 8px;
  background: #203646;
  color: #c0d4df;
  border: 1px solid #7d9cb388;
  min-height: 0;
  border-radius: 3px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.4;
}
.plan-room small {
  font: 7px monospace;
  opacity: 0.55;
}
.plan-room:hover {
  background: #34556b;
  box-shadow: inset 0 0 0 1px #b7dcea;
}
.plan-room i {
  position: absolute;
  bottom: -1px;
  right: 14%;
  width: 10px;
  height: 2px;
  background: #101c26;
}
.plan-compass {
  position: absolute;
  right: 7px;
  bottom: 4px;
  font: 9px monospace;
  color: #a6bdd0;
}
.plan-scale {
  position: absolute;
  bottom: 9px;
  left: 12px;
  font: 7px monospace;
  color: #97b6c7;
}
.plan-corridor {
  position: absolute;
  inset: 10px 10px 40px;
  border: 1px dashed #7794a533;
  border-radius: 4px;
}
.detailed-plan .plan-locked {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 10px monospace;
  color: #829da9;
  background: none;
  border: 0;
}
.board-layout {
  display: block;
  max-width: 1000px;
  margin: auto;
}
.board-heading {
  padding: 20px 0;
}
.board-heading h2 {
  font-size: 20px;
}
.board-heading:before {
  content: '';
  width: 40px;
  height: 40px;
  background: url('art/community-icon.webp') center/cover;
  border-radius: 12px;
  margin-right: 14px;
  flex-shrink: 0;
}
.board-heading h2 {
  margin-right: auto;
}
.board-connection {
  font-size: 10px;
}
#post-like[aria-pressed='true'] {
  color: #df6f99;
  border-color: #df6f99;
}
.post-row {
  border-radius: 14px;
}
.post-count {
  min-width: 55px;
}
@keyframes file-open {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(-4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 850px) {
  .ent-directory .directory-card {
    grid-template-columns: 95px minmax(0, 1fr);
    padding: 22px;
    gap: 10px 18px;
  }
  .ent-directory .avatar-stack {
    grid-row: 5;
    grid-column: 2;
    display: flex;
  }
  .ent-directory .avatar-stack img {
    width: 30px;
    height: 38px;
  }
  .ent-directory .avatar-stack > span {
    align-self: center;
  }
  .site-header {
    align-items: flex-start;
  }
  .receiver {
    flex-wrap: wrap;
  }
  .receiver .wave {
    display: none;
  }
}
@media (max-width: 580px) {
  .floating-comms {
    right: 12px;
    bottom: 12px;
    width: 280px;
  }
  .floating-comms:not(:has(.messenger-launch[aria-expanded='true'])) {
    width: 215px;
  }
  .channel-switch label {
    font-size: 8px;
  }
  .floating-comms .messenger-launch {
    min-height: 48px;
    padding: 9px;
  }
  .floating-comms .messenger-icon {
    width: 27px;
    height: 27px;
  }
  .floating-comms .messenger-launch b {
    font-size: 10px;
  }
  .floating-comms .messenger-launch small {
    font-size: 7px;
  }
  .language-controls {
    width: max-content;
  }
  .language-controls button {
    font-size: 9px;
    padding: 4px 7px;
  }
  .header-controls {
    gap: 5px;
  }
  .ent-directory .directory-card {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 17px;
    gap: 8px 12px;
  }
  .ent-directory .directory-logo {
    height: 75px;
    padding: 0;
  }
  .ent-directory h2 {
    font-size: 21px;
  }
  .ent-directory .directory-card > p {
    font-size: 11px;
  }
  .ent-directory .directory-meta {
    font-size: 8px;
    flex-wrap: wrap;
  }
  .schedule-slot {
    grid-template-columns: 86px minmax(0, 1fr) 20px;
    gap: 5px;
    font-size: 10px;
    padding-left: 14px;
  }
  .schedule-slot time {
    font-size: 9px;
  }
  .unit-schedule {
    padding: 18px;
  }
  .record-dossier {
    padding: 16px;
  }
  .dossier-strip {
    font-size: 8px;
  }
  .emergency-stack {
    right: 12px;
    top: 80px;
  }
  .detailed-plan {
    min-height: 240px;
  }
  .detailed-plan .plan-room {
    font-size: 8px;
    padding: 4px;
  }
  .activity-lines li {
    grid-template-columns: 53px 50px 1fr;
    font-size: 9px;
    gap: 5px;
  }
  .activity-lines b {
    font-size: 8px;
  }
  .log-terminal {
    padding: 12px;
  }
  .board-heading h2 {
    font-size: 16px;
  }
  .board-heading:before {
    display: none;
  }
}
[data-motion='off'] *,
[data-motion='off'] *:before,
[data-motion='off'] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  .emergency-window,
  .record-dossier,
  .typed-report:after {
    animation: none !important;
  }
}
body[data-page='entertainment'] .ent-directory .directory-logo {
  height: 100px;
}
.ent-directory .directory-card > p {
  min-height: 0;
}
.ent-directory .directory-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.ent-directory .directory-card {
  min-height: 205px;
}
.building-layout > * {
  min-width: 0;
}
.building-layout .floor-row {
  min-width: 0;
}
.building-layout .floor-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .building-layout .floor-row {
    grid-template-columns: 25px 68px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 4px;
  }
  .building-layout .floor-row em {
    display: none;
  }
  .building-layout .section-title {
    flex-wrap: wrap;
  }
  .building-layout .floor-row > span:nth-of-type(2) {
    font-size: 9px;
  }
  .ent-directory .directory-card {
    min-height: 0;
  }
  .ent-directory .directory-meta {
    gap: 6px;
  }
  body[data-page='entertainment'] .ent-directory .directory-logo {
    height: 75px;
  }
  .merged-section .page-heading h2 {
    font-size: 25px;
  }
}
.detailed-plan {
  transform: none;
  width: 100%;
  padding: 0;
  min-width: 0;
}
.plan-room span {
  overflow-wrap: anywhere;
}
html[lang='en'] .plan-room span {
  font-size: 9px;
  line-height: 1.2;
}
html[lang='en'] .schedule-slot {
  grid-template-columns: 100px minmax(0, 1fr) 28px;
}
@media (max-width: 580px) {
  html[lang='en'] .schedule-slot {
    grid-template-columns: 84px minmax(0, 1fr) 20px;
  }
  .plan-room small {
    display: none;
  }
  html[lang='en'] .plan-room span {
    font-size: 7px;
  }
}
.person-title {
  display: flex !important;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.person-title .fixed-code {
  font-size: 9px;
  opacity: 0.65;
}

/* Archive edition: ruled records, matte credentials, restrained signal colours. */
:root {
  --bg: #111313;
  --surface: #191c1c;
  --surface2: #222727;
  --text: #e4e3dc;
  --muted: #a1aaa5;
  --line: #ced6c52b;
  --accent: #b7cbbf;
  --accent-soft: #b7cbbf0c;
  --nav: #141717;
  --radius: 12px;
  --shadow: 0 12px 32px #0002;
}
body[data-viewer='staff'] {
  --bg: #0c1210;
  --surface: #121d19;
  --surface2: #1b2923;
  --line: #b1d8bd30;
  --accent: #a2d6bb;
  --nav: #101914;
  background-image: none;
}
:root[data-theme='light'],
:root[data-theme='light'] body[data-viewer='staff'] {
  --bg: #eae9e2;
  --surface: #f8f6ee;
  --surface2: #dfdfd5;
  --text: #202824;
  --muted: #5b6961;
  --line: #273c322c;
  --accent: #38624e;
  --accent-soft: #38624e0a;
  --nav: #f5f3eb;
}
.panel {
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  border: 1px solid var(--line);
}
.page-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.page-heading h1 {
  letter-spacing: -1.5px;
}
.eyebrow {
  letter-spacing: 1.7px;
}
.directory-card,
.ent-directory .directory-card {
  border-radius: 12px;
  padding: 28px;
  background: var(--surface);
  min-height: 0;
  box-shadow: none;
  border-top: 2px solid var(--accent);
}
.directory-title {
  margin: 24px 0 18px;
}
.directory-title h2 {
  font-size: 28px;
}
.directory-card:before,
.directory-card:after {
  display: none;
}
body[data-page='entertainment'] .ent-directory {
  gap: 24px;
}
body[data-page='entertainment'] .ent-directory .directory-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  min-height: 0;
  background: var(--surface);
}
.unit-masthead {
  min-height: 0;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);

  box-shadow: none;
}
.unit-masthead h2 {
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 2px;
  margin: 10px 0;
}
.unit-masthead:before,
.unit-masthead:after {
  display: none;
}
.unit-schedule {
  padding: 24px;
}
.unit-workspace {
  gap: 20px;
}
.shift-focus {
  padding: 20px 0 18px;
  border-top: 1px solid var(--line);
}
.shift-focus h3 {
  font-size: 24px;
  margin: 12px 0;
  font-weight: 500;
}
.shift-focus > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.shift-focus time {
  font: 16px var(--mono);
  color: var(--text);
}
progress {
  accent-color: var(--accent);
  width: 100%;
  height: 4px;
  border: 0;
}
.shift-focus progress {
  margin-top: 20px;
}
.day-track {
  margin: 0 0 18px;
  height: 4px;
  opacity: 0.6;
}
.schedule-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.schedule-slot {
  display: grid;
  grid-template-columns: 22px 58px 1fr 26px;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 13px 0;
  text-align: left;
  color: var(--muted);
  min-height: 68px;
  box-shadow: none;
}
.schedule-slot time {
  font: 12px var(--mono);
  display: block;
}
.schedule-slot time small {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  margin-top: 4px;
}
.schedule-slot > span:not(.slot-index) {
  font-size: 12px;
}
.schedule-slot .slot-index {
  font: 9px var(--mono);
  opacity: 0.45;
}
.schedule-slot i {
  font: 8px var(--mono);
  position: static;
}
.schedule-slot.current {
  background: none;
  color: #8fbd99;
}
.schedule-slot[aria-pressed='true'] {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}
.schedule-slot:hover {
  background: var(--accent-soft);
}
.bulletin,
.brief-message {
  width: 100%;
  text-align: left;
  color: var(--text);
  font: inherit;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  cursor: pointer;
}
.bulletin:hover,
.brief-message:hover {
  background: var(--accent-soft);
}
.bulletin[data-read='true'],
.brief-message[data-read='true'] {
  opacity: 0.6;
}
.transmission-reader {
  padding: 12px;
}
.transmission-progress {
  padding: 24px 0;
  font: 11px var(--mono);
}
.transmission-progress progress {
  display: block;
  margin-top: 18px;
}
#transmission-body p {
  font-size: 16px;
  line-height: 2;
  padding: 16px 0 28px;
  white-space: pre-wrap;
}
.receiver {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 24px;
  background: #282a22;
  border: 3px solid #444739;
  border-radius: 6px;
  color: #d5cfaf;
  box-shadow:
    inset 0 2px 6px #0008,
    0 3px 0 #0006;
  padding: 22px;
}
.receiver:before,
.receiver:after,
.receiver .wave {
  display: none;
}
.receiver label {
  display: block;
  color: #bdb998;
  font-size: 10px;
  min-width: 0;
}
.receiver label output {
  display: block;
  color: #d9e79d;
  font: 30px var(--mono);
  letter-spacing: 2px;
  margin: 8px 0;
}
.receiver input[type='range'] {
  display: block;
  width: 100%;
  height: 24px;
  accent-color: #b3bf76;
  cursor: ew-resize;
}
.receiver > span {
  color: #b7c18b;
  font: 10px var(--mono);
}
.receiver > button {
  color: #c5d299;
  border-color: #65724a;
  background: transparent;
}
.receiver .eyebrow {
  color: #aaa98b;
}
.record-dossier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid #98625e;
  border-radius: 3px;
  padding: 26px;
  box-shadow: 4px 4px 0 var(--bg);
  background-image: linear-gradient(90deg, transparent 49.8%, #bbbba907 50%, transparent 50.2%);
}
.record-dossier .facts > div {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.record-dossier h3 {
  font-size: 30px;
  font-weight: 500;
}
.dossier-strip {
  letter-spacing: 1px;
}
.report-controls {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.report-controls button {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 4px;
}
.typed-report {
  min-height: 100px;
  line-height: 2.2;
}
.case-file {
  border-radius: 5px;
  box-shadow: 3px 3px 0 #0002;

}
.card-face {
  border-radius: 16px;
}
.card-face:after {
  background-image: none;
}
.character-card {
  filter: none;
}
.record-seal {
  opacity: 0.8;
}
@media (max-width: 760px) {
  .schedule-slots {
    grid-template-columns: 1fr;
  }
  .unit-schedule {
    padding: 18px;
  }
  .unit-masthead {
    padding: 22px;
  }
  .receiver {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .receiver > div {
    grid-column: 1/-1;
  }
  .receiver label {
    grid-column: 1/-1;
  }
  .record-dossier {
    padding: 16px;
  }
  .shift-focus > div {
    flex-direction: column;
  }
  .directory-card,
  body[data-page='entertainment'] .ent-directory .directory-card {
    padding: 22px;
  }
  .transmission-reader {
    padding: 0;
  }
}
.schedule-slot:before,
.schedule-slot:after {
  display: none;
}
.shift-focus progress {
  appearance: none;
  background: var(--line);
  border-radius: 0;
}
.shift-focus progress::-webkit-progress-bar {
  background: var(--line);
}
.shift-focus progress::-webkit-progress-value {
  background: var(--accent);
}
