/* ==========================================================================
   ОУПР СПб — Официальный веб-узел в аутентичном стиле Рунета 2000-2004 гг.
   ========================================================================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #000614;
  /* Классический тайловый звездный фон 2000-х */
  background-image:
    radial-gradient(1px 1px at 18px 24px, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 74px 86px, #a9d0ff 100%, transparent),
    radial-gradient(1.5px 1.5px at 132px 44px, #00ffcc 100%, transparent),
    radial-gradient(1px 1px at 166px 140px, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 42px 172px, #ffee99 100%, transparent),
    radial-gradient(1px 1px at 112px 190px, #88b8ff 100%, transparent);
  background-size: 200px 200px;
  color: #dce8ff;
  font-family: Tahoma, Verdana, "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

a, .retro-link {
  color: #5cd6ff;
  text-decoration: underline;
  cursor: pointer;
}

a:hover, .retro-link:hover {
  color: #ffff66;
  background-color: #102a54;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #7dff9b;
  background: #020c1a;
  padding: 0 3px;
  border: 1px solid #1c3a5c;
}

.hidden {
  display: none !important;
}

.center-text { text-align: center; }
.right-text { text-align: right; }
.w-full { width: 100%; }

.txt-green { color: #39ff74; }
.txt-cyan { color: #5ce6ff; }
.txt-amber { color: #ffcc33; }
.txt-magenta { color: #ff66dd; }

.dot-cyan { color: #33eeff; }
.dot-green { color: #39ff74; }
.dot-amber { color: #ffcc33; }
.dot-magenta { color: #ff66dd; }

/* Звездный шлейф курсора */
#star-cursor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.cursor-star {
  position: fixed;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 13px;
  pointer-events: none;
  user-select: none;
  animation: star-fade 0.65s linear forwards;
}

@keyframes star-fade {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(0, 14px) scale(0.5); }
}

/* Внешняя классическая рамка сайта 980px */
.page-wrapper {
  width: 980px;
  max-width: 100%;
  margin: 10px auto 22px auto;
  background: #071226;
  border: 2px outset #5e84b8;
  box-shadow: 0 0 0 1px #000000, 0 0 24px rgba(0, 140, 255, 0.22);
}

/* ================= ВЕРХНЯЯ СЛУЖЕБНАЯ ПОЛОСА ================= */
.top-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #1b3158 0%, #0d1c38 100%);
  border-bottom: 1px solid #4c72a8;
  font-size: 11px;
  color: #bfd6ff;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sep {
  color: #4b6d9e;
}

.led-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid #000;
}

.led-green {
  background: #00ff55;
  box-shadow: 0 0 5px #00ff55;
}

.util-link {
  background: none;
  border: none;
  padding: 0 2px;
  font-family: inherit;
  font-size: 11px;
  color: #9dd4ff;
  cursor: pointer;
  text-decoration: underline;
}

.util-link:hover {
  color: #ffff66;
}

.util-link.active-toggle {
  color: #39ff74;
  font-weight: bold;
}

/* ================= ШАПКА ПОРТАЛА ================= */
.site-header {
  display: grid;
  grid-template-columns: 146px 1fr 205px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(90, 150, 255, 0.04) 0px,
      rgba(90, 150, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, #0b1e42 0%, #061028 60%, #0b1c3d 100%);
  border-bottom: 2px groove #5e84b8;
}

.header-emblem-cell {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #2b4a78;
  background: #040d21;
}

.emblem-frame {
  width: 108px;
  height: 108px;
  border: 2px inset #6e95c9;
  background: #000b29;
  padding: 2px;
}

.emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emblem-caption {
  margin-top: 5px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.7px;
  color: #ffcc55;
}

.header-title-cell {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #2b4a78;
}

.header-kicker {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: #79b8ff;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.site-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-abbr {
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: #e9f5ff;
  text-shadow: 2px 2px 0 #000000, 0 0 10px rgba(70, 210, 255, 0.65);
  border: 2px outset #6d94c9;
  background: linear-gradient(180deg, #274d8a 0%, #10254a 100%);
  padding: 4px 10px;
  white-space: nowrap;
}

.title-full {
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
}

.header-motto {
  margin-top: 8px;
  padding: 3px 7px;
  background: #030b1c;
  border: 1px inset #385a8c;
  color: #39ff74;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.header-status-cell {
  padding: 8px;
  background: #050e21;
  display: flex;
  align-items: center;
}

.retro-monitor {
  width: 100%;
  background: #020c08;
  border: 2px inset #5e84b8;
  padding: 6px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #88ffb0;
}

.monitor-title {
  text-align: center;
  font-weight: bold;
  color: #000;
  background: #39ff74;
  padding: 1px 4px;
  margin-bottom: 5px;
  font-size: 10px;
}

.monitor-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #154229;
  padding: 1px 0;
}

.blink-amber {
  color: #ffcc00;
  animation: blink-step 1.2s steps(2, start) infinite;
}

@keyframes blink-step {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.mini-ufo-anim {
  margin-top: 5px;
  height: 16px;
  overflow: hidden;
  border-top: 1px solid #164429;
  position: relative;
}

.ufo-sprite {
  position: absolute;
  top: 1px;
  left: 0;
  color: #5ce6ff;
  font-weight: bold;
  font-size: 11px;
  animation: ufo-patrol 4.5s linear infinite alternate;
}

@keyframes ufo-patrol {
  0% { left: 2px; }
  100% { left: calc(100% - 58px); }
}

/* ================= БЕГУЩАЯ СТРОКА ================= */
.marquee-bar {
  display: flex;
  align-items: stretch;
  background: #000000;
  border-bottom: 2px ridge #5e84b8;
  height: 24px;
}

.marquee-label {
  background: #aa0000;
  color: #ffff00;
  font-weight: bold;
  font-size: 11px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ff6666;
  animation: blink-step 1s steps(2, start) infinite;
  white-space: nowrap;
}

.marquee-viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  color: #ffcc33;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  padding-left: 100%;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ================= 3-КОЛОНОЧНАЯ ТАБЛИЧНАЯ СЕТКА ================= */
.main-grid {
  display: grid;
  grid-template-columns: 192px 1fr 188px;
  gap: 8px;
  padding: 8px;
  background: #061024;
  align-items: start;
}

/* Боковые коробки */
.retro-box {
  background: #0c1b36;
  border: 2px outset #4a6ea0;
  margin-bottom: 8px;
}

.box-header {
  background: linear-gradient(180deg, #355d96 0%, #1d3a68 50%, #142c52 51%, #1b3866 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 11px;
  text-align: center;
  padding: 4px 6px;
  border-bottom: 1px solid #5e84b8;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.4px;
}

.box-body {
  padding: 7px;
  font-size: 11px;
}

/* Главное меню */
.main-nav {
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 3px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  text-align: left;
  padding: 5px 6px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #d8ebff;
  background: linear-gradient(180deg, #213d6e 0%, #13284d 100%);
  border: 2px outset #5c82b8;
  cursor: pointer;
}

.nav-btn:hover {
  background: linear-gradient(180deg, #2e5699 0%, #1c3a6e 100%);
  color: #ffff66;
}

.nav-btn.active {
  background: linear-gradient(180deg, #0b2447 0%, #17407a 100%);
  border: 2px inset #79a7e3;
  color: #39ff74;
}

.nav-btn-alert {
  background: linear-gradient(180deg, #7d2020 0%, #4a0e0e 100%);
  border-color: #c75454;
  color: #ffea8a;
}

.nav-btn-alert:hover {
  background: linear-gradient(180deg, #a62b2b 0%, #631414 100%);
  color: #ffffff;
}

.nav-btn-alert.active {
  background: #520c0c;
  border: 2px inset #ff8888;
  color: #ffff00;
}

.nav-bullet {
  color: #5ce6ff;
  font-weight: bold;
}

.badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 3px;
  border: 1px solid #000;
  line-height: 1;
}

.badge-new {
  background: #cc0000;
  color: #ffff00;
  animation: blink-step 1.1s steps(2, start) infinite;
}

.badge-live {
  background: #007a29;
  color: #9effb8;
}

/* Шкала активности НЛО */
.threat-meter {
  text-align: center;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #355685;
}

.threat-label {
  color: #b7d2ff;
  margin-bottom: 4px;
}

.threat-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.t-bar {
  display: block;
  padding: 2px 0;
  font-size: 10px;
  font-weight: bold;
  border: 1px inset #3d5b85;
  background: #071224;
  color: #4d6485;
}

.t-bar.t-green.on { background: #198038; color: #fff; }
.t-bar.t-lime.on { background: #6b9e1e; color: #fff; }
.t-bar.t-yellow.on { background: #d4a600; color: #000; }
.t-bar.pulse { animation: blink-step 1.3s steps(2, start) infinite; }

.threat-status {
  font-weight: bold;
  color: #ffcc33;
  font-size: 10px;
}

.sector-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.sector-table th, .sector-table td {
  border: 1px solid #26426e;
  padding: 2px 4px;
}

.sector-table th {
  background: #142a4f;
  color: #a8caff;
  text-align: left;
}

.st-warn { color: #ff7070; font-weight: bold; text-align: right; }
.st-mid { color: #ffcc33; font-weight: bold; text-align: right; }
.st-ok { color: #39ff74; text-align: right; }

/* Дежурная часть */
.duty-box p {
  margin: 0 0 6px 0;
}

.duty-box p:last-child {
  margin-bottom: 0;
}

.phone-num {
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  color: #ffff66;
}

.icq-online {
  color: #39ff74;
  font-size: 13px;
}

/* Счетчик и 88x31 кнопки */
.counter-label {
  color: #a6c4f0;
  margin-bottom: 4px;
}

.led-counter {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #00ff44;
  background: #000000;
  border: 2px inset #6080b0;
  padding: 2px 8px;
  text-shadow: 0 0 6px #00ff44;
}

.counter-sub {
  margin-top: 4px;
  font-size: 10px;
  color: #9cb8e3;
}

.retro-hr {
  border: none;
  border-top: 1px solid #1e3b68;
  border-bottom: 1px solid #4d73ad;
  margin: 8px 0;
}

.buttons-88x31 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.btn88 {
  width: 88px;
  height: 31px;
  border: 1px outset #cccccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Verdana, Tahoma, sans-serif;
  line-height: 1.1;
  user-select: none;
  cursor: default;
}

.b88-top { font-size: 8px; font-weight: bold; }
.b88-bot { font-size: 8px; font-weight: bold; }

.btn88-rambler { background: linear-gradient(180deg, #1b4ea8 0%, #0d2b66 100%); color: #ffffff; border-color: #6ea2ff; }
.btn88-rambler .b88-bot { color: #ffdd33; }

.btn88-mail { background: linear-gradient(180deg, #ffa800 0%, #d46a00 100%); color: #001c54; border-color: #ffe08a; }
.btn88-mail .b88-bot { background: #002b7a; color: #ffffff; width: 100%; text-align: center; padding: 1px 0; margin-top: 2px; }

.btn88-ie { background: #d4d0c8; color: #000080; border: 2px outset #ffffff; }
.btn88-ie .b88-top { color: #333333; font-size: 7px; }

.btn88-notepad { background: #ffffff; color: #000000; border: 2px outset #d4d0c8; }
.btn88-notepad .b88-top { color: #0055aa; font-size: 7px; }
.btn88-notepad .b88-bot { color: #cc0000; }

.btn88-uforing { background: #021208; color: #39ff74; border: 1px solid #39ff74; }
.btn88-uforing .b88-top { color: #ffff66; }

/* ================= ЦЕНТРАЛЬНЫЕ ПАНЕЛИ ================= */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.retro-panel {
  background: #0c1b36;
  border: 2px outset #557bb0;
  margin-bottom: 10px;
}

.panel-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  background: linear-gradient(180deg, #3c67a6 0%, #204275 50%, #153059 51%, #1f4173 100%);
  border-bottom: 1px solid #6b95cf;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 1px 1px 0 #000;
}

.panel-tag {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #ffff88;
  background: #09172e;
  border: 1px solid #4e73a8;
  padding: 1px 5px;
  white-space: nowrap;
}

.panel-content {
  padding: 10px 11px;
}

.welcome-flex {
  display: grid;
  grid-template-columns: 1fr 174px;
  gap: 12px;
  align-items: start;
}

.welcome-text p {
  margin: 0 0 8px 0;
}

.featured-photo-box {
  background: #050d1e;
  border: 2px inset #4d72a6;
  padding: 5px;
  text-align: center;
}

.featured-caption {
  font-size: 9px;
  font-weight: bold;
  color: #ffcc33;
  margin-bottom: 4px;
}

.featured-thumb {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border: 1px solid #4d72a6;
  display: block;
  cursor: pointer;
}

.featured-thumb:hover {
  border-color: #ffff66;
}

.featured-meta {
  margin-top: 4px;
  font-size: 10px;
  color: #b0ccf5;
}

.quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #35578a;
}

/* Кнопки Windows 98 / 2000 */
.win98-btn {
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #000000;
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 4px 10px;
  cursor: pointer;
}

.win98-btn:hover {
  background: #e2dfd8;
}

.win98-btn:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 5px 9px 3px 11px;
}

.win98-btn-primary {
  background: #ffe08a;
  color: #2b0000;
}

.win98-btn-primary:hover {
  background: #ffeaad;
}

/* Лента новостей */
.news-item {
  border-bottom: 1px dashed #325487;
  padding: 8px 0;
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
}

.news-date {
  font-family: "Courier New", monospace;
  font-weight: bold;
  color: #39ff74;
  background: #031109;
  border: 1px solid #1e5732;
  padding: 0 4px;
}

.news-zone {
  color: #ffcc55;
  font-weight: bold;
}

.news-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #ffffff;
}

.news-summary {
  margin: 0 0 5px 0;
  color: #cde0ff;
}

.retro-notice-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #1a1a05;
  border: 2px ridge #ccaa22;
  padding: 8px 10px;
  color: #fff2b2;
  font-size: 11px;
}

.notice-icon {
  font-size: 20px;
  line-height: 1;
}

/* ================= РАДАР ================= */
.small-note {
  margin: 0 0 8px 0;
  font-size: 11px;
  color: #b4cff7;
}

.radar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 8px;
  background: #061022;
  border: 1px inset #3e6194;
  margin-bottom: 8px;
  font-size: 11px;
}

.chk-label {
  cursor: pointer;
  user-select: none;
}

.radar-container {
  background: #010a04;
  border: 2px inset #5c84ba;
  padding: 6px;
}

#radar-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #021208;
  border: 1px solid #1e5c34;
  cursor: crosshair;
}

.radar-hud-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  padding: 3px 6px;
  background: #000000;
  border: 1px solid #194d2c;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #7effa6;
}

.radar-dossier {
  margin-top: 10px;
  background: #071429;
  border: 2px inset #4d72a6;
  padding: 9px;
}

.dossier-empty {
  color: #88a7d4;
  font-style: italic;
  text-align: center;
  padding: 8px;
}

.dossier-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: start;
}

.dossier-thumb {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border: 2px outset #6d92c4;
  background: #000;
  cursor: pointer;
}

.dossier-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #ffff66;
}

.dossier-meta {
  font-size: 11px;
  color: #a8c9f7;
  margin-bottom: 6px;
}

/* ================= АРХИВ ДЕЛ ================= */
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: #061022;
  border: 1px inset #3e6194;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.case-card {
  background: #071329;
  border: 2px outset #4a6ea0;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #13294d;
  padding: 3px 6px;
  border: 1px solid #35588a;
  font-size: 11px;
  font-weight: bold;
  color: #ffff80;
}

.case-card-img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border: 1px inset #5c84ba;
  background: #000;
  cursor: pointer;
}

.case-card-img:hover {
  border-color: #ffff66;
}

.case-card-meta {
  font-size: 10px;
  color: #9ec0f0;
}

.case-card-desc {
  font-size: 11px;
  color: #dce9ff;
  flex: 1;
}

/* ================= ФОРМЫ И ТАБЛИЦЫ ================= */
.retro-input {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
  color: #000000;
  background: #ffffff;
  border: 2px inset #7c98c2;
  padding: 3px 5px;
}

.retro-input:focus {
  outline: none;
  background: #ffffeb;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table td {
  padding: 5px 6px;
  vertical-align: top;
  border-bottom: 1px dotted #284673;
}

.ft-label {
  width: 170px;
  font-weight: bold;
  color: #b9d4ff;
  font-size: 11px;
  padding-top: 7px;
}

.effects-cell label {
  display: inline-block;
  margin-bottom: 2px;
  cursor: pointer;
}

.receipt-box {
  margin-top: 12px;
  background: #f6f4e6;
  color: #111111;
  border: 2px dashed #333333;
  padding: 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.receipt-stamp {
  display: inline-block;
  border: 2px solid #b30000;
  color: #b30000;
  font-weight: bold;
  padding: 2px 8px;
  margin-top: 6px;
  transform: rotate(-3deg);
}

.classic-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 10px;
}

.classic-data-table th, .classic-data-table td {
  border: 1px solid #3c5f94;
  padding: 5px 7px;
  text-align: left;
}

.classic-data-table th {
  background: #183461;
  color: #ffff88;
}

.classic-data-table tr:nth-child(even) td {
  background: #09172e;
}

.retro-subhead {
  margin: 12px 0 6px 0;
  padding: 3px 7px;
  background: #142c52;
  border-left: 4px solid #ffcc33;
  font-size: 12px;
  color: #ffffff;
}

.memo-list {
  margin: 0;
  padding-left: 20px;
}

.memo-list li {
  margin-bottom: 5px;
}

/* Тест */
.quiz-question-box {
  background: #061022;
  border: 1px inset #4d72a6;
  padding: 10px;
}

.quiz-q-title {
  font-weight: bold;
  color: #ffff66;
  margin-bottom: 8px;
  font-size: 12px;
}

.quiz-opt-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 5px;
}

.quiz-result-box {
  background: #04190d;
  border: 2px outset #39ff74;
  padding: 10px;
  text-align: center;
}

/* ================= ГОСТЕВАЯ КНИГА ================= */
.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-entry {
  background: #071329;
  border: 1px solid #36598c;
}

.gb-entry-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  background: #132a4f;
  padding: 4px 8px;
  border-bottom: 1px solid #2b4a78;
  font-size: 11px;
}

.gb-author {
  font-weight: bold;
  color: #ffff66;
}

.gb-meta {
  color: #9bbde8;
  font-size: 10px;
}

.gb-entry-body {
  padding: 7px 9px;
  font-size: 12px;
}

.gb-admin-reply {
  margin-top: 6px;
  padding: 4px 7px;
  background: #1c0b10;
  border-left: 3px solid #ff4444;
  color: #ff9999;
  font-size: 11px;
}

/* ASCII-карта */
.ascii-map {
  background: #000000;
  color: #39ff74;
  border: 2px inset #4d72a6;
  padding: 9px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.3;
  overflow-x: auto;
  margin: 0;
}

.links-list {
  margin: 0;
  padding-left: 18px;
}

.links-list li {
  margin-bottom: 4px;
}

/* ================= ПРАВАЯ КОЛОНКА ================= */
.poll-question {
  font-weight: bold;
  color: #ffff88;
  margin-bottom: 6px;
}

.poll-opt {
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
}

.poll-actions {
  margin-top: 7px;
  text-align: center;
}

.poll-bar-row {
  margin-bottom: 6px;
}

.poll-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 2px;
}

.poll-bar-track {
  height: 10px;
  background: #030a17;
  border: 1px inset #46699c;
}

.poll-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1ea84d 0%, #5cff93 100%);
}

.weather-city {
  font-weight: bold;
  color: #ffff88;
  text-align: center;
  margin-bottom: 5px;
  padding-bottom: 3px;
  border-bottom: 1px dashed #2e4e7d;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px dotted #1c355c;
}

.quote-box p {
  margin: 0 0 6px 0;
  font-style: italic;
  color: #d6e8ff;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #5cd6ff;
  text-decoration: underline;
  font-size: 11px;
  cursor: pointer;
}

.link-btn:hover {
  color: #ffff66;
}

/* Баннер "В РАЗРАБОТКЕ" */
.under-construction-box {
  border: 2px outset #998800;
  background: #141400;
  text-align: center;
}

.hazard-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    #ffcc00,
    #ffcc00 8px,
    #111111 8px,
    #111111 16px
  );
}

.uc-body {
  padding: 7px 6px;
  font-size: 10px;
  color: #ffee88;
}

/* ================= ПОДВАЛ ================= */
.site-footer {
  background: linear-gradient(180deg, #102447 0%, #061024 100%);
  border-top: 2px ridge #5e84b8;
  padding: 10px 14px;
  text-align: center;
  font-size: 11px;
  color: #9cb9e3;
}

.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  margin: 0 4px;
}

.footer-tech {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  color: #6d8bb8;
}

/* ================= МОДАЛЬНОЕ ОКНО WINDOWS 98/2000 ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 6, 20, 0.78);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.win98-window {
  width: 620px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #d4d0c8;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
}

.win98-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
}

.win98-close-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 1;
  font-size: 11px;
  font-weight: bold;
  background: #d4d0c8;
  color: #000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.win98-body {
  padding: 12px;
  overflow-y: auto;
  font-size: 12px;
  background: #ffffff;
  margin: 6px;
  border: 2px inset #808080;
}

.win98-body img.modal-evidence-img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #000000;
  border: 2px inset #808080;
  margin-bottom: 8px;
}

.win98-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 7px 8px;
  font-size: 11px;
}

.modal-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 8px;
}

.modal-meta-table td {
  border: 1px solid #999999;
  padding: 4px 6px;
}

.modal-meta-table td:first-child {
  background: #ece9d8;
  font-weight: bold;
  width: 34%;
}

/* Адаптация под узкие экраны */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }
  .header-emblem-cell, .header-title-cell {
    border-right: none;
    border-bottom: 1px solid #2b4a78;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .welcome-flex, .archive-grid, .dossier-card {
    grid-template-columns: 1fr;
  }
}

/* Версия для печати */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .col-left, .col-right, .top-utility-bar, .marquee-bar, .quick-actions-bar, .site-footer {
    display: none !important;
  }
  .page-wrapper, .retro-panel, .panel-content {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
  }
}
