    :root{
      --bg:#f4f6fb;
      --paper:#ffffff;
      --paper-2:#f8fafc;
      --ink:#0f172a;
      --muted:#64748b;
      --stroke:#d7dde8;
      --stroke-2:#e5e7eb;
      --accent:#2563eb;
      --accent-2:#1d4ed8;
      --accent-soft:#dbeafe;
      --green:#16a34a;
      --green-soft:#dcfce7;
      --red:#dc2626;
      --red-soft:#fee2e2;
      --yellow:#d97706;
      --yellow-soft:#fef3c7;
      --violet:#7c3aed;
      --violet-soft:#ede9fe;
      --shadow:0 16px 45px rgba(15,23,42,.08);
      --shadow-soft:0 8px 20px rgba(15,23,42,.07);
      --radius:18px;
      --radius-sm:12px;
      --sidebar:292px;
      --panel:360px;
      --topbar:74px;
      --footer:32px;
    }
    html[data-theme="dark"]{
      --bg:#0b1220;
      --paper:#111827;
      --paper-2:#0f172a;
      --ink:#e5e7eb;
      --muted:#a6b3c5;
      --stroke:#253044;
      --stroke-2:#1f2937;
      --accent:#60a5fa;
      --accent-2:#3b82f6;
      --accent-soft:#10233d;
      --green:#4ade80;
      --green-soft:#0f2a1a;
      --red:#f87171;
      --red-soft:#33141a;
      --yellow:#fbbf24;
      --yellow-soft:#30260d;
      --violet:#a78bfa;
      --violet-soft:#20163a;
      --shadow:0 16px 45px rgba(0,0,0,.28);
      --shadow-soft:0 8px 20px rgba(0,0,0,.22);
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{margin:0;background:radial-gradient(circle at top left,rgba(37,99,235,.12),transparent 34rem),var(--bg);color:var(--ink);font:14px/1.45 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;overflow:hidden}
    button,input,select,textarea{font:inherit;color:inherit}
    button{cursor:pointer}
    textarea{resize:vertical;min-height:84px}
    .app{height:100%;display:grid;grid-template-columns:var(--sidebar) 1fr;grid-template-rows:var(--topbar) minmax(0,1fr) var(--footer);grid-template-areas:"top top" "nav main" "foot foot";gap:14px;padding:14px;min-width:0}
    body.nav-collapsed .app{grid-template-columns:0 1fr}
    body.nav-collapsed .sidebar{display:none}
    .app-footer{grid-area:foot;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px;color:var(--muted);font-size:12px;border:1px solid var(--stroke-2);border-radius:14px;background:rgba(255,255,255,.70);backdrop-filter:blur(12px);min-width:0}
    html[data-theme="dark"] .app-footer{background:rgba(17,24,39,.78)}
    .topbar{grid-area:top;background:rgba(255,255,255,.78);backdrop-filter:blur(14px);border:1px solid var(--stroke-2);border-radius:var(--radius);box-shadow:var(--shadow-soft);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px 14px;min-width:0}
    .topbar-context{min-width:0;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
    html[data-theme="dark"] .topbar{background:rgba(17,24,39,.82)}

    .brand-title{min-width:0}
    .brand-format-hint{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
    .brand-format{color:var(--muted);font-weight:750}
    .topbar-context{display:none!important}
    .brand{display:flex;align-items:center;gap:12px;min-width:0}
    .logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--violet));display:grid;place-items:center;color:white;font-weight:900;letter-spacing:.02em;box-shadow:0 10px 22px rgba(37,99,235,.25)}
    .brand h1{font-size:18px;line-height:1.1;margin:0;white-space:nowrap}
    .brand .sub{font-size:12px;color:var(--muted);white-space:nowrap;margin-top:2px}
    .meta-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;min-width:0}
    .field{display:flex;flex-direction:column;gap:4px;min-width:0}
    .field span{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.02em;text-transform:uppercase}
    .input,.select,.textarea{width:100%;border:1px solid var(--stroke);background:var(--paper);border-radius:12px;padding:9px 10px;outline:none;min-width:0;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
    .input:focus,.select:focus,.textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
    .actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
    .session-card{margin:14px 0 16px;padding:14px;border:1px solid var(--stroke-2);border-radius:18px;background:var(--paper-2)}
    .session-card h3{margin:0 0 10px;font-size:15px}
    .session-card .meta-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}
    .module-intro{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px;flex-wrap:wrap}
    .module-intro h2{margin:0 0 5px;font-size:22px}
    .module-intro p{margin:0;color:var(--muted);max-width:820px}
    .btn{appearance:none;border:1px solid var(--stroke);background:var(--paper);border-radius:12px;padding:9px 12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;transition:transform .12s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease;color:var(--ink)}
    .btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}
    .btn:active{transform:translateY(0);box-shadow:none}
    .btn.primary{background:var(--accent);border-color:var(--accent);color:white}
    .btn.danger{background:var(--red);border-color:var(--red);color:white}
    .btn.ghost{background:transparent}
    .btn.small{min-height:30px;padding:6px 9px;border-radius:10px;font-size:12px}
    .btn.icon{width:38px;padding:0}
    .sidebar{grid-area:nav;background:rgba(255,255,255,.76);backdrop-filter:blur(14px);border:1px solid var(--stroke-2);border-radius:var(--radius);box-shadow:var(--shadow-soft);overflow:auto;padding:12px;min-width:0}
    html[data-theme="dark"] .sidebar{background:rgba(17,24,39,.82)}
    .nav-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900;margin:8px 8px 8px}
    .nav-item{width:100%;border:1px solid transparent;background:transparent;border-radius:14px;padding:11px 10px;text-align:left;display:flex;gap:10px;align-items:flex-start;margin-bottom:6px;color:var(--ink)}
    .nav-item:hover{background:var(--paper-2);border-color:var(--stroke-2)}
    .nav-item.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,var(--stroke));box-shadow:inset 3px 0 0 var(--accent)}
    .nav-ico{width:34px;height:34px;border-radius:12px;background:var(--paper);border:1px solid var(--stroke-2);display:grid;place-items:center;flex:0 0 auto;font-size:17px}
    .nav-copy{min-width:0}
    .nav-copy b{display:block;font-size:14px;margin-bottom:2px}
    .nav-copy span{display:block;color:var(--muted);font-size:12px;line-height:1.25}
    .storage-card{margin:16px 6px 4px;padding:12px;border-radius:16px;background:var(--paper-2);border:1px solid var(--stroke-2);color:var(--muted);font-size:12px}
    .storage-card b{color:var(--ink)}
    .dot{display:inline-block;width:9px;height:9px;border-radius:999px;background:var(--green);margin-right:6px;vertical-align:-1px}
    .main{grid-area:main;overflow:hidden;min-width:0;min-height:0}
    .module{height:100%;display:none;min-width:0;min-height:0}
    .module.active{display:grid;grid-template-columns:minmax(0,1fr) var(--panel);gap:14px}
    .module.one-col.active{display:block;overflow:auto}
    .workspace,.sidepanel{background:var(--paper);border:1px solid var(--stroke-2);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;min-height:0}
    .workspace{overflow:auto;padding:16px}
    .sidepanel{overflow:auto;padding:14px;display:flex;flex-direction:column;gap:12px}
    .hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,430px);gap:18px;align-items:stretch;padding:6px}
    .hero-card{background:linear-gradient(135deg,var(--paper),var(--paper-2));border:1px solid var(--stroke-2);border-radius:24px;padding:24px;box-shadow:var(--shadow-soft)}
    .hero h2{font-size:30px;line-height:1.08;margin:0 0 12px}
    .hero p{color:var(--muted);margin:0 0 16px;font-size:15px}
    .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
    .kpi{padding:14px;border:1px solid var(--stroke-2);border-radius:16px;background:var(--paper)}
    .kpi strong{display:block;font-size:24px;line-height:1}
    .kpi span{color:var(--muted);font-size:12px}
    .format-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .format-card{padding:14px;border:1px solid var(--stroke-2);border-radius:18px;background:var(--paper);display:flex;gap:12px;align-items:flex-start}
    .format-card .big{font-size:25px;line-height:1}
    .format-card h3{margin:0 0 4px;font-size:15px}
    .format-card p{margin:0;color:var(--muted);font-size:12px}
    .section{border:1px solid var(--stroke-2);border-radius:16px;background:var(--paper-2);padding:12px;margin-bottom:12px}
    .section h2,.section h3{margin:0 0 9px;font-size:16px}
    .hint{font-size:12px;color:var(--muted);margin:6px 0 0}
    .row{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
    .row > .field{flex:1 1 160px}
    .split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
    .toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
    .empty{padding:20px;border:1px dashed var(--stroke);border-radius:16px;text-align:center;color:var(--muted);background:color-mix(in srgb,var(--paper-2) 80%,transparent)}
    .pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--stroke);border-radius:999px;padding:5px 9px;background:var(--paper);font-size:12px;font-weight:750;color:var(--muted)}
    .tag-green{background:var(--green-soft);border-color:color-mix(in srgb,var(--green) 45%,var(--stroke));color:color-mix(in srgb,var(--green) 80%,var(--ink))}
    .tag-red{background:var(--red-soft);border-color:color-mix(in srgb,var(--red) 45%,var(--stroke));color:color-mix(in srgb,var(--red) 80%,var(--ink))}
    .tag-yellow{background:var(--yellow-soft);border-color:color-mix(in srgb,var(--yellow) 45%,var(--stroke));color:color-mix(in srgb,var(--yellow) 80%,var(--ink))}
    .tag-violet{background:var(--violet-soft);border-color:color-mix(in srgb,var(--violet) 45%,var(--stroke));color:color-mix(in srgb,var(--violet) 80%,var(--ink))}

    /* Whiteboard */
    .board-shell{height:100%;min-height:620px;display:flex;flex-direction:column;gap:12px}
    .board-stage{position:relative;min-height:560px;flex:1;border:1px solid var(--stroke);border-radius:20px;overflow:hidden;background-color:var(--paper);background-image:linear-gradient(var(--stroke-2) 1px, transparent 1px),linear-gradient(90deg,var(--stroke-2) 1px, transparent 1px);background-size:34px 34px;touch-action:none}
    #wbCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}
    .board-stage.draw-mode #wbCanvas{pointer-events:auto;cursor:crosshair}
    .wb-card{position:absolute;z-index:9;min-width:150px;max-width:none;min-height:86px;border-radius:18px;border:1px solid var(--stroke);box-shadow:var(--shadow-soft);background:#fff8bf;color:#1f2937;display:flex;flex-direction:column;overflow:hidden;touch-action:none}
    .wb-card[data-color="blue"]{background:#dbeafe}
    .wb-card[data-color="green"]{background:#dcfce7}
    .wb-card[data-color="red"]{background:#fee2e2}
    .wb-card[data-color="violet"]{background:#ede9fe}
    .wb-card[data-kind="frame"]{background:rgba(255,255,255,.58);backdrop-filter:blur(2px);border:2px dashed color-mix(in srgb,var(--accent) 45%,var(--stroke));min-width:240px;min-height:160px;max-width:none}
    html[data-theme="dark"] .wb-card{color:#0f172a}
    html[data-theme="dark"] .wb-card[data-kind="frame"]{background:rgba(15,23,42,.48);color:var(--ink)}
    .card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-bottom:1px solid rgba(15,23,42,.08);font-size:12px;font-weight:850}
    .card-top .drag{cursor:grab;display:inline-flex;align-items:center;gap:5px;color:rgba(15,23,42,.65)}
    html[data-theme="dark"] .wb-card[data-kind="frame"] .card-top .drag{color:var(--muted)}
    .mini-actions{display:flex;gap:4px}
    .mini-btn{border:0;background:rgba(255,255,255,.65);border-radius:8px;width:25px;height:25px;display:grid;place-items:center;color:#0f172a;font-weight:900}
    .mini-btn:hover{background:#fff}
    .wb-text{padding:10px 12px;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;min-height:54px;flex:1}
    .wb-text:focus{background:rgba(255,255,255,.42)}

    /* Inner team */
    .team-layout{height:100%;min-height:620px;display:flex;flex-direction:column;gap:12px}
    .team-stage{position:relative;min-height:580px;flex:1;border:1px solid var(--stroke);border-radius:20px;background:radial-gradient(circle at center, color-mix(in srgb,var(--accent) 10%,transparent) 0 110px, transparent 111px),linear-gradient(120deg,var(--paper),var(--paper-2));overflow:hidden;touch-action:none}
    .team-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:190px;min-height:150px;border-radius:28px;border:2px solid color-mix(in srgb,var(--accent) 40%,var(--stroke));background:var(--paper);box-shadow:var(--shadow-soft);padding:14px;text-align:center;z-index:3}
    .team-center b{display:block;font-size:15px;margin-bottom:7px}
    .team-center textarea{min-height:76px;text-align:center}
    .voice-node{position:absolute;z-index:8;width:210px;border:1px solid var(--stroke);border-radius:18px;background:var(--paper);box-shadow:var(--shadow-soft);overflow:hidden;touch-action:none}
    .voice-node[data-color="green"]{border-color:color-mix(in srgb,var(--green) 55%,var(--stroke));background:linear-gradient(180deg,var(--green-soft),var(--paper))}
    .voice-node[data-color="red"]{border-color:color-mix(in srgb,var(--red) 55%,var(--stroke));background:linear-gradient(180deg,var(--red-soft),var(--paper))}
    .voice-node[data-color="yellow"]{border-color:color-mix(in srgb,var(--yellow) 55%,var(--stroke));background:linear-gradient(180deg,var(--yellow-soft),var(--paper))}
    .voice-node[data-color="violet"]{border-color:color-mix(in srgb,var(--violet) 55%,var(--stroke));background:linear-gradient(180deg,var(--violet-soft),var(--paper))}
    .voice-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid var(--stroke-2);cursor:grab}
    .voice-head b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .voice-body{padding:10px;color:var(--muted);font-size:12px}
    .voice-body p{margin:6px 0 0;color:var(--ink);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
    .intensity{height:8px;border-radius:999px;background:var(--stroke-2);overflow:hidden;margin-top:9px}
    .intensity span{display:block;height:100%;background:var(--accent);width:50%}
    .voice-list{display:flex;flex-direction:column;gap:8px}
    .voice-list-item{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid var(--stroke-2);background:var(--paper);border-radius:12px;padding:8px}
    .voice-list-item small{display:block;color:var(--muted)}

    /* Haus des Lebens */
    .house-wrap{display:flex;flex-direction:column;gap:12px;min-height:620px}
    .house-roof{position:relative;border:1px solid var(--stroke);background:linear-gradient(180deg,var(--yellow-soft),var(--paper));border-radius:18px;padding:34px 14px 14px;overflow:hidden}
    .house-roof:before{content:"";position:absolute;left:0;right:0;top:0;height:32px;background:linear-gradient(135deg,transparent 49%,color-mix(in srgb,var(--yellow) 60%,var(--stroke)) 50%,transparent 51%),linear-gradient(225deg,transparent 49%,color-mix(in srgb,var(--yellow) 60%,var(--stroke)) 50%,transparent 51%);background-size:50% 100%;background-repeat:no-repeat;background-position:left top,right top;opacity:.75}
    .house-title{text-align:center;font-weight:900;margin-bottom:8px}
    .card-strip{display:flex;gap:8px;flex-wrap:wrap;min-height:38px;align-items:flex-start}
    .life-card{border:1px solid var(--stroke);border-radius:14px;background:var(--paper);box-shadow:var(--shadow-soft);padding:8px 10px;display:inline-flex;gap:8px;align-items:flex-start;max-width:100%;overflow-wrap:anywhere}
    .life-card.green{background:var(--green-soft);border-color:color-mix(in srgb,var(--green) 55%,var(--stroke))}
    .life-card.red{background:var(--red-soft);border-color:color-mix(in srgb,var(--red) 55%,var(--stroke))}
    .life-card.yellow{background:var(--yellow-soft);border-color:color-mix(in srgb,var(--yellow) 55%,var(--stroke))}
    .life-card .life-text{white-space:pre-wrap;min-width:0}
    .life-card .life-tools{display:flex;gap:4px;flex:0 0 auto}
    .rooms-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}
    .room-box{border:1px solid color-mix(in srgb,var(--stroke) 80%,var(--muted));background:var(--paper);border-radius:16px;overflow:hidden;min-height:180px;display:flex;flex-direction:column}
    .room-head2{padding:10px;border-bottom:1px solid var(--stroke-2);background:var(--paper-2)}
    .room-head2 b{display:block;text-align:center}
    .score-view{display:flex;align-items:center;gap:8px;margin-top:7px;color:var(--muted);font-size:12px}
    .score-track{height:8px;background:var(--stroke-2);border-radius:999px;overflow:hidden;flex:1}
    .score-track span{display:block;height:100%;background:var(--green);width:50%}
    .room-cards{padding:10px;display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;flex:1}
    .foundation{border:1px solid var(--stroke);border-radius:18px;background:linear-gradient(180deg,var(--paper-2),var(--paper));padding:14px;box-shadow:inset 0 -10px 0 rgba(100,116,139,.10)}

    /* RT */
    .rt-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
    .question-table{width:100%;border-collapse:separate;border-spacing:0 8px}
    .question-table td{background:var(--paper-2);border:1px solid var(--stroke-2);padding:10px;vertical-align:middle}
    .question-table tr td:first-child{border-radius:12px 0 0 12px}
    .question-table tr td:last-child{border-radius:0 12px 12px 0}
    .scale{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
    .scale button{width:36px;height:36px;border-radius:999px;border:1px solid var(--stroke);background:var(--paper);font-weight:850;color:var(--ink)}
    .scale button.active{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
    .progress{height:10px;background:var(--stroke-2);border-radius:999px;overflow:hidden}
    .progress span{display:block;height:100%;background:var(--accent);width:0}
    .rt-result{display:grid;grid-template-columns:minmax(280px,1fr) minmax(260px,360px);gap:14px;align-items:stretch}
    .rt-plot{position:relative;border:1px solid var(--stroke);border-radius:18px;background:var(--paper);min-height:360px;padding:8px}
    .rt-plot svg{width:100%;height:100%;min-height:340px;display:block}
    .rt-kv{display:grid;grid-template-columns:1fr auto;gap:8px;border:1px solid var(--stroke-2);border-radius:16px;background:var(--paper-2);padding:12px}
    .rt-kv div:nth-child(odd){color:var(--muted)}
    .bar-row{display:grid;grid-template-columns:82px 1fr 42px;gap:8px;align-items:center;margin-top:8px;font-size:12px}
    .bar-row .track{height:9px;border-radius:999px;background:var(--stroke-2);overflow:hidden}
    .bar-row .track span{display:block;height:100%;background:var(--accent);width:0}


    /* Entwicklungsdreieck */
    .dev-layout{display:flex;flex-direction:column;gap:12px;min-height:620px}
    .triangle-board{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;min-height:520px;border:1px solid var(--stroke);border-radius:22px;background:radial-gradient(circle at center,color-mix(in srgb,var(--accent) 10%,transparent),transparent 42%),var(--paper);padding:18px;overflow:hidden}
    .triangle-board:before{content:"";position:absolute;inset:38px 12% 58px;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 12%,transparent),color-mix(in srgb,var(--violet) 10%,transparent));border:1px solid var(--stroke);opacity:.65;pointer-events:none}
    .dev-area{position:relative;z-index:2;display:flex;flex-direction:column;gap:10px;border:1px solid var(--stroke-2);border-radius:18px;background:color-mix(in srgb,var(--paper) 88%,transparent);box-shadow:var(--shadow-soft);padding:12px;min-height:420px}
    .dev-area h3{margin:0;font-size:15px}.dev-area p{margin:0;color:var(--muted);font-size:12px}.dev-card-list{display:flex;flex-direction:column;gap:8px;margin-top:4px}.dev-card{border:1px solid var(--stroke);border-radius:14px;background:var(--paper);padding:10px;box-shadow:var(--shadow-soft);white-space:pre-wrap;overflow-wrap:anywhere}.dev-card .tools,.member-node .tools,.lead-card .tools,.cycle-idea .tools{display:flex;justify-content:flex-end;gap:4px;margin-top:7px}

    /* Riemann Teampositionierung */
    .rt-team-layout{display:flex;flex-direction:column;gap:12px;min-height:620px}.rt-team-stage{position:relative;min-height:560px;border:1px solid var(--stroke);border-radius:22px;background:linear-gradient(var(--stroke-2) 1px,transparent 1px),linear-gradient(90deg,var(--stroke-2) 1px,transparent 1px),var(--paper);background-size:44px 44px;overflow:hidden;touch-action:none}.rt-axis-x,.rt-axis-y{position:absolute;background:color-mix(in srgb,var(--ink) 62%,transparent);pointer-events:none}.rt-axis-x{left:5%;right:5%;top:50%;height:2px}.rt-axis-y{top:6%;bottom:6%;left:50%;width:2px}.rt-axis-label{position:absolute;color:var(--muted);font-weight:900;font-size:12px;background:color-mix(in srgb,var(--paper) 72%,transparent);border:1px solid var(--stroke-2);border-radius:999px;padding:5px 8px;pointer-events:none}.rt-axis-label.top{top:10px;left:50%;transform:translateX(-50%)}.rt-axis-label.bottom{bottom:10px;left:50%;transform:translateX(-50%)}.rt-axis-label.left{left:10px;top:50%;transform:translateY(-50%)}.rt-axis-label.right{right:10px;top:50%;transform:translateY(-50%)}.member-node{position:absolute;z-index:5;width:185px;border:1px solid var(--stroke);border-radius:18px;background:var(--paper);box-shadow:var(--shadow-soft);overflow:hidden;touch-action:none}.member-node[data-color="green"]{border-color:color-mix(in srgb,var(--green) 55%,var(--stroke));background:linear-gradient(180deg,var(--green-soft),var(--paper))}.member-node[data-color="red"]{border-color:color-mix(in srgb,var(--red) 55%,var(--stroke));background:linear-gradient(180deg,var(--red-soft),var(--paper))}.member-node[data-color="yellow"]{border-color:color-mix(in srgb,var(--yellow) 55%,var(--stroke));background:linear-gradient(180deg,var(--yellow-soft),var(--paper))}.member-node[data-color="violet"]{border-color:color-mix(in srgb,var(--violet) 55%,var(--stroke));background:linear-gradient(180deg,var(--violet-soft),var(--paper))}.member-head{display:flex;justify-content:space-between;gap:6px;align-items:center;padding:8px 9px;border-bottom:1px solid var(--stroke-2);cursor:grab}.member-head b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-body{padding:9px;font-size:12px;color:var(--muted)}.member-body p{margin:6px 0 0;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}

    /* Inneres Führungsteam */
    .lead-layout{display:flex;flex-direction:column;gap:12px;min-height:620px}.lead-stage{border:1px solid var(--stroke);border-radius:22px;background:radial-gradient(circle at top,color-mix(in srgb,var(--violet) 13%,transparent),transparent 48%),var(--paper);padding:14px;min-height:560px}.lead-center{max-width:680px;margin:0 auto 14px;text-align:center;border:1px solid var(--stroke-2);border-radius:20px;background:var(--paper-2);padding:14px}.lead-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lead-card{border:1px solid var(--stroke);border-radius:18px;background:var(--paper);box-shadow:var(--shadow-soft);padding:12px}.lead-card h3{margin:0 0 5px;font-size:15px}.lead-card textarea{min-height:70px}.lead-meter{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-top:8px;color:var(--muted);font-size:12px}

    /* Teufelskreis */
    .cycle-layout{display:flex;flex-direction:column;gap:12px;min-height:620px}.cycle-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;border:1px solid var(--stroke);border-radius:22px;background:radial-gradient(circle at center,color-mix(in srgb,var(--red) 10%,transparent),transparent 44%),var(--paper);padding:16px;min-height:560px}.cycle-person{border:1px solid var(--stroke-2);border-radius:18px;background:var(--paper-2);padding:12px;text-align:center}.cycle-node{position:relative;border:1px solid var(--stroke);border-radius:18px;background:var(--paper);box-shadow:var(--shadow-soft);padding:12px;min-height:116px}.cycle-node h3{margin:0 0 6px;font-size:14px}.cycle-node p{margin:0;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.cycle-arrow{display:grid;place-items:center;color:var(--muted);font-weight:900}.cycle-break{grid-column:1/-1;border:1px solid color-mix(in srgb,var(--green) 55%,var(--stroke));background:linear-gradient(180deg,var(--green-soft),var(--paper));border-radius:18px;padding:12px}.cycle-ideas{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.cycle-idea{border:1px solid var(--stroke);border-radius:14px;background:var(--paper);padding:8px 10px;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}

    /* Report */
    .report{max-width:1080px;margin:0 auto;padding:18px}
    .report h2{font-size:26px;margin:0 0 8px}
    .report-block{border:1px solid var(--stroke-2);background:var(--paper);border-radius:18px;padding:14px;margin:12px 0;box-shadow:var(--shadow-soft)}
    .report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .report-list{margin:6px 0 0 18px;color:var(--muted)}
    .report-list li{margin:4px 0}

    .toast{position:fixed;right:18px;bottom:18px;z-index:999;background:var(--ink);color:var(--paper);padding:10px 12px;border-radius:14px;box-shadow:var(--shadow);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s ease}
    .toast.show{opacity:1;transform:translateY(0)}
    .print-only{display:none}

    @media (max-width:1180px){
      body{overflow:auto}
      .app{height:auto;min-height:100%;grid-template-columns:1fr;grid-template-rows:auto auto auto;grid-template-areas:"top" "nav" "main";overflow:visible}
      .topbar{grid-template-columns:minmax(0,1fr);align-items:start}
      .actions{justify-content:flex-start}
      .meta-grid,.session-card .meta-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}
      .sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible}
      .nav-title,.storage-card{grid-column:1/-1}
      .module.active{grid-template-columns:1fr}
      .sidepanel{order:-1}
      .rooms-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}
      .hero{grid-template-columns:1fr}
    }
    @media (max-width:720px){
      .app{padding:8px;gap:8px}
      .meta-grid,.session-card .meta-grid,.format-grid,.kpis,.rooms-grid,.rt-result,.report-grid,.split,.triangle-board,.lead-grid,.cycle-board{grid-template-columns:1fr}
      .sidebar{grid-template-columns:1fr}
      .brand h1{white-space:normal}
      .board-stage,.team-stage,.rt-team-stage,.triangle-board,.lead-stage,.cycle-board{min-height:520px}
      .voice-node{width:190px}
      .question-table,.question-table tbody,.question-table tr,.question-table td{display:block;width:100%}
      .question-table tr{margin-bottom:8px}
      .question-table tr td:first-child,.question-table tr td:last-child{border-radius:12px}
      .scale{justify-content:flex-start;margin-top:6px}
    }
    @media print{
      body{background:#fff!important;color:#000!important;overflow:visible}
      .app{display:block;padding:0;height:auto}
      .topbar,.sidebar,.sidepanel,.no-print,.mini-actions,.life-tools{display:none!important}
      .main,.module.active,.workspace{display:block!important;height:auto!important;overflow:visible!important;border:0!important;box-shadow:none!important;padding:0!important;background:#fff!important}
      .module{display:none!important}
      .module.active{display:block!important}
      .print-only{display:block}
      .board-stage,.team-stage{min-height:700px;break-inside:avoid;background-color:#fff!important}
      .wb-card,.voice-node,.life-card,.room-box,.house-roof,.foundation,.report-block,.dev-area,.member-node,.lead-card,.cycle-node,.cycle-break{box-shadow:none!important;break-inside:avoid}
      .app-footer{margin-top:18px;border:0;border-top:1px solid #ddd;border-radius:0;background:#fff;color:#444;padding-top:8px}
      *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
    }

/* v0.2: robustes Einklappen des linken Formatmenüs */
body.nav-collapsed .sidebar{display:none!important}
body.nav-collapsed .app{grid-template-columns:0 minmax(0,1fr)}
@media (max-width:1180px){
  body.nav-collapsed .app{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);grid-template-areas:"top" "main"}
  body.nav-collapsed .sidebar{display:none!important}
}

/* v0.2: Whiteboard-Formen und Tabellen */
.wb-table-options{display:none}
.wb-card[data-shape="rectangle"]{border-radius:8px}
.wb-card[data-shape="rounded"]{border-radius:18px}
.wb-card[data-shape="oval"]{border-radius:999px;min-width:220px;min-height:130px;text-align:center}
.wb-card[data-shape="oval"] .card-top{padding-inline:24px;border-bottom:0;background:rgba(255,255,255,.22)}
.wb-card[data-shape="oval"] .wb-text{display:grid;place-items:center;padding:14px 28px 22px;text-align:center}
.wb-card[data-shape="pill"]{border-radius:999px;min-height:92px}
.wb-card[data-shape="pill"] .card-top{padding-inline:18px;border-bottom:0}
.wb-card[data-shape="pill"] .wb-text{padding-inline:22px;text-align:center}
.wb-card[data-kind="table"]{max-width:none;min-width:300px;min-height:170px;border-radius:16px;color:#0f172a}
.wb-card[data-kind="table"] .card-top{background:rgba(255,255,255,.42)}
.wb-table-wrap{padding:9px;overflow:auto;flex:1}
.wb-table-title{font-weight:850;margin:0 0 7px;color:rgba(15,23,42,.82);white-space:pre-wrap;overflow-wrap:anywhere}
.wb-table{border-collapse:collapse;width:100%;background:rgba(255,255,255,.68);border-radius:10px;overflow:hidden}
.wb-table td{border:1px solid rgba(15,23,42,.18);min-width:86px;height:34px;padding:7px 8px;vertical-align:top;background:rgba(255,255,255,.46);outline:none;white-space:pre-wrap;overflow-wrap:anywhere}
.wb-table tr:first-child td{font-weight:850;background:rgba(255,255,255,.72)}
.wb-table td:focus{box-shadow:inset 0 0 0 2px rgba(37,99,235,.42);background:white}
html[data-theme="dark"] .wb-card[data-kind="table"]{color:#0f172a}

/* v0.2: Entwicklungsdreieck als echte Dreiecksfläche */
.triangle-board{position:relative;display:block;min-height:660px;border:1px solid var(--stroke);border-radius:22px;background:radial-gradient(circle at 50% 48%,color-mix(in srgb,var(--accent) 10%,transparent),transparent 48%),var(--paper);padding:24px;overflow:auto}
.triangle-board:before{display:none}
.triangle-svg{position:absolute;inset:58px 10% 78px;width:80%;height:calc(100% - 136px);pointer-events:none;opacity:.95}
.triangle-svg polygon{fill:color-mix(in srgb,var(--accent) 9%,transparent);stroke:color-mix(in srgb,var(--accent) 48%,var(--stroke));stroke-width:1.2}
.triangle-svg line{stroke:color-mix(in srgb,var(--muted) 65%,transparent);stroke-width:.7;stroke-dasharray:3 3}
.triangle-svg text{fill:var(--muted);font-size:4px;font-weight:900;letter-spacing:.02em}
.dev-center-note{position:absolute;left:50%;top:50%;transform:translate(-50%,-42%);z-index:1;max-width:260px;text-align:center;color:var(--muted);background:color-mix(in srgb,var(--paper) 78%,transparent);border:1px solid var(--stroke-2);border-radius:999px;padding:9px 13px;box-shadow:var(--shadow-soft);font-size:12px;font-weight:750;pointer-events:none}
.dev-area{position:absolute;z-index:2;width:min(360px,34%);min-height:178px;max-height:46%;overflow:auto;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(6px)}
.dev-area[data-area="pattern"]{left:50%;top:24px;transform:translateX(-50%)}
.dev-area[data-area="core"]{left:24px;bottom:24px}
.dev-area[data-area="direction"]{right:24px;bottom:24px}
@media (max-width:900px){
  .triangle-board{display:flex;flex-direction:column;gap:12px;min-height:auto;overflow:visible}
  .triangle-svg,.dev-center-note{display:none}
  .dev-area,.dev-area[data-area="pattern"],.dev-area[data-area="core"],.dev-area[data-area="direction"]{position:relative;left:auto;right:auto;top:auto;bottom:auto;transform:none;width:100%;max-height:none}
}

/* v0.2 final: beim eingeklappten Menü nutzt der Arbeitsbereich die volle Breite */
body.nav-collapsed .app{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--topbar) minmax(0,1fr) var(--footer);grid-template-areas:"top" "main" "foot"}
@media (max-width:1180px){body.nav-collapsed .app{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) var(--footer);grid-template-areas:"top" "main" "foot"}}

/* v0.3: neue visualisierbare Coaching-Formate */
.custom-layout{display:flex;flex-direction:column;gap:12px;min-height:620px}
.custom-board{border:1px solid var(--stroke);border-radius:22px;background:radial-gradient(circle at top right,color-mix(in srgb,var(--accent) 9%,transparent),transparent 38%),var(--paper);padding:16px;min-height:560px;overflow:auto}
.custom-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.custom-cell{position:relative;border:1px solid var(--stroke-2);border-radius:18px;background:color-mix(in srgb,var(--paper) 92%,transparent);box-shadow:var(--shadow-soft);padding:12px;min-height:160px;overflow:hidden}
.custom-cell h3{margin:0 0 6px;font-size:14px}.custom-cell p{margin:0 0 9px;color:var(--muted);font-size:12px}
.custom-card-list{display:flex;flex-direction:column;gap:8px}
.custom-card{border:1px solid var(--stroke);border-radius:14px;background:var(--paper);padding:9px 10px;box-shadow:var(--shadow-soft);white-space:pre-wrap;overflow-wrap:anywhere}
.custom-card .tools{display:flex;justify-content:flex-end;gap:4px;margin-top:7px}.mini-empty{padding:12px;min-height:auto;font-size:12px}
.custom-topic-card{display:inline-flex;max-width:100%;border:1px solid var(--stroke-2);border-radius:999px;background:var(--paper-2);padding:8px 12px;margin-bottom:12px;color:var(--muted);box-shadow:var(--shadow-soft);overflow-wrap:anywhere}
.matrix-grid{display:grid;grid-template-columns:minmax(130px,.8fr) repeat(4, minmax(170px,1fr));gap:8px;align-items:stretch;min-width:920px}
.matrix-corner,.matrix-head,.matrix-row-head{border:1px solid var(--stroke-2);border-radius:14px;background:var(--paper-2);padding:10px;font-weight:900;color:var(--ink)}
.matrix-head{text-align:center}.matrix-row-head{display:grid;place-items:center;text-align:center;color:var(--muted)}
.custom-matrix .custom-cell{min-height:190px}
.custom-message .custom-area-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.custom-message .custom-cell[data-area="message"]{grid-column:1/-1;background:linear-gradient(135deg,var(--accent-soft),var(--paper))}
.custom-square .custom-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-square .custom-cell[data-area="direction"]{grid-column:1/-1;background:linear-gradient(135deg,var(--green-soft),var(--paper))}
.custom-columns .custom-area-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:980px){.custom-area-grid,.custom-message .custom-area-grid,.custom-square .custom-area-grid,.custom-columns .custom-area-grid{grid-template-columns:1fr}.custom-message .custom-cell[data-area="message"],.custom-square .custom-cell[data-area="direction"]{grid-column:auto}.matrix-grid{min-width:760px}}
@media print{.custom-board{min-height:auto;overflow:visible;background:#fff!important}.custom-cell,.custom-card{box-shadow:none!important;break-inside:avoid}.matrix-grid{min-width:0;grid-template-columns:repeat(5,1fr);font-size:11px}}

/* v0.8: Zoom controls for Whiteboard and Riemann team positioning */
.zoom-control,.zoom-row{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.zoom-control{margin-left:auto;padding-left:8px;border-left:1px solid var(--stroke-2)}
.zoom-range{width:140px;accent-color:var(--accent)}
.inline-hint{align-self:center;margin:0 0 0 4px}

/* v0.8: scalable whiteboard canvas */
.board-stage{position:relative;min-height:560px;flex:1;border:1px solid var(--stroke);border-radius:20px;overflow:auto;background:var(--paper-2);background-image:none;touch-action:pan-x pan-y;overscroll-behavior:contain}
.board-stage.draw-mode{touch-action:none}
.board-scroll-size{position:relative;min-width:100%;min-height:100%}
.board-layer{position:absolute;left:0;top:0;width:1800px;height:1200px;transform-origin:0 0;background-color:var(--paper);background-image:linear-gradient(var(--stroke-2) 1px, transparent 1px),linear-gradient(90deg,var(--stroke-2) 1px, transparent 1px);background-size:34px 34px;border-radius:18px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--stroke) 50%,transparent)}
#wbCanvas{position:absolute;left:0;top:0;width:1800px;height:1200px;z-index:5;pointer-events:none}
.board-stage.draw-mode #wbCanvas{pointer-events:auto;cursor:crosshair}
.board-layer .wb-card{transform-origin:0 0}

/* v0.8: scalable Riemann team stage */
.rt-team-stage{position:relative;min-height:560px;border:1px solid var(--stroke);border-radius:22px;background:var(--paper-2);overflow:auto;touch-action:pan-x pan-y;overscroll-behavior:contain}
.rt-team-scroll-size{position:relative;min-width:100%;min-height:100%}
.rt-team-layer{position:absolute;left:0;top:0;width:1200px;height:850px;transform-origin:0 0;border-radius:22px;background:linear-gradient(var(--stroke-2) 1px,transparent 1px),linear-gradient(90deg,var(--stroke-2) 1px,transparent 1px),radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 42%),var(--paper);background-size:44px 44px,44px 44px,auto,auto;overflow:visible}
.rt-team-layer:before{content:"";position:absolute;left:7%;right:7%;top:8%;bottom:8%;border:1px dashed color-mix(in srgb,var(--muted) 34%,transparent);border-radius:20px;pointer-events:none}
.rt-team-layer .rt-axis-x,.rt-team-layer .rt-axis-y{position:absolute;background:color-mix(in srgb,var(--ink) 62%,transparent);pointer-events:none;z-index:1}
.rt-team-layer .rt-axis-x{left:5%;right:5%;top:50%;height:2px}
.rt-team-layer .rt-axis-y{top:6%;bottom:6%;left:50%;width:2px}
.rt-team-layer .rt-axis-label{z-index:2}

/* v0.8: figure-based team members with speech bubbles */
.member-node{position:absolute;z-index:8;width:132px;min-height:150px;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;text-align:center;touch-action:none;cursor:grab;outline:none}
.member-node:active{cursor:grabbing}
.member-node.bubble-open,.member-node:hover,.member-node:focus-within{z-index:50}
.brick-figure{position:relative;width:86px;height:116px;margin:0 auto 4px;filter:drop-shadow(0 10px 16px rgba(15,23,42,.18));transform-origin:center bottom;transition:transform .12s ease,filter .12s ease}
.member-node:hover .brick-figure,.member-node.bubble-open .brick-figure,.member-node:focus .brick-figure{transform:translateY(-2px) scale(1.04);filter:drop-shadow(0 16px 24px rgba(15,23,42,.24))}
.brick-head{position:absolute;left:21px;top:5px;width:44px;height:42px;border-radius:13px 13px 15px 15px;background:linear-gradient(180deg,#ffe099,#f6b94f);border:2px solid rgba(91,60,12,.35);display:grid;place-items:center;color:#4b3412;font-weight:900;font-size:15px;letter-spacing:.02em;box-shadow:inset 0 5px 0 rgba(255,255,255,.35)}
.brick-head:before{content:"";position:absolute;left:11px;right:11px;top:-7px;height:8px;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#f7cb6d,#e8a436);border:2px solid rgba(91,60,12,.25);border-bottom:0}
.brick-head:after{content:"";position:absolute;left:11px;top:23px;width:22px;height:7px;border-bottom:3px solid rgba(75,52,18,.72);border-radius:0 0 999px 999px}
.brick-neck{position:absolute;left:34px;top:45px;width:18px;height:10px;background:#f6b94f;border-left:2px solid rgba(91,60,12,.25);border-right:2px solid rgba(91,60,12,.25)}
.brick-body{position:absolute;left:13px;top:53px;width:60px;height:43px;border-radius:8px 8px 10px 10px;background:linear-gradient(180deg,var(--figure-main,#d97706),color-mix(in srgb,var(--figure-main,#d97706) 78%,#111 22%));border:2px solid rgba(15,23,42,.28);box-shadow:inset 0 6px 0 rgba(255,255,255,.20)}
.brick-body:before,.brick-body:after{content:"";position:absolute;top:4px;width:16px;height:32px;border-radius:8px;background:linear-gradient(180deg,color-mix(in srgb,var(--figure-main,#d97706) 88%,#fff 12%),color-mix(in srgb,var(--figure-main,#d97706) 72%,#111 28%));border:2px solid rgba(15,23,42,.25)}
.brick-body:before{left:-18px;transform:rotate(10deg)}
.brick-body:after{right:-18px;transform:rotate(-10deg)}
.brick-tie{position:absolute;left:25px;top:6px;width:10px;height:28px;background:rgba(255,255,255,.86);clip-path:polygon(50% 0,100% 28%,70% 100%,30% 100%,0 28%)}
.brick-hands span{position:absolute;top:84px;width:15px;height:15px;border-radius:999px;background:#f6b94f;border:2px solid rgba(91,60,12,.28)}
.brick-hands span:first-child{left:2px}.brick-hands span:last-child{right:2px}
.brick-legs{position:absolute;left:17px;top:94px;width:52px;height:22px;display:flex;gap:7px;justify-content:center}
.brick-legs span{width:21px;height:22px;border-radius:5px 5px 7px 7px;background:linear-gradient(180deg,color-mix(in srgb,var(--figure-main,#d97706) 70%,#111 30%),color-mix(in srgb,var(--figure-main,#d97706) 55%,#000 45%));border:2px solid rgba(15,23,42,.28)}
.member-node[data-color="green"]{--figure-main:#16a34a}.member-node[data-color="red"]{--figure-main:#dc2626}.member-node[data-color="yellow"]{--figure-main:#d97706}.member-node[data-color="violet"]{--figure-main:#7c3aed}.member-node[data-color="blue"]{--figure-main:#2563eb}
.member-name{display:inline-flex;max-width:132px;justify-content:center;align-items:center;padding:4px 8px;border-radius:999px;border:1px solid var(--stroke-2);background:color-mix(in srgb,var(--paper) 92%,transparent);box-shadow:var(--shadow-soft);font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.member-bubble{position:absolute;left:50%;bottom:calc(100% + 8px);width:280px;transform:translateX(-50%) translateY(8px);opacity:0;visibility:hidden;pointer-events:none;text-align:left;border:1px solid var(--stroke);border-radius:18px;background:color-mix(in srgb,var(--paper) 96%,transparent);box-shadow:var(--shadow);padding:12px;transition:opacity .14s ease,transform .14s ease,visibility .14s ease;backdrop-filter:blur(10px);color:var(--ink)}
.member-bubble:after{content:"";position:absolute;left:50%;bottom:-9px;transform:translateX(-50%) rotate(45deg);width:16px;height:16px;background:color-mix(in srgb,var(--paper) 96%,transparent);border-right:1px solid var(--stroke);border-bottom:1px solid var(--stroke)}
.member-node:hover .member-bubble,.member-node:focus-within .member-bubble,.member-node.bubble-open .member-bubble{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);pointer-events:auto}
.bubble-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.bubble-top b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-bubble p{margin:8px 0;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.member-bubble small{display:block;color:var(--muted);font-size:11px}.bubble-close{display:none}.member-node.bubble-open .bubble-close{display:grid}
html[data-theme="dark"] .brick-figure{filter:drop-shadow(0 12px 18px rgba(0,0,0,.42))}html[data-theme="dark"] .member-name{background:color-mix(in srgb,var(--paper) 88%,transparent)}

@media (max-width:720px){
  .zoom-control{margin-left:0;border-left:0;padding-left:0}
  .zoom-range{width:110px}
  .member-bubble{width:min(280px,86vw)}
}
@media print{
  .zoom-control,.zoom-row{display:none!important}
  .board-stage,.rt-team-stage{overflow:visible!important}
  .board-layer,.rt-team-layer{transform:none!important}
  .board-scroll-size,.rt-team-scroll-size{width:auto!important;height:auto!important}
  .member-bubble{display:none!important}
}


/* v0.8: Pan/Mausrad-Zoom und inhaltsadaptive Arbeitsflaechen */
.pan-wheel-surface{cursor:grab;user-select:none;touch-action:none;overscroll-behavior:contain}
.pan-wheel-surface.is-panning{cursor:grabbing;scroll-behavior:auto}
.board-stage.draw-mode{cursor:crosshair}
.board-stage.draw-mode.is-panning{cursor:crosshair}
.zoom-control .btn.small{white-space:nowrap}
.custom-board{height:auto;min-height:min(680px,calc(100vh - 190px));overflow:auto}
.custom-cell{overflow:visible;min-height:fit-content}
.custom-card-list{min-height:34px}
.custom-columns .custom-area-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.check-row{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:8px;color:var(--ink)!important;text-transform:none!important;font-size:13px!important;font-weight:650}
.check-row input{margin-top:3px;flex:0 0 auto}

/* v0.8: nicht skalierende Sprechblase fuer Riemann-Teamfiguren */
.rt-member-popover{position:fixed;left:0;top:0;width:min(300px,calc(100vw - 24px));z-index:5000;opacity:0;visibility:hidden;pointer-events:none;text-align:left;border:1px solid var(--stroke);border-radius:18px;background:color-mix(in srgb,var(--paper) 97%,transparent);box-shadow:var(--shadow);padding:12px;backdrop-filter:blur(12px);color:var(--ink);transition:opacity .12s ease,visibility .12s ease;transform:translate(-50%,-100%)}
.rt-member-popover.show{opacity:1;visibility:visible;pointer-events:auto}
.rt-member-popover:after{content:"";position:absolute;left:50%;bottom:-9px;transform:translateX(-50%) rotate(45deg);width:16px;height:16px;background:color-mix(in srgb,var(--paper) 97%,transparent);border-right:1px solid var(--stroke);border-bottom:1px solid var(--stroke)}
.rt-member-popover.below:after{top:-9px;bottom:auto;border-right:0;border-bottom:0;border-left:1px solid var(--stroke);border-top:1px solid var(--stroke)}
.rt-member-popover[data-color="green"]{border-color:color-mix(in srgb,var(--green) 60%,var(--stroke))}
.rt-member-popover[data-color="red"]{border-color:color-mix(in srgb,var(--red) 60%,var(--stroke))}
.rt-member-popover[data-color="yellow"]{border-color:color-mix(in srgb,var(--yellow) 60%,var(--stroke))}
.rt-member-popover[data-color="violet"]{border-color:color-mix(in srgb,var(--violet) 60%,var(--stroke))}
.rt-member-popover[data-color="blue"]{border-color:color-mix(in srgb,var(--accent) 60%,var(--stroke))}
.rt-member-popover .bubble-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.rt-member-popover .bubble-top b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rt-member-popover p{margin:8px 0;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.rt-member-popover small{display:block;color:var(--muted);font-size:11px}
.rt-member-popover .bubble-close{display:grid}
.member-bubble{display:none!important}

/* v0.8: Vier Seiten einer Nachricht als quadratisches Nachrichtenquadrat */
.custom-four-sides{display:flex;flex-direction:column;align-items:center;gap:12px;background:radial-gradient(circle at center,color-mix(in srgb,var(--accent) 8%,transparent),transparent 40%),var(--paper)}
.custom-four-sides .custom-topic-card{align-self:stretch;margin:0 auto 4px}
.four-sides-frame{width:min(860px,100%);aspect-ratio:1/1;display:grid;grid-template-columns:1fr 1.22fr 1fr;grid-template-rows:1fr 1.22fr 1fr;gap:10px;padding:14px;border:1px solid var(--stroke);border-radius:26px;background:linear-gradient(135deg,var(--paper),var(--paper-2));box-shadow:var(--shadow-soft)}
.four-side-cell{min-height:0!important;overflow:auto;border-width:2px;border-color:color-mix(in srgb,var(--side-color) 55%,var(--stroke));background:linear-gradient(180deg,var(--side-soft),var(--paper));box-shadow:var(--shadow-soft)}
.four-side-cell h3{display:flex;align-items:center;gap:8px;color:color-mix(in srgb,var(--side-color) 82%,var(--ink));font-size:15px}
.four-side-cell h3:before{content:"";width:13px;height:13px;border-radius:4px;background:var(--side-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--side-color) 18%,transparent)}
.four-side-cell.side-top{grid-column:2;grid-row:1;--side-color:#2563eb;--side-soft:#dbeafe}
.four-side-cell.side-left{grid-column:1;grid-row:2;--side-color:#16a34a;--side-soft:#dcfce7}
.four-side-cell.side-right{grid-column:3;grid-row:2;--side-color:#dc2626;--side-soft:#fee2e2}
.four-side-cell.side-bottom{grid-column:2;grid-row:3;--side-color:#d97706;--side-soft:#fef3c7}
.four-side-cell.side-center{grid-column:2;grid-row:2;--side-color:var(--ink);--side-soft:var(--paper);display:flex;flex-direction:column;justify-content:center;text-align:center;border:2px solid color-mix(in srgb,var(--ink) 30%,var(--stroke));background:radial-gradient(circle at center,color-mix(in srgb,var(--accent) 10%,transparent),transparent 72%),var(--paper)}
.four-side-cell.side-center .custom-card-list{align-items:center}
.four-side-cell.side-center .custom-card{width:100%;max-width:320px;text-align:center;font-weight:750;background:var(--paper-2)}
.four-reframe-outside{width:min(860px,100%);margin-top:4px}
.four-reframe-outside .custom-cell{border:2px dashed color-mix(in srgb,var(--violet) 55%,var(--stroke));background:linear-gradient(135deg,var(--violet-soft),var(--paper));min-height:140px}
.four-reframe-hidden{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;width:min(860px,100%);border:1px dashed var(--stroke);border-radius:18px;background:var(--paper-2);padding:10px 12px}
@media (max-width:850px){
  .four-sides-frame{aspect-ratio:auto;grid-template-columns:1fr;grid-template-rows:auto;width:100%}
  .four-side-cell.side-top,.four-side-cell.side-left,.four-side-cell.side-center,.four-side-cell.side-right,.four-side-cell.side-bottom{grid-column:1;grid-row:auto}
}
@media print{
  .pan-wheel-surface{cursor:auto;user-select:auto;touch-action:auto}
  .rt-member-popover,.four-reframe-hidden{display:none!important}
  .four-sides-frame{box-shadow:none;break-inside:avoid}
}


/* v0.8: Ein-Surface-Layout ohne doppelte Scrollbalken */
.surface-module.active > .workspace{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.surface-module .board-shell,
.surface-module .rt-team-layout{
  height:100%;
  min-height:0;
  flex:1 1 auto;
}
.surface-module .board-stage,
.surface-module .rt-team-stage{
  min-height:0;
  height:auto;
  flex:1 1 auto;
  overflow:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.surface-module .board-stage::-webkit-scrollbar,
.surface-module .rt-team-stage::-webkit-scrollbar{width:0;height:0;display:none}
.surface-module .toolbar.no-print{flex:0 0 auto}
.surface-module .module-intro{flex:0 0 auto}
.board-scroll-size,.rt-team-scroll-size{position:relative;min-width:100%;min-height:100%}
.board-layer,.rt-team-layer{will-change:transform;contain:layout paint style}
.pan-wheel-surface{cursor:grab;user-select:none;touch-action:none;overscroll-behavior:contain;overscroll-behavior-block:contain;overscroll-behavior-inline:contain}
.pan-wheel-surface.is-panning{cursor:grabbing;scroll-behavior:auto}
.pan-wheel-surface.is-panning *{cursor:grabbing!important}
.board-stage.draw-mode{cursor:crosshair;touch-action:none}
.board-stage.draw-mode.is-panning,.board-stage.draw-mode.is-panning *{cursor:crosshair!important}

/* v0.8: Whiteboard-Karten bleiben auf Touch-Geräten gut greifbar */
.card-top,.brick-figure{touch-action:none;-webkit-user-select:none;user-select:none}
.wb-text,.wb-table-title,.wb-table td{touch-action:manipulation;-webkit-user-select:text;user-select:text}

/* v0.8: Vier Seiten nach Schulz von Thun: Sachverhalt blau, Appell rot, Beziehung gelb, Selbstkundgabe gruen, Aeusserung farblos */
.four-side-cell.side-top{grid-column:2;grid-row:1;--side-color:#2563eb;--side-soft:#dbeafe}
.four-side-cell.side-left{grid-column:1;grid-row:2;--side-color:#16a34a;--side-soft:#dcfce7}
.four-side-cell.side-right{grid-column:3;grid-row:2;--side-color:#dc2626;--side-soft:#fee2e2}
.four-side-cell.side-bottom{grid-column:2;grid-row:3;--side-color:#eab308;--side-soft:#fef9c3}
.four-side-cell.side-center{
  grid-column:2;
  grid-row:2;
  --side-color:var(--ink);
  --side-soft:var(--paper);
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  border:2px solid var(--stroke);
  background:var(--paper);
}
.four-side-cell.side-center h3{justify-content:center;color:var(--ink)}
.four-side-cell.side-center h3:before{display:none}
.four-side-cell.side-center p{display:none}
.four-side-cell.side-center .custom-card{background:var(--paper);border-color:var(--stroke);box-shadow:none}
html[data-theme="dark"] .four-side-cell.side-top{--side-soft:#10233d}
html[data-theme="dark"] .four-side-cell.side-left{--side-soft:#0f2a1a}
html[data-theme="dark"] .four-side-cell.side-right{--side-soft:#33141a}
html[data-theme="dark"] .four-side-cell.side-bottom{--side-soft:#30260d}
html[data-theme="dark"] .four-side-cell.side-center{background:var(--paper);border-color:var(--stroke)}

@media (max-width:1180px){
  .surface-module.active > .workspace{min-height:min(70vh,720px)}
  .surface-module .board-stage,.surface-module .rt-team-stage{min-height:520px}
}
@media (max-width:720px){
  .surface-module.active > .workspace{min-height:64vh;padding:10px}
  .surface-module .board-stage,.surface-module .rt-team-stage{min-height:460px}
  .surface-module .toolbar.no-print{gap:6px}
}
@media print{
  .surface-module.active > .workspace{display:block;overflow:visible}
  .surface-module .board-stage,.surface-module .rt-team-stage{scrollbar-width:auto;overflow:visible!important;min-height:700px}
}


/* v0.8: verbindliche, hochspezifische Darstellung fuer Vier Seiten einer Nachricht
   Reihenfolge nach Vorgabe: Sachverhalt blau oben, Appell rot rechts,
   Beziehungshinweis gelb unten, Selbstkundgabe gruen links, Aeusserung farblos mittig. */
.custom-message.custom-four-sides .four-side-cell.side-top[data-area="facts"]{
  grid-column:2 !important;
  grid-row:1 !important;
  --side-color:#2563eb;
  --side-soft:#dbeafe;
}
.custom-message.custom-four-sides .four-side-cell.side-right[data-area="appeal"]{
  grid-column:3 !important;
  grid-row:2 !important;
  --side-color:#dc2626;
  --side-soft:#fee2e2;
}
.custom-message.custom-four-sides .four-side-cell.side-bottom[data-area="relationship"]{
  grid-column:2 !important;
  grid-row:3 !important;
  --side-color:#eab308;
  --side-soft:#fef9c3;
}
.custom-message.custom-four-sides .four-side-cell.side-left[data-area="self"]{
  grid-column:1 !important;
  grid-row:2 !important;
  --side-color:#16a34a;
  --side-soft:#dcfce7;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"]{
  grid-column:2 !important;
  grid-row:2 !important;
  --side-color:transparent;
  --side-soft:var(--paper);
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  background:var(--paper) !important;
  border:2px solid var(--stroke) !important;
  box-shadow:none;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] h3{
  justify-content:center;
  color:var(--ink) !important;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] h3:before{
  display:none !important;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] p{
  display:none !important;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] .custom-card{
  background:var(--paper) !important;
  border-color:var(--stroke) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .custom-message.custom-four-sides .four-side-cell.side-top[data-area="facts"]{--side-soft:#10233d}
html[data-theme="dark"] .custom-message.custom-four-sides .four-side-cell.side-right[data-area="appeal"]{--side-soft:#33141a}
html[data-theme="dark"] .custom-message.custom-four-sides .four-side-cell.side-bottom[data-area="relationship"]{--side-soft:#30260d}
html[data-theme="dark"] .custom-message.custom-four-sides .four-side-cell.side-left[data-area="self"]{--side-soft:#0f2a1a}
html[data-theme="dark"] .custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"]{
  background:var(--paper) !important;
  border-color:var(--stroke) !important;
}
@media (max-width:850px){
  .custom-message.custom-four-sides .four-side-cell.side-top[data-area="facts"],
  .custom-message.custom-four-sides .four-side-cell.side-right[data-area="appeal"],
  .custom-message.custom-four-sides .four-side-cell.side-bottom[data-area="relationship"],
  .custom-message.custom-four-sides .four-side-cell.side-left[data-area="self"],
  .custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"]{
    grid-column:1 !important;
    grid-row:auto !important;
  }
}


/* v0.9: Vier Seiten einer Nachricht - Karten und Felder wachsen mit Inhalt
   Das Grundmodell bleibt als Quadrat angelegt. Wenn Texte, Karten oder mehrere Eintraege mehr Platz brauchen,
   wachsen die Felder und der Rahmen nach unten, statt interne Scrollbalken in den Karten/Feldern zu erzeugen. */
.custom-message.custom-four-sides{
  align-items:center;
  overflow:visible;
}
.custom-message.custom-four-sides .four-sides-frame{
  width:min(900px,100%);
  height:auto;
  min-height:var(--four-sides-frame-size, clamp(560px,68vw,900px));
  aspect-ratio:auto;
  grid-template-columns:minmax(170px,1fr) minmax(220px,1.22fr) minmax(170px,1fr);
  grid-template-rows:minmax(150px,auto) minmax(180px,auto) minmax(150px,auto);
  align-items:stretch;
  overflow:visible;
}
.custom-message.custom-four-sides .four-side-cell{
  min-height:clamp(150px,15vw,240px) !important;
  overflow:visible !important;
  display:flex;
  flex-direction:column;
  min-width:0;
  max-width:100%;
}
.custom-message.custom-four-sides .four-side-cell h3,
.custom-message.custom-four-sides .four-side-cell > p{
  flex:0 0 auto;
}
.custom-message.custom-four-sides .four-side-cell .custom-card-list{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:42px;
  min-width:0;
  max-width:100%;
  overflow:visible !important;
}
.custom-message.custom-four-sides .four-side-cell .custom-card{
  width:100%;
  max-width:none !important;
  min-width:0;
  overflow:visible;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
}
.custom-message.custom-four-sides .four-side-cell .custom-card > div:first-child{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
}
.custom-message.custom-four-sides .four-side-cell .custom-card .tools{
  flex:0 0 auto;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"]{
  justify-content:center;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] .custom-card-list{
  align-items:stretch;
  justify-content:center;
}
.custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] .custom-card{
  width:100%;
  max-width:none !important;
}
.custom-message.custom-four-sides .four-reframe-outside .custom-cell{
  min-height:fit-content !important;
  overflow:visible !important;
}
@media (max-width:850px){
  .custom-message.custom-four-sides .four-sides-frame{
    width:100%;
    min-height:0;
    aspect-ratio:auto;
    grid-template-columns:1fr;
    grid-template-rows:auto;
    align-items:stretch;
  }
  .custom-message.custom-four-sides .four-side-cell{
    min-height:140px !important;
    overflow:visible !important;
  }
  .custom-message.custom-four-sides .four-side-cell.side-center[data-area="message"] .custom-card-list{
    justify-content:flex-start;
  }
}
@media print{
  .custom-message.custom-four-sides .four-sides-frame{
    min-height:auto;
    height:auto;
    overflow:visible !important;
  }
  .custom-message.custom-four-sides .four-side-cell{
    overflow:visible !important;
    break-inside:avoid;
  }
}

/* v0.9.1: Track-Hoehen werden von JavaScript aus dem tatsaechlichen Inhalt gesetzt. */
.custom-message.custom-four-sides .four-sides-frame{
  grid-template-rows:
    minmax(155px,var(--four-top-row,auto))
    minmax(210px,var(--four-middle-row,auto))
    minmax(155px,var(--four-bottom-row,auto));
}
@media (max-width:850px){
  .custom-message.custom-four-sides .four-sides-frame{
    grid-template-rows:auto !important;
  }
}


/* v1.0: Vier Seiten einer Nachricht - responsive Breite bei eingeblendetem Formatmenue
   Problem in v0.9: feste Mindestspalten konnten bei sichtbarer linker Navigation breiter werden
   als der Rahmen. Die Spalten duerfen jetzt bis 0 schrumpfen; Inhalte brechen sauber um. */
#fourSides.module.active{
  --panel:340px;
}
@media (min-width:1181px) and (max-width:1380px){
  #fourSides.module.active{
    grid-template-columns:minmax(0,1fr) minmax(280px,320px);
  }
}
.custom-message.custom-four-sides{
  container-type:inline-size;
  max-width:100%;
  overflow-x:hidden;
}
.custom-message.custom-four-sides .four-sides-frame{
  width:min(920px,100%) !important;
  max-width:100% !important;
  box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,1fr) !important;
  column-gap:clamp(6px,1.25cqw,10px);
  row-gap:clamp(6px,1.25cqw,10px);
  padding:clamp(8px,1.7cqw,14px);
  overflow:visible;
}
.custom-message.custom-four-sides .four-side-cell,
.custom-message.custom-four-sides .custom-card,
.custom-message.custom-four-sides .custom-card > div:first-child,
.custom-message.custom-four-sides .empty{
  min-width:0 !important;
  max-width:100% !important;
  overflow-wrap:anywhere;
  word-break:normal;
}
.custom-message.custom-four-sides .four-side-cell h3{
  overflow-wrap:anywhere;
  hyphens:auto;
}
.custom-message.custom-four-sides .four-side-cell > p{
  overflow-wrap:anywhere;
  hyphens:auto;
}
.custom-message.custom-four-sides .four-side-cell .custom-card-list{
  min-width:0 !important;
}
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame{
  width:100% !important;
  min-height:0 !important;
  grid-template-columns:1fr !important;
  grid-template-rows:auto !important;
  aspect-ratio:auto !important;
}
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-top[data-area="facts"],
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-right[data-area="appeal"],
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-bottom[data-area="relationship"],
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-left[data-area="self"],
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-center[data-area="message"]{
  grid-column:1 !important;
  grid-row:auto !important;
}
@container (max-width:560px){
  .four-sides-frame{
    width:100% !important;
    min-height:0 !important;
    grid-template-columns:1fr !important;
    grid-template-rows:auto !important;
    aspect-ratio:auto !important;
  }
  .four-side-cell.side-top[data-area="facts"],
  .four-side-cell.side-right[data-area="appeal"],
  .four-side-cell.side-bottom[data-area="relationship"],
  .four-side-cell.side-left[data-area="self"],
  .four-side-cell.side-center[data-area="message"]{
    grid-column:1 !important;
    grid-row:auto !important;
  }
}

/* v1.0.1: Lesereihenfolge in der schmalen Ein-Spalten-Ansicht */
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-top[data-area="facts"]{order:1}
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-center[data-area="message"]{order:2}
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-left[data-area="self"]{order:3}
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-right[data-area="appeal"]{order:4}
.custom-message.custom-four-sides.four-sides-narrow .four-side-cell.side-bottom[data-area="relationship"]{order:5}
@container (max-width:560px){
  .four-side-cell.side-top[data-area="facts"]{order:1}
  .four-side-cell.side-center[data-area="message"]{order:2}
  .four-side-cell.side-left[data-area="self"]{order:3}
  .four-side-cell.side-right[data-area="appeal"]{order:4}
  .four-side-cell.side-bottom[data-area="relationship"]{order:5}
}

/* v1.0: Ueberschriften im kompakten Kommunikationsquadrat lesbar halten */
.custom-message.custom-four-sides .four-side-cell h3{
  font-size:clamp(12px,2cqw,15px);
  line-height:1.18;
  gap:6px;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:auto;
}
.custom-message.custom-four-sides .four-side-cell h3:before{
  width:11px;
  height:11px;
  flex:0 0 auto;
  border-radius:4px;
}

/* v1.1: Vier Seiten einer Nachricht naeher am mittleren Schulz-von-Thun-Modell.
   Die vier Seiten bilden einen farbigen Rahmen um die zentrale, farblose Aeusserung. */
.custom-message.custom-four-sides{
  overflow:visible;
}
.custom-message.custom-four-sides .four-sides-thun-model{
  position:relative;
  isolation:isolate;
  border-radius:18px;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:clamp(42px,7cqw,76px) clamp(58px,9cqw,92px);
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) minmax(0,1fr) !important;
  grid-template-rows:minmax(135px,var(--four-top-row,auto)) minmax(190px,var(--four-middle-row,auto)) minmax(135px,var(--four-bottom-row,auto));
  gap:0;
}
.custom-message.custom-four-sides .four-sides-thun-model:before{
  content:"";
  position:absolute;
  inset:clamp(42px,7cqw,76px) clamp(58px,9cqw,92px);
  border:2px solid color-mix(in srgb,var(--ink) 18%,var(--stroke));
  background:var(--paper);
  z-index:-2;
  box-shadow:var(--shadow-soft);
}
.custom-message.custom-four-sides .four-sides-thun-model .four-side-cell{
  position:relative;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:clamp(10px,1.6cqw,16px);
  justify-content:center;
}
.custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,var(--side-soft),color-mix(in srgb,var(--side-color) 32%,var(--side-soft)));
  border:2px solid color-mix(in srgb,var(--side-color) 72%,#111 8%);
  z-index:-1;
}
.custom-message.custom-four-sides .four-sides-thun-model .side-top:before{
  clip-path:polygon(0 0,100% 0,88% 100%,12% 100%);
}
.custom-message.custom-four-sides .four-sides-thun-model .side-left:before{
  clip-path:polygon(0 0,100% 12%,100% 88%,0 100%);
}
.custom-message.custom-four-sides .four-sides-thun-model .side-right:before{
  clip-path:polygon(0 12%,100% 0,100% 100%,0 88%);
}
.custom-message.custom-four-sides .four-sides-thun-model .side-bottom:before{
  clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);
}
.custom-message.custom-four-sides .four-sides-thun-model .side-center:before{
  clip-path:none;
  background:var(--paper) !important;
  border:2px solid color-mix(in srgb,var(--ink) 20%,var(--stroke));
}
.custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:not(.side-center) h3,
.custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:not(.side-center) > p{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
.custom-message.custom-four-sides .four-sides-thun-model .side-center h3{
  font-size:clamp(18px,3.2cqw,28px);
  margin-bottom:10px;
}
.custom-message.custom-four-sides .four-sides-thun-model .custom-card-list{
  position:relative;
  z-index:1;
}
.custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:not(.side-center) .custom-card{
  background:color-mix(in srgb,var(--paper) 82%,var(--side-soft));
  border-color:color-mix(in srgb,var(--side-color) 45%,var(--stroke));
  box-shadow:0 8px 16px rgba(15,23,42,.08);
}
.custom-message.custom-four-sides .four-sides-thun-model .side-center .custom-card{
  background:var(--paper) !important;
  border-color:var(--stroke) !important;
}
.four-model-label{
  position:absolute;
  z-index:4;
  color:var(--ink);
  font-weight:800;
  font-size:clamp(16px,2.6cqw,28px);
  line-height:1.05;
  text-align:center;
  pointer-events:none;
  text-shadow:0 1px 0 color-mix(in srgb,var(--paper) 86%,transparent);
}
.four-model-label.label-top{
  top:clamp(4px,1.2cqw,12px);
  left:50%;
  transform:translateX(-50%);
}
.four-model-label.label-right{
  right:clamp(4px,1.2cqw,14px);
  top:50%;
  transform:translateY(-50%);
}
.four-model-label.label-bottom{
  bottom:clamp(4px,1.2cqw,12px);
  left:50%;
  transform:translateX(-50%);
}
.four-model-label.label-left{
  left:clamp(4px,1.2cqw,14px);
  top:50%;
  transform:translateY(-50%);
  text-align:right;
}
@media (max-width:850px){
  .custom-message.custom-four-sides .four-sides-thun-model{
    padding:14px;
    gap:8px;
  }
  .custom-message.custom-four-sides .four-sides-thun-model:before,
  .four-model-label{
    display:none;
  }
  .custom-message.custom-four-sides .four-sides-thun-model .four-side-cell{
    border-radius:18px !important;
    padding:12px;
  }
  .custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:before{
    clip-path:none;
    border-radius:18px;
  }
  .custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:not(.side-center) h3,
  .custom-message.custom-four-sides .four-sides-thun-model .four-side-cell:not(.side-center) > p{
    position:static;
    width:auto;
    height:auto;
    overflow:visible;
    clip:auto;
    white-space:normal;
  }
}

/* v1.2: Vier Seiten einer Nachricht bleiben immer um die zentrale Aeusserung angeordnet.
   Kein Untereinander-Stapeln mehr: Sachinhalt oben, Selbstkundgabe links, Appell rechts,
   Beziehungshinweis unten, Aeusserung neutral in der Mitte. */
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model{
  display:grid !important;
  width:min(920px,100%) !important;
  max-width:100% !important;
  min-height:clamp(430px,72cqw,760px) !important;
  aspect-ratio:1/1;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr) !important;
  grid-template-rows:minmax(96px,var(--four-top-row,1fr)) minmax(128px,var(--four-middle-row,1.12fr)) minmax(96px,var(--four-bottom-row,1fr)) !important;
  gap:0 !important;
  padding:clamp(26px,5.5cqw,72px) clamp(34px,7.5cqw,92px) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model:before{
  display:block !important;
  inset:clamp(26px,5.5cqw,72px) clamp(34px,7.5cqw,92px) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-model-label,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-model-label{
  display:block !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"]{
  grid-column:2 !important;
  grid-row:1 !important;
  order:initial !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"]{
  grid-column:1 !important;
  grid-row:2 !important;
  order:initial !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"]{
  grid-column:2 !important;
  grid-row:2 !important;
  order:initial !important;
  background:var(--paper) !important;
  border:0 !important;
  color:var(--ink) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"]{
  grid-column:3 !important;
  grid-row:2 !important;
  order:initial !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"]{
  grid-column:2 !important;
  grid-row:3 !important;
  order:initial !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell{
  min-height:0 !important;
  border-radius:0 !important;
  padding:clamp(6px,1.2cqw,14px) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell:before{
  border-radius:0 !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell:not(.side-center) h3,
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell:not(.side-center) > p,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell:not(.side-center) h3,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell:not(.side-center) > p{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
}
@media (max-width:850px){
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr) !important;
    grid-template-rows:minmax(86px,1fr) minmax(116px,1.12fr) minmax(86px,1fr) !important;
    padding:30px 38px !important;
    gap:0 !important;
  }
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model:before,
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-model-label{
    display:block !important;
  }
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"]{grid-column:2 !important;grid-row:1 !important;}
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"]{grid-column:1 !important;grid-row:2 !important;}
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"]{grid-column:2 !important;grid-row:2 !important;}
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"]{grid-column:3 !important;grid-row:2 !important;}
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"]{grid-column:2 !important;grid-row:3 !important;}
}
@container (max-width:560px){
  .four-sides-frame.four-sides-thun-model{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr) !important;
    grid-template-rows:minmax(78px,1fr) minmax(108px,1.12fr) minmax(78px,1fr) !important;
    padding:28px 34px !important;
    gap:0 !important;
  }
  .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"]{grid-column:2 !important;grid-row:1 !important;}
  .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"]{grid-column:1 !important;grid-row:2 !important;}
  .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"]{grid-column:2 !important;grid-row:2 !important;}
  .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"]{grid-column:3 !important;grid-row:2 !important;}
  .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"]{grid-column:2 !important;grid-row:3 !important;}
}


/* v1.3: Vier Seiten einer Nachricht - farbige Bereiche als klare Rechtecke statt Prisma/Trapez. */
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model{
  gap:clamp(6px,1.2cqw,12px) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell:before{
  clip-path:none !important;
  border-radius:10px !important;
  background:var(--side-soft) !important;
  border:2px solid color-mix(in srgb,var(--side-color) 72%,var(--stroke)) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"]:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"]:before{
  background:var(--paper) !important;
  border:2px solid var(--stroke) !important;
  border-radius:10px !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell{
  border-radius:10px !important;
}


/* v1.4: Startseite und Statusbereiche entdoppelt */
.hero{
  display:block;
  max-width:980px;
  margin:0 auto;
}
.hero-card{
  padding:28px;
}
.compact-storage{
  text-align:center;
  padding:9px 10px;
}
.compact-storage #saveStatus{
  margin:0 !important;
  font-weight:750;
  color:var(--muted);
}
.app-footer{
  justify-content:flex-start;
}

/* v1.5: Startseite und Statusbereiche weiter reduziert */
.hero{
  grid-template-columns:minmax(0,760px);
  justify-content:center;
}
#home .hero-card{
  padding:30px;
}
#home .hero h2{
  margin-bottom:8px;
}
#home .hero p{
  margin-bottom:14px;
}
.topbar-context:empty{
  display:none;
}
.compact-storage{
  background:transparent;
  border:0;
  margin:10px 6px 0;
  padding:4px 2px;
}
.compact-storage #saveStatus{
  font-size:11px;
}


/* v1.7: Vier Seiten einer Nachricht - klare rechteckige Karten, fest um die neutrale Mitte angeordnet.
   Korrigiert die spaeteren Rahmen-/Pseudo-Element-Overrides aus v1.1/v1.2. */
.custom-message.custom-four-sides,
.custom-message.custom-four-sides.four-sides-narrow{
  align-items:center !important;
  overflow-x:hidden !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model{
  position:relative !important;
  display:grid !important;
  width:min(920px,100%) !important;
  max-width:100% !important;
  min-height:var(--four-sides-frame-size, clamp(520px,64cqw,860px)) !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.16fr) minmax(0,1fr) !important;
  grid-template-rows:minmax(120px,var(--four-top-row,1fr)) minmax(150px,var(--four-middle-row,1.16fr)) minmax(120px,var(--four-bottom-row,1fr)) !important;
  gap:clamp(8px,1.4cqw,14px) !important;
  padding:clamp(10px,1.8cqw,18px) !important;
  border:1px solid var(--stroke) !important;
  border-radius:24px !important;
  background:linear-gradient(135deg,var(--paper),var(--paper-2)) !important;
  box-shadow:var(--shadow-soft) !important;
  overflow:visible !important;
  isolation:auto !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model:before,
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-model-label,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-model-label{
  display:none !important;
  content:none !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100% !important;
  overflow:visible !important;
  padding:clamp(9px,1.4cqw,14px) !important;
  border:2px solid color-mix(in srgb,var(--side-color) 62%,var(--stroke)) !important;
  border-radius:14px !important;
  background:linear-gradient(180deg,var(--side-soft),var(--paper)) !important;
  box-shadow:var(--shadow-soft) !important;
  text-align:left !important;
  color:var(--ink) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell:before{
  display:none !important;
  content:none !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell h3,
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell > p,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell h3,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell > p{
  position:static !important;
  width:auto !important;
  height:auto !important;
  overflow:visible !important;
  clip:auto !important;
  white-space:normal !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell h3,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell h3{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 6px !important;
  font-size:clamp(13px,1.7cqw,15px) !important;
  color:color-mix(in srgb,var(--side-color) 78%,var(--ink)) !important;
  text-align:left !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell h3:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell h3:before{
  content:"" !important;
  display:inline-block !important;
  width:11px !important;
  height:11px !important;
  flex:0 0 11px !important;
  border-radius:3px !important;
  background:var(--side-color) !important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--side-color) 16%,transparent) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell > p,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell > p{
  margin:0 0 8px !important;
  font-size:12px !important;
  color:var(--muted) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"]{
  grid-column:2 !important;
  grid-row:1 !important;
  order:initial !important;
  --side-color:#2563eb;
  --side-soft:#dbeafe;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"]{
  grid-column:1 !important;
  grid-row:2 !important;
  order:initial !important;
  --side-color:#16a34a;
  --side-soft:#dcfce7;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"]{
  grid-column:3 !important;
  grid-row:2 !important;
  order:initial !important;
  --side-color:#dc2626;
  --side-soft:#fee2e2;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"]{
  grid-column:2 !important;
  grid-row:3 !important;
  order:initial !important;
  --side-color:#eab308;
  --side-soft:#fef9c3;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"],
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"]{
  grid-column:2 !important;
  grid-row:2 !important;
  order:initial !important;
  --side-color:var(--ink);
  --side-soft:var(--paper);
  justify-content:center !important;
  align-items:stretch !important;
  text-align:center !important;
  background:var(--paper) !important;
  border:2px solid var(--stroke) !important;
  box-shadow:var(--shadow-soft) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"] h3,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"] h3{
  justify-content:center !important;
  color:var(--ink) !important;
  text-align:center !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"] h3:before,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"] h3:before,
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"] > p,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell.side-center[data-area="message"] > p{
  display:none !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .custom-card-list,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .custom-card-list{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  min-width:0 !important;
  overflow:visible !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .custom-card,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .custom-card{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  white-space:pre-wrap !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  background:color-mix(in srgb,var(--paper) 88%,var(--side-soft)) !important;
  border-color:color-mix(in srgb,var(--side-color) 42%,var(--stroke)) !important;
}
.custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .side-center .custom-card,
.custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .side-center .custom-card{
  background:var(--paper-2) !important;
  border-color:var(--stroke) !important;
  text-align:center !important;
  font-weight:750 !important;
}
html[data-theme="dark"] .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-top[data-area="facts"]{--side-soft:#10233d}
html[data-theme="dark"] .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-left[data-area="self"]{--side-soft:#0f2a1a}
html[data-theme="dark"] .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-right[data-area="appeal"]{--side-soft:#33141a}
html[data-theme="dark"] .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell.side-bottom[data-area="relationship"]{--side-soft:#30260d}
@media (max-width:620px){
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model,
  .custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model{
    grid-template-columns:minmax(0,.95fr) minmax(0,1.08fr) minmax(0,.95fr) !important;
    grid-template-rows:minmax(96px,auto) minmax(120px,auto) minmax(96px,auto) !important;
    min-height:420px !important;
    gap:6px !important;
    padding:7px !important;
  }
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell,
  .custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell{
    padding:7px !important;
    border-radius:10px !important;
  }
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell h3,
  .custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell h3{
    font-size:12px !important;
  }
  .custom-message.custom-four-sides .four-sides-frame.four-sides-thun-model .four-side-cell > p,
  .custom-message.custom-four-sides.four-sides-narrow .four-sides-frame.four-sides-thun-model .four-side-cell > p{
    display:none !important;
  }
}


/* v1.10: Kopfzeile mit Formatname und kleiner Format-Hinweiszeile */
.topbar{
  grid-template-columns:auto minmax(0,1fr);
}
.brand-title{
  min-width:0;
}
.brand h1{
  display:flex;
  align-items:baseline;
  gap:6px;
  min-width:0;
  margin:0;
}
.brand-format{
  color:var(--muted);
  font-weight:750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.brand-format-hint{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-format-hint:empty,
.brand-format-hint[hidden]{
  display:none;
}
.module-intro > .pill{
  display:none;
}
.button-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.compact-actions .btn{
  width:100%;
}
.footer-zoom{
  margin-left:auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.footer-zoom-panel{
  display:none !important;
  margin-left:0 !important;
  padding-left:0 !important;
  border-left:0 !important;
}
.footer-zoom-panel.active{
  display:inline-flex !important;
}
.zoom-title{
  font-weight:850;
  color:var(--muted);
  margin-right:2px;
  white-space:nowrap;
}
.footer-zoom-panel .zoom-range{
  width:150px;
}
@media (max-width:1180px){
  .topbar{
    grid-template-columns:1fr;
  }
  .footer-zoom{
    margin-left:0;
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}
@media (max-width:720px){
  .brand h1{
    flex-wrap:wrap;
  }
  .brand-format-hint{
    white-space:normal;
  }
  .button-grid{
    grid-template-columns:1fr;
  }
  .footer-zoom-panel.active{
    width:100%;
    flex-wrap:wrap;
  }
  .footer-zoom-panel .zoom-range{
    width:100%;
    min-width:160px;
  }
}


/* v1.11: Format-Hinweis in Kopfzeile, Beschreibung im linken Menü */
.topbar{
  grid-template-columns:minmax(0,1fr) auto;
}
.brand{
  min-width:0;
}
.brand-title{
  min-width:0;
}
.brand h1{
  display:flex;
  align-items:baseline;
  gap:6px;
  min-width:0;
  margin:0;
}
.brand-format{
  color:var(--muted);
  font-weight:750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.brand-format-hint{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-format-hint:empty,
.brand-format-hint[hidden]{
  display:none;
}
.module-intro{
  display:none!important;
}
.nav-copy span{
  font-size:11.5px;
  line-height:1.28;
}

/* v2.0: Inneres-Team-Steuerung bereinigt; Kreis anordnen im Footer */


/* v2.0 Fix: Whiteboard-Karten direkt in der rechten unteren Ecke skalieren */
.wb-card{resize:none}
.wb-resize-handle{position:absolute;right:6px;bottom:6px;z-index:20;width:24px;height:24px;border:1px solid rgba(15,23,42,.18);border-radius:8px;background:rgba(255,255,255,.82);color:#0f172a;display:grid;place-items:center;font-size:13px;line-height:1;cursor:nwse-resize;touch-action:none;box-shadow:0 4px 10px rgba(15,23,42,.10);padding:0}
.wb-resize-handle:hover,.wb-card.is-resizing .wb-resize-handle{background:white;box-shadow:0 0 0 3px rgba(37,99,235,.16)}
.wb-card[data-shape="oval"] .wb-resize-handle,.wb-card[data-shape="pill"] .wb-resize-handle{right:14px;bottom:10px}
html[data-theme="dark"] .wb-resize-handle{background:rgba(255,255,255,.88);color:#0f172a}

/* v2.0 Fix: Whiteboard-Resize-Handle groesser und touchfreundlicher */
.wb-resize-handle{
  right:4px;
  bottom:4px;
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid color-mix(in srgb,var(--accent) 35%,rgba(15,23,42,.18));
  background:rgba(255,255,255,.94);
  font-size:16px;
  opacity:.88;
}
.wb-resize-handle::before{
  content:"";
  position:absolute;
  inset:-10px;
}
.wb-card:hover .wb-resize-handle,
.wb-card.is-resizing .wb-resize-handle{
  opacity:1;
}
body.wb-resize-active{
  cursor:nwse-resize;
  user-select:none;
}
.wb-card.is-resizing{
  outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);
  outline-offset:2px;
}
.wb-card[data-shape="oval"] .wb-resize-handle,
.wb-card[data-shape="pill"] .wb-resize-handle{
  right:10px;
  bottom:8px;
}


/* v2.0 Fix: Report zeigt ausgefuellte Inhalte statt technischer Karten-Metadaten */
.report-subblock{
  border:1px solid var(--stroke-2);
  border-radius:14px;
  background:var(--paper-2);
  padding:10px 12px;
  margin:8px 0;
  break-inside:avoid;
}
.report-subblock h4{
  margin:0 0 6px;
  font-size:14px;
}
.report-subblock p{
  margin:6px 0 0;
  white-space:normal;
  overflow-wrap:anywhere;
}
.report-table{
  width:100%;
  border-collapse:collapse;
  margin-top:8px;
  background:var(--paper);
  font-size:12px;
}
.report-table td{
  border:1px solid var(--stroke-2);
  padding:7px 8px;
  vertical-align:top;
  overflow-wrap:anywhere;
}
@media print{
  .report-subblock{
    box-shadow:none!important;
    break-inside:avoid;
  }
}

/* v2.6: grafische Report-Aufbereitung und druckfreundliche Seitenumbrueche */
.report{
  max-width:1120px;
}
.report-visual-block{
  page-break-inside:avoid;
  break-inside:avoid-page;
  overflow:visible;
}
.report-visual-block h3{
  margin-top:0;
}
.report-note{
  margin:8px 0;
  overflow-wrap:anywhere;
}
.report-card-stack{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.report-card-mini,
.report-card-empty{
  border:1px solid var(--stroke-2);
  border-radius:11px;
  background:var(--paper);
  padding:7px 8px;
  min-width:0;
  overflow-wrap:anywhere;
  white-space:normal;
}
.report-card-empty{
  color:var(--muted);
  border-style:dashed;
  background:var(--paper-2);
  font-size:12px;
}
.report-field-card{
  border:1px solid var(--stroke-2);
  border-radius:15px;
  background:var(--paper-2);
  padding:10px;
  min-width:0;
  break-inside:avoid;
}
.report-field-card h4{
  margin:0 0 7px;
  font-size:13px;
}
.report-columns,
.report-lead-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-items:start;
}
.report-whiteboard-canvas{
  position:relative;
  min-height:360px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background-color:var(--paper);
  background-image:linear-gradient(var(--stroke-2) 1px,transparent 1px),linear-gradient(90deg,var(--stroke-2) 1px,transparent 1px);
  background-size:26px 26px;
  overflow:hidden;
  break-inside:avoid;
}
.report-wb-card{
  position:absolute;
  border:1px solid var(--stroke);
  border-radius:12px;
  box-shadow:var(--shadow-soft);
  padding:7px 8px;
  overflow:hidden;
  font-size:11px;
  color:#0f172a;
  min-width:110px;
}
.report-wb-card b,
.report-wb-card span{
  display:block;
}
.report-wb-card.yellow{background:#fff8bf}.report-wb-card.blue{background:#dbeafe}.report-wb-card.green{background:#dcfce7}.report-wb-card.red{background:#fee2e2}.report-wb-card.violet{background:#ede9fe}
.report-wb-card.frame{background:rgba(255,255,255,.72);border-style:dashed}
.report-wb-drawing{
  position:absolute;
  right:12px;
  bottom:12px;
  border:1px dashed var(--stroke);
  border-radius:999px;
  background:var(--paper-2);
  padding:6px 10px;
  color:var(--muted);
  font-size:12px;
}
.report-team-stage{
  position:relative;
  min-height:360px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:radial-gradient(circle at center,color-mix(in srgb,var(--accent) 10%,transparent) 0 100px,transparent 101px),linear-gradient(120deg,var(--paper),var(--paper-2));
  overflow:hidden;
  break-inside:avoid;
}
.report-team-center{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:145px;
  min-height:92px;
  border:2px solid color-mix(in srgb,var(--accent) 40%,var(--stroke));
  border-radius:22px;
  background:var(--paper);
  display:grid;
  place-items:center;
  font-weight:900;
}
.report-voice-node{
  position:absolute;
  width:180px;
  border:1px solid var(--stroke);
  border-radius:15px;
  background:var(--paper);
  padding:8px;
  box-shadow:var(--shadow-soft);
  font-size:12px;
  transform:translate(-10%,-10%);
}
.report-voice-node small,
.report-voice-node span{display:block;color:var(--muted);margin-top:3px}
.report-voice-node.green{background:linear-gradient(180deg,var(--green-soft),var(--paper))}.report-voice-node.red{background:linear-gradient(180deg,var(--red-soft),var(--paper))}.report-voice-node.violet{background:linear-gradient(180deg,var(--violet-soft),var(--paper))}.report-voice-node.yellow{background:linear-gradient(180deg,var(--yellow-soft),var(--paper))}
.report-house{
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:12px;
  background:var(--paper);
  break-inside:avoid;
}
.report-house-roof{
  border:1px solid color-mix(in srgb,var(--yellow) 50%,var(--stroke));
  border-radius:18px 18px 12px 12px;
  background:linear-gradient(180deg,var(--yellow-soft),var(--paper));
  padding:12px;
  margin:0 8% 10px;
  text-align:center;
}
.report-house-rooms{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.report-house-room{
  border:1px solid var(--stroke-2);
  border-radius:13px;
  background:var(--paper-2);
  padding:8px;
  min-height:110px;
  break-inside:avoid;
}
.report-house-room h4,
.report-house-roof h4,
.report-house-foundation h4{margin:0 0 6px;font-size:13px}
.report-house-foundation{
  border:1px solid var(--stroke);
  border-radius:12px 12px 18px 18px;
  background:linear-gradient(180deg,var(--paper-2),var(--paper));
  padding:12px;
  margin-top:10px;
  text-align:center;
}
.report-score{
  height:8px;
  border-radius:999px;
  background:var(--stroke-2);
  overflow:hidden;
  margin-bottom:4px;
}
.report-score span{display:block;height:100%;background:var(--green)}
.report-rt-wrap{
  display:grid;
  grid-template-columns:minmax(260px,.85fr) minmax(260px,1fr);
  gap:14px;
  align-items:center;
}
.report-rt-cross,
.report-rt-team-cross{
  position:relative;
  min-height:320px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:linear-gradient(var(--stroke-2) 1px,transparent 1px),linear-gradient(90deg,var(--stroke-2) 1px,transparent 1px),var(--paper);
  background-size:36px 36px;
  overflow:hidden;
  break-inside:avoid;
}
.report-rt-cross:before,
.report-rt-team-cross:before{content:"";position:absolute;left:8%;right:8%;top:50%;height:2px;background:color-mix(in srgb,var(--ink) 55%,transparent)}
.report-rt-cross:after,
.report-rt-team-cross:after{content:"";position:absolute;top:8%;bottom:8%;left:50%;width:2px;background:color-mix(in srgb,var(--ink) 55%,transparent)}
.report-rt-cross > i{
  position:absolute;
  z-index:3;
  width:16px;height:16px;
  border-radius:999px;
  background:var(--accent);
  border:3px solid var(--paper);
  box-shadow:var(--shadow-soft);
  transform:translate(-50%,-50%);
}
.report-rt-cross .top,.report-rt-team-cross .top{position:absolute;top:8px;left:50%;transform:translateX(-50%);font-weight:900;color:var(--muted)}
.report-rt-cross .bottom,.report-rt-team-cross .bottom{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-weight:900;color:var(--muted)}
.report-rt-cross .left,.report-rt-team-cross .left{position:absolute;left:8px;top:50%;transform:translateY(-50%);font-weight:900;color:var(--muted)}
.report-rt-cross .right,.report-rt-team-cross .right{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-weight:900;color:var(--muted)}
.report-bar{display:grid;grid-template-columns:70px 1fr 44px;gap:8px;align-items:center;margin:7px 0;font-size:12px}
.report-bar div{height:9px;border-radius:999px;background:var(--stroke-2);overflow:hidden}.report-bar i{display:block;height:100%;background:var(--accent)}
.report-dev-triangle{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  min-height:330px;
  padding:16px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:radial-gradient(circle at center,color-mix(in srgb,var(--accent) 10%,transparent),transparent 42%),var(--paper);
  break-inside:avoid;
}
.report-dev-shape{
  position:absolute;
  inset:28px;
  display:grid;
  place-items:center;
  font-size:280px;
  line-height:1;
  color:color-mix(in srgb,var(--accent) 15%,transparent);
  pointer-events:none;
}
.report-dev-triangle .report-field-card{position:relative;z-index:1;background:color-mix(in srgb,var(--paper) 90%,transparent)}
.report-member-dot{
  position:absolute;
  z-index:3;
  width:150px;
  border:1px solid var(--stroke);
  border-radius:16px;
  background:var(--paper);
  padding:7px;
  box-shadow:var(--shadow-soft);
  transform:translate(-50%,-50%);
  font-size:11px;
}
.report-member-dot small,.report-member-dot span{display:block;color:var(--muted);margin-top:3px}
.report-member-dot.green{background:var(--green-soft)}.report-member-dot.red{background:var(--red-soft)}.report-member-dot.violet{background:var(--violet-soft)}.report-member-dot.blue{background:var(--accent-soft)}.report-member-dot.yellow{background:var(--yellow-soft)}
.report-lead-card{
  border:1px solid var(--stroke-2);
  border-radius:16px;
  background:var(--paper-2);
  padding:10px;
  break-inside:avoid;
}
.report-lead-card h4{margin:0 0 3px}.report-lead-card small{color:var(--muted)}
.report-matrix{
  display:grid;
  grid-template-columns:minmax(110px,.75fr) repeat(4,minmax(0,1fr));
  gap:6px;
  overflow:auto;
}
.report-matrix-corner,.report-matrix-head,.report-matrix-row-head{
  border:1px solid var(--stroke-2);
  border-radius:10px;
  background:var(--paper-2);
  padding:8px;
  font-weight:900;
}
.report-matrix-head,.report-matrix-row-head{text-align:center;color:var(--muted)}
.report-matrix-cell{
  border:1px solid var(--stroke-2);
  border-radius:10px;
  padding:7px;
  background:var(--paper);
  min-height:90px;
  break-inside:avoid;
}
.report-four-sides{
  width:min(820px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);
  grid-template-rows:minmax(120px,auto) minmax(150px,auto) minmax(120px,auto);
  gap:10px;
  padding:12px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:linear-gradient(135deg,var(--paper),var(--paper-2));
  break-inside:avoid;
}
.report-four-sides .side-top{grid-column:2;grid-row:1;border-color:#2563eb;background:#dbeafe;color:#0f172a}
.report-four-sides .side-left{grid-column:1;grid-row:2;border-color:#16a34a;background:#dcfce7;color:#0f172a}
.report-four-sides .side-center{grid-column:2;grid-row:2;background:var(--paper);text-align:center;justify-content:center}
.report-four-sides .side-right{grid-column:3;grid-row:2;border-color:#dc2626;background:#fee2e2;color:#0f172a}
.report-four-sides .side-bottom{grid-column:2;grid-row:3;border-color:#eab308;background:#fef9c3;color:#0f172a}
.report-four-reframe{width:min(820px,100%);margin:10px auto 0}
.report-values-square{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.report-values-direction{grid-column:1/-1}
.report-cycle{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
.report-cycle-box{
  border:1px solid var(--stroke-2);
  border-radius:14px;
  background:var(--paper-2);
  padding:10px;
  min-height:95px;
  break-inside:avoid;
}
.report-cycle-box h4{margin:0 0 6px;font-size:13px}.report-cycle-box p{margin:0;overflow-wrap:anywhere}
.report-cycle-break{
  grid-column:1/-1;
  border:1px solid color-mix(in srgb,var(--green) 55%,var(--stroke));
  border-radius:16px;
  background:linear-gradient(180deg,var(--green-soft),var(--paper));
  padding:10px;
  break-inside:avoid;
}
@media (max-width:760px){
  .report-columns,.report-lead-grid,.report-house-rooms,.report-rt-wrap,.report-dev-triangle,.report-cycle,.report-values-square{grid-template-columns:1fr}
  .report-four-sides{grid-template-columns:1fr;grid-template-rows:auto}
  .report-four-sides .side-top,.report-four-sides .side-left,.report-four-sides .side-center,.report-four-sides .side-right,.report-four-sides .side-bottom{grid-column:1;grid-row:auto}
}
@media print{
  @page{size:A4 portrait;margin:12mm}
  .report{max-width:none;margin:0;padding:0;font-size:11px}
  #reportTitle{break-after:avoid;page-break-after:avoid}
  .report-overview{break-inside:avoid;page-break-inside:avoid}
  .report-visual-block{
    box-shadow:none!important;
    border-radius:10px;
    padding:9px;
    margin:0 0 8mm;
    break-inside:avoid-page;
    page-break-inside:avoid;
  }
  .report-visual-block:nth-of-type(n+4){
    break-before:auto;
  }
  .report-whiteboard-canvas,.report-team-stage,.report-rt-cross,.report-rt-team-cross,.report-house,.report-dev-triangle,.report-four-sides{
    break-inside:avoid-page;
    page-break-inside:avoid;
  }
  .report-whiteboard-canvas,.report-team-stage,.report-rt-cross,.report-rt-team-cross{min-height:250px}
  .report-dev-triangle{min-height:240px}
  .report-dev-shape{font-size:210px}
  .report-house-room,.report-field-card,.report-lead-card,.report-cycle-box,.report-matrix-cell,.report-card-mini{
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .report-house-rooms{grid-template-columns:repeat(3,1fr)}
  .report-columns,.report-lead-grid{grid-template-columns:repeat(2,1fr)}
  .report-matrix{grid-template-columns:minmax(90px,.75fr) repeat(4,1fr);font-size:9.5px;overflow:visible}
  .report-card-mini,.report-card-empty{padding:5px 6px}
}

/* v2.7: Report-Fix fuer Whiteboard und Riemann-Teampositionierung
   Whiteboard-Karten werden im Report bewusst als lesbares Board-Raster gesetzt,
   damit direkt nacheinander angelegte Karten nicht ueberlappen.
   Teampositionen erhalten sichere Innenraender, damit oben/links nichts abgeschnitten wird. */
.report-whiteboard-flow{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
  align-items:start;
  min-height:0;
  padding:12px;
  overflow:visible;
}
.report-whiteboard-flow .report-wb-card{
  position:relative;
  left:auto!important;
  top:auto!important;
  width:auto!important;
  min-width:0;
  min-height:0!important;
  max-width:100%;
  overflow:visible;
  page-break-inside:avoid;
  break-inside:avoid;
}
.report-whiteboard-flow .report-wb-card p{
  margin:5px 0 0;
  white-space:normal;
  overflow-wrap:anywhere;
}
.report-wb-table{
  width:100%;
  border-collapse:collapse;
  margin-top:7px;
  background:rgba(255,255,255,.62);
  font-size:10.5px;
}
.report-wb-table td{
  border:1px solid rgba(15,23,42,.18);
  padding:4px 5px;
  vertical-align:top;
  overflow-wrap:anywhere;
}
.report-whiteboard-flow .report-wb-drawing{
  position:relative;
  right:auto;
  bottom:auto;
  justify-self:start;
  grid-column:1/-1;
  margin-top:2px;
}
.report-rt-team-cross{
  padding:42px 54px;
  overflow:visible;
  min-height:360px;
}
.report-rt-team-cross:before{left:54px!important;right:54px!important}
.report-rt-team-cross:after{top:42px!important;bottom:42px!important}
.report-member-dot{
  max-width:150px;
  overflow:visible;
  z-index:5;
}
.report-member-dot b,
.report-member-dot small,
.report-member-dot span{
  overflow-wrap:anywhere;
}
.report-axis-empty{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
@media print{
  .report-whiteboard-flow{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:8px;
  }
  .report-rt-team-cross{
    min-height:285px;
    padding:34px 44px;
    overflow:visible!important;
  }
  .report-rt-team-cross:before{left:44px!important;right:44px!important}
  .report-rt-team-cross:after{top:34px!important;bottom:34px!important}
  .report-member-dot{
    width:128px;
    font-size:9.5px;
  }
}


/* v2.8: Report-Kreuze proportional korrekt darstellen
   Riemann-Thomann und Riemann-Teampositionierung nutzen im Report eine quadratische
   Achsenflaeche. Dadurch bleiben horizontale und vertikale Distanzen vergleichbar. */
.report-rt-wrap{
  grid-template-columns:minmax(280px,420px) minmax(260px,1fr);
  align-items:start;
}
.report-rt-cross,
.report-rt-team-cross{
  width:min(100%,420px);
  aspect-ratio:1/1;
  min-height:0!important;
  height:auto;
  margin:0 auto;
}
.report-rt-team-cross{
  width:min(100%,440px);
  padding:44px;
}
.report-rt-team-cross:before{left:44px!important;right:44px!important}
.report-rt-team-cross:after{top:44px!important;bottom:44px!important}
.report-rt-cross:before{left:8%;right:8%}
.report-rt-cross:after{top:8%;bottom:8%}
.report-rt-cross > i,
.report-member-dot{
  transform:translate(-50%,-50%);
}
@media (max-width:760px){
  .report-rt-wrap{grid-template-columns:1fr}
  .report-rt-cross,
  .report-rt-team-cross{width:min(100%,380px)}
}
@media print{
  .report-rt-wrap{
    grid-template-columns:minmax(72mm,82mm) 1fr;
    gap:7mm;
    align-items:start;
  }
  .report-rt-cross,
  .report-rt-team-cross{
    width:78mm!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:1/1!important;
  }
  .report-rt-team-cross{padding:10mm!important}
  .report-rt-team-cross:before{left:10mm!important;right:10mm!important}
  .report-rt-team-cross:after{top:10mm!important;bottom:10mm!important}
  .report-member-dot{
    width:30mm;
    max-width:30mm;
    font-size:9px;
  }
}

/* v2.9: Riemann-Teampositionierung im Report mit Figuren und kollisionsfreien Sprechblasen
   Figuren behalten ihre proportionale Position im quadratischen Kreuz. Inhalte werden als
   feste Callout-Slots um die Figuren gelegt und per Linie verbunden, damit Karten nicht ueberlappen. */
.report-rt-team-bubbles{
  overflow:visible!important;
  isolation:isolate;
}
.report-rt-team-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:2;
  pointer-events:none;
  overflow:visible;
}
.report-rt-team-lines line{
  stroke:color-mix(in srgb,var(--muted) 60%,transparent);
  stroke-width:.55;
  stroke-dasharray:2.2 2.2;
  vector-effect:non-scaling-stroke;
}
.report-member-person{
  position:absolute;
  z-index:5;
  width:48px;
  min-height:58px;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  text-align:center;
  color:var(--ink);
}
.report-mini-figure{
  position:relative;
  width:24px;
  height:38px;
  border-radius:7px 7px 8px 8px;
  background:linear-gradient(180deg,var(--figure-main,#d97706),color-mix(in srgb,var(--figure-main,#d97706) 72%,#111 28%));
  border:1.5px solid rgba(15,23,42,.26);
  box-shadow:0 4px 8px rgba(15,23,42,.16);
}
.report-mini-figure:before{
  content:"";
  position:absolute;
  left:5px;
  top:-14px;
  width:14px;
  height:14px;
  border-radius:5px;
  background:linear-gradient(180deg,#ffe099,#f6b94f);
  border:1.5px solid rgba(91,60,12,.30);
}
.report-mini-figure:after{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  bottom:-9px;
  height:9px;
  border-radius:0 0 5px 5px;
  background:color-mix(in srgb,var(--figure-main,#d97706) 58%,#000 42%);
}
.report-mini-figure span{
  position:absolute;
  left:50%;
  top:-11px;
  transform:translateX(-50%);
  z-index:2;
  color:#4b3412;
  font-size:6.8px;
  line-height:1;
  font-weight:950;
  letter-spacing:.01em;
}
.report-member-person b{
  max-width:68px;
  border:1px solid var(--stroke-2);
  border-radius:999px;
  background:color-mix(in srgb,var(--paper) 94%,transparent);
  padding:2px 5px;
  font-size:8.7px;
  line-height:1.08;
  box-shadow:0 3px 8px rgba(15,23,42,.10);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.report-member-person.green,.report-member-bubble.green{--figure-main:#16a34a}
.report-member-person.red,.report-member-bubble.red{--figure-main:#dc2626}
.report-member-person.yellow,.report-member-bubble.yellow{--figure-main:#d97706}
.report-member-person.violet,.report-member-bubble.violet{--figure-main:#7c3aed}
.report-member-person.blue,.report-member-bubble.blue{--figure-main:#2563eb}
.report-member-bubble{
  position:absolute;
  z-index:4;
  width:33%;
  min-height:46px;
  max-height:64px;
  transform:translate(-50%,-50%);
  border:1px solid color-mix(in srgb,var(--figure-main,#d97706) 58%,var(--stroke));
  border-radius:14px;
  background:color-mix(in srgb,var(--paper) 91%,var(--bubble-soft,#fff8bf));
  box-shadow:0 8px 18px rgba(15,23,42,.11);
  padding:6px 7px;
  font-size:8.8px;
  line-height:1.16;
  color:#0f172a;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.report-member-bubble:after{
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  background:inherit;
  border:inherit;
  transform:rotate(45deg);
  z-index:-1;
}
.report-member-bubble.left:after{right:-6px;top:50%;margin-top:-5px;border-left:0;border-bottom:0}
.report-member-bubble.right:after{left:-6px;top:50%;margin-top:-5px;border-right:0;border-top:0}
.report-member-bubble.top:after{left:50%;bottom:-6px;margin-left:-5px;border-left:0;border-top:0}
.report-member-bubble.bottom:after{left:50%;top:-6px;margin-left:-5px;border-right:0;border-bottom:0}
.report-member-bubble.green{--bubble-soft:var(--green-soft)}
.report-member-bubble.red{--bubble-soft:var(--red-soft)}
.report-member-bubble.yellow{--bubble-soft:var(--yellow-soft)}
.report-member-bubble.violet{--bubble-soft:var(--violet-soft)}
.report-member-bubble.blue{--bubble-soft:var(--accent-soft)}
.report-member-bubble b,
.report-member-bubble small,
.report-member-bubble span{
  display:block;
  overflow-wrap:anywhere;
}
.report-member-bubble b{
  font-size:9.5px;
  line-height:1.05;
  margin-bottom:1px;
}
.report-member-bubble small{
  color:color-mix(in srgb,#0f172a 62%,transparent);
  font-size:8px;
}
.report-member-bubble span{
  margin-top:2px;
  color:color-mix(in srgb,#0f172a 72%,transparent);
}
@media print{
  .report-member-person{width:12mm;min-height:14mm}
  .report-mini-figure{width:5.6mm;height:8.8mm}
  .report-mini-figure:before{left:1.1mm;top:-3.3mm;width:3.3mm;height:3.3mm;border-radius:1.1mm}
  .report-mini-figure:after{bottom:-2.1mm;height:2.1mm}
  .report-mini-figure span{top:-2.7mm;font-size:5.2pt}
  .report-member-person b{max-width:17mm;font-size:6.5pt;padding:1mm 1.2mm}
  .report-member-bubble{
    width:32%;
    min-height:10mm;
    max-height:15mm;
    border-radius:3mm;
    padding:1.6mm 1.8mm;
    font-size:6.4pt;
    line-height:1.12;
  }
  .report-member-bubble b{font-size:7pt}
  .report-member-bubble small{font-size:5.8pt}
}


/* v3.0: Riemann-Teampositionierung im Report - Karten ausserhalb des Kreuzes
   Die Figuren bleiben im proportionalen Achsenkreuz sichtbar; die lesbaren Karten liegen links/rechts daneben. */
.report-rt-team-outside-bubbles{
  overflow:visible!important;
  margin-left:auto;
  margin-right:auto;
}
.report-rt-team-outside-bubbles .report-member-person{
  z-index:8;
}
.report-rt-team-outside-bubbles .report-member-bubble-outside{
  width:38%;
  min-height:56px;
  max-height:none;
  z-index:6;
  padding:7px 8px;
  font-size:9.2px;
  line-height:1.18;
  overflow:visible;
}
.report-rt-team-outside-bubbles .report-member-bubble-outside b{
  font-size:10.2px;
  margin-bottom:2px;
}
.report-rt-team-outside-bubbles .report-member-bubble-outside small{
  font-size:8.2px;
}
.report-rt-team-outside-bubbles .report-member-bubble-outside span{
  margin-top:3px;
}
.report-rt-team-outside-bubbles .report-rt-team-lines{
  z-index:3;
}
.report-rt-team-outside-bubbles .report-rt-team-lines line{
  stroke-width:.65;
  stroke:color-mix(in srgb,var(--muted) 68%,transparent);
}
@media (max-width:760px){
  .report-rt-team-outside-bubbles{
    margin-left:28%;
    margin-right:28%;
  }
  .report-rt-team-outside-bubbles .report-member-bubble-outside{
    width:42%;
  }
}
@media print{
  .report-rt-team-outside-bubbles{
    width:78mm!important;
    margin-left:auto!important;
    margin-right:auto!important;
    overflow:visible!important;
  }
  .report-rt-team-outside-bubbles .report-member-bubble-outside{
    width:35mm;
    min-height:12mm;
    max-height:none;
    padding:1.8mm 2mm;
    font-size:6.5pt;
    line-height:1.12;
    overflow:visible;
  }
  .report-rt-team-outside-bubbles .report-member-bubble-outside b{font-size:7.2pt}
  .report-rt-team-outside-bubbles .report-member-bubble-outside small{font-size:5.8pt}
}


/* v3.1: Riemann-Teampositionierung im Report als feste Komposition
   Links und rechts werden eigene Kartenspalten reserviert; das quadratische Kreuz bleibt
   in der Mitte und wird im Ausdruck nicht durch ueberstehende Karten beschnitten. */
.report-rt-team-compose{
  display:grid;
  grid-template-columns:minmax(150px,1fr) minmax(260px,420px) minmax(150px,1fr);
  gap:10px;
  align-items:stretch;
  width:min(100%,900px);
  margin:0 auto;
  overflow:visible;
  break-inside:avoid-page;
  page-break-inside:avoid;
}
.report-rt-team-cross-core{
  grid-column:2;
  width:100%!important;
  max-width:420px;
  margin:0 auto!important;
  overflow:hidden!important;
  z-index:2;
}
.report-rt-side{
  position:relative;
  min-height:100%;
  align-self:stretch;
  overflow:visible;
  z-index:3;
}
.report-rt-side-empty{
  min-height:1px;
}
.report-rt-team-compose .report-member-bubble-side{
  position:absolute;
  left:0;
  right:0;
  width:auto!important;
  max-width:100%;
  min-height:42px;
  max-height:none;
  transform:translateY(-50%);
  padding:7px 8px;
  font-size:9.1px;
  line-height:1.17;
  overflow:visible;
  break-inside:avoid;
  page-break-inside:avoid;
}
.report-rt-team-compose .report-member-bubble-side.left{
  margin-right:4px;
}
.report-rt-team-compose .report-member-bubble-side.right{
  margin-left:4px;
}
.report-rt-team-compose .report-member-bubble-side b{
  font-size:10.2px;
  line-height:1.05;
  margin-bottom:2px;
}
.report-rt-team-compose .report-member-bubble-side small{
  font-size:8.2px;
}
.report-rt-team-compose .report-member-bubble-side span{
  margin-top:3px;
}
.report-rt-team-compose .report-member-bubble-side:after{
  display:none!important;
}
.report-rt-team-compose .report-rt-team-lines line{
  stroke-width:.7;
  stroke:color-mix(in srgb,var(--muted) 70%,transparent);
  stroke-dasharray:2.2 2.2;
}
@media (max-width:760px){
  .report-rt-team-compose{
    grid-template-columns:minmax(120px,1fr) minmax(230px,340px) minmax(120px,1fr);
    gap:7px;
  }
  .report-rt-team-compose .report-member-bubble-side{
    font-size:8.3px;
    padding:6px;
  }
}
@media print{
  .report-rt-team-compose{
    width:100%!important;
    grid-template-columns:34mm 70mm 34mm!important;
    gap:4mm!important;
    justify-content:center;
    align-items:stretch;
    overflow:visible!important;
    break-inside:avoid-page;
    page-break-inside:avoid;
  }
  .report-rt-team-cross-core{
    width:70mm!important;
    max-width:70mm!important;
    aspect-ratio:1/1!important;
    padding:9mm!important;
    overflow:hidden!important;
  }
  .report-rt-team-cross-core:before{left:9mm!important;right:9mm!important}
  .report-rt-team-cross-core:after{top:9mm!important;bottom:9mm!important}
  .report-rt-team-compose .report-member-bubble-side{
    min-height:9mm;
    padding:1.5mm 1.7mm;
    font-size:5.9pt;
    line-height:1.08;
    border-radius:2.6mm;
  }
  .report-rt-team-compose .report-member-bubble-side b{font-size:6.6pt}
  .report-rt-team-compose .report-member-bubble-side small{font-size:5.4pt}
  .report-member-person{width:11mm;min-height:13mm}
  .report-member-person b{max-width:16mm;font-size:6.1pt;padding:.8mm 1mm}
}
