@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@200;400;700;800&display=swap');

/* ============================
   ROOT / BASE
   ============================ */

:root {
  --accent: #f5d546;
  --accent-2: #2ecc71;
  --jen-orange: #F6A300;
  --guide: rgba(245,213,70,0.3);
  --muted: rgba(255,255,255,0.6);
  --panel-bg: #111; /* used by jen-ticker */
}

@font-face {
  font-family: 'EngliBesh';
  src: url('/assets/fonts/EngliBesh.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Jawaese';
  src: url('/assets/fonts/Jawaese.ttf') format('truetype');
  font-display: swap;
}

body {
  font-family: 'Oxanium', sans-serif;
  background: #1e1e1e;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 6px 6px; /* spacing between dots */
  background-position: 0 0;
  color: #fff;
  margin: 20px;
}

.faction-title {
    color: var(--accent) !important;
    font-family: 'EngliBesh', sans-serif;
}


/* Wrapper for global scaling on big screens (ticker + main content) */
.site-scale {
  transform-origin: top center;
  transition: transform 0.3s ease;
}

/* ============================
   LAYOUT
   ============================ */

.app {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
  margin: auto;
}

.board,
.panel {
  border-radius: 8px;
  border: 1px solid rgba(245, 213, 70, 0.35);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-sizing: border-box;
  background-color: #111; /* solid base */

  /* --- Dot-matrix background --- */
  background-image:
      radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),  /* subtle dots */
      linear-gradient(to bottom,                     /* yellow fade */
        rgba(10,10,10,0.95) 0%, 
        rgba(10,10,10,0.94) 35%, 
        rgba(40,32,0,0.98) 100%
      );

  background-size:
      6px 6px,   /* spacing between dots */
      100% 100%;
}

.board h1 {
    font-family: 'EngliBesh', sans-serif;
    color: var(--accent) !important;
}

.section-block {
  margin-top: 18px;
  margin-bottom: 16px;
}

.section-block h2 {
  font-family: 'EngliBesh', sans-serif;
  margin-bottom: 8px;
  color: var(--accent) !important;
}

.section-block h3 {
  font-family: 'EngliBesh', sans-serif;
  margin-bottom: 8px;
  color: var(--accent) !important;
}

.section-list {
  margin: 0;
  padding-left: 18px;
}

/* ============================
   FACTION / TERRITORIES SPA PANEL
   (tabs + views inside .board)
   ============================ */

.faction-panel {
  /* just uses .section-block spacing */
}

/* Tabs row at top of the panel */
.panel-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(245,213,70,0.35);
  margin-bottom: 12px;
}

/* Individual tab buttons */
.panel-tab {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Oxanium', sans-serif;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.panel-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Each view (Faction Info / Jawa Territories) */
.panel-view {
  display: none;
}

.panel-view.is-active {
  display: block;
}

/* Headings inside SPA views */
.panel-view h2 {
  font-family: 'EngliBesh', sans-serif;
  color: var(--accent);
  margin-top: 0;
}

/* Mobile behaviour for tabs only */
@media (max-width: 600px) {
  .panel-tabs {
    flex-wrap: wrap;
  }
  .panel-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Info rows */

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px 0;
}

.value {
  font-weight: bold;
  color: var(--accent);
}

.badge {
  background: rgba(245,213,70,0.2);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid rgba(245,213,70,0.5);
}

.hint,
.small {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}


.app.faction-page {
  grid-template-columns: 1fr 1fr;   /* 50 / 50 split */
  align-items: flex-start;          /* don’t stretch rows vertically */
}

.side-column {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;          /* 🔹 panels in the same row match heights */
}

.side-column .panel {
  box-sizing: border-box;
  flex: 0 0 calc(50% - 8px);     /* two per row */
  padding: 12px 14px;
  display: flex;                 /* 🔹 let content sit inside */
  flex-direction: column;
}

/* Wide panel: full sidebar width (next row) */
.side-column .panel.wide {
  flex: 0 0 100%;
}

/* Center panel titles */
.panel h2 {
    font-family: 'EngliBesh', sans-serif;
    color: var(--accent) !important;
    text-align: center;
    margin-top: 0;
}

/* Center panel content where appropriate */
.panel.centered {
  text-align: center;
}

.panel-banner {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.panel-banner img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border: 2px solid var(--accent);
    border-radius: 6px;
    object-fit: cover;
}

/* Contact button styling */
.contact-button {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 12px auto 0 auto;

  white-space: normal;        /* allows multi-line text */
  text-align: center;
  word-wrap: break-word;      /* prevents overflow */
  overflow-wrap: break-word;  /* same as above */
  line-height: 1.2;

  padding: 10px 12px;         /* more vertical room for wrapping */
  font-size: 14px;            /* reduces width pressure */
}
.contact-btn {
    display: inline-block;
    margin: 0 auto;               /* center inside panel */
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    padding: 8px 14px;
}


/* Mobile: stack everything */
@media (max-width: 900px) {
  .app.faction-page {
    display: block;
  }

  .side-column {
    gap: 12px;
  }

  .side-column .panel,
  .side-column .panel.wide {
    flex: 0 0 100%;
  }
}


/* ============================
   INPUTS & BUTTONS
   ============================ */

select,
input[type="number"],
.btn {
  background: rgba(17,17,17,0.7);
  border: 1px solid rgba(245,213,70,0.3);
  color: #fff;
  border-radius: 4px;
  padding: 0.45em 0.65em;
  font-family: 'Oxanium', sans-serif;
  font-size: 1em;         /* scalable with body / site-scale */
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  text-align: center; 
}

.btn:hover {
  background: rgba(245,213,70,0.2);
  border-color: rgba(245,213,70,0.5);
}

.btn.active {
  background: rgba(245,213,70,0.4);
  border-color: rgba(245,213,70,0.8);
  color: #fff;
}

/* ============================
   LOADING SCREEN
   ============================ */

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--guide);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
}

