@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: #11151b;
  --surface2: #181e26;
  --line: #252b34;
  --text: #f2f4f7;
  --muted: #9aa3af;
  --gold: #c7a45a;
  --gold-light: #e2c477;
  --green: #4e8b72;
  --red: #df8686;
  --radius: 8px;
  font-family: Inter, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-width: 300px;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--gold-light);
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4 {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(26px, 3.5vw, 43px);
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 17px;
}
p {
  margin: 0 0 16px;
}
img {
  max-width: 100%;
  height: auto;
}
strong {
  font-weight: 500;
}
code,
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.025em;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  border-radius: 5px;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: normal;
  text-align: center;
}
.button:hover {
  border-color: #657080;
  background: #202733;
  color: var(--text);
}
.button-primary,
.button-gold,
button.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.button-primary:hover,
.button-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}
.button-danger,
.danger {
  border-color: #714a4a;
  color: #f0a6a6;
  background: #29191d;
}
.button-danger:hover {
  background: #42262b;
}
.button-small {
  padding: 8px 12px;
  min-height: 36px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  min-width: 0;
}
.field label,
label {
  font-size: 12px;
  color: #d9e0e9;
}
.field small {
  margin-top: 0;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  border: 1px solid #333c49;
  background: #0d1116;
  color: var(--text);
  border-radius: 5px;
  padding: 12px;
  min-height: 46px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
input[readonly] {
  color: var(--muted);
  background: #14181e;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
select {
  color-scheme: dark;
}
fieldset {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}
legend {
  font-family: Manrope, sans-serif;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid > .field:has(textarea) {
  grid-column: 1/-1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #171d25;
}
.badge.active,
.badge.good {
  color: #9ac6b0;
  border-color: #365247;
  background: #14271f;
}
.badge.warn {
  color: #e1c184;
  border-color: #645439;
  background: #292115;
}
.badge.revoked,
.badge.error {
  color: #e7a0a0;
  border-color: #644747;
  background: #2a1b20;
}
.banner,
.status-msg {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: #151b22;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.65;
  margin: 16px 0;
  border-radius: 4px;
  color: #d3dbe7;
  overflow-wrap: anywhere;
}
.status-msg.error,
.banner.error {
  border-left-color: var(--red);
  color: #f0b6b6;
}
.status-msg.success {
  border-left-color: var(--green);
  color: #aad4bd;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table,
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
thead {
  background: #171c24;
}
th {
  padding: 14px 16px;
  font-size: 10px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
td {
  padding: 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:hover {
  background: #161c24;
}
.empty {
  text-align: center;
  padding: 55px 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.empty strong {
  display: block;
  color: var(--text);
  font-family: Manrope, sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #424b58;
  border-radius: 8px;
  padding: 28px;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: rgb(0 0 0/0.75);
}
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}
.legal-page {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px;
}
.legal-page h2 {
  margin-top: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.brand img {
  width: 151px;
}
.brand span {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--gold);
}
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.map-frame {
  height: 410px;
  min-height: 300px;
  background: #0b141f;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
}
.map-frame .leaflet-container {
  height: 100%;
  width: 100%;
  background: #0b141f;
}
.map-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #141e2a;
  color: #f2f4f7;
}
.leaflet-control-zoom a {
  background: #18212d;
  color: #f2f4f7;
  border-color: #3b4553;
}
.leaflet-control-attribution {
  background: #141c26 !important;
  color: #b7c4d8 !important;
}
.leaflet-control-attribution a {
  color: #c7a45a !important;
}
.leaflet-container .leaflet-popup-content {
  line-height: 1.7;
}
.leaflet-container svg {
  outline: none;
}
.noscript {
  padding: 20px;
  border: 1px solid #b99455;
  margin: 20px;
  color: #e2c477;
}
@media (max-width: 640px) {
  body {
    font-size: 13px;
  }
  .card {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .button {
    padding: 12px 15px;
  }
  .map-frame {
    height: 340px;
  }
  .brand img {
    width: 127px;
  }
  .brand span {
    font-size: 10px;
    padding-left: 10px;
  }
  .legal-page {
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
