/* ==========================================================================
   AzubiWeg — Design System Épuré & Apaisant (A → Z)
   Palette douce et lisible : Mist Slate, Soft Indigo-Blue & Sage Emerald
   ========================================================================== */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --blue: #3b6fd8;
  --blue-hover: #2f5bb8;
  --blue-soft: #eef3fc;
  --blue-border: #c7d7f5;
  --green: #2b8a6b;
  --green-hover: #227157;
  --green-soft: #eef8f4;
  --green-border: #bce3d2;
  --amber-soft: #fef8eb;
  --amber-txt: #9a6715;
  --line: #e4eaf2;
  --line-strong: #cbd5e1;
  --txt: #1e293b;
  --txt-muted: #64748b;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.025);
  --shadow-hover: 0 8px 22px rgba(59, 111, 216, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Custom subtle scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Centre de l'application (propre, plein écran centré sans colonnes publicitaires) */
.app-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 35px rgba(15, 23, 42, 0.03);
}
.app-center > main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* ================= Top Navigation (icons + petits libellés) ================= */
.sidebar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.sidebar-top-row {
  display: contents;
}

.logo {
  order: 1;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 12px 5px;
  height: 100%;
  border-bottom: 2px solid transparent;
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

nav a .nav-ic {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

nav a .nav-ic svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav a:hover {
  color: var(--blue);
}

nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.lang {
  order: 3;
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
  direction: ltr;
}

.lang button {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang button:hover {
  color: var(--txt);
}

.lang button.on {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}


/* ================= Main Content ================= */
main {
  padding: 24px 30px 40px;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
}

/* ================= Cards, Video & Tiles ================= */
.video-card,
.goal,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.video-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.video-thumb {
  width: 176px;
  height: 98px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4b7bec 0%, #6b9df4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(75, 123, 236, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(75, 123, 236, 0.28);
}

.play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
}

.video-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--txt);
}

.video-card p {
  margin: 0 0 8px;
  color: var(--txt-muted);
  font-size: 13.5px;
}

.link {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.bar {
  height: 10px;
  background: #e9eff7;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.3s ease;
}

.note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--txt-muted);
}

.filters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--txt);
  border-radius: 99px;
  padding: 6px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.chip.on {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--blue);
  font-weight: 600;
}

.card h2 {
  margin: 0 0 6px;
  color: var(--txt);
}

.badge {
  float: right;
  background: var(--surface-soft);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--txt-muted);
}

.meta {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.letter {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  white-space: pre-wrap;
  margin: 12px 0;
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn.blue {
  background: var(--blue);
}
.btn.blue:hover:not(:disabled) {
  background: var(--blue-hover);
}

.btn.green {
  background: var(--green);
}
.btn.green:hover:not(:disabled) {
  background: var(--green-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ads block consolidated at top of style.css */

footer {
  text-align: center;
  color: #94a3b8;
  font-size: 12.5px;
  margin-top: 26px;
  padding-top: 12px;
}

/* ================= Video Modal ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal[hidden] {
  display: none;
}

.modal-box {
  background: #0f172a;
  width: min(860px, 92vw);
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.modal-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--txt);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1000px) {
  body {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: block;
    height: auto;
    padding: 0;
    background: var(--surface);
    border-bottom: 0;
  }
  .sidebar-top-row {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  }
  .logo {
    order: 1;
  }
  .lang {
    order: 2;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    height: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 2px 14px 0;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, visibility 0s linear 0s;
    will-change: transform, opacity;
  }
  .sidebar.nav-hidden nav {
    transform: translateY(calc(-100% - 4px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.16s ease, visibility 0s linear 0.2s;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav a {
    padding: 6px 8px;
    font-size: 10px;
    height: auto;
  }
  main {
    padding: calc(16px + var(--mobile-nav-h, 46px)) 16px 24px;
  }
  .video-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .sidebar-top-row {
    padding: 8px 10px;
    gap: 6px;
  }
  .logo {
    font-size: 15px;
    min-width: 0;
  }
  .lang {
    padding: 2px;
    gap: 1px;
  }
  .lang button {
    padding: 3px 7px;
    font-size: 10px;
  }
  nav {
    justify-content: space-between;
    gap: 0;
    padding: 2px 10px 0;
  }
  nav a {
    flex: 0 1 auto;
    min-width: 0;
    padding: 6px 2px 7px;
    font-size: 9px;
    letter-spacing: -0.01em;
    text-transform: none;
    gap: 2px;
  }
  nav a .nav-ic {
    width: 16px;
    height: 16px;
  }
  nav a .nav-lb {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main {
    padding: calc(14px + var(--mobile-nav-h, 46px)) 12px 28px;
  }
}

@media (max-width: 400px) {
  .sidebar-top-row {
    padding: 7px 8px;
    gap: 4px;
  }
  .logo {
    font-size: 14px;
  }
  .lang button {
    padding: 3px 6px;
    font-size: 9.5px;
  }
  nav {
    padding: 2px 8px 0;
  }
  nav a {
    padding: 6px 1px 7px;
    font-size: 8.75px;
    letter-spacing: -0.015em;
  }
}

/* ================= Wizard Tiles & Headings ================= */
.h {
  margin: 6px 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--txt);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.tiles.small {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .tiles.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tiles.small .tile {
    min-width: 0;
    min-height: 128px;
    padding: 10px 7px;
    gap: 5px;
    border-radius: 12px;
  }
  .tiles.small .tile .ic {
    font-size: 26px;
    margin-bottom: 0;
  }
  .tiles.small .tile strong {
    font-size: 12.5px;
    min-height: 30px;
    line-height: 1.25;
  }
  .tiles.small .tile small {
    font-size: 11px;
    min-height: 26px;
    line-height: 1.3;
  }
  .tiles.small .tile strong,
  .tiles.small .tile small {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
}

@media (max-width: 420px) {
  .tiles.small .tile strong {
    font-size: 12px;
  }
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  min-height: 168px;
  position: relative;
}

.tile:hover {
  border-color: var(--blue-border);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.tile.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px rgba(59, 111, 216, 0.2);
}

.tile .ic {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 1px;
}

.tile strong {
  color: var(--txt);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile .domain-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.3;
}

.tile small {
  color: var(--txt-muted);
  font-size: 11.5px;
  line-height: 1.38;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile .pill-hot {
  margin-top: auto;
}

@media (max-width: 680px) {
  .chips .chip,
  .cat-chip {
    padding: 6px 5px;
    font-size: 10.5px;
    line-height: 1.22;
  }
  .tile {
    padding: 13px 10px;
    gap: 5px;
    min-height: 0;
  }
  .tile .ic {
    font-size: 27px;
    margin-bottom: 0;
  }
  .tile strong {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .tile .domain-sub {
    font-size: 11.5px;
    line-height: 1.25;
  }
  .tile small {
    font-size: 11px;
    line-height: 1.3;
  }
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--txt);
}

.check input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.card a,
.check a {
  color: var(--blue);
}

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

/* ================= Anerkennung & Enhanced UI ================= */
.subtitle {
  color: var(--txt-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.pill-req {
  display: inline-block;
  font-size: 11px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 600;
  margin-top: 4px;
}

.pill-ok {
  display: inline-block;
  font-size: 11px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 600;
  margin-top: 4px;
}

.pill-blue {
  display: inline-block;
  font-size: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 600;
  margin-top: 4px;
}

.header-box {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.header-box h2 {
  margin: 8px 0 6px;
  font-size: 19.5px;
  color: #1e3a8a;
  letter-spacing: -0.015em;
}

.header-box p {
  margin: 0;
  color: #3b5998;
  font-size: 13.8px;
  line-height: 1.55;
}

.badge-blue {
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
}

/* Wilaya Selector */
.wilaya-selector-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.custom-select {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--blue-border);
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--txt);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.custom-select:focus,
.custom-select:hover {
  border-color: var(--blue);
  background: var(--surface);
}

/* Amt Card & Legacy Anerkennung */
.amt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.amt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.amt-header h3 {
  margin: 4px 0 6px;
  font-size: 17.5px;
  color: var(--txt);
}

.sub-label {
  font-size: 11.5px;
  color: var(--txt-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amt-address {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
}

.blue-outline {
  border: 1.5px solid var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.16s ease;
  display: inline-block;
}

.blue-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.small-btn {
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 8px;
}

/* ==========================================================================
   MODULE ANERKENNUNG (MO3ADALA) - MODERN REDESIGN & INTERACTIVE SVG MAP
   ========================================================================== */

.anerkennung-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

.anerkennung-hero-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

/* Onglets Simples : Anerkennung Bac vs Arbeit vs Licence */
.anerkennung-simple-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.anerkennung-simple-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.anerkennung-simple-tab:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.6);
}

.anerkennung-simple-tab.active {
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

/* Compact domain pills inside Arbeit tab */
.anerkennung-arbeit-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding-top: 0;
  border-top: none;
}

.anerkennung-arbeit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.anerkennung-arbeit-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}

.anerkennung-arbeit-pill.active {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.16);
}

@media (max-width: 820px) {
  .anerkennung-header-bar {
    gap: 8px;
  }

  .anerkennung-simple-tabs {
    order: 3;
    width: 100%;
    border-radius: 12px;
    justify-content: center;
  }

  .anerkennung-simple-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .anerkennung-header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
  }
  .anerkennung-header-bar .location-back-btn {
    order: 1;
    grid-column: 1;
    width: auto;
  }
  .anerkennung-header-bar .location-step-pill {
    order: 2;
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }
  .anerkennung-simple-tabs {
    order: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
  }
  .anerkennung-simple-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 28px;
    padding: 4px 4px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }
  .anerkennung-arbeit-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
    margin-bottom: 10px;
  }
  .anerkennung-arbeit-pill,
  html[dir="rtl"] .anerkennung-arbeit-pill {
    width: 100%;
    min-height: 28px;
    padding: 4px 5px;
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.15;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
  .anerkennung-domain-pills {
    gap: 5px;
  }
  .anerkennung-domain-pill {
    padding: 5px 10px;
    font-size: 11.5px;
    border-radius: 9px;
  }
}

.anerkennung-simple-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.anerkennung-simple-banner h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--txt);
  margin: 8px 0 6px;
  line-height: 1.35;
}

.anerkennung-hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.anerkennung-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.anerkennung-pill-badge.badge-rose {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.anerkennung-pill-badge.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.anerkennung-pill-badge.badge-amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.anerkennung-pill-badge.badge-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.anerkennung-pill-badge.badge-purple {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #f3e8ff;
}

.anerkennung-pill-badge.badge-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.anerkennung-pill-badge.badge-verified {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

.anerkennung-hero-box h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--txt);
  margin: 0 0 10px;
  line-height: 1.35;
}

.anerkennung-hero-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 18px;
}

.anerkennung-domain-selector {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.anerkennung-selector-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.anerkennung-domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anerkennung-domain-pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.anerkennung-domain-pill:hover {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.anerkennung-domain-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

/* Grille Carte Interactive & Idara Rasmiya */
.anerkennung-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.anerkennung-map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.anerkennung-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.anerkennung-card-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--txt);
  margin: 4px 0 0;
}

.anerkennung-active-state-tag {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

.anerkennung-map-hint {
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  border-left: 3px solid var(--blue);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.anerkennung-map-wrapper {
  background: radial-gradient(ellipse at center, #ffffff 40%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 440px;
}

.anerkennung-vector-map {
  width: 100%;
  height: 440px;
  max-height: 480px;
  display: block;
  user-select: none;
}

.anerkennung-state-path {
  fill: #e2e8f0;
  stroke: #ffffff;
  stroke-width: 1.6;
  cursor: pointer;
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
}

.anerkennung-state-path:hover {
  fill: #bfdbfe;
  stroke: #3b82f6;
  stroke-width: 2.2;
}

.anerkennung-state-path.selected,
.anerkennung-state-path.selected:hover {
  fill: var(--blue);
  stroke: #1e3a8a;
  stroke-width: 2.6;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.35));
}

.anerkennung-map-text {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: #475569;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.04em;
}

.anerkennung-map-text.selected {
  fill: #ffffff;
  font-weight: 900;
}

.anerkennung-map-footer {
  margin-top: 10px;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
}

/* Carte Détail Office (Droite) */
.anerkennung-office-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.anerkennung-dropdown-box {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.anerkennung-dropdown-box label {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
}

.anerkennung-amt-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.anerkennung-amt-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--txt);
  margin: 4px 0 10px;
  line-height: 1.3;
}

.anerkennung-amt-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.anerkennung-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
}

.anerkennung-stat-item > div {
  min-width: 0;
  flex: 1;
}

.anerkennung-stat-item .stat-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.anerkennung-stat-item .stat-lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 1px;
}

.anerkennung-stat-item strong {
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.3;
  display: block;
  overflow-wrap: break-word;
  unicode-bidi: plaintext;
}