.loading-logo img {
  width: 120px;
  height: auto;
  display: block;
}

.loading-bar {
  width: 100%;
  max-width: 420px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--guide);
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}

/* Filled portion */
.loading-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 213, 70, 0.9),
    rgba(246, 163, 0, 0.95)
  );
  box-shadow: 0 0 10px rgba(245, 213, 70, 0.7);
  transition: width 0.2s ease-out;
}
/* Backdrop for in-page loaders (e.g. DroidBrain upload) */
.loading-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: none;              /* shown via JS */
  align-items: center;
  justify-content: center;
}

/* Spinner used inside loading-card (DroidBrain, etc.) */
.loading-spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: db-spin 0.8s linear infinite;
  margin: 0 auto 8px;
}

/* Tiny helper text size if needed elsewhere */
.tiny {
  font-size: 11px;
  color: var(--muted);
}

@keyframes db-spin {
  to { transform: rotate(360deg); }
}


/* ============================
   NAVBAR (DESKTOP)
   ============================ */

.main-nav {
  background: #000; /* solid black */
  max-width: 1300px;
  margin: 0 auto 10px auto;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 16px 18px; /* ⬅ extra bottom padding so CGT sits inside border */
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.main-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Responsive banner logo in navbar */
.navbar-banner {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 2px solid var(--accent);
  border-radius: 6px;
  object-fit: cover;
}

.main-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.main-nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

/* Make the auth section stack vertically */
.main-nav-auth {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Row containing name, avatar, logout */
.main-nav-auth-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Auth row: keep username + avatar + logout inline */
.main-nav-auth {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.main-nav-auth-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.main-nav-auth-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* CGT clock sits below */
.nav-cgt {
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--jen-orange);
  color: var(--jen-orange);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0.9;
  text-align: right;
}


/* Mobile fix */
@media (max-width: 768px) {
    .main-nav-auth {
        align-items: flex-start;
    }
}

.main-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

/* ============================
   TOOLS DROPDOWN
   ============================ */

.main-nav-tools {
  position: relative;
}

.main-nav-tools-toggle {
  white-space: nowrap; /* keep "Tools ▾" on one line */
}

.main-nav-tools-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: rgba(17,17,17,0.95);
  border: 1px solid rgba(245,213,70,0.3);
  border-radius: 6px;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  min-width: 158px;
  display: none;
  z-index: 1000;
}

/* shown when parent has .open (Navbar.js toggles this) */
.main-nav-tools.open .main-nav-tools-menu {
  display: block;
}

.main-nav-tools-menu li {
  margin: 0;
  padding: 0;
}

.main-nav-tools-menu li a {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.main-nav-tools-menu li a:hover,
.main-nav-tools-menu li a.active {
  background: rgba(245,213,70,0.2);
  color: #fff;
}

.main-nav-tools-menu li a:visited {
  color: rgba(255,255,255,0.85);
}

/* ============================
   MOBILE NAV
   ============================ */

.main-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  body {
    margin: 8px !important;
    overflow-x: hidden;
  }

  .app {
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
  }

  .board,
  .panel {
    width: 100% !important;
    box-sizing: border-box;
  }

  .main-nav {
    position: static;
    margin-bottom: 12px;
  }

  .main-nav-inner {
    align-items: center;
  }

  .main-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
  }

  .main-nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
  }

  .main-nav-menu.open {
    display: flex;
  }

  .main-nav-links {
    flex-direction: column;
    width: 100%;
  }

  .main-nav-links .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav-auth {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav-tools {
    width: 100%;
  }

  .main-nav-tools-menu {
    position: static;
    border: 1px solid rgba(245,213,70,0.3);
    margin-top: 4px;
    width: 100%;
  }

  .main-nav-tools-menu li a {
    width: 100%;
  }

  .navbar-banner {
    max-width: 200px;
    border-width: 1px;
  }
}

