:root {
  --bg: #020202;
  --panel: #0f0f0f;
  --accent: #ffdf6c;
  --accent-strong: #ffe87f;
  --muted: #b4a86c;
  --border: #442c00;
  --text: #f5f1e6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  background-image: radial-gradient(circle at 15% 15%, rgba(255, 223, 108, 0.15), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(255, 223, 108, 0.08), transparent 45%),
    linear-gradient(180deg, #080808, #030303 50%, #050505);
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header,
header {
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header.on-duty {
  background: linear-gradient(135deg, #0c8d46, #0de35b);
  border-bottom-color: #a0ff9a;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.header-inner nav {
  flex: 1;
}

header h1 {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-btn:hover {
  background: var(--accent);
  color: #111;
}

main {
  flex: 1;
  padding: 2rem 1.25rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.splash {
  margin-top: 2rem;
  padding: 4rem 2rem;
  border: 1px solid rgba(255, 223, 108, 0.3);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.9);
  text-align: center;
  box-shadow: 0 0 45px rgba(255, 223, 108, 0.08);
}

.splash-logo {
  width: 220px;
  margin-bottom: 1rem;
}

.splash h2 {
  margin: 0;
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.splash p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-style: italic;
}

.splash-tagline {
  max-width: 720px;
  margin: 0.5rem auto 0;
}

form.form-container,
form.upload-container {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  width: 100%;
  max-width: 460px;
  margin: 1.5rem auto;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
  position: relative;
}

form.upload-container {
  margin: 0 auto;
}

form.form-container h2,
form.upload-container h2 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}

form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0.8rem 0 0.3rem;
  color: var(--muted);
}

form input,
form select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  color: var(--text);
  font-size: 0.95rem;
}

form textarea {
  width: 100%;
  min-height: 60px;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  color: var(--text);
  font-size: 0.95rem;
  resize: vertical;
}

.form-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.suspect-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.suspect-suggestion {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 223, 108, 0.3);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}

.suspect-suggestion:hover {
  background: rgba(255, 223, 108, 0.08);
}

form button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #111;
  font-weight: bold;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-transform: uppercase;
}

.form-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.form-inline input,
.form-inline select {
  flex: 1 1 200px;
  min-width: 160px;
}

form button:hover {
  background: var(--accent-strong);
}

