/* ============================================================
   angelslove — Admin-Bereich
   ============================================================ */

@font-face {
  font-family: 'Messina Sans';
  src: url('../fonts/MessinaSans-Book.otf') format('opentype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Messina Sans';
  src: url('../fonts/MessinaSans-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal;
}
@font-face {
  font-family: 'Messina Sans';
  src: url('../fonts/MessinaSans-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal;
}

:root {
  --red: #e2073b;              /* Marken-Rot */
  --red-soft: rgba(226, 7, 59, 0.10);
  --red-line: rgba(226, 7, 59, 0.28);
  --black: #14141a;
  --white: #ffffff;
  --grey-050: #fafafb;
  --grey-100: #f3f3f6;
  --grey-200: #e7e7ec;
  --grey-400: #9a9aa4;
  --grey-700: #45454e;
  --font: 'Messina Sans', sans-serif;
  --tracking-headline: -0.1em;

  /* Modern-soft: leichte Rundung, dezente Schatten, weiche Übergänge. */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,20,26,0.04), 0 6px 18px rgba(20,20,26,0.06);
  --shadow-hover: 0 4px 10px rgba(20,20,26,0.08), 0 16px 38px rgba(20,20,26,0.12);
  --transition: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  max-width: 100%;
}
html, body {
  font-family: var(--font);
  background: var(--grey-100);
  color: var(--black);
  min-height: 100vh;
}
body {
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 {
  letter-spacing: var(--tracking-headline);
  text-transform: uppercase;
  font-weight: 700;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

input, textarea, select {
  font-family: var(--font);
}

/* ---- Login screen ------------------------------------------ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* Dezenter Marken-Glow in CI/CD-Rot auf schwarzem Grund. */
  background: radial-gradient(1100px 560px at 50% -12%, rgba(226,7,59,0.20), transparent 60%), var(--black);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 18px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.login-card__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--grey-400);
  text-decoration: none;
  border: 1px solid var(--grey-200);
  transition: color 0.2s, border-color 0.2s;
}
.login-card__close:hover { color: var(--red); border-color: var(--red); }
.login-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.login-card__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: invert(1);   /* weisses Logo-Video → schwarz auf hellem Card */
}
.login-card__wordmark {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--black);
}
.login-card h1 {
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 0.55rem;
}
.login-card__sub {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--grey-400);
  text-align: center;
  margin-bottom: 1.9rem;
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--red); color: var(--white); width: 100%; margin-top: 0.5rem; box-shadow: 0 6px 16px var(--red-soft); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(226,7,59,0.22); }
.btn--ghost { background: var(--white); color: var(--grey-700); border: 1px solid var(--grey-200); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.btn--danger { background: transparent; color: var(--red); border: 1px solid var(--red-line); }
.btn--danger:hover { background: var(--red); color: var(--white); }
.btn--small { padding: 0.48rem 0.85rem; font-size: 0.66rem; }
/* Solider, gleichwertiger Sekundär-Button (gleiche Form/Grösse wie Primary),
   nur in Neutral-Dunkel statt Rot — als matched Paar mit "Speichern". */
.btn--neutral { background: var(--black); color: var(--white); box-shadow: var(--shadow); }
.btn--neutral:hover { background: #2b2b34; box-shadow: 0 8px 22px rgba(20,20,26,0.18); }

.login-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.75rem;
  display: none;
}

/* ---- Dashboard shell ----------------------------------------- */
.dashboard { display: none; min-height: 100vh; }
.dashboard.is-active { display: flex; }

.sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  padding: 1.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  /* Sticky + volle Höhe: die Sidebar bleibt beim Scrollen stehen, dadurch
     ist "Abmelden" (unten) immer sichtbar — kein Runterscrollen nötig. */
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar__logo {
  display: block;
  margin-bottom: 2.25rem;
  line-height: 0;
}
.sidebar__logo-vid {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
/* Hamburger — nur auf dem Handy sichtbar (siehe Media-Query). */
.sidebar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.sidebar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.sidebar.menu-open .sidebar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar.menu-open .sidebar__toggle span:nth-child(2) { opacity: 0; }
.sidebar.menu-open .sidebar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.sidebar__nav button {
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.sidebar__nav button:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.sidebar__nav button.active { background: var(--red); color: var(--white); }
.nav-badge {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-left: 0.35rem;
  vertical-align: middle;
}
.sidebar__nav button.active .nav-badge { background: var(--white); color: var(--red); }

.sidebar__logout {
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}
.sidebar__logout:hover { border-color: var(--white); color: var(--white); }

.main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3rem;
  /* Volle Bildschirmbreite — die Karten füllen den ganzen verfügbaren Raum. */
  max-width: none;
  overflow-x: hidden;
}

.main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.main__header h1 { font-size: 1.6rem; }

.view { display: none; }
.view.is-active { display: block; }

/* ---- Project list -------------------------------------------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-row {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.project-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.project-row__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--grey-200);
  flex-shrink: 0;
}
.project-row__info { flex: 1; min-width: 0; }
.project-row__title { font-weight: 600; font-size: 0.95rem; text-transform: none; letter-spacing: 0; }
.project-row__meta { font-size: 0.75rem; color: var(--grey-400); margin-top: 0.15rem; }
.project-row__badge {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
}
.project-row__badge--published { background: rgba(34,197,94,0.12); color: #16803c; }
.project-row__badge--draft { background: var(--grey-200); color: var(--grey-700); }
.project-row__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Typ-Badge (Video / Fotografie / Design) — sitzt vor dem
   Veröffentlicht/Entwurf-Status, damit der Projekt-Typ pro Zeile
   sofort erkennbar ist, auch ausserhalb der Gruppen-Sektion. */
.project-row__type {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
  background: var(--grey-100);
  color: var(--grey-700);
  border: 1px solid var(--grey-200);
}

/* Gruppierung der Projektliste nach Typ -------------------------- */
.project-list-group { display: flex; flex-direction: column; gap: 0.75rem; }
.project-list-group + .project-list-group { margin-top: 1.75rem; }
.project-list-group__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--grey-200);
}
.project-list-group__count {
  color: var(--grey-400);
  font-weight: 400;
  letter-spacing: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--grey-400);
  font-size: 0.85rem;
}