.anerkennung-stat-item strong.stat-green {
  color: #059669;
}

.anerkennung-links-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.anerkennung-btn-primary {
  background: var(--blue);
  color: #ffffff !important;
  border-radius: 8px;
  min-height: 35px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.anerkennung-btn-primary svg,
.anerkennung-btn-secondary svg {
  flex-shrink: 0;
}

.anerkennung-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.anerkennung-btn-secondary {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8 !important;
  border-radius: 8px;
  min-height: 35px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  transition: all 0.18s ease;
}

.anerkennung-btn-secondary:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.anerkennung-notice-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #92400e;
  margin-top: auto;
}

/* Section Checklist des Wata2iq */
.anerkennung-docs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.anerkennung-head-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 4px 0 0;
}

.anerkennung-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.anerkennung-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.16s ease;
}

.anerkennung-doc-item:hover {
  border-color: var(--blue-border);
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.anerkennung-doc-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.anerkennung-doc-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.anerkennung-doc-info {
  flex: 1;
}

.anerkennung-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.anerkennung-doc-header h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  margin: 0;
}

.anerkennung-doc-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.anerkennung-doc-tag.tag-required {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.anerkennung-doc-tag.tag-special {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.anerkennung-doc-tag.tag-optional {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.anerkennung-doc-info p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Section Étapes Accordions */
.anerkennung-steps-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.anerkennung-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 24px;
}

.anerkennung-footer-actions .btn {
  flex: 0 1 auto;
  min-height: 36px;
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 960px) {
  .anerkennung-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .anerkennung-map-wrapper {
    min-height: 320px;
  }
  .anerkennung-vector-map {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .anerkennung-map-card,
  .anerkennung-office-card,
  .anerkennung-docs-card,
  .anerkennung-steps-card {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .anerkennung-dropdown-box {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .anerkennung-dropdown-box label {
    font-size: 12.5px;
    margin-bottom: 5px;
  }
  .anerkennung-amt-name {
    font-size: 15px;
    margin: 3px 0 9px;
  }
  .anerkennung-amt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }
  .anerkennung-stat-item {
    padding: 6px 8px;
    gap: 6px;
    border-radius: 8px;
  }
  .anerkennung-stat-item .stat-icon {
    font-size: 14px;
  }
  .anerkennung-stat-item .stat-lbl {
    font-size: 9.5px;
  }
  .anerkennung-stat-item strong {
    font-size: 11.5px;
    line-height: 1.25;
  }
  .anerkennung-links-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }
  .anerkennung-btn-primary,
  .anerkennung-btn-secondary {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 11.5px;
    border-radius: 8px;
    gap: 4px;
  }
  .anerkennung-btn-primary svg,
  .anerkennung-btn-secondary svg {
    width: 12px;
    height: 12px;
  }
  .anerkennung-docs-grid {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 10px;
  }
  .anerkennung-doc-item {
    padding: 9px 10px;
    gap: 8px;
    border-radius: 9px;
  }
  .anerkennung-notice-box {
    font-size: 12px;
    line-height: 1.45;
    padding: 9px 11px;
  }
}

/* Accordion Steps */
.steps-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-item.active {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-card);
}

.step-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  transition: background-color 0.15s ease;
}

.step-head:hover {
  background: #f8fafd;
}

.step-head .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9eff7;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.step-item.active .step-head .num {
  background: var(--blue);
  color: #ffffff;
}

.step-head h4 {
  margin: 0;
  flex: 1;
  font-size: 15px;
  color: var(--txt);
}

.step-head .arrow {
  color: #94a3b8;
  font-size: 12px;
}

.step-body {
  padding: 14px 20px 20px 60px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list li {
  padding: 4px 0;
}

.info-note {
  background: var(--amber-soft);
  border-left: 3px solid #eab308;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 13.5px;
  color: var(--amber-txt);
}

.address-box {
  background: var(--surface-soft);
  padding: 12px 16px;
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  margin: 10px 0;
  border: 1px dashed var(--line-strong);
}

.bescheid-box {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  padding: 12px 16px;
  border-radius: 9px;
  color: #1f6f54;
  font-size: 14px;
  margin: 10px 0;
}

.flow-actions {
  text-align: center;
}

.flow-actions .btn {
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(43, 138, 107, 0.22);
}

@media (max-width: 768px) {
  .wilaya-selector-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-select {
    width: 100%;
  }
  .amt-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .step-body {
    padding: 12px 16px;
  }
  .anerkennung-footer-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }
  .anerkennung-footer-actions .btn {
    width: auto;
    flex: 0 1 auto;
    min-height: 32px;
    padding: 6px 14px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .anerkennung-map-wrapper {
    min-height: 270px;
    padding: 6px;
  }
  .anerkennung-vector-map {
    height: 270px;
  }
  .anerkennung-card-head {
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }
  .anerkennung-card-head h3 {
    font-size: 15px;
    margin: 0;
  }
  .anerkennung-active-state-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
  .anerkennung-stat-item {
    padding: 5.5px 7px;
    gap: 5px;
  }
  .anerkennung-stat-item strong {
    font-size: 11px;
  }
  .anerkennung-btn-primary,
  .anerkennung-btn-secondary {
    min-height: 31px;
    padding: 5px 7px;
    font-size: 11px;
    border-radius: 7px;
    gap: 4px;
  }
  .anerkennung-doc-number {
    width: 19px;
    height: 19px;
    font-size: 10px;
  }
  .anerkennung-doc-icon {
    font-size: 16px;
  }
  .anerkennung-doc-header {
    gap: 4px;
    margin-bottom: 2px;
  }
  .anerkennung-doc-header h4 {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .anerkennung-doc-tag {
    font-size: 9.5px;
    padding: 1.5px 6px;
  }
  .anerkennung-doc-info p {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .steps-accordion {
    gap: 7px;
  }
  .step-head {
    padding: 10px 12px;
    gap: 9px;
  }
  .step-head .num {
    width: 23px;
    height: 23px;
    font-size: 11.5px;
  }
  .step-head h4 {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .anerkennung-footer-actions .btn {
    padding: 5px 7px;
    font-size: 11px;
  }
  .flow-actions .btn {
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 9px;
  }
}

/* ================= Search & Category Filter Styling ================= */
.custom-search-input {
  width: 100%;
  padding: 11px 110px 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  outline: none;
  background: var(--surface);
  color: var(--txt);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: var(--shadow-sm);
}

.custom-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.12);
}

/* ================= Domain Header Bar (Single Row / Même Niveau) ================= */
.domain-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.domain-header-bar .location-back-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.domain-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}

.domain-header-bar .location-step-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .domain-header-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .domain-header-search {
    order: 3;
    width: 100%;
    min-width: 100%;
  }
  .domain-header-bar .location-back-btn {
    order: 1;
  }
  .domain-header-bar .location-step-pill {
    order: 2;
    margin-inline-start: auto;
  }
}

.domain-search-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  height: 38px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cat-chip.domain-all-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 700;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.domain-search-inner:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.12);
}

.domain-search-inner svg {
  color: var(--txt-muted);
  flex-shrink: 0;
}

.domain-search-inner input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--txt);
  outline: none;
  font-family: inherit;
}

.domain-search-inner input::placeholder {
  color: #94a3b8;
}

.domain-search-inner button {
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.domain-search-inner button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.domain-empty-alert {
  background: #ffffff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  margin: 16px 0 24px;
}

.domain-empty-alert p {
  font-size: 15px;
  color: var(--txt-muted);
  margin: 0 0 12px;
}

.pill-hot {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cat-chip:hover {
  border-color: var(--blue-border);
  color: var(--blue);
  background: var(--blue-soft);
}

.cat-chip.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

@media (max-width: 680px) {
  .domain-header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
  }
  .domain-header-bar .location-back-btn {
    order: 1;
    grid-column: 1;
    width: auto;
    min-height: 29px;
    padding: 4px 8px;
    justify-content: center;
    font-size: 11px;
    border-radius: 8px;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .domain-header-bar .location-back-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .domain-header-bar .location-step-pill {
    order: 2;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    min-height: 29px;
    padding: 4px 8px;
    justify-content: center;
    font-size: 11px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 5px;
  }
  .domain-header-search {
    order: 3;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .domain-search-inner {
    flex: 1 1 auto;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
  }
  .domain-search-inner input {
    font-size: 12.5px;
    min-width: 0;
    width: 100%;
  }
  .category-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 5px;
    margin-bottom: 8px !important;
  }
  .cat-chip {
    width: 100%;
    min-height: 28px;
    padding: 4px 6px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .cat-chip.domain-all-chip {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }
  .category-chips .cat-chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 700;
  }
}

@media (max-width: 385px) {
  .domain-header-bar .location-back-btn,
  .domain-header-bar .location-step-pill {
    font-size: 10px;
    padding: 4px 6px;
    gap: 3px;
  }
  .cat-chip.domain-all-chip {
    padding: 0 9px;
    font-size: 11px;
  }
}

/* ================= Modern Map Pin & Popups ================= */
.custom-map-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-dot {
  font-size: 26px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: bouncePin 2s infinite ease-in-out;
}

.pin-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59, 111, 216, 0.3);
  animation: pulsePin 2s infinite ease-out;
  z-index: 1;
}

@keyframes pulsePin {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes bouncePin {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ================= Germany SVG Graphic Map & City Selection ================= */
.germany-map-layout {
  display: block;
  margin-bottom: 24px;
}

/* ================= Modernized Location Page Navigation & Header ================= */
.location-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.location-view-header .location-back-btn,
.location-view-header .location-step-pill {
  min-height: 36px;
  box-sizing: border-box;
}

.location-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  color: #9f1239;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(244, 63, 94, 0.06);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-back-btn svg {
  stroke: #e11d48;
  transition: transform 0.18s ease, stroke 0.18s ease;
}

.location-back-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #881337;
  transform: translateX(-2px);
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.15);
}

.location-back-btn:hover svg {
  stroke: #9f1239;
  transform: translateX(-2px);
}

.location-back-btn:active {
  background: #fecdd3;
  transform: translateX(-1px) scale(0.99);
}

.location-back-domain-tag {
  background: #ffffff;
  color: #be185d;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid #fbcfe8;
  margin-inline-start: 4px;
}

.location-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.step-pill-indicator {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.22);
}

/* ================= Modern Selectors Row (Wilaya & Mdina) ================= */
.location-selectors-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--surface);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

.selector-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  min-width: 0;
}

.selector-label > span:not(.selector-icon-badge):not(.city-count-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selector-icon-badge {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.selector-icon-badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.selector-icon-badge.emerald {
  background: var(--green-soft);
  color: var(--green);
}

.city-count-badge {
  margin-inline-start: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.location-select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
  padding-block: 0;
  padding-inline: 14px 38px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background-color: #f8fafc;
  color: var(--txt);
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  text-overflow: ellipsis;
}

.location-select:hover {
  border-color: var(--blue-border);
  background-color: #ffffff;
}

.location-select:focus {
  border-color: var(--blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.16);
}

.select-chevron-icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

/* Searchable City Combobox (.loc-city-combo) */
.select-wrapper.loc-city-combo .loc-city-input {
  cursor: text;
  padding-inline: 36px 38px;
}

.select-wrapper.loc-city-combo.has-value .loc-city-input {
  padding-inline-end: 62px;
}

.select-wrapper.loc-city-combo .loc-city-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.select-wrapper.loc-city-combo .loc-city-input:focus,
.select-wrapper.loc-city-combo.is-open .loc-city-input {
  background-color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.loc-city-search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.select-wrapper.loc-city-combo.is-open .loc-city-search-icon {
  color: var(--brand);
}

.loc-city-chevron-btn {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.loc-city-chevron-btn svg {
  transition: transform 0.16s ease;
}

.select-wrapper.loc-city-combo.is-open .loc-city-chevron-btn svg {
  transform: rotate(180deg);
  color: var(--brand);
}

.loc-city-chevron-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--txt);
}

.loc-city-clear {
  position: absolute;
  inset-inline-end: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.loc-city-clear[hidden] {
  display: none;
}

.loc-city-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.loc-city-dropdown {
  position: absolute;
  box-sizing: border-box;
  top: calc(100% - 10px);
  inset-inline-start: calc(50% + 8px);
  inset-inline-end: 20px;
  z-index: 95;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  box-shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.loc-city-dropdown[hidden] {
  display: none;
}

.loc-city-group-hdr {
  position: sticky;
  top: -6px;
  z-index: 2;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 7px;
  margin: 2px 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loc-city-group-hdr span {
  font-weight: 600;
  color: #64748b;
}

.loc-city-opt {
  width: 100%;
  border: none;
  background: transparent;
  text-align: start;
  padding: 9px 11px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--txt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

.loc-city-opt:hover,
.loc-city-opt.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.loc-city-opt.is-selected {
  background: #ecfdf5;
  color: #047857;
}

.loc-city-opt.is-selected.is-active {
  background: #d1fae5;
  color: #065f46;
}

.loc-city-opt-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: isolate;
}

.loc-city-hl {
  background: #fef08a;
  color: #0f172a;
  padding: 0;
  border-radius: 2px;
  font-weight: 800;
}

.loc-city-state-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.loc-city-opt-check {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
}

.loc-city-empty {
  padding: 18px 12px;
  text-align: center;
}

.loc-city-empty-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
}

.loc-city-empty-hint {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 680px) {
  .loc-city-dropdown {
    inset-inline: 8px;
    top: calc(100% + 4px);
    width: auto;
    max-height: 250px;
    border-radius: 12px;
  }
  .loc-city-search-icon {
    inset-inline-start: 8px;
  }
  .loc-city-search-icon svg {
    width: 12px;
    height: 12px;
  }
  .select-wrapper.loc-city-combo .loc-city-input {
    padding-inline: 25px 24px;
  }
  .select-wrapper.loc-city-combo.has-value .loc-city-input {
    padding-inline-end: 42px;
  }
  .loc-city-chevron-btn {
    inset-inline-end: 2px;
    width: 22px;
    height: 26px;
  }
  .loc-city-clear {
    inset-inline-end: 23px;
    width: 17px;
    height: 17px;
  }
  .loc-city-clear svg {
    width: 10px;
    height: 10px;
  }
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
  flex-wrap: nowrap;
  gap: 8px;
}

.map-zoom-controls {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.map-zoom-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.map-zoom-step-btn:hover:not(:disabled) {
  background: var(--blue-soft);
  color: var(--blue);
}

.map-zoom-step-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.map-zoom-level-btn {
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.map-zoom-level-btn.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  cursor: pointer;
}

.map-zoom-level-btn.is-active:hover {
  background: var(--blue);
  color: #ffffff;
}

.map-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  touch-action: none;
}

.map-stage.is-zoomed-in {
  cursor: grab;
}

.map-stage.is-dragging {
  cursor: grabbing;
}

.map-state-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.map-state-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(59, 111, 216, 0.22);
}

.map-state-title {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.map-hint-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
}

.map-zoom-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.map-zoom-action-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 111, 216, 0.22);
}

.map-zoom-action-btn.zoomed {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--blue);
}

