@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
  }

  @font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
  }

  @font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
  }

  :where(.sib-form-message-panel) {
    display: none;
  }

  :where(.sib-form-message-panel .sib-notification__icon) {
    width: 20px;
    height: 20px;
  }

  #sib-container input:-ms-input-placeholder {
    font-family: Helvetica, sans-serif;
    text-align: left;
    color: #c0ccda;
  }

  #sib-container input::placeholder {
    font-family: Helvetica, sans-serif;
    text-align: left;
    color: #c0ccda;
  }

  #sib-container textarea::placeholder {
    font-family: Helvetica, sans-serif;
    text-align: left;
    color: #c0ccda;
  }

  #sib-container a {
    text-decoration: underline;
    color: #2BB2FC;
  }

:root {
    --navy: #1A2B4A;
    --navy-mid: #243659;
    --navy-light: #2E4470;
    --green: #2E7D5E;
    --green-light: #3A9B74;
    --gold: #C8A96E;
    --gold-light: #E8D5A8;
    --white: #FFFFFF;
    --off-white: #F8F9FB;
    --gray-light: #E8ECF1;
    --gray-mid: #C4CDD8;
    --gray-text: #6B7A8D;
    --text-main: #1A2B4A;
    --text-body: #374151;
    --danger: #C0392B;
    --shadow-sm: 0 1px 3px rgba(26,43,74,0.08);
    --shadow-md: 0 4px 16px rgba(26,43,74,0.12);
    --shadow-lg: 0 8px 32px rgba(26,43,74,0.16);
    --radius: 10px;
    --radius-lg: 16px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-body);
    background: var(--off-white);
    font-size: 17px;
    line-height: 1.6;
  }

  h1, h2, h3, h4, h5 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text-main);
    line-height: 1.25;
  }

  /* ── NAV ─────────────────────────────────────────────── */
  .top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px;
    height: 64px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: white; text-decoration: none; font-size: 20px; font-weight: 700;
    font-family: Georgia, serif; letter-spacing: -0.3px;
  }
  .nav-logo svg { color: var(--green); }
  .nav-logo span.logo-safe { color: var(--gold); }
  .nav-links {
    display: flex; align-items: center; gap: 6px;
  }
  .nav-links a {
    color: rgba(255,255,255,0.72); text-decoration: none;
    padding: 8px 14px; border-radius: 6px; font-size: 15px;
    transition: all 0.15s;
    cursor: pointer;
  }
  .nav-links a:hover, .nav-links a.active {
    color: white; background: rgba(255,255,255,0.1);
  }
  .nav-links a.active { color: white; }
  .nav-cta {
    background: var(--green); color: white !important;
    padding: 8px 18px !important; font-weight: 600;
  }
  .nav-cta:hover { background: var(--green-light) !important; }
  .nav-user-email {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-logout {
    color: var(--gold) !important;
  }
  [hidden] { display: none !important; }

  .nav-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 22px;
    cursor: pointer;
  }

  /* ── PAGES ───────────────────────────────────────────── */
  .page { display: none; padding-top: 64px; }
  .page.active { display: block; }

  /* ── BUTTONS ─────────────────────────────────────────── */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-size: 16px;
    font-weight: 600; cursor: pointer; border: none;
    text-decoration: none; transition: all 0.15s;
  }
  .btn-primary {
    background: var(--green); color: white;
  }
  .btn-primary:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-outline {
    background: transparent; color: var(--navy);
    border: 2px solid var(--navy); 
  }
  .btn-outline:hover { background: var(--navy); color: white; }
  .btn-outline-white {
    background: transparent; color: white;
    border: 2px solid rgba(255,255,255,0.5);
  }
  .btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
  .btn-gold {
    background: var(--gold); color: var(--navy);
  }
  .btn-gold:hover { background: #d4b87a; transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-sm { padding: 8px 16px; font-size: 14px; }
  .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
  }

  /* ── AUTH ─────────────────────────────────────────────── */
  .auth-page {
    min-height: calc(100vh - 64px);
    background: linear-gradient(145deg, var(--off-white) 0%, #eef3f2 100%);
  }
  .auth-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 70px 40px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
  }
  .auth-intro {
    padding: 22px 0;
  }
  .auth-intro h2 {
    font-size: 38px;
    margin-bottom: 14px;
  }
  .auth-intro p {
    color: var(--gray-text);
    font-size: 18px;
    margin-bottom: 24px;
  }
  .auth-trust-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .auth-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
  }
  .auth-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
  }
  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 20px;
  }
  .auth-tab {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--gray-text);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 12px;
  }
  .auth-tab.active {
    background: white;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
  }
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .auth-link {
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
  }
  .auth-link:hover { color: var(--navy); }
  .auth-message {
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
    border: 1px solid var(--gray-light);
    background: var(--off-white);
    color: var(--text-body);
  }
  .auth-message.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--green);
  }
  .auth-message.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
  }
  .auth-message.info {
    background: #fffbeb;
    border-color: var(--gold-light);
    color: #92400e;
  }
  .auth-config-list {
    margin: 8px 0 0 18px;
  }

  /* ── LANDING PAGE ─────────────────────────────────────── */
  .hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a5f 100%);
    min-height: 82vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 80px 40px;
  }
  .hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 70% 30%, rgba(46,125,94,0.18) 0%, transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(200,169,110,0.1) 0%, transparent 40%);
    pointer-events: none;
  }
  /* Subtle family tree lines in background */
  .hero-tree {
    position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
    opacity: 0.07;
  }
  .hero-content {
    position: relative; max-width: 680px;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(46,125,94,0.2); border: 1px solid rgba(46,125,94,0.4);
    color: #7dd3b0; padding: 6px 14px; border-radius: 20px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 52px; color: white; margin-bottom: 22px;
    font-weight: 700; letter-spacing: -1px; line-height: 1.15;
  }
  .hero h1 span { color: var(--gold); }
  .hero-sub {
    font-size: 20px; color: rgba(255,255,255,0.78);
    margin-bottom: 24px; line-height: 1.6; max-width: 560px;
  }
  .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
  .trust-row {
    display: flex; flex-wrap: wrap; gap: 20px;
  }
  .trust-item {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.65); font-size: 14px;
  }
  .trust-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(46,125,94,0.25); border: 1px solid rgba(46,125,94,0.4);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: #7dd3b0; font-size: 13px;
  }
  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
  }
  .hero .waitlist-form {
    max-width: 620px;
    margin-bottom: 18px;
  }
  .waitlist-form-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(220px, 0.95fr) auto;
    gap: 10px;
    align-items: stretch;
  }
  .waitlist-form input,
  .waitlist-form select {
    width: 100%;
    border: 1px solid var(--gray-mid);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--text-body);
    background: white;
    min-height: 50px;
  }
  .hero .waitlist-form input,
  .hero .waitlist-form select {
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .waitlist-form button {
    justify-content: center;
    white-space: nowrap;
    min-height: 50px;
  }
  .waitlist-microcopy {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.45;
  }
  .waitlist-form .waitlist-microcopy {
    margin: 0;
    max-width: none;
  }
  .hero .waitlist-microcopy {
    color: rgba(255,255,255,0.66);
  }
  .waitlist-form-centered {
    margin: 0 auto;
  }
  .waitlist-cta-block {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: center;
  }
  .waitlist-cta-block h2 {
    font-size: 34px;
    margin-bottom: 10px;
  }
  .waitlist-cta-block p {
    color: var(--gray-text);
    font-size: 18px;
  }

  /* Hero visual panel */
  .hero-visual {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    width: 400px;
  }
  .hero-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg); padding: 24px;
    backdrop-filter: blur(8px);
  }
  .hero-card-title { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
  .mini-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .mini-stat {
    background: rgba(255,255,255,0.07); border-radius: 8px; padding: 14px;
  }
  .mini-stat-val { color: white; font-size: 24px; font-weight: 700; font-family: Georgia, serif; }
  .mini-stat-lbl { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 2px; }
  .mini-progress-label {
    display: flex; justify-content: space-between;
    color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 6px;
  }
  .mini-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
  .mini-bar-fill { height: 100%; background: var(--green); border-radius: 3px; width: 42%; }
  .waitlist-progress-card {
    margin-top: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    padding: 18px;
  }
  .waitlist-progress-card strong {
    display: block;
    color: white;
    font-size: 17px;
    margin-bottom: 2px;
  }
  .waitlist-progress-card .waitlist-limit {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
  }
  .waitlist-progress-card .mini-progress-label {
    margin-top: 14px;
  }
  .waitlist-progress-card .mini-bar-fill {
    background: var(--gold);
    width: 0%;
  }

  /* ── SECTIONS ─────────────────────────────────────────── */
  .section { padding: 80px 40px; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-label {
    display: inline-block; color: var(--green); font-size: 13px;
    font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 12px;
  }
  .section h2 {
    font-size: 38px; margin-bottom: 16px; color: var(--navy);
  }
  .section-intro {
    font-size: 19px; color: var(--gray-text); max-width: 640px; margin-bottom: 52px;
  }

  /* Problem */
  .problem-section { background: var(--white); }
  .problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
  .problem-card {
    background: var(--off-white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 24px; display: flex; gap: 16px;
    align-items: flex-start;
  }
  .problem-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #fef2f2; color: #C0392B;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .problem-card h4 { font-size: 17px; margin-bottom: 4px; color: var(--navy); }
  .problem-card p { font-size: 15px; color: var(--gray-text); }

  /* Solution */
  .solution-section { background: var(--off-white); }
  .solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
  .solution-card {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 28px 24px; text-align: center;
    box-shadow: var(--shadow-sm); transition: all 0.2s;
  }
  .solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .solution-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(46,125,94,0.1); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 16px;
  }
  .solution-card h4 { font-size: 17px; margin-bottom: 6px; }
  .solution-card p { font-size: 14px; color: var(--gray-text); }

  /* Pricing */
  .pricing-section { background: var(--navy); }
  .pricing-section .section-label { color: var(--gold); }
  .pricing-section h2 { color: white; }
  .pricing-section .section-intro { color: rgba(255,255,255,0.65); }
  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 720px; }
  .pricing-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg); padding: 36px;
  }
  .pricing-card.featured {
    background: rgba(255,255,255,0.1); border-color: var(--gold);
    position: relative;
  }
  .pricing-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700;
    padding: 4px 16px; border-radius: 20px; letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .pricing-name { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
  .pricing-price { color: white; font-size: 48px; font-weight: 700; font-family: Georgia, serif; line-height: 1; }
  .pricing-price span { font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.5); }
  .pricing-price .period { font-size: 16px; color: rgba(255,255,255,0.5); display: block; margin-top: 4px; font-family: sans-serif; }
  .pricing-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 24px 0; }
  .pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .pricing-features li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 15px; }
  .pricing-features li .check { color: var(--green); font-size: 16px; flex-shrink: 0; }
  .pricing-features li.muted { color: rgba(255,255,255,0.35); }
  .pricing-features li.muted .check { color: rgba(255,255,255,0.2); }

  /* ── DASHBOARD ───────────────────────────────────────── */
  .app-layout {
    display: flex; min-height: calc(100vh - 64px);
  }
  .sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--navy);
    padding: 28px 0;
    position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
  }
  .sidebar-section-label {
    color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0 20px; margin-bottom: 6px; margin-top: 20px;
  }
  .sidebar-section-label:first-child { margin-top: 0; }
  .sidebar-nav { list-style: none; }
  .sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: rgba(255,255,255,0.65);
    text-decoration: none; font-size: 15px; cursor: pointer;
    transition: all 0.15s; border-left: 3px solid transparent;
  }
  .sidebar-nav a:hover { color: white; background: rgba(255,255,255,0.05); }
  .sidebar-nav a.active {
    color: white; background: rgba(255,255,255,0.08);
    border-left-color: var(--green);
  }
  .sidebar-nav .icon { font-size: 17px; width: 22px; text-align: center; }
  .sidebar-user {
    margin-top: auto; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 10px;
  }
  .sidebar-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
  }
  .sidebar-user-name { color: white; font-size: 14px; font-weight: 600; }
  .sidebar-user-plan { color: var(--gold); font-size: 12px; }

  .app-content { flex: 1; padding: 36px; background: var(--off-white); min-width: 0; }

  .page-header { margin-bottom: 32px; }
  .page-header h2 { font-size: 30px; margin-bottom: 4px; }
  .page-header p { color: var(--gray-text); font-size: 16px; }

  /* Dashboard cards */
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
  .stat-card {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-sm);
  }
  .stat-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
  }
  .stat-card-icon.blue { background: rgba(26,43,74,0.08); color: var(--navy); }
  .stat-card-icon.green { background: rgba(46,125,94,0.1); color: var(--green); }
  .stat-card-icon.gold { background: rgba(200,169,110,0.15); color: #a07840; }
  .stat-card-icon.teal { background: rgba(14,116,144,0.1); color: #0e7490; }
  .stat-val { font-size: 32px; font-weight: 700; color: var(--navy); font-family: Georgia, serif; }
  .stat-label { font-size: 14px; color: var(--gray-text); margin-top: 2px; }
  .stat-sub { font-size: 13px; color: var(--green); margin-top: 6px; font-weight: 500; }

  /* Progress ring */
  .progress-ring-wrap { display: flex; align-items: center; gap: 14px; }
  .ring-svg { transform: rotate(-90deg); }
  .ring-bg { fill: none; stroke: var(--gray-light); stroke-width: 6; }
  .ring-fill { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round;
    stroke-dasharray: 100.5; stroke-dashoffset: 58; transition: stroke-dashoffset 1s ease; }
  .ring-text-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
  .ring-pct { position: absolute; font-size: 15px; font-weight: 700; color: var(--navy); }

  /* Dashboard content grid */
  .dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
  .card {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
  }
  .card-header {
    padding: 20px 24px; border-bottom: 1px solid var(--gray-light);
    display: flex; align-items: center; justify-content: space-between;
  }
  .card-header h3 { font-size: 18px; }
  .card-body { padding: 20px 24px; }

  .todo-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .todo-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border: 1px solid var(--gray-light);
    border-radius: 8px; cursor: pointer; transition: all 0.15s;
  }
  .todo-item:hover { border-color: var(--green); background: rgba(46,125,94,0.03); }
  .todo-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--gray-mid); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .todo-check.done { background: var(--green); border-color: var(--green); color: white; font-size: 12px; }
  .todo-text { flex: 1; font-size: 15px; }
  .todo-tag {
    font-size: 12px; padding: 3px 8px; border-radius: 4px;
    background: var(--gray-light); color: var(--gray-text); font-weight: 600;
  }
  .todo-tag.urgent { background: #fef2f2; color: #c0392b; }
  .todo-tag.medium { background: #fffbeb; color: #92400e; }
  #dashboard-ready-content { display: flex; flex-direction: column; gap: 24px; }
  #dashboard-coach-overview { order: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; }
  #dashboard-ready-content > .dash-grid { order: 1; margin: 0; }
  #dashboard-ready-content > .stats-grid { order: 2; margin: 0; }
  .preparedness-card { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy), #294d62); color: white; box-shadow: var(--shadow-md); }
  .preparedness-card h3 { color: white; font-size: 23px; }
  .preparedness-card p { color: rgba(255,255,255,.78); margin: 8px 0 18px; }
  .preparedness-value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .preparedness-value { font-family: Georgia, serif; font-weight: 800; font-size: 42px; }
  .preparedness-bar { height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.2); }
  .preparedness-bar > div { height: 100%; width: 0; border-radius: inherit; background: var(--gold-light); transition: width .25s ease; }
  .preparedness-details-button { margin-top: 16px; color: white; border-color: rgba(255,255,255,.55); }
  .onboarding-dashboard-card { padding: 22px; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
  .onboarding-dashboard-card h3 { font-size: 19px; margin-bottom: 7px; }
  .onboarding-dashboard-card p { color: var(--gray-text); margin-bottom: 14px; }
  .dashboard-mini-progress { height: 8px; overflow: hidden; margin: 12px 0; border-radius: 999px; background: var(--gray-light); }
  .dashboard-mini-progress > div { height: 100%; background: var(--green); }
  .todo-action { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
  #dashboard-task-intro { color: var(--gray-text); margin-bottom: 14px; }
  @media (max-width: 900px) { #dashboard-coach-overview { grid-template-columns: 1fr; } }

  .activity-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
  .activity-item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--gray-light);
  }
  .activity-item:last-child { border-bottom: none; }
  .activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); margin-top: 6px; flex-shrink: 0;
  }
  .activity-title { font-size: 14px; font-weight: 500; color: var(--text-main); }
  .activity-time { font-size: 13px; color: var(--gray-text); margin-top: 2px; }

  .premium-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #243659 100%);
    border-radius: var(--radius); padding: 24px;
    border: 1px solid rgba(200,169,110,0.3);
  }
  .premium-banner h4 { color: var(--gold); font-size: 17px; margin-bottom: 8px; }
  .premium-banner p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 16px; }
  .premium-feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .premium-feature-list li { color: rgba(255,255,255,0.8); font-size: 14px; display: flex; align-items: center; gap: 8px; }
  .premium-feature-list li::before { content: '✦'; color: var(--gold); font-size: 10px; }

  /* ── VERMÖGEN ─────────────────────────────────────────── */
  .toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
  }
  .toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .category-filter {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .filter-chip {
    padding: 6px 14px; border-radius: 20px; font-size: 14px;
    border: 1px solid var(--gray-mid); background: white;
    cursor: pointer; transition: all 0.15s; color: var(--text-body);
  }
  .filter-chip:hover { border-color: var(--navy); color: var(--navy); }
  .filter-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

  .asset-table { width: 100%; border-collapse: collapse; }
  .asset-table th {
    text-align: left; padding: 10px 14px; font-size: 13px;
    color: var(--gray-text); font-weight: 700; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-light); white-space: nowrap;
  }
  .asset-table td { padding: 14px; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
  .asset-table tr:last-child td { border-bottom: none; }
  .asset-table tr:hover td { background: rgba(26,43,74,0.02); }
  .asset-name { font-weight: 600; color: var(--navy); font-size: 15px; }
  .asset-inst { font-size: 13px; color: var(--gray-text); margin-top: 2px; }
  .cat-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
  }
  .cat-badge.immo { background: rgba(30,86,160,0.1); color: #1e56a0; }
  .cat-badge.bank { background: rgba(46,125,94,0.1); color: var(--green); }
  .cat-badge.depot { background: rgba(14,116,144,0.1); color: #0e7490; }
  .cat-badge.vers { background: rgba(200,169,110,0.15); color: #a07840; }
  .cat-badge.fahr { background: rgba(100,100,100,0.1); color: #555; }
  .asset-val { font-size: 16px; font-weight: 700; color: var(--navy); font-family: Georgia, serif; text-align: right; }
  .asset-total-row td { background: var(--off-white); font-weight: 700; }
  .asset-total-row td:last-child { color: var(--navy); font-size: 18px; font-family: Georgia, serif; }
  .icon-btn {
    width: 32px; height: 32px; border: 1px solid var(--gray-light);
    border-radius: 6px; background: white; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--gray-text); font-size: 15px; transition: all 0.15s;
  }
  .icon-btn:hover { border-color: var(--navy); color: var(--navy); }

  .summary-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
    margin-bottom: 24px;
  }
  .summary-item {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 16px 20px;
  }
  .summary-item-label { font-size: 13px; color: var(--gray-text); margin-bottom: 4px; }
  .summary-item-val { font-size: 22px; font-weight: 700; color: var(--navy); font-family: Georgia, serif; }
  .summary-item-sub { font-size: 13px; color: var(--green); margin-top: 2px; }

  /* ── DOKUMENTE ────────────────────────────────────────── */
  .doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
  .folder-tree { background: white; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 16px; }
  .folder-tree-title { font-size: 13px; font-weight: 700; color: var(--gray-text); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; padding: 0 8px; }
  .folder-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 8px; border-radius: 7px; cursor: pointer;
    font-size: 14px; color: var(--text-body); transition: all 0.15s;
  }
  .folder-item:hover { background: var(--off-white); }
  .folder-item.active { background: rgba(46,125,94,0.1); color: var(--green); font-weight: 600; }
  .folder-item .ficon { font-size: 16px; }
  .folder-item .fcount { margin-left: auto; color: var(--gray-text); font-size: 12px; }

  .doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .doc-card {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 18px 16px; cursor: pointer;
    transition: all 0.15s;
  }
  .doc-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .doc-icon { font-size: 36px; margin-bottom: 10px; }
  .doc-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; word-break: break-word; }
  .doc-meta { font-size: 12px; color: var(--gray-text); }
  .doc-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--gray-light); color: var(--gray-text); font-size: 11px; font-weight: 600; }

  .upload-zone {
    border: 2px dashed var(--gray-mid); border-radius: var(--radius);
    padding: 32px; text-align: center; cursor: pointer;
    transition: all 0.15s; margin-bottom: 20px;
  }
  .upload-zone:hover { border-color: var(--green); background: rgba(46,125,94,0.03); }
  .upload-zone-icon { font-size: 40px; margin-bottom: 10px; }
  .upload-zone p { font-size: 15px; color: var(--gray-text); }
  .upload-zone strong { color: var(--green); }

  /* ── NOTFALLKONTAKTE ──────────────────────────────────── */
  .contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .contact-card {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-sm); transition: all 0.2s;
  }
  .contact-card:hover { box-shadow: var(--shadow-md); }
  .contact-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .contact-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: white; flex-shrink: 0;
  }
  .contact-name { font-size: 17px; font-weight: 700; color: var(--navy); }
  .contact-rel { font-size: 14px; color: var(--gray-text); }
  .role-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  }
  .role-badge.vertrauen { background: rgba(46,125,94,0.1); color: var(--green); }
  .role-badge.angehoerig { background: rgba(30,86,160,0.1); color: #1e56a0; }
  .role-badge.arzt { background: rgba(220,38,38,0.1); color: #dc2626; }
  .role-badge.steuer { background: rgba(200,169,110,0.15); color: #a07840; }
  .role-badge.notar { background: rgba(100,100,100,0.1); color: #555; }
  .contact-detail { display: flex; align-items: center; gap: 8px; color: var(--gray-text); font-size: 14px; margin-bottom: 6px; }
  .contact-detail .di { font-size: 14px; width: 18px; }

  /* ── NOTFALLMODUS ─────────────────────────────────────── */
  .emergency-inactive {
    max-width: 600px; margin: 0 auto; text-align: center;
    padding: 60px 40px;
  }
  .emergency-icon-wrap {
    width: 100px; height: 100px; border-radius: 50%;
    background: #fef2f2; border: 3px solid #fca5a5;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; margin: 0 auto 28px;
  }
  .emergency-inactive h2 { font-size: 30px; margin-bottom: 12px; }
  .emergency-inactive p { color: var(--gray-text); font-size: 17px; margin-bottom: 36px; }
  .emergency-steps {
    display: flex; flex-direction: column; gap: 12px;
    text-align: left; margin-bottom: 36px;
  }
  .estep {
    display: flex; align-items: center; gap: 14px;
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 14px 18px;
  }
  .estep-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--navy); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
  }
  .estep-text { font-size: 15px; color: var(--text-body); }
  .status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600;
    background: #fef2f2; color: #c0392b; border: 1px solid #fca5a5;
    margin-bottom: 24px;
  }
  .status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; }



  /* ── NOTFALLMODUS ERWEITERT ───────────────────────────── */
  .emergency-hero {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 38%, var(--navy) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 34px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }
  .emergency-hero::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
  }
  .emergency-hero h2 { color: white; font-size: 34px; margin-bottom: 12px; }
  .emergency-hero p { color: rgba(255,255,255,0.82); font-size: 17px; max-width: 620px; }
  .emergency-status-card {
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
  }
  .status-large {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fef2f2; color: #991b1b;
    border: 1px solid #fecaca;
    padding: 7px 14px; border-radius: 20px;
    font-size: 14px; font-weight: 700;
    margin-bottom: 14px;
  }
  .status-large .pulse {
    width: 9px; height: 9px; border-radius: 50%; background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,0.18);
  }
  .emergency-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
  .emergency-value-card {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow-sm);
  }
  .emergency-value-card .ev-icon { font-size: 28px; margin-bottom: 8px; }
  .emergency-value-card h4 { font-size: 16px; margin-bottom: 4px; }
  .emergency-value-card p { font-size: 14px; color: var(--gray-text); line-height: 1.45; }
  .emergency-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
  .emergency-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .emergency-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--gray-light);
    font-size: 15px;
  }
  .emergency-list li:last-child { border-bottom: none; }
  .emergency-list .checkmark { color: var(--green); font-weight: 700; }
  .access-level {
    display: grid; grid-template-columns: 74px 1fr; gap: 14px;
    padding: 16px; border: 1px solid var(--gray-light);
    border-radius: var(--radius); background: white; margin-bottom: 12px;
  }
  .level-badge {
    background: var(--navy); color: white; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; height: 42px;
  }
  .level-badge.red { background: #991b1b; }
  .level-badge.green { background: var(--green); }
  .level-badge.gold { background: #a07840; }
  .activation-flow {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  }
  .activation-card {
    border: 1px solid var(--gray-light); background: white;
    border-radius: var(--radius); padding: 18px;
  }
  .activation-card.featured { border-color: #dc2626; background: #fff7f7; }
  .activation-tag {
    display: inline-block; padding: 4px 9px; border-radius: 6px;
    font-size: 12px; font-weight: 700; margin-bottom: 10px;
    background: var(--gray-light); color: var(--gray-text);
  }
  .activation-card.featured .activation-tag { background: #fee2e2; color: #991b1b; }
  .emergency-folder-preview {
    background: white; border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    overflow: hidden;
  }
  .folder-preview-header {
    background: var(--navy); color: white; padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .folder-preview-header h3 { color: white; font-size: 20px; }
  .pdf-badge { background: #fee2e2; color: #991b1b; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
  .folder-preview-body { padding: 22px; }
  .folder-section { margin-bottom: 18px; }
  .folder-section:last-child { margin-bottom: 0; }
  .folder-section h4 { font-size: 15px; margin-bottom: 8px; color: var(--green); text-transform: uppercase; letter-spacing: 0.6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
  .folder-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--gray-light); font-size: 14px; }
  .folder-line:last-child { border-bottom: none; }
  .emergency-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
  @media (max-width: 1100px) {
    .emergency-hero, .emergency-two-col { grid-template-columns: 1fr; }
    .emergency-value-grid { grid-template-columns: repeat(2, 1fr); }
    .activation-flow { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .emergency-value-grid { grid-template-columns: 1fr; }
    .emergency-hero { padding: 24px; }
    .emergency-hero h2 { font-size: 26px; }
  }

  /* Demo interaction layer */
  .toast-container {
    position: fixed; right: 24px; bottom: 24px; z-index: 300;
    display: flex; flex-direction: column; gap: 10px;
    width: min(380px, calc(100vw - 32px));
  }
  .toast {
    background: var(--navy); color: white;
    border-left: 4px solid var(--green);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 14px 16px; font-size: 14px; line-height: 1.45;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.info { border-left-color: var(--gold); }
  .toast.error { border-left-color: var(--danger); }

  .modal-backdrop {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(26,43,74,0.58);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
  }
  .modal-backdrop[hidden] { display: none; }
  .modal-dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px); overflow-y: auto;
    background: white; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overscroll-behavior: contain;
  }
  .modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--gray-light);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .modal-header h3 { font-size: 21px; }
  .modal-close {
    width: 34px; height: 34px; border: 1px solid var(--gray-light);
    border-radius: 8px; background: white; cursor: pointer;
    color: var(--gray-text); font-size: 20px; line-height: 1;
  }
  .modal-close:hover { color: var(--navy); border-color: var(--navy); }
  .modal-body { padding: 22px 24px; }
  .modal-actions {
    padding: 18px 24px; border-top: 1px solid var(--gray-light);
    display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  }
  .modal-form { display: flex; flex-direction: column; gap: 14px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-field { display: flex; flex-direction: column; gap: 6px; }
  .form-field.full { grid-column: 1 / -1; }
  .form-field label { font-size: 13px; font-weight: 700; color: var(--navy); }
  .form-field input, .form-field select, .form-field textarea {
    width: 100%; border: 1px solid var(--gray-mid); border-radius: 8px;
    padding: 10px 12px; font-size: 15px; color: var(--text-body);
    background: white; font-family: inherit;
  }
  .form-field textarea { min-height: 90px; resize: vertical; }
  .modal-note {
    background: var(--off-white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 14px 16px;
    color: var(--gray-text); font-size: 14px;
  }
  .modal-feature-list {
    list-style: none; display: flex; flex-direction: column; gap: 8px;
    margin-top: 12px;
  }
  .modal-feature-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .modal-feature-list li::before { content: '✓'; color: var(--green); font-weight: 800; }
  .privacy-settings-grid { display: grid; gap: 22px; }
  .danger-zone {
    border: 2px solid var(--danger);
    border-radius: var(--radius-lg);
    background: #fff8f8;
    overflow: hidden;
  }
  .danger-zone-header { padding: 22px 24px 0; }
  .danger-zone-header h3 { color: #9f1d1d; margin-bottom: 6px; }
  .danger-zone-body { padding: 18px 24px 24px; }
  .danger-zone .btn-danger,
  .modal-actions .btn-danger {
    background: #b42318;
    border-color: #b42318;
    color: white;
  }
  .danger-zone .btn-danger:hover,
  .modal-actions .btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
  .danger-zone .btn-danger:disabled,
  .modal-actions .btn-danger:disabled { opacity: .48; cursor: not-allowed; }
  .deletion-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
  }
  .deletion-preview-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background: var(--off-white);
  }
  .deletion-preview-item strong { color: var(--navy); }
  .deletion-warning {
    border-left: 4px solid var(--danger);
    border-radius: 6px;
    background: #fff1f1;
    color: #711313;
    padding: 14px 16px;
    margin: 14px 0;
  }
  .deletion-confirmations { display: grid; gap: 12px; margin-top: 18px; }
  .deletion-checkbox { display: flex; align-items: flex-start; gap: 10px; }
  .deletion-checkbox input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
  .deletion-confirmation-input { margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .deletion-status { min-height: 24px; margin-top: 14px; color: var(--navy); font-weight: 700; }
  .deletion-status[hidden] { display: none; }
  .deletion-status.is-loading::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(26,43,74,.25);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: familySafeSpin .8s linear infinite;
  }
  #modal-root[data-account-deletion-busy="true"] .modal-close { display: none; }
  .doc-card.is-new { border-color: var(--green); box-shadow: var(--shadow-md); }
  .status-large.ready {
    background: #ecfdf5; color: var(--green);
    border-color: #a7f3d0;
  }
  .status-large.ready .pulse {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(46,125,94,0.18);
  }
  body.brevo-modal-open {
    overflow: hidden;
  }
  .waitlist-modal-cta {
    align-items: flex-start;
  }
  .waitlist-modal-cta .btn {
    justify-content: center;
  }
  .waitlist-cta-block .waitlist-modal-cta {
    align-items: stretch;
  }
  .waitlist-cta-block .waitlist-modal-cta .btn,
  .conversion-block .waitlist-modal-cta .btn {
    width: 100%;
  }
  .conversion-block .waitlist-modal-cta {
    align-items: center;
    max-width: 420px;
  }
  .brevo-waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(26,43,74,0.66);
  }
  .brevo-waitlist-modal[hidden] {
    display: none;
  }
  .brevo-waitlist-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
  }
  .brevo-waitlist-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background: white;
    color: var(--gray-text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 2;
  }
  .brevo-waitlist-close:hover,
  .brevo-waitlist-close:focus-visible {
    color: var(--navy);
    border-color: var(--navy);
    outline: none;
  }
  #brevo-waitlist-modal .sib-form {
    background-color: transparent !important;
    padding: 0;
  }
  #brevo-waitlist-modal .sib-form-container,
  #brevo-waitlist-modal #sib-container {
    width: 100%;
  }
  #brevo-waitlist-modal #sib-container {
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 6px 0 0;
  }
  #brevo-waitlist-modal #sib-form {
    padding-right: 0;
  }
  #brevo-waitlist-modal .sib-form-block {
    padding-right: 26px;
  }
  #brevo-waitlist-modal .sib-form-block p {
    margin: 0;
  }
  #brevo-waitlist-modal .entry__choice {
    margin-top: 8px;
  }
  #brevo-waitlist-modal .entry__choice label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  #brevo-waitlist-modal .entry__choice span:last-child {
    line-height: 1.45;
  }
  #brevo-waitlist-modal .sib-form-block__button {
    border-radius: 8px !important;
    background: var(--green) !important;
    text-align: center !important;
    padding: 14px 24px !important;
  }
  #brevo-waitlist-modal .sib-form-block__button:hover {
    background: var(--green-light) !important;
  }
  @media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .modal-actions { justify-content: stretch; }
    .modal-actions .btn { justify-content: center; flex: 1; }
    .brevo-waitlist-modal {
      align-items: flex-start;
      padding: 14px;
    }
    .brevo-waitlist-dialog {
      max-height: calc(100vh - 28px);
      padding: 22px 16px 18px;
      border-radius: 12px;
    }
    #brevo-waitlist-modal .sib-form-block {
      padding-right: 30px;
    }
    .deletion-preview-grid { grid-template-columns: 1fr; }
  }

  /* ── UTILITIES ────────────────────────────────────────── */
  .tag { display: inline-block; padding: 3px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; background: var(--gray-light); color: var(--gray-text); }
  .divider { border: none; border-top: 1px solid var(--gray-light); margin: 28px 0; }
  .text-center { text-align: center; }
  .text-green { color: var(--green); }
  .text-gold { color: var(--gold); }
  .flex-gap { display: flex; align-items: center; gap: 10px; }
  .ml-auto { margin-left: auto; }
  .mt-4 { margin-top: 16px; }
  .mb-4 { margin-bottom: 16px; }
  .search-bar {
    display: flex; align-items: center; gap: 8px;
    background: white; border: 1px solid var(--gray-mid);
    border-radius: 8px; padding: 8px 14px; font-size: 15px;
    min-width: 220px;
  }
  .search-bar input { border: none; outline: none; background: transparent; font-size: 15px; width: 100%; }
  .search-bar .search-icon { color: var(--gray-text); }

  footer {
    background: var(--navy); color: rgba(255,255,255,0.5);
    padding: 40px; text-align: center; font-size: 14px;
  }
  footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
  footer a:hover { color: white; }
  .footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 10px; flex-wrap: wrap; }

  /* Responsive */
  @media (max-width: 900px) {
    .hero h1 { font-size: 36px; }
    .hero-visual { display: none; }
    .dash-grid { grid-template-columns: 1fr; }
    .doc-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .section { padding: 50px 20px; }
    .hero { padding: 60px 20px; }
    .top-nav { padding: 0 20px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-links a.nav-logout { display: inline-flex; }
    .nav-user-email { display: none; }
    .auth-shell { grid-template-columns: 1fr; padding: 42px 20px; }
    .auth-intro h2 { font-size: 30px; }
    .waitlist-form-row, .waitlist-cta-block { grid-template-columns: 1fr; }
    .waitlist-cta-block { padding: 28px; }
  }
  @media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .mini-stat-grid { grid-template-columns: 1fr 1fr; }
    .waitlist-form button { width: 100%; }
  }


  /* ── PHASE 1 ERGÄNZUNGEN: Onboarding, Notfallmappe, Senior UX, Trust ───────── */
  .senior-mode-banner {
    background: #fff7e6; border-bottom: 1px solid rgba(200,169,110,0.45);
    color: var(--navy); padding: 10px 40px; margin-top: 64px;
    display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
    font-size: 16px; font-weight: 600;
  }
  .senior-mode-banner button { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--gold); background: white; color: var(--navy); cursor: pointer; font-weight: 700; }
  .quickstart-strip { background: white; border-bottom: 1px solid var(--gray-light); padding: 26px 40px; }
  .quickstart-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 16px; align-items: stretch; }
  .quickstart-title { background: var(--navy); color: white; border-radius: var(--radius-lg); padding: 22px; }
  .quickstart-title h3 { color: white; font-size: 24px; margin-bottom: 6px; }
  .quickstart-title p { color: rgba(255,255,255,.75); font-size: 15px; }
  .quickstart-step { background: var(--off-white); border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 18px; }
  .quickstart-step strong { display:block; color: var(--navy); margin-bottom: 4px; }
  .quickstart-number { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color:white; display:flex; align-items:center; justify-content:center; font-weight:800; margin-bottom: 10px; }
  .guided-layout { display:grid; grid-template-columns: 300px 1fr; gap:24px; }
  .guided-panel { background:white; border:1px solid var(--gray-light); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-sm); }
  .guided-step-list { display:flex; flex-direction:column; gap:12px; }
  .guided-step-item { display:flex; gap:12px; align-items:flex-start; padding:14px; border-radius:var(--radius); border:1px solid var(--gray-light); background:var(--off-white); }
  .guided-step-item.active { border-color: var(--green); background: rgba(46,125,94,.06); }
  .guided-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--navy); color:white; font-weight:700; flex-shrink:0; }
  .guided-dot.done { background: var(--green); }
  .onboarding-shell { max-width: 920px; margin: 0 auto; }
  .onboarding-welcome,
  .onboarding-complete { background: white; border: 1px solid var(--gray-light); border-radius: 20px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow-md); }
  .onboarding-welcome h2,
  .onboarding-complete h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 16px; }
  .onboarding-welcome-copy { max-width: 680px; font-size: 18px; line-height: 1.65; color: var(--text-body); white-space: pre-line; }
  .onboarding-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; margin: 28px 0; }
  .onboarding-benefits li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 15px; background: var(--off-white); border: 1px solid var(--gray-light); border-radius: 10px; }
  .onboarding-benefits li::before { content: '✓'; display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--green); color: white; font-weight: 800; }
  .onboarding-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .onboarding-resume-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
  .onboarding-resume-summary > div { padding: 16px; border: 1px solid var(--gray-light); border-radius: 10px; background: var(--off-white); }
  .onboarding-resume-summary span { display: block; color: var(--gray-text); font-size: 13px; }
  .onboarding-resume-summary strong { display: block; margin-top: 4px; color: var(--navy); font-size: 20px; }
  .onboarding-progress-header { position: sticky; top: 64px; z-index: 8; margin-bottom: 20px; padding: 18px 20px; background: rgba(255,255,255,.98); border: 1px solid var(--gray-light); border-radius: 14px; box-shadow: var(--shadow-sm); }
  .onboarding-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
  .onboarding-progress-track { height: 12px; overflow: hidden; background: var(--gray-light); border-radius: 999px; }
  .onboarding-progress-value { width: 20%; height: 100%; background: var(--green); border-radius: inherit; transition: width .25s ease; }
  .onboarding-wizard-card { background: white; border: 1px solid var(--gray-light); border-radius: 18px; padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-sm); }
  .onboarding-step-panel h2 { font-size: clamp(26px, 4vw, 34px); margin: 8px 0 10px; }
  .onboarding-step-panel > p { max-width: 700px; color: var(--gray-text); font-size: 17px; margin-bottom: 24px; }
  .onboarding-step-panel[hidden] { display: none; }
  .onboarding-step-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .onboarding-step-form .full { grid-column: 1 / -1; }
  .onboarding-choice-grid { display: grid; gap: 12px; }
  .onboarding-choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--gray-mid); border-radius: 10px; cursor: pointer; }
  .onboarding-choice:has(input:checked) { border-color: var(--green); background: rgba(46,125,94,.06); }
  .onboarding-choice input { margin-top: 4px; width: 20px; height: 20px; }
  .onboarding-step-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-light); }
  .onboarding-step-footer > div { display: flex; gap: 10px; flex-wrap: wrap; }
  .onboarding-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(46,125,94,.08); border: 1px solid rgba(46,125,94,.2); color: var(--navy); }
  .onboarding-feedback.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
  .onboarding-document-list { display: grid; gap: 8px; margin-top: 16px; }
  .onboarding-document-list > div { padding: 12px 14px; border-radius: 8px; background: var(--off-white); border: 1px solid var(--gray-light); }
  .onboarding-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
  .onboarding-status-grid > div { padding: 18px; border: 1px solid var(--gray-light); border-radius: 12px; background: var(--off-white); }
  .onboarding-status-grid span { display: block; color: var(--gray-text); font-size: 14px; }
  .onboarding-status-grid strong { display: block; margin-top: 6px; font-size: 23px; color: var(--navy); }
  .milestone-card { max-width: 500px; }
  .milestone-card p { margin-top: 8px; color: var(--gray-text); }
  :where(button, a, input, select, textarea, [role="button"]):focus-visible { outline: 3px solid #1e56a0; outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
  .big-action { font-size:18px; padding:18px 30px; border-radius:12px; }
  .senior-card { background:white; border:1px solid var(--gray-light); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-sm); }
  .senior-card h3 { font-size:24px; margin-bottom:10px; }
  .senior-card p, .senior-card li { font-size:18px; }
  .mappe-shell { max-width: 920px; margin: 0 auto; background: white; border: 1px solid var(--gray-light); border-radius: 18px; box-shadow: var(--shadow-lg); overflow:hidden; }
  .mappe-top { background: var(--navy); color:white; padding:28px 34px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
  .mappe-top h2 { color:white; font-size:30px; margin-bottom:4px; }
  .mappe-top p { color:rgba(255,255,255,.72); }
  .mappe-page { padding:34px; background:#fff; }
  .mappe-section { border-bottom:1px solid var(--gray-light); padding:22px 0; }
  .mappe-section:first-child { padding-top:0; }
  .mappe-section h3 { display:flex; align-items:center; gap:10px; font-size:22px; margin-bottom:14px; }
  .mappe-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
  .mappe-info { background:var(--off-white); border:1px solid var(--gray-light); border-radius:var(--radius); padding:16px; }
  .mappe-info span { display:block; color:var(--gray-text); font-size:14px; margin-bottom:4px; }
  .mappe-info strong { color:var(--navy); font-size:17px; }
  .trust-hero { background: linear-gradient(145deg,var(--navy),#233b62); color:white; border-radius:var(--radius-lg); padding:38px; display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:center; margin-bottom:24px; }
  .trust-hero h2 { color:white; font-size:34px; margin-bottom:12px; }
  .trust-hero p { color:rgba(255,255,255,.76); font-size:18px; }
  .trust-score { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:var(--radius-lg); padding:24px; }
  .trust-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
  .trust-card { background:white; border:1px solid var(--gray-light); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-sm); }
  .trust-card h3 { font-size:20px; margin-bottom:8px; }
  .trust-card p { color:var(--gray-text); font-size:15px; }
  .conversion-block { background: linear-gradient(135deg, rgba(46,125,94,.12), rgba(200,169,110,.18)); border:1px solid rgba(46,125,94,.22); border-radius:var(--radius-lg); padding:34px; text-align:center; margin-top:30px; }
  .conversion-block h2 { font-size:34px; margin-bottom:10px; }
  .conversion-block p { max-width:680px; margin:0 auto 24px; color:var(--gray-text); font-size:18px; }
  body.senior-mode { font-size: 19px; }
  body.senior-mode .btn { font-size: 18px; padding: 16px 30px; }
  body.senior-mode .nav-links a { font-size: 17px; padding: 10px 16px; }
  body.senior-mode .card, body.senior-mode .stat-card, body.senior-mode .solution-card { border-width:2px; }
  body.senior-mode .modal-header h3 { font-size: 26px; line-height: 1.25; }
  body.senior-mode .modal-note { font-size: 18px; line-height: 1.6; }

  /* ── TESTAMENT-ASSISTENT ──────────────────────────────── */
  .testament-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #25405f 58%, #2f5d54 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
  }
  .testament-hero h2 { color: white; font-size: 32px; margin-bottom: 10px; }
  .testament-hero p { color: rgba(255,255,255,0.78); max-width: 780px; }
  .legal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 18px 0 0;
  }
  .legal-info-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 18px;
  }
  .legal-info-card h4 { font-size: 16px; margin-bottom: 6px; }
  .legal-info-card p, .legal-info-card li { color: var(--gray-text); font-size: 14px; line-height: 1.5; }
  .legal-info-card ul { margin-left: 18px; }
  .legal-disclaimer {
    background: #fffbeb;
    border: 1px solid var(--gold-light);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 18px;
    color: #6b4e16;
    margin-bottom: 20px;
  }
  .legal-disclaimer strong { color: var(--navy); }
  .testament-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 20px;
    align-items: start;
  }
  .testament-card-stack { display: flex; flex-direction: column; gap: 18px; }
  .testament-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 4px 0 12px;
  }
  .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }
  .check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background: var(--off-white);
    font-size: 14px;
  }
  .check-row input { margin-top: 4px; }
  .testament-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    color: #7f1d1d;
    padding: 14px 16px;
    font-size: 14px;
  }
  .testament-warning[hidden] { display: none; }
  .testament-draft {
    background: #fffdf7;
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
    padding: 22px;
  }
  .testament-draft h3 { font-size: 23px; margin-bottom: 10px; }
  .testament-draft-notice {
    background: #fffbeb;
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: #6b4e16;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .testament-template-text {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 18px;
    white-space: pre-wrap;
    color: var(--text-main);
    line-height: 1.75;
    font-family: Georgia, 'Times New Roman', serif;
  }
  .testament-checklist {
    margin: 16px 0 0 20px;
    color: var(--text-body);
  }
  .testament-checklist li { margin-bottom: 6px; }
  .testament-status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .testament-status-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 8px;
    font-size: 14px;
  }
  .testament-status-list li:last-child { border-bottom: none; padding-bottom: 0; }
  .testament-status-list span { color: var(--gray-text); }
  .testament-status-list strong { color: var(--navy); text-align: right; }
  .testament-upload-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }
  .testament-scan-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 12px 14px;
  }
  .testament-scan-card strong {
    display: block;
    color: var(--navy);
    word-break: break-word;
  }
  .testament-scan-card span { color: var(--gray-text); font-size: 13px; }
  .testament-actions-list {
    margin-left: 20px;
    color: var(--gray-text);
    font-size: 14px;
  }
  .testament-actions-list li { margin-bottom: 4px; }
  @media (max-width: 1100px) {
    .testament-grid { grid-template-columns: 1fr; }
  }
  @media print {
    body.print-testament .top-nav,
    body.print-testament .senior-mode-banner,
    body.print-testament .sidebar,
    body.print-testament .page-header,
    body.print-testament .testament-hero,
    body.print-testament .legal-disclaimer,
    body.print-testament .testament-form-card,
    body.print-testament .testament-metadata-card,
    body.print-testament .testament-upload-card,
    body.print-testament .testament-dashboard-card,
    body.print-testament #toast-container,
    body.print-testament #modal-root {
      display: none !important;
    }
    body.print-testament .page { display: none !important; }
    body.print-testament #page-testament { display: block !important; padding-top: 0; }
    body.print-testament .app-layout { display: block; min-height: auto; }
    body.print-testament .app-content { padding: 0; background: white; }
    body.print-testament .testament-grid { display: block; }
    body.print-testament .card { border: 0; box-shadow: none; }
    body.print-testament .card-header { border: 0; padding: 0 0 12px; }
    body.print-testament .card-body { padding: 0; }
    body.print-testament .testament-draft { border: 0; padding: 0; }
  }
  @media (max-width:900px){ .quickstart-inner,.guided-layout,.trust-hero{grid-template-columns:1fr;} .senior-mode-banner{margin-top:64px;padding:12px 20px;} }
  @media (max-width:600px) {
    .onboarding-step-form, .onboarding-resume-summary, .onboarding-status-grid { grid-template-columns: 1fr; }
    .onboarding-step-form .full { grid-column: auto; }
    .onboarding-progress-header { top: 64px; padding: 14px; }
    .onboarding-step-footer { align-items: stretch; flex-direction: column-reverse; }
    .onboarding-step-footer > div, .onboarding-step-footer .btn, .onboarding-actions .btn { width: 100%; }
    .onboarding-step-footer .btn, .onboarding-actions .btn { min-height: 48px; justify-content: center; }
  }

  /* ── HYBRIDER DEMO-MODUS ─────────────────────────────── */
  .auth-status-loading {
    position: fixed;
    inset: 64px 0 0;
    z-index: 95;
    display: grid;
    place-items: center;
    background: var(--off-white);
    color: var(--navy);
  }
  .auth-status-loading-card {
    width: min(440px, calc(100% - 40px));
    padding: 28px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
    text-align: center;
  }
  .auth-status-loading-card span {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: familySafeSpin .8s linear infinite;
  }
  @keyframes familySafeSpin { to { transform: rotate(360deg); } }
  .demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    border: 1px solid rgba(46,125,94,.28);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(46,125,94,.09), rgba(200,169,110,.11));
    box-shadow: var(--shadow-sm);
  }
  .demo-banner-copy { min-width: 0; }
  .demo-banner-copy strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 2px; }
  .demo-banner-copy span { color: var(--text-body); font-size: 15px; }
  .demo-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
  .demo-section-details {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: white;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .demo-section-details summary {
    padding: 16px 18px;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
    background: var(--off-white);
  }
  .demo-section-details > div { padding: 4px 18px 18px; }
  .demo-folder-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 920px;
    margin: 18px auto 0;
  }
  .demo-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(200,169,110,.2);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
  }
  body[data-family-mode="personal"] .demo-only { display: none !important; }
  body[data-family-mode="demo"] .personal-only { display: none !important; }

  @media (max-width: 1100px) {
    .top-nav { padding: 0 20px; }
    .nav-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
      position: fixed;
      top: 64px;
      right: 14px;
      left: 14px;
      max-height: calc(100vh - 84px);
      overflow-y: auto;
      display: none;
      align-items: stretch;
      flex-direction: column;
      gap: 4px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: var(--radius);
      background: var(--navy);
      box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links.open a,
    .nav-links.open a:not(.nav-cta),
    .nav-links.open a.nav-logout { display: flex; min-height: 44px; align-items: center; }
    .nav-links .nav-user-email { padding: 8px 14px; max-width: none; }
  }
  @media (max-width: 700px) {
    .demo-banner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 14px; margin-bottom: 18px; }
    .demo-banner-copy strong { font-size: 16px; line-height: 1.3; }
    .demo-banner-copy span { font-size: 14px; line-height: 1.4; }
    .demo-banner-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
    .demo-banner-actions .btn { width: 100%; min-width: 0; justify-content: center; padding: 8px 6px; font-size: 12.5px; }
    .demo-folder-actions .btn { width: 100%; justify-content: center; }
    .app-content { padding: 24px 16px; }
    #page-vermoegen .card { overflow-x: auto; }
    #page-vermoegen .asset-table { min-width: 760px; }
    .modal-backdrop { align-items: flex-start; padding: 12px; }
    .modal-dialog { max-height: calc(100dvh - 24px); border-radius: 12px; }
    .modal-header, .modal-body, .modal-actions { padding-left: 16px; padding-right: 16px; }
    .modal-actions .btn { flex: 1 1 100%; width: 100%; }
  }