/* ---- Projekt-Suche --------------------------------------------- */
.project-search { margin-bottom: 1.25rem; }
.project-search input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
}
.project-search input { transition: border-color var(--transition), box-shadow var(--transition); }
.project-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* ---- Project form modal --------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14,14,18,0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow-y: auto;
  z-index: 100;
}
.modal-backdrop.is-active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 660px;
  padding: 2rem 2.25rem 2.25rem;
  box-shadow: 0 30px 80px rgba(20,20,26,0.28);
}
.modal h2 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .field--full { grid-column: 1 / -1; }
.field textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.textarea--lg { min-height: 220px; }
.field select { width: 100%; padding: 0.72rem 0.9rem; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); background: var(--white); font-size: 0.95rem; transition: border-color var(--transition), box-shadow var(--transition); }
.field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* ---- Schriftarten-Auswahl mit Live-Vorschau pro Option ----------
   Ein natives <select> kann einzelne Optionen nicht zuverlässig in
   ihrer jeweiligen Schriftart darstellen (Browser-Limitierung) —
   daher eine eigene Dropdown-Liste, in der jede Option bereits in
   ihrer eigenen Schriftart angezeigt wird (Hover hebt sie zusätzlich
   hervor, sodass man vor der Auswahl genau sieht, wie sie aussieht). */
.font-picker { position: relative; }
.font-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  font-size: 0.95rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--black);
}
.font-picker__trigger:hover { border-color: var(--red); }
.font-picker__trigger-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-picker__trigger-arrow { color: var(--grey-400); font-size: 0.7rem; flex-shrink: 0; transition: transform 0.15s; }
.font-picker.is-open .font-picker__trigger-arrow { transform: rotate(180deg); }
.font-picker__panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--grey-200);
  z-index: 20;
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}
.font-picker__panel.is-open { display: block; }
.font-picker__option {
  padding: 0.7rem 0.9rem;
  font-size: 1.05rem;
  cursor: pointer;
  border-bottom: 1px solid var(--grey-100);
}
.font-picker__option:last-child { border-bottom: none; }
.font-picker__option:hover { background: var(--grey-100); color: var(--red); }
.font-picker__option.is-selected { background: rgba(226,7,59,0.08); color: var(--red); font-weight: 600; }

.credits-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.credits-row { display: flex; gap: 0.5rem; }
.credits-row input { flex: 1; }
.credits-row button { flex-shrink: 0; }

.modal__footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }

.upload-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.upload-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200);
}

/* Chip für hochgeladene Video-Datei */
.video-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
}
.video-file-chip video {
  width: 64px; height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--black);
}
.video-file-chip span { font-size: 0.78rem; color: var(--grey-700); font-weight: 600; }
.video-file-chip button {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--black); color: var(--white);
  border-radius: 50%; font-size: 0.85rem; line-height: 1;
}
.video-file-chip button:hover { background: var(--red); }