/* ============================
   FULL WIDTH WHEN NO SIDEBAR
   ============================ */

.app.app-full {
  grid-template-columns: 1fr;
}

/* ============================
   ADMIN PERMISSION BADGES
   ============================ */

.permission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245,213,70,0.5);
  background: rgba(245,213,70,0.12);
  color: var(--accent);
}

/* ============================
   JEN COLLAPSIBLE POSTS
   ============================ */

.jen-post {
  padding: 10px 18px 12px;
  overflow: hidden;
}

.jen-post-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 110px;
}

.jen-post-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.jen-post-title {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.jen-post-meta {
  color: var(--muted);
  text-align: center;
}

/* preview thumbnail */
.jen-post-thumb-wrap {
  width: 160px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jen-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(245,213,70,0.4);
}

/* hamburger toggle */
.jen-post-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,213,70,0.4);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.jen-toggle-icon {
  display: inline-block;
}

.jen-toggle-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  margin: 2px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* X animation when open */
.jen-open .jen-toggle-icon span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.jen-open .jen-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.jen-open .jen-toggle-icon span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Expanded body */
.jen-post-body {
  border-top: 1px solid rgba(245,213,70,0.3);
  padding: 12px 0 0;
  text-align: left;
}

.jen-post-body-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 15px;
}

/* Hide small thumb in header when open (only big image below) */
.jen-open .jen-post-thumb-wrap {
  display: none;
}

/* Mobile JEN layout */
@media (max-width: 700px) {
  .jen-post {
    padding: 10px;
  }

  .jen-post-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .jen-post-thumb-wrap {
    width: 100%;
    height: 180px;
  }

  .jen-post-main {
    order: 2;
    text-align: left;
  }

  .jen-post-toggle {
    order: 3;
    margin: 0 auto;
  }

  .jen-post-title {
    white-space: normal;
  }

  .jen-post-body-text {
    word-wrap: break-word;
  }
}

/* ============================
   JEN NEWS TICKER
   ============================ */


.jen-ticker {
  background: var(--panel-bg);          /* same as .board */
  border: 1px solid rgba(245,213,70,0.35);
  border-radius: 8px;
  padding: 0;
  margin: 0 auto 16px auto;             /* centred, same spacing as panels */
  width: 100%;
  max-width: 1300px;                    /* matches .app / .main-nav-inner */
  box-sizing: border-box;
}

/* inner container – like .main-nav-inner */
.jen-ticker-inner {
  display: flex;
  align-items: center;
  height: 54px;                         /* match navbar height */
  padding: 0 12px;
  gap: 12px;
  overflow: hidden;
}

/* left label / logo container */
.jen-ticker-label {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid rgba(245,213,70,0.35);
}

.jen-ticker-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* scrolling area */
.jen-ticker-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.jen-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 48px;
  animation: jenTickerScroll 60s linear infinite;
}

/* typography alignment */
.jen-ticker-item {
  display: inline-flex;
  align-items: center;
  height: 54px;                         /* same vertical rhythm as navbar */
  font-size: 14px;
}

.jen-ticker-link {
  color: inherit;              /* keep JEN orange we already set */
  text-decoration: none;
}

.jen-ticker-link:hover {
  text-decoration: underline;  /* subtle cue on hover */
}

.jen-ticker-item .jen-cgt {
  color: rgba(255,255,255,0.55);
  opacity: 0.8;
  margin-right: 4px;
}

.jen-ticker-item .jen-title {
  color: var(--jen-orange);
  font-weight: 600;
  margin: 0 4px;
  animation: jenGlow 3s ease-in-out infinite;
}

@keyframes jenGlow {
  0% {
    text-shadow: 0 0 4px rgba(246, 163, 0, 0.2);
  }
  50% {
    text-shadow: 0 0 8px rgba(246, 163, 0, 0.45);
  }
  100% {
    text-shadow: 0 0 4px rgba(246, 163, 0, 0.2);
  }
}

.jen-ticker-item .jen-author {
  color: var(--accent);
  opacity: 0.9;
  margin-left: 4px;
}

/* ticker scroll is running by default */
.jen-ticker-track {
  animation-play-state: running;
}

