:root {
  /* --- COLORS --- */
  /* Brand */
  --satra-blue: #2277B9;        /* Hauptfarbe (Buttons, Akzente) */
  --satra-blue-dark: #1a5a8e;   /* Hover-Zustand */
  --satra-blue-light: #64B5F6;  /* Helle Textfarbe für Überschriften auf dunklem Grund */
  --satra-orange: #E64A19;      /* Warnungen / Gefahr */
  
  /* Backgrounds */
  --bg-body: #050A14;           /* Tiefes Navy/Schwarz */
  --bg-panel: rgba(20, 30, 50, 0.75); /* Karten-Hintergrund */
  --bg-input: rgba(0, 0, 0, 0.3);     /* Eingabefelder (dunkler "Cutout"-Look) */
  
  /* Text */
  --text-main: #EAF2FF;
  --text-muted: rgba(234, 242, 255, 0.5);
  
  /* Borders & Spacing */
  --border-color: rgba(255, 255, 255, 0.12);
  --border-radius: 8px;
  
  /* Layout Raster */
  --max-width: 98%;
  --space-xs: 4px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 50px;
}

/* --- RESET & BASIC SETUP --- */
* { box-sizing: border-box; }

html { color-scheme: dark; } 

/* --- BODY FONT & BG --- */
body {
  margin: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(34,119,185,0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(230,74,25,0.08), transparent 40%),
    linear-gradient(180deg, #0f1c30 0%, var(--bg-body) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- ICONS --- */
i.ph {
    vertical-align: text-bottom;
    margin-right: 4px;
    font-size: 1.1em;
    opacity: 0.9;
}

/* --- ANIMATIONEN --- */
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.card { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); animation-fill-mode: both; }

/* Gestaffelte Animation */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }

.btn:active { transform: scale(0.97); transition: transform 0.05s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Modal Animation */
.modal-backdrop { animation: fadeIn 0.2s ease-out; }
.modal-backdrop .card { animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Akzent-Linie ganz oben */
body::before {
  content: "";
  position: fixed; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--satra-orange), var(--satra-blue));
  z-index: 9999;
  opacity: 0.8;
}