.promotion-dates {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.promotion-row {
  display: flex;
  gap: 0.5rem;
}

.training-list {
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.training-checkbox {
  display: flex;
  gap: 0.35rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.error,
.success {
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.error {
  background: rgba(138, 12, 12, 0.5);
  border: 1px solid #b33;
  color: #ffbaba;
}

.success {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 223, 108, 0.6);
  color: var(--accent);
}

.gallery-section {
  width: 100%;
  margin-top: 1.5rem;
}

.duty-tracker {
  border: 1px solid rgba(255, 223, 108, 0.25);
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.duty-tracker.duty-active {
  border-color: #2fcc70;
}

.duty-details {
  flex: 1;
  min-width: 220px;
}
.duty-details p {
  margin: 0;
  font-size: 0.9rem;
}

.duty-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.duty-actions .primary.active {
  background: #9fdf9f;
}
.duty-actions .secondary.danger {
  border-color: #ff6b6b;
  color: #ff6b6b;
}
.duty-actions .secondary.danger:hover {
  background: rgba(255, 107, 107, 0.2);
}
.duty-weekly {
  margin: 0;
  font-size: 0.85rem;
}
.duty-since {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.activity-warning {
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(560px, 90%);
  background: #fdf29a;
  color: #111;
  border: 2px solid #d8b500;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  z-index: 70;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}

.activity-warning p {
  margin: 0.35rem 0;
}

.activity-warning .warning-countdown {
  font-size: 1.1rem;
  font-weight: bold;
}

.gallery-panel {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gallery-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gallery-filters input,
.gallery-filters select {
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid rgba(255, 223, 108, 0.3);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 6px;
  outline: none;
}

.gallery-count {
  margin: 0 0 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.general-orders,
.roster-page {
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.intranet-page {
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.intranet-header {
  max-width: 720px;
}

.intranet-header h2 {
  margin: 0.2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.intranet-subhead {
  margin-top: 0;
  color: var(--muted);
  max-width: 720px;
}

.intranet-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.intranet-link-card {
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 10px;
  padding: 1rem;
  background: rgba(5, 5, 5, 0.85);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border 0.2s ease, transform 0.2s ease;
}

.intranet-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.intranet-link-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.intranet-link-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.intranet-preview {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.intranet-preview-card {
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(5, 5, 5, 0.9);
  display: flex;
  flex-direction: column;
}

.intranet-preview-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.intranet-preview-copy {
  padding: 0.85rem;
}

.intranet-preview-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.intranet-preview-copy p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.intranet-block-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.intranet-block {
  border: 1px solid rgba(255, 223, 108, 0.4);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(8, 8, 8, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 223, 108, 0.08);
}

.intranet-block-header h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.intranet-block-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.intranet-block-wrapper {
  margin-top: 0.75rem;
  overflow-x: auto;
}
.intranet-on-duty-section {
  margin-top: 1.5rem;
}
.intranet-on-duty-block {
  width: 100%;
}
.on-duty-groups {
  display: grid;
  gap: 1rem;
}
.on-duty-group {
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 223, 108, 0.05);
  border: 1px solid rgba(255, 223, 108, 0.12);
}
.on-duty-group.supervisors {
  border-color: rgba(105, 169, 255, 0.4);
  box-shadow: inset 0 0 12px rgba(105, 169, 255, 0.15);
}
.on-duty-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.on-duty-group-title span {
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: normal;
}
.on-duty-empty {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.on-duty-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.on-duty-person {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}
.on-duty-person:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.on-duty-person-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.on-duty-person-main strong {
  color: var(--text);
  font-size: 0.95rem;
}
.on-duty-person-main span {
  font-size: 0.8rem;
  color: var(--muted);
}
.on-duty-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  color: rgba(255, 255, 255, 0.75);
}
.on-duty-callsign {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b0f0ff;
}
.on-duty-since {
  color: #ffd88a;
}
.on-duty-duration {
  color: #9ef09e;
}

.intranet-block table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.75rem;
}

.intranet-block th,
.intranet-block td {
  border: 1px solid rgba(255, 223, 108, 0.25);
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.intranet-block th {
  background: rgba(255, 223, 108, 0.1);
  color: var(--text);
  font-size: 0.7rem;
}

.intranet-block td {
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
}

.intranet-block .status-approved {
  background: rgba(88, 189, 90, 0.4);
  color: #d7ffd9;
}

.intranet-block .status-denied {
  background: rgba(189, 72, 72, 0.55);
  color: #ffecec;
}

.intranet-block .status-note {
  background: rgba(255, 223, 108, 0.4);
  color: #1b1000;
  font-weight: 600;
}

.note-row td {
  background: rgba(255, 223, 108, 0.1) !important;
}

.note-cell {
  text-align: left;
  font-weight: 600;
}

.general-orders-block-content {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.general-orders-block-content p {
  margin: 0 0 0.75rem;
}

.general-orders-block-content p:last-child {
  margin-bottom: 0;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.roster-card {
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(5, 5, 5, 0.85);
}
.roster-card a,
.roster-card a:visited,
.roster-card a:active {
  color: inherit;
  text-decoration: none;
}
.roster-card a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.roster-photo-frame {
  width: clamp(180px, 60%, 220px);
  height: clamp(220px, 28vw, 280px);
  margin: 0.75rem auto 0;
  border-radius: 12px;
  border: 1px solid #2c2c2c;
  background: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.roster-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roster-chief-photo-frame {
  width: clamp(200px, 65%, 240px);
  height: clamp(240px, 30vw, 300px);
}

.gallery-toolbar h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.primary.small {
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

button.primary,
button.secondary {
  border: none;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #111;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--accent);
  padding: 0.7rem 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.secondary-link:hover {
  background: var(--accent);
  color: #111;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pagination-info {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

button.secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button.secondary.danger {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

button.secondary.danger:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.2);
}

.gallery-image-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
}

.gallery-image-btn img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  background: linear-gradient(180deg, #0b0b0b, #030303);
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-meta {
  padding: 0.85rem;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  border-top: 1px solid rgba(255, 223, 108, 0.2);
  letter-spacing: 0.08em;
}

.gallery-meta strong {
  color: var(--accent);
}

.gallery-meta-line {
  margin: 0.25rem 0;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-card {
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  width: min(520px, 92vw);
  position: relative;
  box-shadow: 0 0 40px rgba(255, 223, 108, 0.2);
}

.close-modal {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.image-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 60;
}

.image-modal {
  position: relative;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid rgba(255, 223, 108, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: min(820px, 95vw);
  width: 100%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.image-modal-body {
  display: flex;
  gap: 1rem;
  max-height: 80vh;
}

.image-modal-meta-column {
  flex: 0 0 clamp(180px, 15vw, 220px);
  width: clamp(160px, 18vw, 220px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.image-modal-image-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 80vh;
}

.image-modal-image-column .image-modal-actions {
  margin-top: auto;
}

.image-modal-image-column img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-modal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.image-modal-meta.terminal {
  background: #030303;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem;
  border-radius: 8px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  color: #9df09d;
  margin-bottom: 0.85rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.image-modal-meta.terminal .modal-meta-line {
  margin-bottom: 0.35rem;
}

.image-modal-edit-controls {
  text-align: right;
  margin-bottom: 0.35rem;
}

.metadata-form {
  border-top: 1px solid rgba(255, 223, 108, 0.35);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.image-modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.image-modal-actions .primary,
.image-modal-actions .secondary {
  flex: 1 1 140px;
}

.profile-settings {
  margin: 2rem auto;
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 223, 108, 0.15);
  padding: 1.5rem;
  max-width: 800px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.profile-card h3 {
  margin: 0;
  color: var(--accent);
}

.profile-card .muted {
  margin-top: 0.25rem;
  color: var(--muted);
}

.profile-card .eyebrow {
  margin-bottom: 0.25rem;
}

.profile-settings h2 {
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.profile-gallery-card {
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(8, 8, 8, 0.85);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.profile-gallery-card:hover {
  border-color: var(--accent);
}

.profile-gallery-card img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.profile-gallery-meta {
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.hr-style {
  border: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.admin-logs-page .data-table {
  margin-top: 1rem;
}

.data-table button {
  border: 1px solid rgba(255, 223, 108, 0.5);
  background: transparent;
  color: var(--accent);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.admin-dashboard {
  margin: 2rem auto;
  max-width: 1100px;
}

.admin-dashboard h2 {
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.admin-dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-dashboard th,
.admin-dashboard td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-dashboard th {
  color: var(--muted);
}

.quick-stats {
  margin-bottom: 1.75rem;
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid rgba(255, 223, 108, 0.15);
  border-radius: 10px;
  padding: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 0.9rem;
  border: 1px solid rgba(255, 223, 108, 0.2);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.9);
}

.stat-card h4 {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.stat-card p {
  margin: 0.35rem 0;
  font-size: 0.85rem;
}

.admin-passphrase {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 223, 108, 0.25);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.85);
}

.admin-suspects,
.admin-clock,
.admin-clock-weekly,
.admin-clock-monthly {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 223, 108, 0.25);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.85);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-clock-control {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 223, 108, 0.25);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.85);
}

.clock-control-grid {
  display: grid;
  gap: 0.5rem;
}

.clock-control-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.admin-clock-weekly .clock-week,
.admin-clock-monthly .clock-week {
  margin-bottom: 1rem;
}

.admin-edit-user {
  margin-top: 1.5rem;
}

.admin-edit-user .form-container {
  max-width: 700px;
  width: 100%;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.map-layer-stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
}

.map-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.map-base {
  z-index: 1;
}

.map-overlay {
  z-index: 2;
  opacity: 0.55;
}

.map-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 140px 0 2rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.95) 150%);
  position: relative;
}

.map-modal {
  width: min(90vw, 1400px);
  height: min(90vh, 900px);
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  z-index: 50;
}

.map-viewer-window {
  position: relative;
}

.map-viewer-header {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  max-width: min(420px, 70%);
  z-index: 5;
}

.map-viewer-header h2 {
  margin: 0.2rem 0;
}

.map-header-subhead {
  margin: 0;
  color: #cfd8ff;
  font-size: 0.95rem;
}

.map-canvas-container {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.map-canvas {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid #1f1f1f;
  background: #050505;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.map-controls {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  background: rgba(5, 5, 5, 0.7);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #222;
  z-index: 4;
}

.zoom-controls {
  display: flex;
  gap: 0.5rem;
}

.zoom-controls button {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 1.2rem;
  border: 1px solid #555;
  background: #222;
  color: white;
  cursor: pointer;
}

.overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.overlay-options {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