/* BTS-Kacheln: per Drag & Drop neu sortierbar, mit Entfernen-Button */
.bts-thumb {
  position: relative;
  cursor: grab;
}
.bts-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--grey-200);
  display: block;
}
.bts-thumb.is-dragging { opacity: 0.4; }
.bts-thumb__remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0;
}
.bts-thumb__remove:hover { background: var(--red); }

.field--checkbox { display: flex; align-items: center; gap: 0.5rem; }
.field--checkbox input { width: auto; }
.field--checkbox label { margin: 0; }

/* ---- Inquiries -------------------------------------------------- */
.inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.inquiry-row {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.inquiry-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.inquiry-row--unread { border-color: var(--red-line); box-shadow: var(--shadow), inset 3px 0 0 var(--red); }
.inquiry-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.inquiry-row__who { font-weight: 600; font-size: 0.95rem; text-transform: none; letter-spacing: 0; }
.inquiry-row__who a { color: var(--red); text-decoration: none; }
.inquiry-row__meta { font-size: 0.72rem; color: var(--grey-400); margin-top: 0.15rem; }
.inquiry-row__subject { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.inquiry-row__message { font-size: 0.85rem; color: var(--grey-700); line-height: 1.5; white-space: pre-wrap; margin-bottom: 0.75rem; }
.inquiry-row__badge {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(226,7,59,0.12);
  color: var(--red);
}
.inquiry-row__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- Stats ----------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.kpi-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.5rem;
}
.kpi-card__value { font-size: 1.8rem; font-weight: 700; letter-spacing: var(--tracking-headline); }

.chart-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.chart-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--grey-700);
}
.chart-card canvas { max-height: 260px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th, .data-table td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--grey-200); }
.data-table th { color: var(--grey-400); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }

.loading-note { font-size: 0.8rem; color: var(--grey-400); padding: 1rem 0; }

@media (max-width: 900px) {
  .dashboard.is-active { flex-direction: column; }
  /* Handy: Sidebar wird zur sticky Top-Leiste (nicht 100vh hoch) — Nav +
     Abmelden bleiben oben immer erreichbar. */
  .sidebar {
    width: 100%; flex-direction: row; align-items: center;
    padding: 0.7rem 1rem; flex-wrap: wrap; gap: 0.5rem;
    position: sticky; top: 0; height: auto; z-index: 50;
  }
  .sidebar__logo { margin-bottom: 0; }
  .sidebar__logo-vid { width: 36px; height: 36px; }
  /* Logo links, Hamburger ganz rechts. */
  .sidebar__toggle { display: flex; margin-left: auto; }
  /* Nav + Abmelden werden ins Burger-Menü gepackt (nur offen sichtbar). */
  .sidebar__nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0.35rem; margin-top: 0.4rem; }
  .sidebar__logout { display: none; flex-basis: 100%; margin: 0.35rem 0 0; }
  .sidebar.menu-open .sidebar__nav { display: flex; }
  .sidebar.menu-open .sidebar__logout { display: block; }
  .main { padding: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .main { padding: 1.1rem; }
  .main__header h1 { font-size: 1.3rem; }

  .sidebar { padding: 0.85rem 1rem; }
  .sidebar__logo { font-size: 0.68rem; }
  .sidebar__nav button { font-size: 0.68rem; padding: 0.55rem 0.6rem; }
  .sidebar__logout { font-size: 0.65rem; padding: 0.5rem 0.7rem; }

  .login-card { padding: 2rem 1.5rem; max-width: 100%; }

  /* Project rows: stack instead of squeezing into one line */
  .project-row { flex-wrap: wrap; padding: 0.9rem 1rem; }
  .project-row__info { flex: 1 1 100%; order: 1; }
  .project-row__type { order: 2; }
  .project-row__badge { order: 2; }
  .project-row__actions { order: 3; flex: 1 1 100%; flex-wrap: wrap; }
  .project-row__actions .btn { flex: 1; min-width: 0; }

  .inquiry-row { padding: 0.9rem 1rem; }
  .inquiry-row__actions .btn { flex: 1; min-width: 0; }

  /* Modal: use full width, less padding */
  .modal-backdrop { padding: 1rem 0.75rem; }
  .modal { padding: 1.5rem 1.25rem 1.75rem; }
  .modal h2 { font-size: 1.05rem; }
  .modal__footer { flex-wrap: wrap; }
  .modal__footer .btn { flex: 1; min-width: 0; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .kpi-card { padding: 1rem 1.1rem; }
  .kpi-card__value { font-size: 1.4rem; }

  .chart-card { padding: 1.1rem; }

  /* Tables: contained horizontal scroll only inside the card, never the page */
  .chart-card { overflow-x: auto; }
  .data-table { min-width: 420px; }
}
