﻿:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #5e6875;
  --line: #d8dee6;
  --strong: #111827;
  --accent: #0b6bcb;
  --accent-soft: #e8f1fb;
  --risk: #b42318;
  --warn: #8a4b00;
  --ok: #0f6b3d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}
body.locked {
  overflow: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #101820;
}
.login-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.login-card h1 {
  margin: 0 0 10px;
  font-size: 24px;
}
.login-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}
.login-row {
  display: flex;
  gap: 10px;
}
.login-row input {
  min-width: 0;
  flex: 1;
}
.login-error {
  min-height: 18px;
  margin-top: 10px;
  color: var(--risk);
  font-size: 13px;
}
.portal-content {
  display: none;
}
body.unlocked .portal-content {
  display: block;
}
body.unlocked .login-screen {
  display: none;
}
.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #101820;
  color: #f7fafc;
  overflow: auto;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.side-note {
  color: #b8c2cc;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 22px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  color: #eef4fb;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.nav a:hover {
  background: #1f2c38;
  text-decoration: none;
}
.main {
  padding: 28px;
  max-width: 1480px;
  width: 100%;
}
.hero {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 {
  margin: 8px 0 10px;
  font-size: 36px;
  line-height: 1.12;
}
.hero p {
  max-width: 980px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.notice {
  margin-top: 18px;
  border-left: 4px solid var(--warn);
  background: #fff7ed;
  padding: 14px 16px;
  color: #4b2c00;
  max-width: 1100px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.metric .num {
  font-size: 28px;
  font-weight: 700;
}
.metric .label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.section-intro {
  color: var(--muted);
  max-width: 1020px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
input, select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  min-width: 220px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--strong);
  font-size: 14px;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.grid-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.doc .type {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.doc h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1100px;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.4;
}
th {
  position: sticky;
  top: 0;
  background: #eef2f6;
  color: var(--strong);
  z-index: 1;
}
tr:hover td { background: #fafcff; }
.pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #084b8a;
  font-size: 12px;
  white-space: nowrap;
}
.pill.risk { background: #fee4e2; color: var(--risk); }
.pill.warn { background: #fff1d6; color: var(--warn); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.shot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}
.shot-body {
  padding: 10px;
}
.shot-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}
.shot-meta {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}
.footer {
  padding: 24px 0 8px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-docs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 18px; }
  h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .metrics, .gallery { grid-template-columns: 1fr; }
  input, select { width: 100%; min-width: 0; }
}