.map-zoom-action-btn.zoomed:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.zoom-btn-text {
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .btn {
    padding: 7px 11px;
    font-size: 12px;
    border-radius: 9px;
    line-height: 1.25;
    min-height: 32px;
  }
  .actions {
    gap: 7px;
  }
  .small-btn {
    padding: 4px 9px;
    font-size: 11.5px;
  }
  .chip {
    padding: 4px 9px;
    font-size: 11.5px;
  }
  .custom-select {
    padding: 7px 10px;
    font-size: 12.5px;
    border-radius: 8px;
  }
  .close {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .location-view-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
  }
  .location-back-btn {
    width: auto;
    align-self: flex-start;
    min-height: 29px;
    padding: 4px 9px;
    justify-content: center;
    font-size: 11px;
    border-radius: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
    gap: 4px;
  }
  .location-view-header .location-back-btn {
    width: 100%;
    min-width: 0;
    min-height: 29px;
    overflow: hidden;
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .location-view-header .location-back-btn > span:not(.location-back-domain-tag) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
  }
  .location-back-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .location-back-domain-tag {
    margin-inline-start: 2px;
    font-size: 9.5px;
    padding: 1.5px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 82px;
    min-width: 28px;
    flex: 0 6 auto;
  }
  .location-step-pill {
    width: auto;
    max-width: 100%;
    min-height: 29px;
    padding: 4px 9px;
    justify-content: center;
    font-size: 11px;
    border-radius: 8px;
    gap: 5px;
  }
  .location-view-header .location-step-pill {
    white-space: nowrap;
    min-height: 29px;
    padding: 4px 7px;
    font-size: 10.5px;
    gap: 4px;
  }
  .location-selectors-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .selector-field {
    gap: 5px;
  }
  .selector-label {
    gap: 5px;
    font-size: 11px;
    white-space: nowrap;
  }
  .selector-icon-badge {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }
  .selector-icon-badge svg {
    width: 12px;
    height: 12px;
  }
  .city-count-badge {
    font-size: 9.5px;
    padding: 1.5px 6px;
  }
  .location-select {
    height: 34px;
    font-size: 12px;
    padding-block: 0;
    padding-inline: 9px 24px;
    border-radius: 9px;
  }
  .select-chevron-icon {
    inset-inline-end: 8px;
  }
  .select-chevron-icon svg {
    width: 12px;
    height: 12px;
  }
  .map-header-bar {
    width: 100%;
    gap: 6px;
    margin-bottom: 8px;
  }
  .map-zoom-controls {
    border-radius: 8px;
  }
  .map-zoom-step-btn {
    width: 30px;
    height: 29px;
  }
  .map-zoom-step-btn svg {
    width: 13px;
    height: 13px;
  }
  .map-zoom-level-btn {
    height: 29px;
    padding: 0 8px;
    font-size: 11px;
  }
  .map-zoom-action-btn {
    width: auto;
    height: 29px;
    padding: 0 10px;
    justify-content: center;
    font-size: 11px;
    border-radius: 8px;
    gap: 5px;
    margin-inline-start: auto;
  }
  .map-zoom-action-btn svg {
    width: 13px;
    height: 13px;
  }
  .zoom-btn-text {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .location-view-header .location-back-btn,
  .location-view-header .location-step-pill {
    font-size: 10px;
    padding: 4px 6px;
    gap: 3px;
  }
  .location-view-header .location-back-domain-tag {
    max-width: 62px;
    font-size: 9px;
    padding: 1px 4px;
  }
  .location-selectors-row {
    gap: 6px;
    padding: 8px;
  }
  .selector-label {
    font-size: 10.5px;
  }
  .city-count-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
  .location-select {
    font-size: 11.5px;
    padding-inline: 8px 22px;
  }
  .select-wrapper.loc-city-combo .loc-city-input {
    padding-inline: 24px 22px;
  }
  .select-wrapper.loc-city-combo.has-value .loc-city-input {
    padding-inline-end: 39px;
  }
}

.map-hint-pill {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--blue-border);
}

.map-view-toggle-btn {
  background: var(--surface);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--blue-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
  box-shadow: var(--shadow-sm);
}

.map-view-toggle-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.map-view-toggle-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.germany-vector-map {
  width: 100%;
  height: 580px;
  max-height: 680px;
  display: block;
  margin: 0 auto;
  user-select: none;
  transition: viewBox 0.35s ease;
}

/* Soft neutral states; selected state turns calm royal blue */
.state-path {
  fill: #e6ecf5;
  stroke: #ffffff;
  stroke-width: var(--map-state-sw, 1.4);
  cursor: pointer;
  transition: fill 0.18s ease, opacity 0.18s ease;
}

.state-path.dimmed {
  opacity: 0.42;
}

.state-path:hover {
  fill: #cdddf8;
}

.state-path.selected,
.state-path.selected:hover {
  fill: var(--blue);
  stroke: #294c9c;
  stroke-width: var(--map-selected-sw, 2.2);
  opacity: 1 !important;
  filter: drop-shadow(0 4px 10px rgba(59, 111, 216, 0.32));
}

.map-label {
  fill: #334155;
  font-family: Inter, system-ui, sans-serif;
  user-select: none;
  pointer-events: none;
}
.map-label.state-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.map-label.cap-name {
  font-size: 10.5px;
  font-weight: 600;
  fill: #475569;
}
.map-label.on-selected {
  fill: #ffffff;
}
.cap-dot {
  fill: #475569;
  stroke: #ffffff;
  stroke-width: 1.2;
  pointer-events: none;
}
.cap-dot.on-selected {
  fill: #fde68a;
}

/* City Map Dots */
.city-map-dot {
  cursor: pointer;
  transition: fill 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.city-map-dot.big {
  fill: #e59a24;
  stroke: #ffffff;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.35));
}
.city-map-dot.big:hover {
  fill: #f5b449;
  stroke: #fef3c7;
  stroke-width: 2;
}

.city-map-dot.small {
  fill: #ffffff;
  stroke: #294c9c;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.city-map-dot.small:hover {
  fill: #fef3c7;
  stroke: #b45309;
  opacity: 1;
  stroke-width: 1.8;
}

.city-map-dot.selected {
  fill: #ef4444 !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.85)) !important;
}

/* Radar pulse animation for selected city dot */
@keyframes radarPulse {
  0% {
    r: 2.5;
    opacity: 0.9;
    stroke-width: 1.5;
  }
  50% {
    opacity: 0.55;
    stroke-width: 0.9;
  }
  100% {
    r: 9.5;
    opacity: 0;
    stroke-width: 0.2;
  }
}

.city-dot-radar-pulse {
  fill: none;
  stroke: #ef4444;
  pointer-events: none;
  animation: radarPulse 1.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.city-dot-label {
  fill: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.45);
}

.map-city-floating-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -135%);
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
}

.map-city-floating-tooltip.visible {
  opacity: 1;
}

.city-dot-label-small {
  fill: #ffffff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  paint-order: stroke fill;
  stroke: rgba(15, 23, 42, 0.9);
  stroke-width: var(--map-label-sw, 2.2px);
  stroke-linejoin: round;
  stroke-linecap: round;
  letter-spacing: 0.2px;
}

.city-dot-label-small.small-city-label {
  fill: #f8fafc;
  font-weight: 600;
  stroke: rgba(15, 23, 42, 0.88);
  stroke-width: var(--map-small-label-sw, 1.3px);
}

.city-dot-label-small.selected-city-text {
  fill: #dc2626 !important;
  font-weight: 800 !important;
  stroke: #ffffff !important;
  stroke-width: calc(var(--map-label-sw, 2px) * 0.9) !important;
  letter-spacing: 0.15px;
}

.cities-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.city-search-box {
  position: relative;
}

.city-chips-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px 2px 6px;
  scroll-behavior: smooth;
}

.city-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--txt);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.city-pill-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--blue);
  transform: translateY(-1px);
}

.city-pill-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(59, 111, 216, 0.22);
}

/* ================= Modern Bottom Confirmation Card & Super CTA Button ================= */
.city-confirmation-box {
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  transition: all 0.25s ease;
}

.city-confirmation-box.has-city {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  box-shadow: 0 10px 25px -4px rgba(22, 163, 74, 0.12), 0 4px 10px -2px rgba(22, 163, 74, 0.05);
}

.city-confirmation-box.no-city {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.confirmation-info-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.confirmation-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.confirmation-icon-badge.success {
  background: #dcfce7;
  color: #15803d;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}

.confirmation-icon-badge.pending {
  background: #e2e8f0;
  color: #64748b;
}

.confirmation-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.confirmation-primary-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14.5px;
}

.status-label {
  font-weight: 700;
  color: #0f172a;
}

.status-label-prompt {
  font-weight: 600;
  color: #1e3a8a;
  font-size: 14.5px;
}

.city-pill-highlight {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #15803d;
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 3px 12px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.28);
  letter-spacing: -0.2px;
}

.state-pill-subtle {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}

.confirmation-secondary-line {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-role {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.dot-separator {
  color: #cbd5e1;
}

.verified-direct-text {
  color: #059669;
  font-weight: 600;
}

/* ================= The Upgraded CTA Button ================= */
.btn-cta-proceed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: Inter, system-ui, sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.btn-cta-proceed:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.48), 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-cta-proceed:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-cta-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.btn-cta-proceed:hover .btn-cta-icon-circle {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 680px) {
  .city-chips-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .city-pill-btn {
    padding: 6px 8px;
    font-size: 11.5px;
    border-radius: 8px;
    min-height: 30px;
  }
  .city-confirmation-box {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cta-proceed {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 10px;
    gap: 8px;
  }
  .btn-cta-icon-circle {
    width: 22px;
    height: 22px;
  }
}

/* ================= Modal Vertiefung / Specialisation ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.18s ease;
}

.specialization-modal-card {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 24px;
  border: 1px solid var(--line);
}

.spec-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.spec-close-btn {
  background: var(--surface-soft);
  border: none;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--txt-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.spec-close-btn:hover {
  background: var(--line);
  color: var(--txt);
}

.spec-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.spec-option-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
}

.spec-option-card:hover {
  background: var(--surface);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.spec-option-card.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(59, 111, 216, 0.16);
}

.spec-all-option {
  grid-column: 1 / -1;
  background: var(--green-soft);
  border-color: var(--green-border);
}

.spec-all-option:hover {
  background: #e1f3ec;
  border-color: var(--green);
}

@media (max-width: 680px) {
  .spec-option-card {
    padding: 9px 11px;
    border-radius: 9px;
  }
  .spec-close-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

.pill-vertiefung {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 5px;
  border: 1px solid var(--blue-border);
}

/* ==========================================================================
   MODULE LETTRE DE MOTIVATION — DESIGN HARMONISÉ AZUBIWEG
   ========================================================================== */
.ltr-studio {
  direction: ltr;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  min-height: 680px;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.025);
  overflow: hidden;
  position: relative;
}

.ltr-studio.is-fullscreen,
.ltr-studio:has(.ltr-workspace.fullscreen) {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  z-index: 9999;
  background: #f3f5f9;
}

.ltr-studio.is-fullscreen .ltr-mobile-tabs,
.ltr-studio:has(.ltr-workspace.fullscreen) .ltr-mobile-tabs {
  display: none !important;
}

.ltr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e4eaf2;
  z-index: 20;
}

