/* KARST operator console — shared chrome (used by media.html; the data pages
   carry their own inline copy of this palette). Brand: navy #0B1D28 + cyan
   #7FE3F5 on a cool light background. */
:root {
  --navy: #0B1D28;
  --navy-2: #12303F;
  --cyan: #7FE3F5;
  --cyan-deep: #0E7490;
  --bg: #F2F6F8;
  --card: #FFFFFF;
  --ink: #0B1D28;
  --ink-soft: #5A6B73;
  --line: #DCE5EA;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar + nav (shared across all console pages) */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-row {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand .mark { font-size: 20px; font-weight: 700; letter-spacing: 0.2em; }
.brand .mark b { color: var(--cyan); }
.brand .sub { font-size: 12px; color: #9FB4BD; letter-spacing: 0.04em; }
.topnav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topnav a {
  color: #C7D6DD;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1;
}
.topnav a:hover { color: #fff; background: rgba(127, 227, 245, 0.12); }
.topnav a.active { color: var(--navy); background: var(--cyan); }

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}
.stats {
  font-size: 13px;
  color: var(--ink-soft);
}

.toolbar {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  align-items: center;
}

#search {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card);
  font-family: inherit;
}
#search:focus { outline: none; border-color: var(--cyan-deep); }

select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card);
  font-family: inherit;
  cursor: pointer;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hidden { display: none !important; }

/* Lightbox (media library) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 40, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-content {
  max-width: 1100px;
  max-height: 90vh;
  width: 100%;
  background: var(--card);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  overflow: hidden;
  padding: 24px;
}

@media (max-width: 760px) {
  .lightbox-content { grid-template-columns: 1fr; max-height: 95vh; }
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}
.lightbox-close:hover { color: var(--cyan); }