/* pause scroll when hovering over the ticker */
.jen-ticker:hover .jen-ticker-track {
  animation-play-state: paused;
}

@keyframes jenTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   MOBILE TICKER VERSION
   ============================ */

@media (max-width: 600px) {
  .jen-ticker-inner {
    height: 46px;
    padding: 0 8px;
  }

  .jen-ticker-logo {
    height: 28px;
  }

  .jen-ticker-item .jen-cgt,
  .jen-ticker-item .jen-author {
    display: none;
  }

  .jen-ticker-item .jen-title {
    font-weight: 600;
    color: var(--jen-orange) !important;
  }
}



/* ===============================
   Global Site Footer
   =============================== */

.site-footer {
  width: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  border-radius: 0;
  padding: 12px 0;
  margin: 10px 0 0 0;
  font-family: 'Oxanium', sans-serif;
}

/* Centered inner container */
.site-footer-inner {
  max-width: 1300px;        /* match .app / navbar width */
  margin: 0 auto;
  padding: 0 16px;
  text-align: right;        /* right-aligned like your old footer */
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.footer-credit {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-footer-inner {
    text-align: center;
  }
}



/* ============================================
   RESPONSIVE SCALING FOR LARGE SCREENS
   (Zoom-style scaling via .site-scale)
   ============================================ */

@media (min-width: 1440px) {
  .site-scale {
    transform: scale(1.05);
  }
  .main-nav {
    transform: scale(1.05);
    transform-origin: top center;
  }
  .jen-ticker {
    margin-top: 20px;
  }
}

@media (min-width: 1700px) {
  .site-scale {
    transform: scale(1.10);
  }
  .main-nav {
    transform: scale(1.10);
    transform-origin: top center;
  }
  .jen-ticker {
    margin-top: 26px;
  }
}

@media (min-width: 2000px) {
  .site-scale {
    transform: scale(1.15);
  }
  .main-nav {
    transform: scale(1.15);
    transform-origin: top center;
  }
  .jen-ticker {
    margin-top: 32px;
  }
}

@media (min-width: 2560px) {
  .site-scale {
    transform: scale(1.20);
  }
  .main-nav {
    transform: scale(1.20);
    transform-origin: top center;
  }

  .navbar-banner {
    max-width: 560px;
  }
  .jen-ticker {
    margin-top: 40px;
  }
}
/* ============================================
   REUSABLE FORM INPUT BOX
   ============================================ */

.form-box {
  width: 100%;
  box-sizing: border-box;
  background: rgba(17,17,17,0.7);
  border: 1px solid rgba(245,213,70,0.3);
  border-radius: 4px;
  color: #fff;
  padding: 8px;
  font-family: 'Oxanium', sans-serif;
  font-size: 1em;
  resize: vertical;
}

.form-box:focus {
  outline: none;
  border-color: rgba(245,213,70,0.6);
  box-shadow: 0 0 4px rgba(245,213,70,0.35);
}

.twin-suns-icon {
  display: block;
  margin: 0 auto 12px;
  width: 95px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(246,163,0,0.4));
  transition: filter 0.4s ease;
}

/* Jawa Territories map – SPA view */
.jawa-map-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.jawa-map {
  width: 100%;
  height: auto;
  max-width: 650px;     /* Optional: prevents it from getting too big on desktop */
  border-radius: 12px;
}

/* Admin layout wrapper */
.admin-layout {
  max-width: 1300px;
  margin: 0 auto;
}

/* Simple subtitle */
.admin-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Tables used on admin pages */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border: 1px solid rgba(245,213,70,0.35);
  padding: 6px 8px;
}

.admin-table th {
  background: rgba(0,0,0,0.6);
  text-align: left;
}

.admin-table tr:nth-child(even) {
  background: rgba(0,0,0,0.35);
}

/* badge colours for uploader type */
.badge-guest {
  background: rgba(246,163,0,0.1);
  border: 1px solid rgba(246,163,0,0.6);
  color: var(--accent);
}

.badge-user {
  background: rgba(52,152,219,0.12);
  border: 1px solid rgba(52,152,219,0.6);
  color: #a5d8ff;
}

/* change-status colours */
.status-new {
  color: #2ecc71;
  font-weight: 700;
}

.status-modified {
  color: #f5d546;
  font-weight: 700;
}

.status-none {
  color: var(--muted);
}

.status-unknown {
  color: #888;
  font-style: italic;
}
.overview-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.overview-banner img {
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid var(--accent);
}

.overview-text {
    flex: 1;
}

[data-uploader-panel] {
  display: none;
}

[data-uploader-panel].open {
  display: flex;
}