/* --- LAYOUT CONTAINER --- */
.wrap {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: var(--space-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px); /* ACHTUNG: Das hier kann Fixed-Positioning von Kindern stören! */
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

@media (max-width: 800px) {
  .wrap { margin: 10px; padding: var(--space-md); }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { margin: 0 0 var(--space-md) 0; font-weight: 700; color: #fff; line-height: 1.2; }
h2 { font-size: 1.5rem; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; }

.card h1, .card h2, .card h3, .card h4 {
    color: var(--satra-blue-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.text-small { font-size: 0.85rem; color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* --- GRID SYSTEM --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 900px) {
  .grid-sidebar { grid-template-columns: 1fr; }
}

.flex { display: flex; gap: var(--space-md); }
.flex-col { display: flex; flex-direction: column; gap: var(--space-sm); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end { display: flex; justify-content: flex-end; gap: var(--space-sm); }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.w-full { width: 100%; }

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mb-xl { margin-bottom: var(--space-xl) !important; }
.p-sm { padding: var(--space-sm) !important; }
.p-md { padding: var(--space-md) !important; }

/* --- NAVIGATION --- */
.main-nav {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md); margin-bottom: var(--space-lg);
}
.nav-links a {
  display: inline-block; margin-right: var(--space-sm); padding: 6px 12px;
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  border-radius: 99px; transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.active { color: #fff; background: rgba(34,119,185,0.2); border: 1px solid rgba(34,119,185,0.3); }

.sub-nav {
  display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color); align-items: center;
}

/* --- CARD --- */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  overflow-x: auto;
}

/* --- FORMS --- */
label { display: block; color: var(--text-main); font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; opacity: 0.9; }
input, select, textarea {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); color: #fff;
  padding: 10px 12px; border-radius: 6px; font-size: 0.95rem; transition: all 0.2s ease;
}
::placeholder { color: rgba(255, 255, 255, 0.25); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--satra-blue-light); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 1px var(--satra-blue-light);
}
textarea { min-height: 100px; font-family: inherit; }

.checkbox-label { display: flex !important; align-items: center !important; gap: 10px; cursor: pointer; margin-top: 5px; user-select: none; }
input[type="checkbox"], input[type="radio"] { width: auto !important; margin: 0; cursor: pointer; }

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-main); -webkit-box-shadow: 0 0 0px 1000px #081426 inset; transition: background-color 5000s ease-in-out 0s;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.06); color: #e0e0e0;
  cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.btn-primary { background: linear-gradient(135deg, var(--satra-blue), #1565c0); border: 1px solid transparent; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #1e88e5, #1565c0); box-shadow: 0 6px 15px rgba(34, 119, 185, 0.4); transform: translateY(-1px); }
.btn-primary.active { border: 2px solid white; }

.btn-danger { background: rgba(230, 74, 25, 0.15); color: #ff8a65; border-color: rgba(230, 74, 25, 0.3); }
.btn-danger:hover { background: rgba(230, 74, 25, 0.3); color: #fff; }

/* --- TABLES --- */
.table-container { overflow-x: auto; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: rgba(255,255,255,0.03); font-weight: 600; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* --- HELPERS & ALERTS --- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); white-space: nowrap; }
.badge[title] { cursor: help; }
.badge-ok { background: rgba(102, 187, 106, 0.15); color: #81c784; border-color: rgba(102,187,106,0.3); }
.badge-warn { background: rgba(255, 167, 38, 0.15); color: #ffb74d; border-color: rgba(255,167,38,0.3); }
.badge-danger { background: rgba(230, 74, 25, 0.15); color: #ffab91; border-color: rgba(230,74,25,0.3); }

.alert { padding: 12px 16px; margin-bottom: var(--space-md); border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); }
.alert-success { background: rgba(102, 187, 106, 0.1); border-color: rgba(102,187,106,0.3); color: #a5d6a7; }
.alert-error { background: rgba(230, 74, 25, 0.1); border-color: rgba(230,74,25,0.3); color: #ffab91; }

.wrap [style*="background:#fff"], .wrap [style*="background:white"] { color: #111 !important; }

/* --- INFO BOX --- */
.info-box { background: rgba(34, 119, 185, 0.1); border-left: 4px solid var(--satra-blue); padding: var(--space-md); border-radius: 4px; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.info-box code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-family: monospace; color: var(--satra-blue-light); }
.info-box ul { margin: 10px 0 0 20px; padding: 0; }
.info-box li { margin-bottom: 6px; }

/* --- CHIPS & TILES --- */
.tag-check {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 8px 12px; border-radius: 6px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease; user-select: none; min-height: 40px; line-height: 1.2;
}
.tag-check:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.tag-check input { display: none; }
.tag-check:has(input:checked) { background: rgba(34, 119, 185, 0.15); border-color: var(--satra-blue-light); color: #fff; box-shadow: 0 0 10px rgba(34, 119, 185, 0.15) inset; }

.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }

/* --- TOGGLE SWITCH --- */
.toggle-label { display: inline-flex; align-items: center; cursor: pointer; user-select: none; padding: 8px 0; }
.toggle-label input { display: none; }
.toggle-track { width: 48px; height: 26px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-color); border-radius: 99px; position: relative; transition: all 0.3s; margin-right: 12px; }
.toggle-thumb { width: 20px; height: 20px; background: #9aa0a6; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.toggle-label input:checked + .toggle-track { background: rgba(102, 187, 106, 0.2); border-color: #66bb6a; }
.toggle-label input:checked + .toggle-track .toggle-thumb { background: #66bb6a; transform: translateX(22px); }
.toggle-text { font-weight: 600; color: var(--text-muted); transition: color 0.3s; }
.toggle-label input:checked ~ .toggle-text { color: #fff; }

/* --- ROSTER / CALENDAR SPECIALS --- */
.fc {
    --fc-border-color: rgba(255, 255, 255, 0.1);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.02);
    --fc-list-event-hover-bg-color: rgba(255, 255, 255, 0.05);
    --fc-today-bg-color: rgba(34, 119, 185, 0.15) !important;
}
.fc-col-header-cell { background: rgba(255, 255, 255, 0.02); padding: 10px 0; }
.fc-timegrid-slot { height: 3em !important; }
.fc-event { border: none !important; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); font-size: 0.85rem; padding: 2px 4px; cursor: pointer; transition: transform 0.1s; }
.fc-event:hover { transform: scale(1.02); z-index: 10 !important; }
.fc-event-title { font-weight: 600; }

/* Regelverstöße im Kalender */
.fc-violation-event { border: 2px solid #ffeb3b !important; box-shadow: 0 0 5px rgba(211, 47, 47, 0.5); animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0% { border-color: #ffeb3b; } 50% { border-color: #ff1744; } 100% { border-color: #ffeb3b; } }

/* Ferien-Hintergrund */
.fc-school-holiday-bg { opacity: 0.15; pointer-events: none !important; z-index: 0 !important; }
.fc-school-holiday-label { pointer-events: none !important; }

/* Status Konsole */
.status-console {
    display: none; background: #080c14; border: 1px solid var(--satra-blue); border-radius: var(--border-radius); padding: var(--space-md); margin-bottom: var(--space-lg); box-shadow: 0 10px 40px rgba(0,0,0,0.5); position: relative; overflow: hidden;
}
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; margin: 15px 0; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--satra-blue), #64B5F6); transition: width 0.3s ease; }
.progress-bar.working { animation: progressSim 10s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes progressSim { 0% { width: 0%; } 50% { width: 70%; } 100% { width: 95%; } }
.console-log { font-family: monospace; font-size: 0.8rem; max-height: 150px; overflow-y: auto; padding: 10px; border-radius: 4px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); }
.log-success { color: #81c784; } .log-warn { color: #ffb74d; } .log-error { color: #ff8a65; }

/* Filter Buttons */
.filter-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 16px; border-radius: 99px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.filter-btn.active { background: var(--satra-blue); border-color: var(--satra-blue); color: #fff; box-shadow: 0 2px 8px rgba(34, 119, 185, 0.4); }

/* Modal Overlay */
.modal-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; }

/* --- DUTY MATRIX TILES (Optimiert & Bereinigt) --- */
.duty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.duty-tile-label { cursor: pointer; user-select: none; position: relative; }
.duty-tile-label input { display: none; }

.duty-tile-card {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); border-radius: 6px; padding: 10px 5px;
    text-align: center; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 60px;
    /* Basis-Rand (transparent) */
    border-top: 3px solid transparent; 
}
.duty-tile-card .num { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.duty-tile-card .times { font-size: 0.7rem; color: var(--text-muted); opacity: 0.6; font-family: monospace; }
.duty-tile-label:hover .duty-tile-card { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Active State */
.duty-tile-label input:checked + .duty-tile-card { background: rgba(34, 119, 185, 0.2); border-color: var(--satra-blue-light); box-shadow: 0 0 10px rgba(34, 119, 185, 0.2) inset; }
.duty-tile-label input:checked + .duty-tile-card .num { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.duty-tile-label input:checked + .duty-tile-card .times { color: var(--satra-blue-light); opacity: 1; }

/* --- LINIE & DEPOT FARBEN (Zusammengefasst) --- */
.duty-line {
    font-size: 0.75rem; font-weight: 700; color: var(--satra-blue-light); display: block; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 4px;
}

/* Dresden = Gelb */
.duty-tile-card.depot-dresden { border-top-color: #FDD835; background: rgba(253, 216, 53, 0.05); }
.duty-tile-card.depot-dresden .duty-line { color: #FDD835; }

/* Kesselsdorf = Orange */
.duty-tile-card.depot-kesselsdorf { border-top-color: #FB8C00; background: rgba(251, 140, 0, 0.05); }
.duty-tile-card.depot-kesselsdorf .duty-line { color: #FB8C00; }

/* Meissen = Dunkelgrün */
.duty-tile-card.depot-meissen { border-top-color: #2E7D32; background: rgba(46, 125, 50, 0.05); }
.duty-tile-card.depot-meissen .duty-line { color: #4CAF50; }

/* Nossen = Helles Grün */
.duty-tile-card.depot-nossen { border-top-color: #8BC34A; background: rgba(139, 195, 74, 0.05); }
.duty-tile-card.depot-nossen .duty-line { color: #8BC34A; }

/* --- DIVERSE --- */
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.month-cell { background: rgba(255,255,255,0.02); border: 1px solid transparent; border-radius: 6px; padding: 8px; text-align: center; position: relative; transition: all 0.2s; }
.month-cell.filled { background: rgba(34, 119, 185, 0.1); border-color: rgba(34, 119, 185, 0.2); }
.month-cell.filled:hover { background: rgba(34, 119, 185, 0.2); }
.month-val { font-weight: 700; font-size: 1.1rem; color: #fff; margin-top: 2px; }
.delete-btn { position: absolute; top: 2px; right: 2px; opacity: 0; transition: opacity 0.2s; }
.month-cell:hover .delete-btn { opacity: 1; }
@media (max-width: 600px) { .month-grid { grid-template-columns: repeat(3, 1fr); } }

/* Duty Master Card (Liste) */
.duties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; align-items: stretch; }
.duty-master-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 0; overflow: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; position: relative; height: 100%; min-height: 240px; }
.duty-master-card:hover { transform: translateY(-5px); border-color: var(--satra-blue-light); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.dm-card-header { padding: 15px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: flex-start; }
.dm-status-indicator { width: 4px; position: absolute; left: 0; top: 0; bottom: 0; }
.dm-card-body { padding: 15px; flex-grow: 1; }
.dm-time-row { display: flex; align-items: center; gap: 15px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); }
.dm-footer { padding: 12px 15px; background: rgba(0,0,0,0.2); display: flex; justify-content: space-between; align-items: center; }

/* Split Duty Styling */
.row-kind-teilung { border-left: 3px solid #AB47BC; background: repeating-linear-gradient(45deg, rgba(171, 71, 188, 0.05), rgba(171, 71, 188, 0.05) 10px, rgba(171, 71, 188, 0.1) 10px, rgba(171, 71, 188, 0.1) 20px); }
.row-kind-teilung input { opacity: 0.8; }

/* =========================================================
   ROSTER (Dienstplan) – styles extracted from the template
   (formerly inline <style> in index.html)
   ========================================================= */

/* Utility helpers used by the roster template */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.p-0{ padding:0 !important; }
.m-0{ margin:0 !important; }
.mb-1{ margin-bottom:4px !important; }
.mb-lg{ margin-bottom: var(--space-lg); }
.mt-lg{ margin-top: var(--space-lg); }
.gap-2{ gap:8px !important; }
.gap-md{ gap: var(--space-md) !important; }
.mr-1{ margin-right:4px !important; }
.mr-2{ margin-right:8px !important; }
.ml-1{ margin-left:4px !important; }
.ml-2{ margin-left:8px !important; }
.mx-1{ margin-left:4px !important; margin-right:4px !important; }
.w-full{ width:100% !important; }
.h-full{ height:100% !important; }
.justify-center{ justify-content:center !important; }
.align-center{ align-items:center !important; }

/* Make the roster page wider without touching other pages.
   (Focus mode has its own rules and should win.) */
.wrap:has(.roster-toolbar):not(.mode-focus){ max-width: 98% !important; margin: 2vh auto !important; }

/* HEADER */
.status-dot { width: 6px; height: 6px; background: #66bb6a; border-radius: 50%; display: inline-block; }
.status-dot.pulse { box-shadow: 0 0 0 rgba(102,187,106, 0.4); animation: pulse-green 2s infinite; }
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(102,187,106, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(102,187,106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102,187,106, 0); }
}
.badge-subtle{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-muted);
}

/* TOP NAVIGATION (scoped to roster page) */
.wrap:has(.roster-toolbar) .nav-group { display: flex; gap: 4px; }
.wrap:has(.roster-toolbar) .nav-btn{
  padding: 6px 14px; border-radius: 6px; color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: 0.95rem; transition: all 0.2s; border: 1px solid transparent;
  display: flex; align-items: center; gap: 8px;
}
.wrap:has(.roster-toolbar) .nav-btn:hover{ background: rgba(255,255,255,0.05); color: #fff; }
.wrap:has(.roster-toolbar) .nav-btn.active{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); color: #fff; }

/* TOOLBAR CONTAINER */
.wrap:has(.roster-toolbar) .roster-toolbar{
  border: 1px solid var(--border-color); border-radius: 8px;
  background: #0f141f;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  overflow: visible;
}
.wrap:has(.roster-toolbar) .toolbar-main{
  padding: 12px 16px; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0) 100%);
}
.wrap:has(.roster-toolbar) .toolbar-section{ display: flex; flex-direction: column; }
.wrap:has(.roster-toolbar) .grow-section{ flex-grow: 1; min-width: 280px; }
.wrap:has(.roster-toolbar) .section-label{
  font-size: 0.75rem; text-transform: uppercase; color: #888; font-weight: 600; margin-bottom: 6px;
  display: block; letter-spacing: 0.5px;
}
.wrap:has(.roster-toolbar) .btn-text-action{
  background: none; border: none; color: var(--satra-blue-light); font-size: 0.75rem; cursor: pointer; padding: 0;
}
.wrap:has(.roster-toolbar) .btn-text-action:hover{ text-decoration: underline; color: #fff; }

/* DATE INPUTS */
.wrap:has(.roster-toolbar) .date-group{
  display: flex; align-items: center; background: #1a202c; border: 1px solid #333;
  border-radius: 6px; padding: 2px;
}
.wrap:has(.roster-toolbar) .date-input{ position: relative; flex: 1; display: flex; align-items: center; }
.wrap:has(.roster-toolbar) .date-input i{ position: absolute; left: 10px; color: #666; pointer-events: none; }
.wrap:has(.roster-toolbar) .date-input input{
  width: 100%; background: transparent; border: none; color: #fff;
  font-family: monospace; font-size: 0.9rem; padding: 8px 8px 8px 32px; outline: none;
}
.wrap:has(.roster-toolbar) .date-input input::-webkit-calendar-picker-indicator{ filter: invert(1); opacity: 0.3; cursor: pointer; }
.wrap:has(.roster-toolbar) .date-input input:focus{ color: var(--satra-blue-light); }
.wrap:has(.roster-toolbar) .date-arrow{ color: #555; padding: 0 8px; font-size: 0.8rem; }

/* SEGMENTED CONTROLS */
.wrap:has(.roster-toolbar) .seg-control{ display: flex; background: #1a202c; border: 1px solid #333; border-radius: 6px; padding: 2px; }
.wrap:has(.roster-toolbar) .seg-btn{
  background: transparent; border: none; color: #888; border-radius: 4px; padding: 6px 12px;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500;
}
.wrap:has(.roster-toolbar) .seg-btn:hover{ color: #fff; background: rgba(255,255,255,0.05); }
.wrap:has(.roster-toolbar) .seg-btn.active{ background: #2277b9; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ACTIONS & BUTTONS */
.wrap:has(.roster-toolbar) .toolbar-actions{ display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wrap:has(.roster-toolbar) .btn-lg{ height: 40px; padding: 0 20px; font-weight: 600; display: flex; align-items: center; }
.wrap:has(.roster-toolbar) .btn-tool{
  width: 40px; height: 40px; border-radius: 6px; border: 1px solid #333; background: #1a202c;
  color: #aaa; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.wrap:has(.roster-toolbar) .btn-tool:hover{ background: #252b3b; color: #fff; border-color: #555; }
.wrap:has(.roster-toolbar) .text-danger{ color:#ef5350 !important; }
.wrap:has(.roster-toolbar) .btn-tool.text-danger:hover{ color: #ef5350; border-color: #ef5350; background: rgba(239, 83, 80, 0.1); }
.wrap:has(.roster-toolbar) .divider-vertical{ width: 1px; height: 30px; background: #333; margin: 0 10px; }
.wrap:has(.roster-toolbar) .toolbar-footer{
  padding: 8px 16px; background: #161b26; border-top: 1px solid #2a3040;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #aaa;
  border-radius: 0 0 8px 8px;
}

/* MEDIA QUERIES */
@media (max-width: 900px){
  .wrap:has(.roster-toolbar) .toolbar-main{ flex-direction: column; align-items: stretch; gap: 15px; }
  .wrap:has(.roster-toolbar) .toolbar-actions{ margin-left: 0; justify-content: space-between; }
  .wrap:has(.roster-toolbar) .divider-vertical{ display: none; }
  .wrap:has(.roster-toolbar) .hide-compact{ display: none; }
}

/* Drawer */
.wrap:has(.roster-toolbar) .drawer-backdrop{
  position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
}
.wrap:has(.roster-toolbar) .drawer{
  width: 320px; max-width: 90vw; height: 100vh; background: #121212;
  border-left: 1px solid #333; display: flex; flex-direction: column;
}
.wrap:has(.roster-toolbar) .drawer-header{
  padding: 15px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center;
}
.wrap:has(.roster-toolbar) .drawer-body{ padding: 15px; flex-grow: 1; overflow-y: auto; }
.wrap:has(.roster-toolbar) .drawer-section{ margin-bottom: 20px; }
.wrap:has(.roster-toolbar) .control-label{ display: block; margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; color: #888; }
.wrap:has(.roster-toolbar) .select-pill select{ width: 100%; padding: 8px; background: #222; border: 1px solid #444; color: #fff; border-radius: 4px; }
.wrap:has(.roster-toolbar) .chips{ display: flex; gap: 8px; flex-wrap: wrap; }
.wrap:has(.roster-toolbar) .chip{ padding: 6px 12px; background: #222; border: 1px solid #444; border-radius: 20px; cursor: pointer; color: #aaa; }
.wrap:has(.roster-toolbar) .chip.active{ border-color: var(--satra-blue, #2277b9); color: #fff; background: #2277b9; }

/* Console overlay (Roster) */
.wrap:has(.roster-toolbar) .roster-wrapper{
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border-color, #333); border-radius: 12px; overflow: hidden;
}
.wrap:has(.roster-toolbar) .status-console{
  display: none; position: absolute; top: 20px; right: 20px; width: 350px;
  background: rgba(10,15,25,0.95); backdrop-filter: blur(10px);
  border: 1px solid #444; border-radius: 8px; z-index: 50;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.wrap:has(.roster-toolbar) .console-header{
  padding: 10px 15px; border-bottom: 1px solid #444;
  display: flex; justify-content: space-between; align-items: center;
}
.wrap:has(.roster-toolbar) .console-body{ padding: 15px; max-height: 300px; overflow-y: auto; }
.wrap:has(.roster-toolbar) .console-log{
  font-family: monospace; font-size: 0.8rem;
  background: rgba(0,0,0,0.3); padding: 8px; border-radius: 4px; margin-top: 5px;
}

/* =========================================================
   FullCalendar – cleaner / less “bar overload”
   ========================================================= */

.wrap:has(.roster-toolbar) .fc{
  --fc-border-color: rgba(255,255,255,0.08);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(255,255,255,0.02);
  --fc-list-event-hover-bg-color: rgba(255,255,255,0.05);
  --fc-today-bg-color: rgba(34, 119, 185, 0.12) !important;
}

.wrap:has(.roster-toolbar) .fc .fc-scrollgrid,
.wrap:has(.roster-toolbar) .fc .fc-scrollgrid table{
  border-color: rgba(255,255,255,0.08) !important;
}

.wrap:has(.roster-toolbar) .fc .fc-col-header-cell{
  background: rgba(255,255,255,0.02);
  padding: 8px 0;
}

.wrap:has(.roster-toolbar) .fc .fc-timegrid-slot{ height: 2.6em !important; }

/* Base event look: subtle fill + thin border + accent stripe */
.wrap:has(.roster-toolbar) .fc .fc-event{
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-left: 3px solid rgba(255,255,255,0.35) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.74rem !important;
  margin: 0 1px 1px 0 !important;
  cursor: pointer;
}

.wrap:has(.roster-toolbar) .fc .fc-event:hover{
  background: rgba(255,255,255,0.08) !important;
  z-index: 10 !important;
}

/* Occupancy: assigned vs open (driver_id -> JS adds .is-assigned / .is-open) */
.wrap:has(.roster-toolbar) .fc .fc-event.is-assigned{
  background: rgba(102, 187, 106, 0.20) !important;
  border-color: rgba(102, 187, 106, 0.32) !important;
  box-shadow: 0 0 0 1px rgba(102, 187, 106, 0.18) inset !important;
}

.wrap:has(.roster-toolbar) .fc .fc-event.is-open{
  /* keep it subtle/neutral – only assigned should “pop” */
  background: rgba(255,255,255,0.05) !important;
}

/* Trim and align event content (eventContent() uses inline flex styling) */
.wrap:has(.roster-toolbar) .fc .fc-event-title{
  font-weight: 600 !important;
  justify-content: flex-start !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Type accents (based on eventClassNames: type-*) */
.wrap:has(.roster-toolbar) .fc-event[class*="type-linie"]{ border-left-color: var(--satra-blue) !important; }
.wrap:has(.roster-toolbar) .fc-event[class*="type-sev"]{ border-left-color: #8E24AA !important; }
.wrap:has(.roster-toolbar) .fc-event[class*="type-werkstatt"]{ border-left-color: #F9A825 !important; }
.wrap:has(.roster-toolbar) .fc-event[class*="type-reise"]{ border-left-color: #26A69A !important; }

/* Timeline views (resourceTimeline*): reduce noise even more */
.wrap:has(.roster-toolbar) .fc .fc-timeline-event{
  border-radius: 999px !important;
}
.wrap:has(.roster-toolbar) .fc .fc-timeline-event i{ display: none !important; } /* hide icons in timeline bars */
.wrap:has(.roster-toolbar) .fc .fc-timeline-event .fc-event-main-frame{ justify-content: flex-start !important; }
.wrap:has(.roster-toolbar) .fc .fc-timeline-event .fc-event-main{ padding: 0 6px !important; }

/* Filter helpers */
.wrap:has(.roster-toolbar) .fc-event-hidden{ display: none !important; }

/* Holiday / Ferien helpers (background + label events)
   Notes:
   - We override the generic .fc-event styling with higher specificity to avoid "double" borders.
   - Labels get a small pill background for readability on colored holiday ranges.
*/

/* Background ranges (display:"background" typically renders as .fc-bg-event) */
.wrap:has(.roster-toolbar) .fc .fc-bg-event.fc-holiday-bg,
.wrap:has(.roster-toolbar) .fc .fc-bg-event.fc-school-holiday-bg,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-bg,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-bg{
  opacity: 0.14 !important;
  pointer-events: none !important;
}

/* Label events (normal all-day events, but we want them lightweight and readable) */
.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-label,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-label{
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-label .fc-event-main-frame,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-label .fc-event-main-frame{
  justify-content: center !important;
}

.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-label .fc-event-title,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-label .fc-event-title{
  justify-content: center !important;
}

/* If roster.js renders a custom pill, style it. If not, style the normal title element too. */
.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-label .fc-holiday-pill,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-label .fc-holiday-pill,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-label .fc-event-title,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-label .fc-event-title{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.96) !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide icons inside holiday labels (in case the default duty renderer injects them) */
.wrap:has(.roster-toolbar) .fc .fc-event.fc-holiday-label i,
.wrap:has(.roster-toolbar) .fc .fc-event.fc-school-holiday-label i{
  display: none !important;
}
.wrap:has(.roster-toolbar) .fc-list-event-title{ font-weight: 600; }

/* --- portal.css --- */

/* FOCUS MODE: Sprengt den Wrapper für maximale Übersicht */
.wrap.mode-focus {
    /* Fixierte Position über allem anderen */
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Maximale Größe */
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    
    /* Hintergrund sicherstellen */
    background: var(--bg-body, #050A14) !important;
    z-index: 9990 !important; /* Hoch, aber unter Modals */
    
    /* Flexbox anpassen, damit der Kalender wachsen kann */
    display: flex;
    flex-direction: column;
    padding: 10px !important;
    overflow: hidden; /* Scrollbars vermeiden */
}

/* Im Focus Mode: Navigation und Header ausblenden, um Platz zu sparen */
.wrap.mode-focus .sub-nav,
.wrap.mode-focus .main-nav,
.wrap.mode-focus h3, 
.wrap.mode-focus p.text-muted,
.wrap.mode-focus .mb-lg > div.flex-between { /* Versteckt die obere Leiste mit Buttons */
    display: none !important;
}

/* Aber: Wir brauchen EINEN Button zum Zurückschalten! */
/* Wir bauen einen speziellen "Exit"-Button, der nur dann sichtbar ist */
#btnExitFocus {
    display: none;
}
.wrap.mode-focus #btnExitFocus {
    display: inline-flex !important;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10000;
}

/* Kalender muss im Focus Mode den ganzen Platz füllen */
.wrap.mode-focus #calendar {
    flex-grow: 1;
    height: 100% !important;
}

/* =========================================================
   ROSTER: Ferien/Feiertage + Besetzt/Offen Darstellung (v4)
   - funktioniert in allen FullCalendar-Ansichten
   - greift auch, wenn Ferien als holiday_lbl_*/schoolholiday_lbl_* kommen
   ========================================================= */

/* Dienste: besetzt vs offen (subtil, aber klar) */
.fc .fc-event.is-assigned,
.fc .fc-daygrid-event.is-assigned,
.fc .fc-timegrid-event.is-assigned{
  background: rgba(102, 187, 106, 0.18) !important;
  border-color: rgba(102, 187, 106, 0.30) !important;
  border-left-color: rgba(102, 187, 106, 0.85) !important;
}

.fc .fc-event.is-open,
.fc .fc-daygrid-event.is-open,
.fc .fc-timegrid-event.is-open{
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* Hintergrund (Feiertag/Ferien) – etwas ruhiger */
.fc .fc-bg-event.fc-holiday-bg{
  opacity: 0.55;
}

/* Label (Feiertag/Ferien) – lesbarer Text ohne „Dienst“-Look */
.fc .fc-holiday-label,
.fc .fc-event.fc-holiday-label,
.fc .fc-daygrid-event.fc-holiday-label,
.fc .fc-timegrid-event.fc-holiday-label{
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none !important;
  z-index: 5;
}

/* Die Pill selbst */
.fc .fc-holiday-pill{
  display: inline-block;
  max-width: 100%;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0,0,0,0.45);
}

/* In Month-Cells ein bisschen zentrieren */
.fc .fc-daygrid-day-events .fc-holiday-pill{
  margin: 2px auto 0;
}


/* ===== Export-Zentrum (v2) – konsistente Cards, scoped ===== */

.export-center{ 
  margin-top: 4px;
}

.export-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.export-title{ 
  margin:0 0 6px 0;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.export-subtitle{
  margin:0;
  color: var(--text-muted);
}

.export-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 18px;
}

@media (max-width: 1250px){
  .export-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 720px){
  .export-grid{ grid-template-columns: 1fr; }
}

.export-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  overflow:hidden;
}

.export-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 4px;
  background: rgba(255,255,255,0.10);
}

.export-card__top{
  display:flex;
  flex-direction:column;
  height:100%;
}

.export-card__head{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.export-card__titles{ flex: 1; min-width: 0; }

.export-card__title{
  margin: 2px 0 2px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.export-card__kicker{
  font-size: 12px;
  color: var(--text-muted);
}

.export-card__desc{
  margin: 6px 0 14px 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.export-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.export-icon i{ font-size: 18px; opacity: 0.95; }

.export-badge{
  margin-left:auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}

.export-form{ margin-top:auto; }

/* Druckbare Dienstpläne Liste (Export-Zentrum) */
.export-planlist{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

.export-planlist__title{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.export-planlist__hint{
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.35;
}

.export-planlist__items{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.export-planlist__link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

.export-planlist__link:hover{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.export-planlist__label{
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-planlist__range{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

.export-planlist--empty{ opacity: 0.95; }

.export-date-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.export-field{ min-width: 0; }

.export-label{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.export-input{
  width: 100%;
  min-width: 0;
}

.export-meta{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.export-meta__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.export-meta__key{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.export-meta__val{
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}

.export-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.export-cta{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 10px;
}

.export-card:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
}

/* Variants */
.export-card--blue::before{ background: rgba(66, 165, 245, 0.9); }
.export-icon--blue{ background: rgba(66, 165, 245, 0.12); border-color: rgba(66, 165, 245, 0.28); }
.export-badge--blue{ background: rgba(66, 165, 245, 0.10); border-color: rgba(66, 165, 245, 0.28); }
.export-cta--blue{ background: rgba(66, 165, 245, 0.18); border: 1px solid rgba(66, 165, 245, 0.55); color: rgba(255,255,255,0.92); }

.export-card--green::before{ background: rgba(102, 187, 106, 0.92); }
.export-icon--green{ background: rgba(102, 187, 106, 0.12); border-color: rgba(102, 187, 106, 0.28); }
.export-badge--green{ background: rgba(102, 187, 106, 0.10); border-color: rgba(102, 187, 106, 0.28); }
.export-cta--green{ background: rgba(102, 187, 106, 0.16); border: 1px solid rgba(102, 187, 106, 0.55); color: rgba(255,255,255,0.92); }

.export-card--purple::before{ background: rgba(171, 71, 188, 0.92); }
.export-icon--purple{ background: rgba(171, 71, 188, 0.12); border-color: rgba(171, 71, 188, 0.28); }
.export-badge--purple{ background: rgba(171, 71, 188, 0.10); border-color: rgba(171, 71, 188, 0.28); }
.export-cta--purple{ background: rgba(171, 71, 188, 0.16); border: 1px solid rgba(171, 71, 188, 0.55); color: rgba(255,255,255,0.92); }

.export-card--disabled{
  opacity: 0.68;
  border-style: dashed;
}
.export-card--disabled:hover{ transform:none; }
.export-icon--muted{ opacity: 0.75; }

.export-placeholder{ margin-top: auto; padding-top: 8px; }
.export-skeleton{
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.09), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: exportShimmer 1.4s linear infinite;
  margin-bottom: 10px;
}
.export-skeleton.short{ width: 70%; }

@keyframes exportShimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: 200% 0; }
}