.ltr-topbar-left,
.ltr-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ltr-topbar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ltr-title-input {
  max-width: 280px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  padding: 4px 8px;
  border-radius: 6px;
}

.ltr-title-input:focus {
  outline: none;
  border-color: #c5d6f5;
  background: #f8fafd;
}

.ltr-ico {
  width: 19px;
  height: 19px;
  display: block;
}

.ltr-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d5dfec;
  background: #ffffff;
  color: #334155;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ltr-top-btn:hover:not(:disabled) {
  border-color: #93b4ec;
  background: #f3f7fd;
  color: #1e293b;
}

.ltr-top-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ltr-btn-group {
  display: inline-flex;
}

.ltr-group-l {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-width: 0;
}

.ltr-group-r {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.ltr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: #3b6fd8;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.ltr-btn-primary:hover {
  background: #2f5ec0;
}

.ltr-rel {
  position: relative;
  z-index: 1;
}

.ltr-rel:has(> .ltr-popover) {
  z-index: 45;
}

.ltr-mobile-tabs {
  display: none;
  padding: 6px 10px;
  gap: 8px;
  border-bottom: 1px solid #d5dfec;
  background: #eef3fb;
}

.ltr-mobile-tabs button {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1.5px solid #93b4ec;
  border-radius: 9px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ltr-tab-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ltr-tab-a4-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 5px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.ltr-mobile-tabs button.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.ltr-mobile-tabs button.active .ltr-tab-a4-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.ltr-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
}

.ltr-workspace.fullscreen {
  flex: 1;
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
}

.ltr-workspace.fullscreen .ltr-form-pane {
  display: none;
}

.ltr-workspace.fullscreen .ltr-preview-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.ltr-workspace.fullscreen .ltr-preview-scroll {
  flex: 1;
  min-height: 0;
  padding: 24px 24px 92px;
}

.ltr-workspace.fullscreen .ltr-a4-sheet {
  max-width: 780px;
}

.ltr-workspace.fullscreen .ltr-preview-options {
  left: 0;
  right: 0;
  bottom: 16px;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6px 10px;
}

.ltr-workspace.fullscreen .ltr-opt-btn {
  padding: 6px 9px;
  font-size: 12.5px;
}

.ltr-form-pane {
  background: #ffffff;
  border-right: 1px solid #e4eaf2;
  overflow-y: auto;
  padding: 14px 18px 26px;
}

.ltr-form-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ltr-quickstarts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d5dfec;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ltr-quickstarts.ltr-quick-single {
  grid-template-columns: 1fr;
}

.ltr-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 10px;
  border: 0;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ltr-quick-btn:not(:last-child) {
  border-right: 1px solid #d5dfec;
}

.ltr-cv-linked-pill {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltr-quick-btn:hover {
  background: #f5f8fd;
  color: #3b6fd8;
}

.ltr-quick-ico {
  width: 24px;
  height: 24px;
}

.ltr-quickstarts.cv-quickstarts {
  border-radius: 8px;
  margin-bottom: 8px;
}

.cv-quickstarts .ltr-quick-btn {
  flex-direction: row;
  gap: 6px;
  padding: 6.5px 9px;
  font-size: 12px;
  line-height: 1.25;
}

.cv-quickstarts .ltr-quick-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ltr-section {
  border-bottom: 1px solid #e4eaf2;
  padding: 4px 0 9px;
}

.ltr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ltr-section-toggle {
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  padding: 7px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

.ltr-section-toggle.muted {
  color: #64748b;
}

.ltr-sec-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d5dfec;
  border-radius: 7px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ltr-sec-btn:hover {
  border-color: #93b4ec;
  background: #eef3fc;
  color: #3b6fd8;
}

.ltr-section-body {
  padding-top: 4px;
}

.ltr-personal-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ltr-photo-col {
  width: 92px;
  flex-shrink: 0;
}

.ltr-personal-fields {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.ltr-field-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 3px;
  line-height: 1.25;
}

.ltr-photo-box {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.ltr-photo-box:hover {
  border-color: #3b6fd8;
  background: #eef3fc;
}

.ltr-photo-cam {
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.ltr-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ltr-remove-photo {
  margin-top: 3px;
  width: 100%;
  border: 0;
  background: none;
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ltr-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: end;
  margin-bottom: 8px;
}

.ltr-row-2 > .ltr-field,
.cv-row-3 > .ltr-field,
.ltr-personal-fields > .ltr-field:last-child {
  margin-bottom: 0;
}

.ltr-field {
  min-width: 0;
  margin-bottom: 8px;
}

.ltr-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 3px;
  line-height: 1.25;
}

.ltr-field input,
.ltr-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 7px;
  padding: 6.5px 9px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ltr-field input {
  min-height: 34px;
}

.ltr-field textarea {
  line-height: 1.48;
  resize: vertical;
}

textarea#ltrBody {
  min-height: 290px;
  line-height: 1.55;
  padding: 10px 12px;
}

.ltr-field input:focus,
.ltr-field textarea:focus {
  outline: none;
  border-color: #3b6fd8;
  background: #ffffff;
  box-shadow: 0 0 0 2.5px rgba(59, 111, 216, 0.1);
}

.ltr-label-with-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 3px;
}

.ltr-label-with-switch > label {
  margin-bottom: 0;
}

.ltr-field .ltr-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-bottom: 0;
  white-space: nowrap;
}

.ltr-field .ltr-switch-wrap input {
  display: none;
  width: auto;
  min-height: 0;
}

.ltr-switch-slider {
  width: 26px;
  height: 15px;
  border-radius: 999px;
  background: #94a3b8;
  position: relative;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.ltr-switch-slider::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.18s ease;
}

.ltr-switch-wrap input:checked + .ltr-switch-slider {
  background: #3b6fd8;
}

.ltr-switch-wrap input:checked + .ltr-switch-slider::after {
  transform: translateX(11px);
}

.ltr-switch-txt {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.ltr-ai-btn {
  border: 1px solid #c5d6f5;
  background: #eef3fc;
  color: #2f5ec0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ltr-ai-btn:hover {
  background: #dfe9fb;
}

/* Zero-AI 1-Klick Anschreiben Baukasten & Bausteine */
.ltr-body-tools {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ltr-assist-toggle {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ltr-assist-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.ltr-assist-toggle.is-open {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.ltr-assistant-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  border: 1px solid #d7e4fb;
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ltr-assist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.ltr-assist-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.ltr-assist-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 8px;
}

.ltr-assist-badge.has-cv {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.ltr-assist-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ltr-assist-group-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-start;
}

.ltr-assist-subgrp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ltr-assist-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.ltr-assist-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ltr-chip {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.13s ease, border-color 0.13s ease, color 0.13s ease, box-shadow 0.13s ease;
}

.ltr-chip:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}

.ltr-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.22);
}

.ltr-chip-lvl {
  min-width: 34px;
  justify-content: center;
  font-weight: 700;
}

.ltr-chip-trait.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.22);
}

.ltr-assist-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.ltr-assist-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.ltr-assist-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ltr-assist-shuffle-btn {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #1d4ed8;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ltr-assist-shuffle-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.ltr-assist-apply-btn {
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.ltr-assist-apply-btn:hover {
  background: #1e40af;
}

.ltr-snippets-bar {
  margin-top: 7px;
  padding: 7px 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ltr-snippets-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.ltr-snippets-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ltr-snippet-chip {
  appearance: none;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 3.5px 9px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s ease, border-color 0.13s ease;
}

.ltr-snippet-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.ltr-bottom-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.ltr-mob-preview-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ltr-mob-preview-cta .ltr-ico {
  width: 17px;
  height: 17px;
}

.ltr-preview-pane {
  background: #f3f5f9;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ltr-preview-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 86px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.ltr-a4-sheet {
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.document-preview-svg {
  width: 100%;
  height: auto;
  display: block;
}

.document-preview-svg + .document-preview-svg {
  border-top: 2px dashed #cbd5e1;
  margin-top: 8px;
}

.ltr-preview-options {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  background: #ffffff;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  z-index: 15;
}

.ltr-opt-center {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
}

.ltr-opt-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.ltr-opt-btn:hover,
.ltr-opt-btn.active {
  background: #eef3fc;
  color: #2f5ec0;
  border-color: #c5d6f5;
}

.ltr-caret {
  font-size: 9px;
  opacity: 0.7;
}

.ltr-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.ltr-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 195px;
  max-height: min(440px, 72vh);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d5dfec;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  padding: 6px;
  z-index: 50;
}

.ltr-popover.ltr-popover-top {
  bottom: auto;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
}

.ltr-popover-head {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  padding: 5px 8px;
}

.ltr-popover-opt {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ltr-popover-opt:hover {
  background: #f3f7fd;
}

.ltr-popover-opt.active {
  background: #eef3fc;
  color: #2f5ec0;
  font-weight: 600;
}

.ltr-check {
  color: #3b6fd8;
  font-weight: 700;
}

.ltr-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.ltr-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.ltr-color-swatch.active {
  border-color: #0f172a;
  transform: scale(1.1);
}

/* Modales de sélection (CV / Offres / Liste des lettres) */
.ltr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ltr-modal {
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #d5dfec;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ltr-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid #e4eaf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ltr-modal-head h3 {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
}

.ltr-icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
}

.ltr-modal-body {
  padding: 14px 18px;
  overflow-y: auto;
}

.ltr-pick-item {
  width: 100%;
  border: 1px solid #e4eaf2;
  background: #ffffff;
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.ltr-pick-item:hover,
.ltr-pick-item.active {
  border-color: #93b4ec;
  background: #f5f8fd;
}

.ltr-pick-item strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
}

.ltr-pick-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.ltr-pick-arrow {
  font-size: 12.5px;
  font-weight: 700;
  color: #3b6fd8;
  white-space: nowrap;
}

.ltr-link-btn {
  border: 0;
  background: none;
  color: #3b6fd8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ltr-empty-pick {
  text-align: center;
  padding: 20px 10px;
  color: #64748b;
}

@media (max-width: 960px) {
  .ltr-studio {
    height: calc(100dvh - 118px);
    min-height: 460px;
    border-radius: 12px;
  }
  .ltr-hide-md {
    display: none;
  }
  .ltr-mobile-tabs {
    display: flex;
  }
  .ltr-bottom-cta {
    gap: 8px;
    justify-content: space-between;
  }
  .ltr-mob-preview-cta,
  .ltr-bottom-cta .ltr-btn-primary {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    min-height: 36px;
  }
  .ltr-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .ltr-form-pane,
  .ltr-preview-pane {
    display: none;
  }
  .ltr-form-pane.mob-show,
  .ltr-preview-pane.mob-show {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .ltr-topbar {
    padding: 7px 10px;
    gap: 6px;
  }
  .ltr-topbar-left,
  .ltr-topbar-right {
    gap: 5px;
    flex-shrink: 0;
  }
  .ltr-top-btn {
    padding: 4px 7px;
    font-size: 11.5px;
    border-radius: 7px;
    gap: 4px;
  }
  .ltr-btn-primary {
    padding: 5px 9px;
    font-size: 11.5px;
    border-radius: 7px;
    gap: 4px;
  }
  .ltr-mobile-tabs {
    padding: 5px 8px;
    gap: 6px;
  }
  .ltr-mobile-tabs button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
    gap: 5px;
    border-radius: 8px;
  }
  .cv-quickstarts .ltr-quick-btn,
  .ltr-quick-btn {
    padding: 6px 8px;
    font-size: 11px;
    gap: 5px;
    line-height: 1.2;
  }
  .ltr-title-input {
    text-align: left;
    font-size: 13px;
    padding: 3px 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ltr-form-pane {
    padding: 10px 10px 22px;
    border-right: 0;
  }
  .ltr-section {
    padding: 3px 0 8px;
  }
  .ltr-section-toggle {
    font-size: 13.5px;
    padding: 6px 0;
  }
  .ltr-sec-btn,
  .ltr-icon-btn {
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 6px;
  }
  .ltr-ai-btn,
  .ltr-assist-toggle {
    padding: 3px 9px;
    font-size: 11px;
  }
  .ltr-assistant-panel {
    padding: 8.5px 9px;
    gap: 7px;
  }
  .ltr-chip {
    padding: 3.5px 8px;
    font-size: 11px;
  }
  .ltr-snippet-chip {
    padding: 3px 8px;
    font-size: 10.5px;
  }
  .ltr-link-btn {
    font-size: 11.5px;
  }
  .ltr-preview-scroll {
    padding: 10px 8px 94px;
  }
  .ltr-preview-options {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 4px 5px;
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2px 4px;
  }
  .ltr-opt-center {
    display: contents;
  }
  .ltr-opt-btn {
    padding: 4px 5px;
    font-size: 10.5px;
    gap: 2px;
    border-radius: 6px;
  }
  .ltr-preview-options .ltr-rel {
    position: static;
  }
  .ltr-preview-options .ltr-popover {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: min(340px, 56vh) !important;
  }
  .ltr-popover.ltr-popover-top {
    right: 0;
    left: auto;
    max-width: calc(100vw - 32px);
  }
  .ltr-modal-backdrop {
    padding: 10px;
  }
  .ltr-modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88dvh !important;
  }
  .ltr-modal-body[style*="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px !important;
    gap: 10px !important;
  }
  .ltr-hide-sm {
    display: none;
  }
  .ltr-personal-top {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    margin-bottom: 7px;
  }
  .ltr-photo-col {
    width: 84px;
  }
  .ltr-photo-box {
    width: 84px;
    height: 84px;
  }
  .ltr-personal-fields {
    display: contents;
  }
  .ltr-personal-fields > .ltr-row-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 0;
  }
  .ltr-personal-fields > .ltr-field {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0;
  }
  .ltr-row-2 {
    gap: 7px;
    margin-bottom: 7px;
  }
  .ltr-field {
    margin-bottom: 7px;
  }
  .ltr-field label,
  .ltr-field-lbl {
    font-size: 11px;
    margin-bottom: 2.5px;
  }
  .ltr-field input,
  .ltr-field select,
  .ltr-field textarea {
    padding: 6px 8.5px;
    font-size: 13px;
    border-radius: 7px;
  }
  textarea#ltrBody {
    min-height: 230px;
    line-height: 1.5;
    padding: 9px 10px;
  }
  .ltr-field input,
  .ltr-field select {
    min-height: 32px;
  }
  .ltr-switch-txt {
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .ltr-row-2.ltr-row-stack-xs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Styles complémentaires pour l'éditeur CV natif */
.ltr-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 7px;
  padding: 6.5px 9px;
  min-height: 34px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
}

.cv-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 2px;
}

