  .r3d-wrap { max-width: 780px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
  .r3d-back { font-size: .82rem; color: #6b7280; padding: .6rem 1rem .1rem;
              display: block; text-decoration: none; text-align: right; }
  .r3d-back:hover { color: #374151; }
  .r3d-header { border-bottom: 1px solid #e5e7eb; padding-bottom: 1.1rem; margin-bottom: 1.5rem; }
  .r3d-eyebrow {
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap; gap: .3rem;
    font-size: .9rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: #6b7280; margin-bottom: .7rem;
  }
  .r3d-eyebrow-done { font-size: .75rem; font-weight: 400; color: #9ca3af; letter-spacing: 0; text-transform: none; }
  .r3d-question { font-size: .88rem; color: #6b7280; font-style: italic; line-height: 1.6; margin: .3rem 0 .6rem; }
  .r3d-h1-row { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:.4rem; }
  .r3d-h1-row h1 { font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 700; color: #111827; margin: 0; flex:1; min-width:0; }
  .r3d-header h1 { font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 700; color: #111827; margin: 0; }

  /* CTA cards */
  .cta3d-block { margin-bottom: 1.2rem; }
  .cta3d-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1.5px solid #c4b5fd; border-radius: 0;
    padding: 1rem 1.25rem; margin-bottom: .65rem;
  }
  .cta3d-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .cta3d-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #7c3aed; margin-bottom: .22rem; }
  .cta3d-title { font-size: .9rem; color: #3b0764; font-weight: 600; }
  .cta3d-desc  { font-size: .8rem; color: #6d28d9; margin-top: .15rem; }
  .cta3d-btn {
    display: inline-block; padding: .5rem 1.2rem;
    background: #7c3aed; color: #fff;
    border-radius: 0; text-decoration: none;
    font-size: .88rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  }
  .cta3d-btn:hover { background: #6d28d9; }

  /* Největší změna 2D-3D */
  .z3d-section {
    background: #fff; border-radius: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.05);
    padding: 1.4rem 1.5rem 1.2rem; margin-bottom: 1.25rem;
  }
  .z3d-title { font-size: 1rem; font-weight: 700; color: #111827; margin: 0 0 .3rem; }
  .z3d-sub   { font-size: .78rem; color: #9ca3af; margin: 0 0 1rem; }
  .z3d-list  { list-style: none; padding: 0; margin: 0; }
  .z3d-list li { display: flex; align-items: center; gap: .65rem; padding: .28rem 0; border-bottom: 1px solid #f1f5f9; font-size: .88rem; }
  .z3d-list li:last-child { border-bottom: none; }
  .z3d-bar-wrap { flex: 1; height: 6px; background: #e5e7eb; border-radius: 0; overflow: hidden; max-width: 100px; }
  .z3d-bar { height: 100%; background: #6366f1; border-radius: 0; }
  .z3d-val { font-size: .78rem; color: #6b7280; white-space: nowrap; min-width: 3rem; text-align: right; }

  .map-card { background: #fff; border-radius: 0;
              padding: 1rem; margin-bottom: 1rem;
              box-shadow: 0 1px 4px rgba(0,0,0,.08); }

  /* Outer wrapper pro ctrl-overlay + canvas + concept-panel */
  .map-outer { position: relative; overflow: hidden; }

  /* ── Left info panel (slide-in) ── */
  #r3d-info-panel {
    position: absolute; top: 2.2rem; left: 0; bottom: 0; z-index: 30;
    display: flex; align-items: stretch; pointer-events: none;
  }
  .r3d-info-tab {
    pointer-events: all;
    writing-mode: vertical-rl; text-orientation: mixed;
    background: rgba(26,26,46,.82); color: #fff;
    border: none; border-radius: 0;
    padding: .55rem .32rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; cursor: pointer; white-space: nowrap;
    align-self: flex-start; margin-top: 1.5rem;
    backdrop-filter: blur(4px);
  }
  .r3d-info-tab:hover { background: rgba(26,26,46,.95); }
  .r3d-info-body {
    pointer-events: all;
    width: 0; max-width: 0; overflow: hidden;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px);
    display: flex; flex-direction: column;
    transition: width .22s ease, max-width .22s ease;
    border-right: 1px solid rgba(0,0,0,.08);
    box-shadow: 3px 0 14px rgba(0,0,0,.10);
    font-size: .82rem;
  }
  #r3d-info-panel.open .r3d-info-body { width: 230px; max-width: 230px; }
  /* Left panel body — tabs + content */
  .r3d-info-body { overflow-y: hidden; }
  .r3d-chapters-nav { padding: .3rem .25rem; }
  .r3d-ch-link {
    display: flex; align-items: center; gap: .4rem; padding: .28rem .5rem;
    border-radius: 0; font-size: .79rem; color: #374151; text-decoration: none; cursor: pointer;
  }
  .r3d-ch-link:hover { background: #f0f4fa; color: #1a1a2e; }
  .r3d-ch-link.active { background: #e8f0fb; color: #1d4ed8; font-weight: 600; }
  .r3d-ch-link.r3d-ch-empty { color: #d1d5db; }
  .r3d-ch-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; background: #e5e7eb; color: #6b7280;
    font-size: .65rem; font-weight: 700; flex-shrink: 0;
  }
  .r3d-ch-link.active .r3d-ch-num { background: #1d4ed8; color: #fff; }

  /* Right panel — 3 tabs */
  .r3d-rtabs { display: flex; border-bottom: 1px solid #e5e7eb; background: #f9fafb; flex-shrink: 0; }
  .r3d-rtab {
    flex: 1; padding: .38rem .2rem; border: none; background: none; font-size: .76rem;
    font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent;
  }
  .r3d-rtab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; font-weight: 600; }
  .r3d-rtab-pane { overflow-y: auto; padding: .5rem .6rem; min-width: 280px; font-size: .8rem; }
  .r3d-rtab-hidden { display: none; }

  /* Section cards (above/below map) */
  .r3d-section-card { background: #f8fafc; border-radius: 0; padding: .75rem 1rem; font-size: .82rem; }
  .r3d-section-title { font-weight: 700; color: #374151; margin-bottom: .45rem; font-size: .82rem; }
  @media (max-width: 600px) { #r3d-info-panel { display: none; } }

  /* ── Right concept panel (slide-in from right) ── */
  #r3d-list-panel {
    position: absolute; right: 0; top: 2.2rem; bottom: 0; height: auto;
    display: flex; flex-direction: row; align-items: flex-start;
    z-index: 30; pointer-events: none;
  }
  #r3d-list-ear {
    pointer-events: all;
    writing-mode: vertical-rl; text-orientation: mixed;
    width: 22px; height: 54px; margin-top: 1.5rem;
    background: rgba(26,26,46,.82); color: #fff;
    border: none; border-radius: 0;
    cursor: pointer; font-size: .68rem; font-weight: 700;
    letter-spacing: .06em; white-space: nowrap;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: background .12s;
    flex-shrink: 0;
  }
  #r3d-list-ear:hover { background: rgba(26,26,46,.95); }
  #r3d-list-panel.open #r3d-list-ear { background: rgba(26,26,46,.95); }
  #r3d-list-body {
    pointer-events: all; align-self: stretch;
    display: flex; flex-direction: column;
    width: 0; max-width: 0; overflow: hidden;
    transition: width .22s ease, max-width .22s ease;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(6px);
    border-left: 1px solid rgba(0,0,0,.08);
    box-shadow: -3px 0 14px rgba(0,0,0,.10);
  }
  #r3d-list-panel.open #r3d-list-body { width: 280px; max-width: 280px; }
  #concept-list-3d {
    min-width: 280px; padding: .5rem .35rem;
    overflow-y: auto; flex: 1;
  }
  @media (max-width: 600px) { #r3d-list-panel { display: none; } }

  /* ── Floating control overlay ── */
  .ctrl-overlay {
    position: absolute; top: 0; left: 0; right: 0; z-index: 20;
    background: rgba(255,255,255,.91);
    backdrop-filter: blur(4px);
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    font-size: .79rem; user-select: none;
  }
  .ctrl-row-main {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: .3rem .5rem; padding: .3rem .55rem;
  }
  .ctrl-rows-extra {
    max-height: 0; overflow: hidden;
    transition: max-height .22s ease;
  }
  .ctrl-overlay:hover .ctrl-rows-extra {
    max-height: 260px;
  }
  .ctrl-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: .28rem .65rem; padding: .22rem .55rem;
    border-top: 1px solid rgba(0,0,0,.05);
  }
  .ctrl-row input[type=range] { accent-color: #4a90d9; cursor: pointer; }
  .ctrl-row select { border: 1px solid #ddd; border-radius: 0;
                     padding: .15rem .3rem; font-size: .79rem; background: #fff; cursor: pointer; }
  .ctrl-chk { cursor: pointer; color: #555; white-space: nowrap;
              display: inline-flex; align-items: center; gap: .22rem; }
  .ctrl-label { color: #555; white-space: nowrap; }
  .ctrl-label strong { color: #333; min-width: 2.2em; display: inline-block; }
  .ctrl-expand-hint { margin-left: auto; color: #bbb; font-size: .7rem;
                      pointer-events: none; padding-left: .4rem; }
  .ctrl-btn { border: 1px solid #ddd; border-radius: 0; padding: .17rem .52rem;
              font-size: .79rem; background: #fff; cursor: pointer; color: #666; }
  .ctrl-btn:hover { background: #f0f0f0; }
  .ctrl-btn.active { background: #e8f0fb; border-color: #4a90d9; color: #2a6db5; }


  /* 3D canvas container */
  #map3d-wrap { position: relative; width: 100%; height: 520px;
                background: #fafafa; border-radius: 0; }
  #map3d-wrap canvas { display: block; }

  /* Fallback */
  #map3d-fallback { display: none; padding: 3rem 1rem;
                    text-align: center; color: #888; font-size: .92rem; }
  #map3d-fallback a { color: #4a90d9; }

  /* CSS2D labels */
  .node-label {
    font-family: system-ui, sans-serif; font-size: 11px; color: #333;
    background: rgba(255,255,255,.82); padding: 1px 5px; border-radius: 0;
    pointer-events: none; white-space: nowrap; text-shadow: 0 0 4px #fff;
  }
  .node-label.central   { font-weight: 700; color: #c87000; }
  .node-label.self      { font-weight: 700; color: #7a4e00; font-size: 13px;
                          background: rgba(255,200,50,.22); border: 1px solid rgba(243,156,18,.4); }
  .node-label.selected  { font-weight: 700; background: rgba(255,255,255,.97); }
  .node-label.list-hover { font-weight: 700; font-size: 13px;
                           background: rgba(251,191,36,.32) !important;
                           border: 1px solid #f59e0b; color: #1a1a2e; }

  /* Concept list items (inside panel) */
  .cl-item {
    font-size: .76rem; padding: .16rem .3rem; border-radius: 0; cursor: default;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #666; line-height: 1.55; transition: background .1s;
  }
  .cl-item:hover, .cl-item.cl-active { background: #eef2fb; color: #1a1a2e; font-weight: 600; }
  .cl-item.cl-pos { background: rgba(39,174,96,.1); color: #166534; }
  .cl-item.cl-neg { background: rgba(231,76,60,.1); color: #991b1b; }
  .cl-item.cl-pos:hover, .cl-item.cl-pos.cl-active { background: rgba(39,174,96,.22); color: #166534; font-weight:600; }
  .cl-item.cl-neg:hover, .cl-item.cl-neg.cl-active { background: rgba(231,76,60,.22); color: #991b1b; font-weight:600; }

  /* Tooltip */
  #tooltip3d {
    position: absolute; display: none;
    background: rgba(255,255,255,.97); border: 1px solid #e0e0e0;
    border-radius: 0; padding: .5rem .75rem; font-size: .8rem;
    color: #333; line-height: 1.65; pointer-events: none; z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.12); max-width: 200px;
  }
  #tooltip3d strong { display: block; margin-bottom: .2rem; font-size: .85rem; }
  #tooltip3d sub { font-size: .7em; }

  /* Legend */
  .map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
                padding: .7rem .1rem 0; font-size: .79rem; color: #666; }
  .legend-item { display: flex; align-items: center; gap: .4rem; }
  .legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

  /* Accordions */
  .acc { background: #fff; border-radius: 0; margin-bottom: .65rem;
         box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
  .acc > summary {
    padding: .85rem 1.25rem; font-size: .92rem; font-weight: 600; color: #333;
    cursor: pointer; list-style: none; user-select: none;
    display: flex; justify-content: space-between; align-items: center;
  }
  .acc > summary::-webkit-details-marker { display: none; }
  .acc > summary::after { content: '▸'; font-size: .78rem; color: #bbb; }
  .acc[open] > summary::after { content: '▾'; }
  .acc > summary:hover { background: #fafafa; }
  .acc-body { padding: .25rem 1.25rem 1.25rem; }

  .sim-table th { text-align: left; font-size: .75rem; color: #888;
                  border-bottom: 1px solid #eee; padding: .3rem .2rem; font-weight: 600; }
  .sim-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
  .sim-table td { padding: .38rem .2rem; border-bottom: 1px solid #f4f4f4; }
  .sim-bar-wrap { display: flex; align-items: center; gap: .4rem; }
  .sim-bar  { height: 6px; border-radius: 0; background: #4a90d9; }
  .sim-pct  { font-size: .78rem; color: #888; white-space: nowrap; }

  .kv-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
  .kv-table td { padding: .32rem .1rem; }
  .kv-table td:first-child { color: #888; width: 44%; }
  .kv-table td:last-child  { font-weight: 600; }

  /* Interpretation */
  .interp-card { background: #fff; border-radius: 0; padding: 1.1rem 1.4rem 1rem;
                 margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .interp-card h2 { font-size: .82rem; font-weight: 700; color: #888;
                    text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .75rem; }
  .interp-row { margin-bottom: .35rem; }
  .interp-text { font-size: .91rem; color: #333; line-height: 1.65; margin: 0; display: inline; }
  .interp-info { display: inline-flex; align-items: center; justify-content: center;
    width: 1.1rem; height: 1.1rem; border-radius: 50%; background: none;
    border: 1px solid #bbb; color: #aaa; font-size: .65rem; cursor: pointer;
    margin-left: .25rem; vertical-align: middle; line-height: 1; padding: 0; font-family: inherit; }
  .interp-info:hover { border-color: #4a90d9; color: #4a90d9; }
  .interp-ev-box { background: #f8f9fc; border: 1px solid #e8eaf0; border-radius: 0;
    padding: .45rem .65rem; margin: .25rem 0 .4rem 0; font-size: .75rem; color: #555; display: none; }
  .interp-ev-box.open { display: block; }
  .interp-ev-box dl { margin: 0; }
  .interp-ev-box dt { display: inline; font-weight: 600; color: #444; }
  .interp-ev-box dt::after { content: ': '; }
  .interp-ev-box dd { display: inline; margin: 0; color: #666; }
  .interp-ev-box dd::after { content: '\A'; white-space: pre; }
  .interp-divider { border: none; border-top: 1px solid #f0f0f0; margin: .75rem 0; }
  .interp-lists { font-size: .88rem; color: #444; }
  .interp-lists-row { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: .4rem; }
  .interp-list-title { font-size: .75rem; font-weight: 700; color: #888;
                       text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
  .interp-list-block ul { margin: 0; padding-left: 1.1rem; }
  .interp-list-block li { margin: .1rem 0; line-height: 1.5; }
  .interp-scores { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .6rem; font-size: .82rem; }
  .interp-score-pill { background: #f0f4fa; border-radius: 0; padding: .22rem .6rem; color: #444; white-space: nowrap; }
  .interp-score-pill strong { color: #1a1a2e; }
  .map-type-badge { display: inline-block; padding: .2rem .6rem; border-radius: 0;
                    font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
  .map-type-centered   { background: #d4edda; color: #155724; }
  .map-type-polarized  { background: #fff3cd; color: #856404; }
  .map-type-fragmented { background: #f8d7da; color: #721c24; }
  .map-type-diffuse    { background: #e2e3e5; color: #383d41; }
  /* Δstress card */
  .delta-card { background: #fff; border-radius: 0; padding: .95rem 1.25rem;
                margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .delta-card h2 { font-size: .78rem; font-weight: 700; color: #888;
                   text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .55rem; }
  .delta-row { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: baseline;
               margin-bottom: .55rem; }
  .delta-pill { background: #f0f4fa; border-radius: 0; padding: .22rem .6rem;
                font-size: .82rem; color: #444; white-space: nowrap; }
  .delta-pill strong { color: #1a1a2e; }
  .delta-pill.highlight { background: #e8f0fb; }
  .delta-interp { font-size: .88rem; color: #444; line-height: 1.6; }
  .delta-interp .dkey { font-weight: 600; color: #333; }

  /* Left panel tabs */
  .r3d-ltabs {
    display: flex; border-bottom: 1px solid #e5e7eb;
    background: #f9fafb; flex-shrink: 0;
  }
  .r3d-ltab {
    flex: 1; padding: .35rem .2rem; border: none; background: none;
    font-size: .74rem; font-weight: 500; color: #6b7280;
    cursor: pointer; border-bottom: 2px solid transparent;
    font-family: inherit;
  }
  .r3d-ltab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; font-weight: 600; }
  .r3d-ltab-pane { overflow-y: auto; flex: 1; }
  .r3d-ltab-hidden { display: none !important; }

  /* Δstress prominent card */
  .delta3d-card {
    background: #fff; border-radius: 0; padding: 1rem 1.25rem .9rem;
    margin-top: .8rem; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  }
  .delta3d-top {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    margin-bottom: .65rem;
  }
  .delta3d-big-wrap { flex-shrink: 0; text-align: center; min-width: 90px; }
  .delta3d-eyebrow {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #6b7280; margin-bottom: .15rem;
  }
  .delta3d-big {
    font-size: 2rem; font-weight: 800; color: #1d4ed8; line-height: 1;
    letter-spacing: -.03em;
  }
  .delta3d-sublabel { font-size: .72rem; color: #9ca3af; margin-top: .1rem; }
  .delta3d-bars { flex: 1; min-width: 160px; }
  .delta3d-bar-row {
    display: flex; align-items: center; gap: .45rem;
    padding: .22rem 0;
  }
  .delta3d-bar-lbl { font-size: .75rem; font-weight: 700; color: #6b7280; width: 1.6rem; flex-shrink: 0; }
  .delta3d-bar-track {
    flex: 1; height: 10px; background: #f1f5f9; border-radius: 0; overflow: hidden;
  }
  .delta3d-bar { height: 100%; border-radius: 0; transition: width .3s; }
  .delta3d-bar-2d { background: #94a3b8; }
  .delta3d-bar-3d { background: #3b82f6; }
  .delta3d-bar-val { font-size: .73rem; color: #6b7280; white-space: nowrap; min-width: 3rem; }
  .delta3d-interp { font-size: .84rem; color: #374151; line-height: 1.55; }
  .delta3d-hint { display: block; font-size: .75rem; color: #9ca3af; margin-top: .25rem; }

  /* Locked view badge */
  #locked-badge {
    display: none; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    background: rgba(74,144,217,.9); color: #fff; border-radius: 0;
    padding: .25rem .8rem; font-size: .78rem; z-index: 5; pointer-events: none;
    white-space: nowrap;
  }