.cv-chip-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cv-chip-btn:hover {
  border-color: #3b6fd8;
  background: #eef3fc;
  color: #2f5ec0;
}

.cv-entry-card {
  border: 1px solid #e2e8f0;
  background: #fafbfd;
  border-radius: 9px;
  padding: 10px 11px;
  margin-bottom: 8px;
}

.cv-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  color: #1e293b;
}

.cv-entry-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-entry-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.cv-entry-actions .ltr-icon-btn:disabled,
.cv-entry-actions .ltr-sec-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cv-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.cv-row-3.cv-row-addr {
  grid-template-columns: minmax(74px, 0.58fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
}

.cv-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 140px) 30px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.cv-inline-row:not(:has(select)) {
  grid-template-columns: minmax(0, 1fr) 30px;
}

.cv-inline-row input,
.cv-inline-row select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 7px;
  padding: 6px 9px;
  min-height: 33px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
}

.cv-add-btn {
  width: 100%;
  border: 1px dashed #cbd5e1;
  background: #f8fafd;
  color: #3b6fd8;
  padding: 7.5px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.cv-add-btn:hover {
  border-color: #3b6fd8;
  background: #eef3fc;
}

@media (max-width: 480px) {
  .cv-row-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 7px;
  }
  .cv-row-3.cv-row-addr {
    grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
    gap: 7px;
  }
  .cv-row-3.cv-row-addr > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .cv-inline-row {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 112px) 28px;
    gap: 5px;
    margin-bottom: 5px;
  }
  .cv-inline-row:not(:has(select)) {
    grid-template-columns: minmax(0, 1fr) 28px;
  }
  .cv-inline-row input,
  .cv-inline-row select {
    padding: 5.5px 8px;
    min-height: 31px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .cv-entry-card {
    padding: 9px 10px;
    margin-bottom: 7px;
  }
  .cv-entry-head {
    margin-bottom: 6px;
    font-size: 12.5px;
  }
  .cv-chip-btn {
    padding: 4px 8px;
    font-size: 11.5px;
    border-radius: 7px;
  }
  .cv-add-btn {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 7px;
  }
}

/* Vue Aperçu / Hub des CVs (/app/resumes) */
.cv-hub-page {
  direction: ltr;
  min-height: calc(100vh - 110px);
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #f6f8fb;
  padding: 18px 22px 36px;
}

.cv-hub-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.cv-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cv-hub-h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}

.cv-hub-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.cv-tool-btn:hover {
  border-color: #3b6fd8;
  background: #eef3fc;
  color: #3b6fd8;
}

.cv-tool-btn.active {
  border-color: #3b6fd8;
  background: #3b6fd8;
  color: #ffffff;
}

.cv-trash-cnt {
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 6px;
  border-radius: 999px;
}

.cv-hub-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-hub-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1d4ed8;
  background: #e8efff;
}

.cv-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 14px;
}

.cv-hub-card-wrap {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cv-hub-card-wrap:hover {
  transform: translateY(-2px);
  border-color: #93b4f5;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.cv-hub-card-wrap.cv-hub-card-create {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cv-hub-card-wrap.cv-hub-card-create:hover {
  transform: none;
  box-shadow: none;
}

.cv-hub-create-card {
  width: 100%;
  border: 1.5px dashed #bfd0ea;
  border-radius: 11px;
  background: linear-gradient(180deg, #fafcff 0%, #f1f6ff 100%);
  color: #3b6fd8;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.cv-hub-create-card:hover {
  border-color: #2563eb;
  background: #eaf1ff;
}

.cv-hub-create-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #e0ebff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.cv-hub-create-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1;
  text-align: start;
}

.cv-hub-create-lbl {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.cv-hub-create-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.cv-hub-create-arrow {
  font-size: 15px;
  font-weight: 700;
  color: #2563eb;
  flex-shrink: 0;
}

.cv-hub-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e6ecf5;
  overflow: visible;
}

.cv-hub-thumb.is-trash {
  opacity: 0.78;
  overflow: hidden;
}

.cv-hub-thumb-click {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
}

.cv-hub-svg-box {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cv-hub-svg-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cv-hub-models-sec {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.cv-hub-models-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.cv-hub-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.cv-hub-h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #1e293b;
}

.cv-hub-sub {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  min-width: 0;
}

.cv-hub-sub-row .cv-hub-count-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

.cv-hub-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cv-model-pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3fc;
  color: #2b58b6;
  line-height: 1.3;
}

.cv-model-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 8px;
}

.cv-use-btn {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid #d5e2fc;
  background: #eff4ff;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cv-use-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.cv-pdf-btn {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.cv-pdf-btn:hover {
  border-color: #3b6fd8;
  color: #1d4ed8;
  background: #f8faff;
}

.cv-hub-dots {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.cv-hub-dots:hover {
  border-color: #3b6fd8;
  color: #2563eb;
  background: #ffffff;
}

.cv-card-popover {
  position: absolute;
  top: 34px;
  right: 6px;
  min-width: 168px;
  background: #ffffff;
  border: 1px solid #d5dfec;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 5px;
  z-index: 25;
}

.cv-hub-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 8px 3px 2px;
}

.cv-hub-title,
.cv-hub-title-btn {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cv-hub-title-btn:hover {
  color: #2563eb;
}

.cv-hub-date {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-trash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cv-chip-danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.cv-chip-danger:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.cv-hub-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-hub-list-row {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cv-hub-list-main {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.cv-hub-list-main strong {
  display: block;
  font-size: 15px;
  color: #1e293b;
}

.cv-hub-empty {
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.cv-sig-pad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cv-sig-pad-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cv-sig-ink {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cv-sig-ink:hover {
  transform: scale(1.08);
}

.cv-sig-ink.active {
  box-shadow: 0 0 0 2px #2563eb;
}

.cv-sig-clear-btn {
  padding: 3px 10px;
  font-size: 11.5px;
}

.cv-sig-clear-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cv-sig-canvas-wrap {
  position: relative;
  width: 100%;
  height: 116px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.cv-sig-canvas-wrap:hover {
  border-color: #93b4f5;
}

.cv-sig-canvas-wrap::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 26px;
  border-bottom: 1px solid #e2e8f0;
  pointer-events: none;
}

.cv-sig-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.cv-sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: #94a3b8;
  pointer-events: none;
}

.cv-sig-canvas-wrap.has-sig .cv-sig-placeholder {
  display: none;
}

@media (max-width: 640px) {
  .cv-hub-page {
    padding: 12px 11px 22px;
    border-radius: 12px;
    min-height: auto;
  }
  .cv-hub-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }
  .cv-hub-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .cv-hub-h1 {
    font-size: 14.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cv-hub-count-pill {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 10px;
    padding: 2px 7px;
  }
  .cv-hub-tools {
    flex-shrink: 0;
    margin-left: auto;
    gap: 4px;
  }
  .cv-tool-btn {
    padding: 4px 7px;
    border-radius: 7px;
  }
  .cv-tool-btn svg {
    width: 15px;
    height: 15px;
  }
  .cv-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cv-hub-card-wrap {
    padding: 6px;
  }
  .cv-hub-card-wrap.cv-hub-card-create {
    padding: 0;
  }
  .cv-hub-create-card {
    padding: 8px 11px;
    gap: 9px;
    border-radius: 10px;
  }
  .cv-hub-create-icon {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  .cv-hub-create-lbl {
    font-size: 12px;
  }
  .cv-hub-create-sub {
    font-size: 10.5px;
  }
  .cv-hub-models-sec {
    margin-top: 12px;
    padding-top: 10px;
  }
  .cv-hub-models-head {
    margin-bottom: 10px;
  }
  .cv-hub-sub {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cv-hub-h2 {
    font-size: 14.5px;
    line-height: 1.28;
  }
  .cv-hub-model-row {
    gap: 4px;
  }
  .cv-hub-title-btn {
    font-size: 12px;
  }
  .cv-model-pill {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  .cv-model-actions {
    gap: 4px;
  }
  .cv-use-btn {
    padding: 4px 6px;
    font-size: 10.5px;
    border-radius: 6px;
  }
  .cv-pdf-btn {
    padding: 4px 6px;
    font-size: 10.5px;
    border-radius: 6px;
  }
  .cv-hub-list-row {
    flex-direction: column;
    align-items: flex-start;
  }
}




/* ================= CV Studio Frame ================= */
.cv-studio-shell {
  width: 100%;
  height: calc(100vh - 110px);
  min-height: 760px;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.025);
  overflow: hidden;
}
.cv-studio-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ================= Modern Goal Hero Cards (Compact & Elegant) ================= */
.goal-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .goal-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .goal-hero-card {
    min-width: 0;
    padding: 12px;
    gap: 10px;
  }
  .gh-card-title {
    font-size: 14.5px;
  }
  .gh-card-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .germany-vector-map {
    height: auto;
    min-height: 250px;
    max-height: 55vh;
  }
  .map-card {
    padding: 12px;
  }
}

.goal-header {
  margin-bottom: 16px;
}

.goal-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
}

.goal-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.goal-header-meta {
  display: contents;
}

.goal-subtitle {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #64748b;
}

.goal-header .location-step-pill {
  grid-column: 2;
  grid-row: 1 / span 2;
  white-space: nowrap;
}

.goal-hero-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  position: relative;
  font: inherit;
  width: 100%;
}

.goal-hero-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-border);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.09);
}

.goal-hero-card[data-value="arbeit"]:hover {
  border-color: #86efac;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.09);
}

.goal-hero-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.goal-hero-card.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 6px 16px rgba(37, 99, 235, 0.08);
}

.goal-hero-card[data-value="arbeit"].selected {
  border-color: #16a34a;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14), 0 6px 16px rgba(22, 163, 74, 0.08);
}

.gh-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.goal-hero-card:hover .gh-icon-box {
  transform: scale(1.06);
}

.gh-icon-box.blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.gh-icon-box.green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.gh-card-body {
  flex: 1;
  min-width: 0;
}

.gh-title-row {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.gh-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gh-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gh-badge.blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.gh-badge.green {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.gh-card-desc {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
}

.gh-arrow-wrap {
  flex-shrink: 0;
  margin-left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

html[dir="rtl"] .gh-arrow-wrap {
  margin-left: 0;
  margin-right: 4px;
}

.goal-hero-card.selected .gh-arrow-wrap {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.goal-hero-card[data-value="arbeit"].selected .gh-arrow-wrap {
  background: #dcfce7;
  border-color: #bbf7d0;
}

.gh-action-arrow {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.16s ease;
  display: inline-block;
}

.gh-action-arrow.blue {
  color: #2563eb;
}

.gh-action-arrow.green {
  color: #16a34a;
}

.goal-hero-card:hover .gh-action-arrow {
  transform: translateX(3px);
}

/* ================= Cockpit Hub (Dashboard Outils & Bewerbungs-Mappe) ================= */
.cockpit-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cockpit-header {
  margin-bottom: 14px;
}

.cockpit-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .cockpit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.cockpit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035), 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.cockpit-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-border);
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.11), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
}

.cockpit-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cockpit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cockpit-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.cockpit-card:hover .cockpit-icon-box {
  transform: scale(1.08);
}

.cockpit-icon-box.blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.cockpit-icon-box.green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.cockpit-icon-box.amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.cockpit-icon-box.purple {
  background: #faf5ff;
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

.cockpit-icon-box svg {
  width: 18px;
  height: 18px;
}

.cockpit-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-blue {
  background: #eef3fc;
  color: #2563eb;
  border: 1px solid #d4e2fa;
}

.badge-green {
  background: #eef8f4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-amber {
  background: #fef8eb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-purple {
  background: #f5f3ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.cockpit-card-body {
  flex: 1;
}

.cockpit-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 6px 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.cockpit-card-desc {
  font-size: 12.8px;
  color: var(--txt-muted);
  line-height: 1.5;
  margin: 0;
}

.cockpit-card-footer {
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.cockpit-action-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.16s ease, color 0.16s ease;
}

.cockpit-card:hover .cockpit-action-link {
  color: var(--blue-hover);
  gap: 8px;
}

/* Callout Betriebe Banner */
.cockpit-betriebe-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #d7e4fa;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cockpit-betriebe-banner:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}

.cockpit-betriebe-banner:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cbb-icon-wrap {
  flex-shrink: 0;
}

.cbb-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cbb-content {
  flex: 1;
}

.cbb-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cbb-badge {
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

.cbb-verified {
  color: #047857;
  font-size: 11.5px;
  font-weight: 600;
}

.cbb-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 3px 0;
}

.cbb-desc {
  font-size: 12.5px;
  color: var(--txt-muted);
  margin: 0;
  line-height: 1.45;
}

.cbb-cta {
  flex-shrink: 0;
}

.cbb-cta .btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 768px) {
  .goal-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .goal-hero-card {
    min-width: 0;
    padding: 9px 11px;
    gap: 9px;
    border-radius: 12px;
  }
  .gh-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .gh-icon-box svg {
    width: 18px;
    height: 18px;
  }
  .goal-hero-card .gh-card-title {
    font-size: 13.5px;
  }
  .gh-badge {
    font-size: 10px;
    padding: 1.5px 7px;
  }
  .goal-hero-card .gh-card-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 11.5px;
  }
  .gh-arrow-wrap {
    width: 24px;
    height: 24px;
  }
  .gh-action-arrow {
    font-size: 13px;
  }
  .cockpit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .cockpit-card {
    min-width: 0;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 12px;
  }
  .cockpit-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .cockpit-card-title {
    font-size: 13.5px;
    margin-bottom: 4px;
  }
  .cockpit-card-desc {
    font-size: 11.5px;
    line-height: 1.4;
  }
  .cockpit-action-link {
    font-size: 11.5px;
  }
  .goal-header {
    margin-bottom: 10px;
  }
  .goal-header-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .goal-title {
    font-size: 17px;
    line-height: 1.25;
  }
  .goal-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .goal-subtitle {
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .goal-header .location-step-pill {
    flex-shrink: 0;
    padding: 3.5px 9px;
    font-size: 10.5px;
  }
  .cockpit-container {
    margin-top: 10px;
    padding-top: 12px;
  }
  .cockpit-header {
    margin-bottom: 8px;
  }
  .cockpit-title {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 12.5px;
  }
  .cockpit-title > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cockpit-title > span:last-child {
    font-size: 10.5px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .germany-vector-map {
    height: auto;
    min-height: 250px;
    max-height: 55vh;
  }
  .map-card {
    padding: 12px;
  }
  .cockpit-betriebe-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 12px;
    gap: 10px;
  }
  .cbb-cta .btn {
    width: 100%;
    min-height: 32px;
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* ==========================================================================
   CV.fr Official Models Gallery & Popover Enhancements
   ========================================================================== */
.cv-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(23, 61, 255, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: #173dff !important;
}

.cv-models-popover-list::-webkit-scrollbar {
  width: 5px;
}

.cv-models-popover-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cv-models-popover-list .ltr-popover-opt:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   Clean & Unified Company Card & Email Action Block (Ultra-Simple & Pro)
   ========================================================================== */
.company-card-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03) !important;
  margin: 0 0 14px 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.company-card-row:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
  transform: translateY(-2px);
}

.company-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.company-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.company-header-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.company-info-main {
  flex: 1;
  min-width: 0;
}

.company-name {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.company-title-text {
  display: inline;
}

.company-title-tail {
  white-space: nowrap;
}

.company-kh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 7px;
  margin-top: -2px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  border: 1px solid #e4eaf2;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Meta Chips (Location & Phone avec Copy) */
.company-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.company-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.company-meta-chip.location-chip:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  text-decoration: none;
}

.company-meta-chip.location-chip .chip-external-icon {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.company-meta-chip.location-chip:hover .chip-external-icon {
  color: #2563eb;
}

.company-meta-chip.phone-chip {
  padding: 3.5px 6px 3.5px 10px;
  background: #f8fafc;
}

.company-meta-chip.phone-chip .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  transition: color 0.15s ease;
}

.company-meta-chip.phone-chip .phone-link:hover {
  color: #059669;
  text-decoration: none;
}

.btn-copy-mini {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-copy-mini:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: scale(1.06);
}

.btn-copy-mini.copied {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

.company-card-row.is-company-saved:not(.is-company-sent) {
  border-color: #fde68a !important;
  border-left: 4px solid #f59e0b !important;
}

.company-card-row.is-company-sent {
  border-color: #a7f3d0 !important;
  border-left: 4px solid #10b981 !important;
  background: linear-gradient(180deg, #fafffd 0%, #ffffff 100%) !important;
}

html[dir="rtl"] .company-card-row.is-company-saved:not(.is-company-sent) {
  border-left: 1px solid #fde68a !important;
  border-right: 4px solid #f59e0b !important;
}

html[dir="rtl"] .company-card-row.is-company-sent {
  border-left: 1px solid #a7f3d0 !important;
  border-right: 4px solid #10b981 !important;
}

.company-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.company-quick-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.company-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4.5px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.company-quick-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.company-quick-btn svg {
  flex-shrink: 0;
}

.btn-save-company.is-saved {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.btn-save-company.is-saved:hover {
  background: #fde68a;
  border-color: #f59e0b;
  color: #78350f;
}

.btn-sent-company.is-sent {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.btn-sent-company.is-sent:hover {
  background: #d1fae5;
  border-color: #34d399;
  color: #065f46;
}

.company-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Actions & Email Box */
.company-actions-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.company-email-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font-size: 13.5px;
  color: #1e293b;
  font-weight: 600;
  flex: 1;
  min-width: 220px;
  transition: all 0.15s ease;
}

.email-pill:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.email-pill .email-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

.email-pill .email-text {
  flex: 1;
  word-break: break-all;
  font-family: inherit;
  letter-spacing: -0.1px;
}

.btn-copy-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-copy-icon-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: scale(1.05);
}

.btn-copy-icon-pill.copied {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

.btn-postuler-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9.5px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 11px;
  background-color: #059669;
  background-image: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-postuler-direct:hover {
  background-color: #047857;
  background-image: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.42);
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-postuler-direct.is-sent {
  background-color: #f1f5f9;
  background-image: none;
  border: 1.5px solid #cbd5e1;
  color: #334155 !important;
  box-shadow: none;
}

.btn-postuler-direct.is-sent:hover {
  background-color: #e2e8f0;
  background-image: none;
  border-color: #94a3b8;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn-website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 11px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155 !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-website-link:hover {
  background: #f0f7ff;
  border-color: #93c5fd;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
  text-decoration: none !important;
}

.company-no-email-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

@media (max-width: 640px) {
  .company-email-field {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-postuler-direct,
  .btn-website-link {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Apply View Modern Top Bar & Filter Container
   ========================================================================== */
.apply-header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

.apply-header-top-bar .location-back-btn {
  flex: 0 0 auto;
  min-width: 0;
}

.apply-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  min-width: 0;
  max-width: 100%;
}

.ctx-domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  min-width: 0;
  flex: 0 1 auto;
}

.ctx-domain-tag > span:last-child,
.ctx-location-tag > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctx-spec-tag {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ctx-sep,
.ctx-icon,
.ctx-location-tag svg {
  flex-shrink: 0;
}

.ctx-sep {
  color: #cbd5e1;
  font-weight: 300;
}

.ctx-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  min-width: 0;
  flex: 0 1 auto;
}

/* Facility Filter Box */
.facility-filter-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.facility-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.filter-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
  flex: 0 1 auto;
}

.filter-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-icon-svg {
  color: #2563eb;
  flex-shrink: 0;
}

.filter-subtitle-text {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  min-width: 0;
  flex: 0 1 auto;
}

.filter-sub-city {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-sub-count {
  flex-shrink: 0;
  white-space: nowrap;
}

.facility-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.facility-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6.5px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.facility-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.facility-pill.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.facility-pill .pill-emoji {
  font-size: 14px;
  line-height: 1;
}

.facility-pill-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1.5px 6.5px;
  border-radius: 99px;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.16s ease;
}

.facility-pill.active .facility-pill-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Sent / Saved Status Filter Row */
.facility-filter-container.apply-status-only {
  padding: 10px 14px;
}

.apply-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.apply-status-bar.has-facility-above {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.apply-status-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.apply-status-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.apply-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.apply-status-pill > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.apply-status-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.apply-status-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.apply-status-pill.status-saved.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.apply-status-pill.status-sent.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.apply-status-pill.status-unsent.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.apply-status-count {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.apply-status-pill.active .apply-status-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.apply-status-empty {
  justify-content: center;
  margin-bottom: 14px;
}

.apply-status-empty-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.apply-status-reset-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.apply-status-reset-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* Employer List Pagination (10 per page) */
.apply-pagination-wrap {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 6px 0 26px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.apply-pagination-summary {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.apply-pagination-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.apply-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.apply-page-nav:not(:disabled):hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.apply-page-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.apply-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.apply-page-num {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.apply-page-num:hover:not(.active) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.apply-page-num.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
  cursor: default;
}

.apply-page-ellipsis {
  padding: 0 4px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

@media (max-width: 680px) {
  .facility-filter-container {
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .facility-filter-header {
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
  }
  .filter-title-wrap {
    font-size: 10.5px;
    gap: 4px;
  }
  .filter-icon-svg {
    width: 12px;
    height: 12px;
  }
  .filter-subtitle-text {
    font-size: 10px;
    gap: 3px;
  }
  .facility-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }
  .facility-pill {
    width: 100%;
    min-height: 27px;
    padding: 4px 6px;
    border-radius: 7px;
    font-size: 10.5px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .facility-pill:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
    min-height: 27px;
    font-size: 11px;
  }
  .apply-header-top-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
  }
  .apply-header-top-bar .location-back-btn {
    flex: 0 1 auto;
    max-width: 52%;
    min-width: 0;
    min-height: 29px;
    padding: 4px 6px;
    font-size: 9.8px;
    border-radius: 8px;
    gap: 3px;
    overflow: hidden;
  }
  .apply-header-top-bar .location-back-btn svg {
    width: 11px;
    height: 11px;
  }
  .apply-header-top-bar .location-back-btn > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .apply-context-pill {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 29px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 4px 7px;
    font-size: 10px;
    border-radius: 8px;
    gap: 4px;
    overflow: hidden;
  }
  .apply-context-pill .ctx-domain-tag {
    font-size: 10px;
    gap: 3px;
    flex: 0 10 auto;
    min-width: 0;
    justify-content: flex-start;
  }
  .apply-context-pill .ctx-location-tag {
    font-size: 10px;
    gap: 2.5px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 48%;
  }
  .apply-context-pill .ctx-location-tag svg {
    width: 11px;
    height: 11px;
  }
  .apply-context-pill .ctx-spec-tag {
    font-size: 9px;
    padding: 1px 4px;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .confirmation-info-wrap {
    min-width: 0;
    width: 100%;
  }
  .company-card-row {
    padding: 10px 11px !important;
    border-radius: 11px !important;
    margin: 0 0 9px 0 !important;
  }
  .company-card-header {
    gap: 6px;
    margin-bottom: 6px;
  }
  .company-header-top-row {
    gap: 8px;
  }
  .company-header-sub-row {
    gap: 5px;
    align-items: flex-start;
  }
  .company-info-main {
    flex: 1 1 auto;
    min-width: 0;
  }
  .company-name {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .company-kh-badge {
    margin-left: 5px;
    margin-top: -1px;
    padding: 1.5px 6px;
    font-size: 9.5px;
  }
  .company-meta-line {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
  }
  .company-meta-chip {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    justify-content: flex-start;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 7px;
    gap: 4px;
    box-sizing: border-box;
  }
  .company-meta-chip svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
  }
  .company-meta-chip.location-chip span {
    flex: 0 1 auto;
    min-width: 0;
    word-break: break-word;
  }
  .company-meta-chip.phone-chip {
    padding: 2.5px 4px 2.5px 7px;
    justify-content: flex-start;
    gap: 4px;
  }
  .company-meta-chip.phone-chip .phone-link {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 11px;
    gap: 4px;
  }
  .btn-copy-mini {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-left: 2px;
  }
  .btn-copy-mini svg {
    width: 9.5px;
    height: 9.5px;
  }
  .company-header-aside {
    width: auto;
    max-width: 44%;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
  }
  .company-quick-actions {
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
  }
  .company-quick-btn {
    padding: 3.5px 8px;
    font-size: 10.5px;
    gap: 4px;
  }
  .company-badges {
    justify-content: flex-start;
  }
  .apply-status-bar {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .saved-subfilter-bar {
    padding: 6px 8px !important;
    margin-bottom: 10px !important;
  }
  .apply-status-bar.has-facility-above {
    margin-top: 8px;
    padding-top: 8px;
  }
  .apply-status-bar-label {
    font-size: 10px;
    flex-shrink: 0;
  }
  .apply-status-pills {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .apply-status-pill {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 25px;
    padding: 3px 4px;
    border-radius: 999px;
    font-size: 10px;
    gap: 3px;
    justify-content: center;
    white-space: nowrap;
  }
  .apply-status-pill > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 3px;
  }
  .apply-status-count {
    font-size: 9.5px;
    padding: 0 4px;
    flex-shrink: 0;
  }
  .company-badges {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }
  .company-badges > span {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
    border-radius: 99px !important;
    line-height: 1.2;
  }
  .company-actions-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    margin-top: 7px;
    padding-top: 7px;
  }
  .company-email-field {
    display: contents;
  }
  .company-no-email-hint {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    font-size: 10.5px;
    padding: 5px 8px;
    border-radius: 7px;
  }
  .email-pill {
    grid-column: 1 / -1;
    flex: none;
    min-width: 0;
    width: 100%;
    padding: 3.5px 5px 3.5px 8px;
    font-size: 11px;
    border-radius: 7px;
    border-width: 1px;
    gap: 6px;
    box-sizing: border-box;
  }
  .email-pill .email-icon {
    width: 13px;
    height: 13px;
  }
  .btn-copy-icon-pill {
    width: 21px;
    height: 21px;
    border-radius: 5px;
  }
  .btn-copy-icon-pill svg {
    width: 11px;
    height: 11px;
  }
  .company-actions-block.has-email.no-web .btn-postuler-direct,
  .company-actions-block.no-email.has-web .btn-website-link {
    grid-column: 1 / -1;
  }
  .btn-postuler-direct,
  .btn-website-link {
    width: 100%;
    min-height: 29px;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 7px;
    gap: 5px;
    justify-content: center;
    box-sizing: border-box;
  }
  .btn-postuler-direct svg,
  .btn-website-link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .btn-postuler-direct .sent-mini-check {
    width: 14px;
    height: 14px;
    font-size: 9.5px;
    flex-shrink: 0;
  }
  .anerkennung-card,
  .anerkennung-hero-box,
  .anerkennung-simple-banner {
    padding: 12px;
  }
  .apply-pagination-wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 11px;
    margin: 4px 0 20px;
  }
  .apply-pagination-summary {
    font-size: 11.5px;
  }
  .apply-pagination-controls {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .apply-page-nav {
    height: 30px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 8px;
    gap: 3px;
  }
  .apply-page-numbers {
    gap: 3px;
  }
  .apply-page-num {
    min-width: 28px;
    height: 30px;
    padding: 0 6px;
    font-size: 11.5px;
    border-radius: 8px;
  }
  .apply-page-ellipsis {
    padding: 0 2px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .apply-page-sibling {
    display: none;
  }
}

/* ==========================================================================
   MODULE DOKUMENTE (Simple Bewerbungsmappe PDF Builder)
   ========================================================================== */

.dok-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dok-head-card,
.dok-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.dok-head-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--txt);
}

.dok-plan-line {
  margin: 0;
  font-size: 13px;
  color: var(--txt-muted);
}

.dok-plan-line strong {
  color: var(--txt);
}

.dok-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.dok-card-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 10px;
}

.dok-card-top .dok-card-label {
  margin-bottom: 0;
}

/* Rows: Anschreiben & Lebenslauf */
.dok-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dok-row {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafbfd;
}

.dok-row-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dok-row-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  white-space: nowrap;
}

.dok-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dok-num.muted {
  background: #475569;
}

.dok-spacer {
  width: 28px;
}

.dok-sm-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.dok-sm-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.dok-sm-btn.del:hover:not(:disabled) {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fee2e2;
}

.dok-sm-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Preset quick add buttons */
.dok-add-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dok-add-footer-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.dok-add-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dok-add-btn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.14s ease;
}

.dok-add-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* Paired Dokument Rows: 1. Motarjam -> 2. Original */
.dok-docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dok-empty-note {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--txt-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.dok-doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  background: #fafbfd;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.dok-doc-card.is-dragging {
  opacity: 0.45;
}

.dok-doc-card.drag-target {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.dok-doc-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dok-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 24px;
  border-radius: 5px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -1px;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  transition: color 0.14s ease, background 0.14s ease;
}

.dok-drag-handle:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.dok-drag-handle:active {
  cursor: grabbing;
}

.dok-title-edit {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  padding: 3px 6px;
  border-radius: 6px;
}

.dok-title-edit:hover,
.dok-title-edit:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue-border);
}

.dok-doc-tools {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.dok-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dok-swap-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.14s ease;
}

.dok-swap-btn:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* Drop strip */
.dok-drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 7px 10px;
  min-height: 40px;
  transition: border-color 0.14s, background 0.14s;
}

.dok-drop:hover,
.dok-drop.drag-over {
  border-color: var(--blue);
  background: #f5f9ff;
}

.dok-drop.filled {
  border-style: solid;
}

.dok-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dok-drop-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.dok-drop.filled .dok-drop-btn {
  flex: 0 0 auto;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--blue-soft);
}

.dok-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.dok-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11.5px;
  max-width: 100%;
}

.dok-auto-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  max-width: 100%;
}

.dok-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
  font-weight: 600;
  color: var(--txt);
}

.dok-chip-meta {
  font-size: 10.5px;
  color: var(--txt-muted);
}

.dok-chip-mv {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.dok-chip-mv:hover {
  color: var(--blue-hover);
}

.dok-chip-rm {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 2px;
  line-height: 1;
}

.dok-chip-rm:hover {
  color: #dc2626;
}

/* Export Footer Card */
.dok-export-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dok-export-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.dok-order-preview {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
}

.dok-export-links {
  display: flex;
  gap: 10px;
}

.dok-link-btn {
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 2px 4px;
}

.dok-link-btn.del {
  color: #dc2626;
}

.dok-link-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dok-export-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.dok-name-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.dok-name-field:focus-within {
  border-color: var(--blue);
}

.dok-name-field.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.dok-name-field input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--txt);
  outline: none;
}

.dok-name-field input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  opacity: 1;
}

.dok-name-field span {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: var(--surface-soft);
  border-left: 1px solid var(--line);
}

.dok-primary-btn {
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.dok-primary-btn:hover:not(:disabled) {
  background: var(--blue-hover);
}

.dok-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dok-msg {
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

.dok-msg.success {
  background: var(--green-soft);
  color: var(--green);
}

.dok-msg.error {
  background: #fee2e2;
  color: #b91c1c;
}

.dok-msg.info {
  background: var(--blue-soft);
  color: var(--blue);
}

@media (max-width: 680px) {
  .dok-head-card,
  .dok-card {
    padding: 12px;
  }
  .dok-plan-line {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .dok-doc-card {
    padding: 9px 10px;
  }
  .dok-doc-top {
    gap: 5px;
  }
  .dok-drag-handle {
    display: none;
  }
  .dok-title-edit {
    font-size: 12px;
    padding: 3px 4px;
  }
  .dok-drop-btn {
    font-size: 11.5px;
  }
  .dok-doc-tools {
    gap: 3px;
  }
  .dok-sm-btn {
    width: 24px;
    height: 24px;
    font-size: 10.5px;
    border-radius: 6px;
  }
  .dok-add-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }
  .dok-add-btn {
    width: 100%;
    min-height: 28px;
    font-size: 10.5px;
    line-height: 1.2;
    padding: 4px 6px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.18;
  }
  .dok-add-btn:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
  .dok-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .dok-row-title {
    white-space: normal;
    line-height: 1.3;
  }
  .dok-row-drop {
    grid-column: 1 / -1;
    order: 3;
  }
  .dok-drop {
    padding: 6px 8px;
    min-height: 32px;
    border-radius: 8px;
  }
  .dok-drop-btn {
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.25;
  }
  .dok-chip-name {
    max-width: 120px;
  }
  .dok-pair-grid {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 4px;
    align-items: stretch;
  }
  .dok-pair-grid .dok-drop {
    padding: 5px;
    min-height: 30px;
  }
  .dok-pair-grid .dok-drop-btn {
    font-size: 10px;
    line-height: 1.2;
  }
  .dok-swap-btn {
    width: 24px;
    height: auto;
    min-height: 28px;
    font-size: 11px;
    border-radius: 6px;
    align-self: center;
  }
  .dok-link-btn {
    font-size: 11.5px;
    padding: 2px 4px;
  }
  .dok-export-bar {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .dok-name-field input {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .dok-name-field span {
    padding: 7px 10px;
    font-size: 12px;
  }
  .dok-primary-btn {
    min-height: 34px;
    padding: 7px 14px;
    font-size: 12.5px;
    border-radius: 8px;
  }
}

/* ================= RTL Support (Arabic UI) & Strict LTR Isolation ================= */
.ltr-a4-sheet,
#cvPreviewSheet,
#letterPreviewSheet,
.cv-hub-svg-box,
.document-preview-svg,
#a4SheetPreview,
.germany-svg-map,
.germany-vector-map,
.anerkennung-vector-map {
  direction: ltr;
}

.email-text,
.phone-link {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .rtl-flip-svg,
html[dir="rtl"] .rtl-flip-icon {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="rtl"] .goal-hero-card:hover .gh-action-arrow.rtl-flip-icon {
  transform: translateX(-3px) scaleX(-1);
}

html[dir="rtl"] .ad .tag {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .anerkennung-map-hint {
  border-left: 0;
  border-right: 3px solid var(--blue);
}

html[dir="rtl"] .anerkennung-notice-box {
  border-left: 0;
  border-right: 4px solid #f59e0b;
}

html[dir="rtl"] .info-note {
  border-left: 0;
  border-right: 3px solid #eab308;
}

html[dir="rtl"] .anerkennung-domain-pill,
html[dir="rtl"] .spec-option-card,
html[dir="rtl"] .ltr-section-toggle,
html[dir="rtl"] .ltr-popover-opt,
html[dir="rtl"] .ltr-pick-item,
html[dir="rtl"] .ltr-title-input,
html[dir="rtl"] .cv-hub-title,
html[dir="rtl"] .cv-hub-title-btn,
html[dir="rtl"] .cv-hub-list-main,
html[dir="rtl"] .goal-hero-card,
html[dir="rtl"] .cockpit-betriebe-banner {
  text-align: right;
}

html[dir="rtl"] .ltr-form-pane {
  border-right: 0;
  border-left: 1px solid #e4eaf2;
}

@media (max-width: 960px) {
  html[dir="rtl"] .ltr-form-pane {
    border-left: 0;
  }
}

html[dir="rtl"] .ltr-quick-btn:not(:last-child) {
  border-right: 0;
  border-left: 1px solid #d5dfec;
}

html[dir="rtl"] .ltr-group-l {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-right-width: 1px;
  border-left-width: 0;
}

html[dir="rtl"] .ltr-group-r {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

html[dir="rtl"] .ltr-popover {
  left: auto;
  right: 0;
}

html[dir="rtl"] .ltr-popover.ltr-popover-top {
  right: auto;
  left: 0;
}

@media (max-width: 640px) {
  html[dir="rtl"] .ltr-preview-options .ltr-popover {
    left: 0;
    right: 0;
  }
  html[dir="rtl"] .ltr-popover.ltr-popover-top {
    right: auto;
    left: 0;
  }
}

html[dir="rtl"] .dok-name-field {
  direction: ltr;
}

html[dir="rtl"] .dok-name-field input {
  text-align: left;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"] {
  direction: ltr;
}

/* ==========================================================================
   Smart Email & Motivationsschreiben Composer Modal
   ========================================================================== */
body.email-modal-open {
  overflow: hidden;
}

.apply-auto-email-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 14px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12.5px;
  color: #1e3a8a;
}

.auto-email-pill-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auto-email-reset-btn {
  border: 1px solid #93c5fd;
  background: #ffffff;
  color: #1d4ed8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auto-email-reset-btn:hover {
  background: #dbeafe;
}

.company-sent-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 14px;
}

.sent-mini-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.btn-postuler-direct.is-sent .sent-mini-check {
  background: #10b981;
  color: #ffffff;
}

.email-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  animation: fadeIn 0.16s ease;
}

.email-modal-backdrop[hidden] {
  display: none !important;
}

.email-modal-card {
  width: 100%;
  max-width: 685px;
  max-height: min(792px, 96vh);
  max-height: min(792px, 96dvh);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dbe3ee;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  overflow: hidden;
}

.email-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px 7px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.email-modal-title-wrap {
  min-width: 0;
  flex: 1;
}

.email-modal-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
  margin-bottom: 1px;
}

.email-modal-header h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.email-recipient-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 12.5px;
  min-width: 0;
}

.recipient-lbl {
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.recipient-addr {
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 7px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-inline-copy-btn {
  flex-shrink: 0;
}

.email-inline-copy-btn,
.email-mini-copy,
.email-mini-link {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.email-inline-copy-btn:hover,
.email-mini-copy:hover,
.email-mini-link:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.email-inline-copy-btn.is-copied,
.email-mini-copy.is-copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.email-modal-body {
  padding: 8px 16px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-sender-box {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
  padding: 7px 10px;
}

.email-sender-box.needs-name {
  background: #eff6ff;
  border-color: #93c5fd;
}

.email-sender-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
}

.email-sender-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.email-sender-inputs input,
.email-subject-input,
.email-body-textarea,
.email-template-select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-sender-inputs input:focus,
.email-subject-input:focus,
.email-body-textarea:focus,
.email-template-select:focus {
  outline: none;
  border-color: #3b6fd8;
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.12);
}

.email-sender-inputs input.is-missing {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.email-sender-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 12.5px;
  color: #166534;
}

.email-sender-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sender-check {
  font-weight: 800;
  color: #059669;
}

.email-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.email-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.email-field-head label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.email-field-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.email-next-example-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.email-next-example-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.email-next-example-btn:active {
  transform: scale(0.98);
}

.email-ex-counter {
  font-weight: 700;
  opacity: 0.85;
}

.email-body-textarea {
  resize: vertical;
  min-height: 145px;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 7px 10px;
}

.email-trans-box {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 9px;
  padding: 5px 9px;
}

.email-trans-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.email-trans-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.email-trans-badge {
  font-size: 11px;
  font-weight: 800;
  color: #5b21b6;
  white-space: nowrap;
  flex-shrink: 0;
}

.email-trans-gist {
  font-size: 11.5px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.email-trans-toggle-btn {
  border: 1px solid #c4b5fd;
  background: #ffffff;
  color: #5b21b6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.email-trans-toggle-btn:hover {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #4c1d95;
}

.email-trans-drawer {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #c4b5fd;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-trans-drawer[hidden],
.email-trans-manual-note[hidden] {
  display: none !important;
}

.email-trans-manual-note {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.email-trans-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.email-trans-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #1e293b;
}

.email-trans-row-lbl {
  color: #4c1d95;
  flex-shrink: 0;
}

.email-trans-row-txt {
  color: #1e293b;
}

.email-trans-tip {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  color: #475569;
  line-height: 1.38;
}

@media (max-width: 520px) {
  .email-trans-bar {
    flex-wrap: wrap;
  }
  .email-trans-gist {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

.email-providers-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 7px 10px;
}

.email-providers-head {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
}

.email-providers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.email-provider-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1.5px solid #dbe3ee;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  transition: all 0.16s ease;
  min-width: 0;
}

.email-provider-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.email-provider-btn.provider-gmail:hover {
  border-color: #fca5a5;
  background: #fef2f2;
}

.email-provider-btn.provider-outlook:hover,
.email-provider-btn.provider-office:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.email-provider-btn.provider-yahoo:hover {
  border-color: #d8b4fe;
  background: #faf5ff;
}

.email-provider-btn.provider-mailto:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.email-provider-btn.provider-copy:hover {
  border-color: #86efac;
  background: #ecfdf5;
}

.provider-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.provider-copy-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.provider-copy-wrap strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-copy-wrap small {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-remember-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.email-remember-row input {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
  cursor: pointer;
}

.email-pdf-tip-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  font-size: 11.5px;
  color: #1e293b;
}

.pdf-tip-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-tip-text {
  flex: 1 1 200px;
  min-width: 0;
  line-height: 1.35;
  font-weight: 600;
  color: #334155;
}

.pdf-tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}

.email-pdf-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5.5px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
  transition: background 0.15s ease, transform 0.12s ease;
}

.email-pdf-primary-btn:hover:not(:disabled) {
  background: #1d4ed8;
}

.email-pdf-primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.email-pdf-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.email-pdf-chip:hover {
  background: #f1f5f9;
}

.email-gmail-guide-box {
  margin-top: 1px;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.email-gmail-guide-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-gmail-guide-mini:hover {
  background: #f8fbff;
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.email-gmail-guide-mini:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.email-gmail-thumb {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.email-gmail-mini-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  min-width: 0;
}

.email-gmail-mini-copy strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-gmail-mini-copy small {
  font-size: 10.5px;
  font-weight: 500;
  color: #475569;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-gmail-zoom-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 4.5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.email-gmail-guide-mini[aria-expanded="true"] .email-gmail-zoom-chip {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.email-gmail-guide-details[hidden] {
  display: none !important;
}

.email-gmail-guide-details {
  margin-top: 8px;
}

.email-gmail-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.email-gmail-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-gmail-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.email-gmail-step-num {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-gmail-card-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.email-gmail-card-txt {
  margin: 0;
  font-size: 10.8px;
  line-height: 1.38;
  color: #475569;
}

@media (max-width: 580px) {
  .pdf-tip-actions,
  .email-pdf-primary-btn {
    width: 100%;
  }
  .email-gmail-cards-grid {
    grid-template-columns: 1fr;
  }
  .email-gmail-guide-mini {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "thumb chip"
      "copy copy";
    gap: 6px 8px;
    padding: 7px 9px;
  }
  .email-gmail-thumb {
    grid-area: thumb;
  }
  .email-gmail-zoom-chip {
    grid-area: chip;
    justify-self: end;
    font-size: 10.5px;
    padding: 4px 8.5px;
  }
  .email-gmail-mini-copy {
    grid-area: copy;
  }
  .email-gmail-mini-copy strong,
  .email-gmail-mini-copy small {
    white-space: normal;
  }
}

.email-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 16px);
  opacity: 0;
  z-index: 1250;
  width: max-content;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.email-toast > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.email-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.email-toast[hidden] {
  display: none !important;
}

.email-toast-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
}

.email-toast-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 640px) {
  .email-modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .email-modal-card {
    max-height: 92dvh;
    border-radius: 16px;
  }
  .email-modal-header {
    padding: 13px 14px 11px;
  }
  .email-modal-header h3 {
    font-size: 15px;
  }
  .email-modal-body {
    padding: 12px 14px 15px;
    gap: 10px;
  }
  .email-field-head {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .email-field-head label {
    font-size: 11px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .email-field-actions {
    flex-wrap: nowrap;
    gap: 4px;
    flex-shrink: 0;
  }
  .email-next-example-btn,
  .email-mini-copy {
    font-size: 10px;
    padding: 2.5px 6px;
    white-space: nowrap;
  }
  .email-sender-box {
    padding: 8px 10px;
  }
  .email-sender-box-head {
    margin-bottom: 6px;
    font-size: 11.5px;
  }
  .email-sender-inputs {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .email-sender-inputs input,
  .email-subject-input {
    font-size: 13px;
    padding: 6px 8px;
  }
  .email-body-textarea {
    min-height: 165px;
    font-size: 12.5px;
    line-height: 1.42;
    padding: 8px 10px;
  }
  .email-providers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .email-provider-btn {
    padding: 8px;
    gap: 7px;
  }
  .provider-ic {
    width: 26px;
    height: 26px;
  }
  .provider-copy-wrap strong {
    font-size: 12px;
  }
}

/* ==========================================================================
   Save Hub View (Charikat + CVs + Anschreiben)
   ========================================================================== */
.saved-hub-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saved-hub-header {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saved-hub-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saved-hub-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.saved-hub-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.saved-hub-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.saved-hub-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.saved-hub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.saved-hub-tab:hover {
  background: #ffffff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.saved-hub-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.saved-hub-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.saved-hub-tab.active .saved-hub-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.saved-subfilter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px !important;
  border-top: 1px solid #e2e8f0 !important;
  margin-bottom: 12px;
}

.saved-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.saved-section-info {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.saved-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.saved-doc-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1.5px solid #e2e8f0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.saved-doc-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.saved-doc-card.is-active-doc {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.saved-doc-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.saved-doc-thumb:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.saved-doc-thumb .saved-doc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

html[dir="rtl"] .saved-doc-thumb .saved-doc-badge {
  right: auto;
  left: 8px;
}

@media (max-width: 600px) {
  .saved-doc-thumb {
    max-width: 240px;
    margin: 0 auto;
  }
}

.saved-doc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.saved-doc-icon {
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.saved-doc-title-wrap {
  flex: 1;
  min-width: 0;
}

.saved-doc-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
}

.saved-doc-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-doc-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.saved-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-doc-chip {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.saved-doc-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease;
}

.saved-doc-btn-primary:hover {
  background: #1d4ed8;
}

.saved-doc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7.5px 12px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.saved-doc-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.saved-empty-card {
  text-align: center;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.saved-empty-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.saved-empty-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
}

.saved-empty-desc {
  margin: 0 0 8px;
  max-width: 460px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 640px) {
  .saved-hub-header {
    padding: 10px 11px;
    gap: 8px;
  }
  .saved-hub-title-row {
    gap: 9px;
  }
  .saved-hub-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .saved-hub-title {
    font-size: 14.5px;
  }
  .saved-hub-sub {
    font-size: 11px;
  }
  .saved-hub-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .saved-hub-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5.5px 3.5px;
    font-size: 10px;
    gap: 3px;
    border-radius: 8px;
    overflow: hidden;
  }
  .saved-hub-tab-lbl {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .saved-hub-tab-count {
    min-width: 15px;
    height: 15px;
    padding: 0 3.5px;
    font-size: 9.5px;
    flex-shrink: 0;
  }
  .saved-doc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   SEO Static Intro Block (visible to crawlers, hidden once JS renders)
   ========================================================================== */
.seo-intro {
  padding: 32px 28px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  max-width: 1060px;
  margin: 0 auto;
}

.seo-h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--txt);
  margin: 0 0 10px 0;
}

.seo-lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--txt-muted);
  margin: 0 0 20px 0;
  max-width: 820px;
}

.seo-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.seo-pillar {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.seo-pillar h2 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 6px 0;
}

.seo-pillar p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--txt-muted);
  margin: 0;
}

.seo-cta-text {
  font-size: 12.5px;
  color: var(--txt-muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.seo-faq {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.seo-faq-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 10px 0;
}

.seo-faq-item {
  margin-bottom: 10px;
}

.seo-faq-item h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 3px 0;
}

.seo-faq-item p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--txt-muted);
  margin: 0;
}

@media (max-width: 700px) {
  .seo-pillars {
    grid-template-columns: 1fr;
  }
  .seo-intro {
    padding: 20px 14px;
  }
  .seo-h1 {
    font-size: 17px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }
  .ads,
  .sidebar,
  .sidebar-top-row,
  #mainNav,
  footer,
  .ltr-topbar,
  .ltr-mobile-tabs,
  .ltr-form-pane,
  .ltr-preview-options,
  .ltr-modal-backdrop,
  .email-modal-backdrop,
  .email-toast,
  .cv-hub {
    display: none !important;
  }
  body,
  .app-center,
  main,
  .ltr-studio,
  .ltr-workspace,
  .ltr-preview-pane,
  .ltr-preview-scroll {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
  .ltr-a4-sheet {
    width: 210mm !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .document-preview-svg {
    width: 210mm !important;
    height: 297mm !important;
    page-break-after: always;
    break-after: page;
  }
  .document-preview-svg:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .document-preview-svg + .document-preview-svg {
    border-top: 0 !important;
    margin-top: 0 !important;
  }
}
