    :root { color-scheme: dark; --bg:#0f172a; --panel:#111827; --panel2:#1f2937; --text:#e5e7eb; --muted:#9ca3af; --accent:#7c3aed; --ok:#22c55e; --warn:#f59e0b; --err:#ef4444; --border:#334155; }
    * { box-sizing:border-box; }
    body { margin:0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; color:var(--text); background:linear-gradient(135deg,#0f172a,#111827 55%,#1e1b4b); }
    main { max-width:1280px; margin:0 auto; padding:24px 16px 64px; }
    h1 { margin:0 0 6px; font-size:clamp(1.8rem,4vw,3rem); }
    p { color:var(--muted); line-height:1.5; }
    html { scroll-behavior:smooth; scroll-padding-top:72px; }
    .grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; }
    @media (min-width:960px){ .grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; } }
    .card { min-width:0; background:rgba(17,24,39,.94); border:1px solid var(--border); border-radius:18px; padding:16px; box-shadow:0 18px 50px rgba(0,0,0,.28); scroll-margin-top:72px; }
    .card[data-workspace="workflow"],#resultsCard { grid-column:1 / -1; }
    .sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
    .workspace-nav { position:sticky; top:0; z-index:90; margin:0 0 12px; padding:6px 8px; border:1px solid #475569; border-radius:14px; background:rgba(2,6,23,.96); box-shadow:0 10px 30px rgba(0,0,0,.3); backdrop-filter:blur(14px); }
    .workspace-bar { display:flex; align-items:center; gap:7px; min-width:0; min-height:42px; }
    .workspace-current { display:none; min-width:0; color:#ddd6fe; font-weight:900; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .workspace-tabs { display:flex; flex:1 1 auto; gap:4px; min-width:0; overflow-x:auto; padding:0; scrollbar-width:none; }
    .workspace-tabs::-webkit-scrollbar { display:none; }
    .workspace-tab { width:auto; min-width:max-content; min-height:40px; margin:0; padding:7px 10px; border:1px solid transparent; border-radius:10px; background:transparent; color:#cbd5e1; font-size:.88rem; }
    .workspace-tab:hover,.workspace-tab:focus-visible { border-color:#64748b; background:#111827; outline:none; }
    .workspace-tab[aria-current="page"] { border-color:#a78bfa; background:#6d28d9; color:white; box-shadow:none; }
    .channel-picker-trigger { display:flex; align-items:center; gap:8px; flex:0 1 290px; width:min(290px,34vw); min-width:170px; min-height:40px; margin:0; padding:7px 10px; border:1px solid #475569; border-radius:10px; background:#0f172a; color:#e2e8f0; text-align:left; }
    .channel-picker-trigger:hover,.channel-picker-trigger:focus-visible { border-color:#a78bfa; outline:none; }
    .channel-picker-trigger.has-selection .channel-picker-dot { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.16); }
    .channel-picker-dot { flex:0 0 auto; width:8px; height:8px; border-radius:999px; background:#64748b; }
    .channel-picker-label { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .channel-picker-chevron { flex:0 0 auto; color:#a78bfa; }
    .quick-menu { position:relative; flex:0 0 auto; margin:0; }
    .quick-menu summary { display:flex; align-items:center; justify-content:center; min-height:40px; padding:7px 10px; border:1px solid #475569; border-radius:10px; background:#0f172a; color:#ddd6fe; cursor:pointer; font-weight:850; list-style:none; }
    .quick-menu summary::-webkit-details-marker { display:none; }
    .quick-menu[open] summary,.quick-menu summary:hover,.quick-menu summary:focus-visible { border-color:#a78bfa; color:white; outline:none; }
    .quick-menu-panel { position:absolute; top:calc(100% + 8px); right:0; z-index:20; width:min(340px,calc(100vw - 24px)); padding:8px; border:1px solid #475569; border-radius:13px; background:#020617; box-shadow:0 18px 50px rgba(0,0,0,.5); }
    .quick-links { display:grid; gap:6px; }
    .quick-links a { display:block; padding:9px 10px; border:1px solid var(--border); border-radius:9px; color:#ddd6fe; text-decoration:none; background:#0f172a; }
    .quick-links a:hover,.quick-links a:focus-visible { border-color:#a78bfa; color:white; outline:none; }
    .mobile-workspace-nav { display:none; }
    .channel-sheet { width:min(560px,calc(100vw - 24px)); max-height:min(78dvh,720px); margin:auto; padding:0; border:1px solid #64748b; border-radius:20px; background:#0f172a; color:var(--text); box-shadow:0 28px 90px rgba(0,0,0,.65); overflow:hidden; }
    .channel-sheet::backdrop { background:rgba(2,6,23,.72); backdrop-filter:blur(5px); }
    .channel-sheet-shell { display:flex; flex-direction:column; max-height:min(78dvh,720px); }
    .channel-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); }
    .channel-sheet-head h2 { margin:2px 0 0; font-size:1.15rem; }
    .channel-sheet-kicker { color:#a78bfa; font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
    .channel-sheet-close { flex:0 0 auto; width:42px; min-height:42px; margin:0; padding:0; border:1px solid #475569; border-radius:11px; background:#020617; font-size:1.55rem; line-height:1; }
    .channel-sheet-search { padding:12px 16px 8px; }
    .channel-sheet-search label { margin:0 0 6px; }
    .channel-sheet-search input { margin:0; }
    .channel-list { display:grid; gap:7px; min-height:88px; padding:8px 16px 14px; overflow:auto; overscroll-behavior:contain; }
    .channel-option { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; min-height:48px; margin:0; padding:9px 11px; border:1px solid var(--border); border-radius:11px; background:#020617; color:#e2e8f0; text-align:left; }
    .channel-option:hover,.channel-option:focus-visible { border-color:#a78bfa; outline:none; }
    .channel-option[aria-current="true"] { border-color:#22c55e; background:#052e2b; }
    .channel-option-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .channel-option-state { color:var(--muted); font-size:.78rem; }
    .channel-option[aria-current="true"] .channel-option-state { color:#86efac; }
    .channel-empty { margin:0; padding:18px 12px; border:1px dashed #475569; border-radius:11px; text-align:center; color:var(--muted); }
    .channel-sheet-foot { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; padding:10px 16px 14px; border-top:1px solid var(--border); }
    .channel-sheet-foot button { width:auto; min-height:42px; margin:0; }
    .channel-sheet-foot .field-note { margin:0; }
    @media (max-width:720px){
      html { scroll-padding-top:62px; }
      .workspace-nav { top:0; margin-bottom:10px; padding:5px 6px; border-radius:13px; }
      .workspace-bar { min-height:44px; gap:6px; }
      .workspace-tabs { display:none; }
      .workspace-current { display:block; flex:0 1 30%; max-width:30%; font-size:.84rem; }
      .channel-picker-trigger { flex:1 1 auto; width:auto; min-width:0; min-height:44px; padding:7px 9px; }
      .quick-menu summary { width:44px; min-height:44px; padding:0; font-size:0; }
      .quick-menu summary::before { content:'⋯'; font-size:1.45rem; line-height:1; }
      .quick-menu-panel { position:fixed; top:62px; left:10px; right:10px; width:auto; }
      .card { scroll-margin-top:62px; }
      .mobile-workspace-nav { position:fixed; left:0; right:0; bottom:0; z-index:95; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; padding:4px 6px calc(4px + env(safe-area-inset-bottom)); border-top:1px solid #475569; background:rgba(2,6,23,.97); box-shadow:0 -10px 30px rgba(0,0,0,.35); backdrop-filter:blur(14px); }
      .mobile-workspace-item { display:grid; place-items:center; align-content:center; gap:2px; min-width:0; min-height:58px; margin:0; padding:5px 2px; border:1px solid transparent; border-radius:12px; background:transparent; color:#94a3b8; font-size:.66rem; line-height:1.05; }
      .mobile-workspace-item[aria-current="page"] { border-color:rgba(167,139,250,.55); background:#312e81; color:white; }
      .mobile-nav-icon { font-size:1.15rem; line-height:1; }
      .channel-sheet { width:100%; max-width:none; max-height:min(82dvh,760px); margin:auto 0 0; border-width:1px 0 0; border-radius:22px 22px 0 0; }
      .channel-sheet-shell { max-height:min(82dvh,760px); padding-bottom:env(safe-area-inset-bottom); }
      .channel-sheet-foot { grid-template-columns:1fr; }
      .channel-sheet-foot button { width:100%; }
    }
    @media (prefers-reduced-motion:reduce){ html { scroll-behavior:auto; } }
    label { display:block; margin:12px 0 6px; font-weight:800; }
    input, select, textarea, button { width:100%; border-radius:12px; border:1px solid var(--border); padding:11px 12px; font:inherit; }
    input, select, textarea { min-width:0; background:#020617; color:var(--text); }
    textarea { min-height:130px; resize:vertical; }
    button { border:0; background:var(--accent); color:white; font-weight:900; cursor:pointer; margin-top:10px; }
    button.secondary { background:var(--panel2); }
    button.danger { background:var(--err); }
    button:disabled { opacity:.55; cursor:not-allowed; }
    .row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .status { padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:#020617; white-space:pre-wrap; overflow-wrap:anywhere; }
    .actbar { display:flex; align-items:flex-start; gap:10px; margin:0 0 16px; padding:11px 14px; border-radius:14px; border:1px solid var(--border); background:rgba(2,6,23,.9); font-weight:800; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.95rem; }
    .actbar.idle { color:var(--muted); }
    .actbar.busy { color:#fde68a; border-color:var(--warn); }
    .actbar.err { color:#fca5a5; border-color:var(--err); }
    .actdot { width:12px; height:12px; margin-top:5px; border-radius:50%; background:var(--muted); flex:0 0 auto; }
    .actbar.busy .actdot { background:var(--warn); animation:actpulse 1s infinite; }
    .actbar.err .actdot { background:var(--err); }
    @keyframes actpulse { 0%{opacity:1;} 50%{opacity:.2;} 100%{opacity:1;} }
    .actlog { margin:-8px 0 16px; border:1px solid var(--border); border-radius:14px; background:rgba(2,6,23,.75); }
    .actlog summary { cursor:pointer; padding:9px 14px; font-weight:800; color:var(--muted); font-size:.9rem; }
    .actlog summary:hover { color:#e2e8f0; }
    .actlogbody { max-height:320px; overflow:auto; padding:4px 12px 12px; font-size:.85rem; }
    .shotbox { margin:-8px 0 16px; padding:12px; border:1px solid #475569; border-radius:14px; background:rgba(2,6,23,.86); }
    .shothead { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 12px; margin-bottom:8px; }
    .shotmeta,.shotstatus { color:var(--muted); font-size:.85rem; overflow-wrap:anywhere; }
    .shotframe { min-height:96px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#000; }
    .shotframe:empty::before { content:'Browserbild wird vorbereitet ...'; color:#94a3b8; padding:28px 12px; text-align:center; }
    .shotframe img { display:block; width:100%; max-height:min(62vh,720px); object-fit:contain; }
    .lgrow { display:grid; grid-template-columns:auto 118px minmax(0,1fr); gap:9px; padding:7px 0; border-bottom:1px solid rgba(148,163,184,.12); align-items:start; }
    .lgt { color:#64748b; font-variant-numeric:tabular-nums; }
    .lgk { color:#94a3b8; font-weight:700; }
    .lgcontent { min-width:0; }
    .lgx { overflow-wrap:anywhere; line-height:1.4; }
    .lgdetails { display:flex; flex-wrap:wrap; gap:5px 8px; margin-top:5px; }
    .lgdetail { display:inline-flex; gap:4px; max-width:100%; padding:2px 7px; border:1px solid rgba(148,163,184,.22); border-radius:999px; background:rgba(15,23,42,.72); color:#cbd5e1; overflow-wrap:anywhere; }
    .lgdetail b { color:#94a3b8; }
    .lgstart .lgx { color:#93c5fd; }
    .lgend .lgx { color:#86efac; }
    .lgerr .lgx { color:#fca5a5; font-weight:700; }
    .lginfo .lgx { color:#e2e8f0; }
    button.busy { cursor:progress; opacity:.9; border-color:var(--warn); }
    button.flash-ok { animation:flashok .7s ease-out; }
    button.flash-err { animation:flasherr .7s ease-out; }
    @keyframes flashok { from{box-shadow:0 0 0 0 rgba(34,197,94,.85);} to{box-shadow:0 0 0 14px rgba(34,197,94,0);} }
    @keyframes flasherr { from{box-shadow:0 0 0 0 rgba(248,113,113,.85);} to{box-shadow:0 0 0 14px rgba(248,113,113,0);} }
    button:active { transform:translateY(1px); }
    .tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
    .tab { width:auto; padding:8px 12px; margin:0; background:#020617; border:1px solid var(--border); }
    .tab.active { background:var(--accent); }
    pre { background:#020617; border:1px solid var(--border); border-radius:14px; padding:14px; overflow:auto; max-height:620px; white-space:pre-wrap; overflow-wrap:anywhere; }
    .list { display:flex; flex-direction:column; gap:10px; }
    [hidden] { display:none !important; }
    ul { margin:6px 0 0; padding-left:20px; }
    li { margin:3px 0; overflow-wrap:anywhere; }
    details { margin-top:8px; }
    summary { cursor:pointer; font-weight:800; }
    a { color:#c4b5fd; overflow-wrap:anywhere; }
    .item { border:1px solid var(--border); border-radius:14px; padding:12px; background:#020617; }
    .workflow-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:8px; }
    .workflow-head h2 { margin:0; font-size:1.15rem; }
    .workflow-note { margin:0 0 10px; font-size:.9rem; }
    .target-role-note { padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:#0f172a; }
    .target-role-note.error { border-color:#ef4444; color:#fecaca; }
    .check-line { display:flex; gap:8px; align-items:center; margin:6px 0; }
    .check-line input { width:auto; }
    .workflow-progress { width:100%; height:14px; margin:10px 0 4px; accent-color:var(--accent); }
    .phase-list { margin:8px 0 0; padding-left:22px; color:var(--muted); font-size:.88rem; }
    .phase-list li.active { color:#fde68a; font-weight:900; }
    .phase-list li.done { color:#86efac; }
    .counter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:10px; }
    .counter { padding:8px; border:1px solid var(--border); border-radius:10px; background:#020617; color:var(--muted); }
    .counter b { display:block; color:var(--text); font-size:1.05rem; }
    .review-toolbar { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; }
    .review-toolbar button { width:auto; min-width:130px; }
    .review-card { border:1px solid var(--border); border-radius:14px; padding:12px; background:#020617; }
    .review-card + .review-card { margin-top:10px; }
    .review-card h3 { margin:0 0 6px; font-size:1rem; }
    .review-sources { display:grid; gap:7px; margin:8px 0; }
    .source-side { padding:8px; border-left:3px solid #8b5cf6; background:#0f172a; border-radius:8px; }
    .finding-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px; margin-top:7px; color:var(--muted); font-size:.82rem; }
    .review-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
    .review-actions button { margin-top:7px; padding:8px; }
    .review-actions .confirm { background:#15803d; }
    .review-actions .defer { background:#a16207; }
    .review-reason { min-height:70px; }
    .script-source-list { max-height:260px; overflow:auto; padding:8px; border:1px solid var(--border); border-radius:12px; background:#020617; }
    .script-source-list label { display:flex; gap:8px; align-items:flex-start; margin:5px 0; font-weight:600; }
    .script-source-list input { width:auto; margin-top:4px; }
    .script-output { max-height:520px; overflow:auto; white-space:pre-wrap; }
    @media (max-width:600px){
      .counter-grid,.review-actions,.finding-meta { grid-template-columns:1fr; }
      .review-toolbar { grid-template-columns:1fr; }
      .review-toolbar button { width:100%; }
    }
    .pill { display:inline-block; border-radius:999px; padding:3px 9px; background:var(--panel2); color:var(--muted); font-size:.85rem; margin-right:6px; }
    .running { color:#93c5fd; } .completed { color:var(--ok); } .failed,.cancelled { color:#fca5a5; } .queued { color:var(--warn); }
    .field-note { margin:6px 0 0; font-size:.85rem; color:var(--muted); }
    .field-note.error { color:#fca5a5; }
    .research-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0; padding:0; list-style:none; counter-reset:research-step; }
    .research-steps li { min-width:0; padding:10px; border:1px solid var(--border); border-radius:12px; background:#020617; color:var(--muted); line-height:1.35; }
    .research-steps li::before { counter-increment:research-step; content:counter(research-step); display:inline-grid; place-items:center; width:24px; height:24px; margin-right:7px; border-radius:999px; background:#312e81; color:white; font-weight:900; }
    .selection-panel { display:grid; gap:7px; margin:12px 0; padding:12px; border:1px solid #475569; border-radius:14px; background:#0f172a; }
    .selection-row { display:grid; grid-template-columns:150px minmax(0,1fr); gap:8px; align-items:start; }
    .selection-row strong { color:#c4b5fd; }
    .selection-value { min-width:0; overflow-wrap:anywhere; color:#e2e8f0; }
    .inline-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .research-worklist { max-height:520px; overflow:auto; margin:12px 0; padding:10px; border:1px solid var(--border); border-radius:14px; background:rgba(2,6,23,.72); }
    .choice-card { border:1px solid var(--border); border-radius:13px; padding:12px; background:#020617; }
    .choice-card + .choice-card { margin-top:9px; }
    .choice-card.selected { border-color:#a78bfa; box-shadow:0 0 0 2px rgba(167,139,250,.18); }
    .choice-card h3 { margin:0 0 7px; font-size:1rem; }
    .choice-card blockquote { margin:8px 0; padding-left:10px; border-left:3px solid #475569; color:#cbd5e1; }
    .choice-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:9px; }
    .choice-actions button,.choice-actions a { width:auto; margin:0; padding:8px 11px; border-radius:10px; }
    .youtube-jump { display:inline-flex; align-items:center; gap:6px; border:1px solid #dc2626; background:#7f1d1d; color:white; font-weight:850; text-decoration:none; }
    .youtube-jump:hover,.youtube-jump:focus-visible { background:#991b1b; outline:2px solid #fecaca; outline-offset:2px; }
    .dossier-panel { margin:14px 0; padding:14px; border:1px solid #8b5cf6; border-radius:15px; background:#0f172a; }
    .dossier-panel h3 { margin-top:0; }
    .readiness-list { display:grid; gap:5px; margin:10px 0; padding:0; list-style:none; }
    .readiness-list li { padding:7px 9px; border-radius:9px; background:#020617; }
    .finding-editor { min-width:0; margin:14px 0 0; padding:14px; border:1px solid var(--border); border-radius:15px; }
    .finding-editor:disabled { opacity:.55; }
    .finding-editor legend { padding:0 8px; font-weight:900; color:#ddd6fe; }
    @media (max-width:700px){
      .research-steps,.inline-actions { grid-template-columns:1fr; }
      .selection-row { grid-template-columns:1fr; gap:2px; }
    }
    .toast-region { position:fixed; z-index:1200; right:18px; bottom:18px; width:min(420px,calc(100vw - 24px)); pointer-events:none; }
    .toast { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border:1px solid var(--border); border-radius:14px; background:rgba(15,23,42,.98); box-shadow:0 18px 55px rgba(0,0,0,.45); opacity:0; transform:translateY(12px) scale(.98); transition:opacity .18s ease,transform .18s ease; }
    .toast.show { opacity:1; transform:translateY(0) scale(1); }
    .toast.success { border-color:rgba(34,197,94,.7); }
    .toast.warning { border-color:rgba(245,158,11,.75); }
    .toast.error { border-color:rgba(239,68,68,.8); }
    .toast-icon { flex:0 0 auto; width:24px; height:24px; display:grid; place-items:center; border-radius:999px; background:var(--panel2); font-weight:950; }
    .toast.success .toast-icon { color:#86efac; }
    .toast.warning .toast-icon { color:#fde68a; }
    .toast.error .toast-icon { color:#fca5a5; }
    .toast-message { min-width:0; color:#f8fafc; line-height:1.4; overflow-wrap:anywhere; }
    .button-help-wrap { display:grid; grid-template-columns:minmax(0,1fr) 42px; gap:8px; align-items:stretch; width:100%; }
    .button-help-wrap > button { min-width:0; }
    .button-info { width:42px; min-height:42px; margin-top:10px; border:1px solid #64748b; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#020617; color:#c4b5fd; font-weight:950; font-family:Georgia,serif; cursor:pointer; user-select:none; }
    .button-info:hover,.button-info:focus-visible { color:white; border-color:#a78bfa; background:#312e81; outline:none; }
    .tabs .button-help-wrap { display:flex; width:auto; gap:4px; }
    .tabs .button-help-wrap > button { width:auto; }
    .tabs .button-info { width:32px; min-height:34px; margin:0; border-radius:10px; }
    .result-view { position:fixed; inset:0; z-index:1000; padding:clamp(12px,3vw,32px); background:linear-gradient(135deg,#020617,#111827 60%,#1e1b4b); overflow:hidden; }
    .result-shell { width:min(920px,100%); height:100%; margin:0 auto; display:flex; flex-direction:column; background:rgba(17,24,39,.98); border:1px solid var(--border); border-radius:20px; box-shadow:0 24px 80px rgba(0,0,0,.55); overflow:hidden; }
    .result-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px; border-bottom:1px solid var(--border); }
    .result-head h2 { margin:3px 0 0; font-size:clamp(1.2rem,3vw,1.7rem); overflow-wrap:anywhere; }
    .result-kicker { color:#a78bfa; font-weight:900; letter-spacing:.08em; text-transform:uppercase; font-size:.75rem; }
    .result-head .button-help-wrap { width:auto; flex:0 0 auto; }
    .result-head button { width:auto; margin:0; white-space:nowrap; }
    .result-head .button-info { margin:0; }
    .result-meta { padding:10px 18px; color:var(--muted); font-size:.85rem; border-bottom:1px solid rgba(148,163,184,.15); }
    .result-status { flex:1; margin:18px; padding:18px; overflow:auto; border-radius:14px; white-space:pre-wrap; line-height:1.55; }
    body.result-open { overflow:hidden; }
    @media (max-width:600px){
      main { padding:16px 10px calc(88px + env(safe-area-inset-bottom)); }
      .row { grid-template-columns:1fr; }
      .lgrow { grid-template-columns:auto minmax(0,1fr); }
      .lgk { grid-column:2; }
      .lgcontent { grid-column:1 / -1; padding-left:0; }
      .toast-region { right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); width:calc(100vw - 24px); }
      .result-view { padding:0; }
      .result-shell { border:0; border-radius:0; }
      .result-head { align-items:flex-start; padding:14px; }
      .result-head .button-help-wrap { grid-template-columns:minmax(0,1fr) 38px; }
      .result-status { margin:12px; padding:14px; }
    }


    /* Persistente, einklappbare Hauptbereiche und getrennte Statistikbloecke. */
    .card > .card-details { margin:0; }
    .card-summary {
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
      margin:0;
      padding:0;
      list-style:none;
      color:var(--text);
    }
    .card-summary::-webkit-details-marker { display:none; }
    .card-summary h2 { margin:0; font-size:1.15rem; }
    .card-summary::after {
      content:'▾';
      flex:0 0 auto;
      display:grid;
      place-items:center;
      width:30px;
      height:30px;
      margin-left:auto;
      border:1px solid #475569;
      border-radius:9px;
      color:#c4b5fd;
      background:#020617;
      transform:rotate(-90deg);
      transition:transform .16s ease;
    }
    .card-details[open] > .card-summary::after { transform:rotate(0deg); }
    .card-summary:hover::after,.card-summary:focus-visible::after {
      border-color:#a78bfa;
      color:white;
    }
    .card-summary:focus-visible { outline:2px solid #a78bfa; outline-offset:5px; border-radius:8px; }
    .card-details-body { min-width:0; padding-top:12px; }
    .statistics-details {
      margin:10px 0;
      padding:0;
      border:1px solid #475569;
      border-radius:12px;
      background:rgba(2,6,23,.55);
      overflow:hidden;
    }
    .statistics-details > summary {
      padding:9px 11px;
      color:#ddd6fe;
      background:rgba(15,23,42,.78);
      list-style:none;
    }
    .statistics-details > summary::-webkit-details-marker { display:none; }
    .statistics-details > summary::after { content:' anzeigen'; color:#94a3b8; font-weight:600; }
    .statistics-details[open] > summary::after { content:' ausblenden'; }
    .statistics-details > .counter-grid { margin:0; padding:10px; }
    .candidate-toolbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
    .candidate-card { cursor:pointer; }
    .candidate-card:focus-visible { outline:2px solid #a78bfa; outline-offset:3px; }
    .candidate-card.candidate-rejected { opacity:.76; }
    .candidate-status-note {
      margin:8px 0;
      padding:8px 10px;
      border-left:3px solid #8b5cf6;
      border-radius:8px;
      background:#0f172a;
      color:#cbd5e1;
      line-height:1.45;
    }
    .candidate-actions {
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
      gap:7px;
      align-items:stretch;
    }
    .candidate-actions > * { width:100%; margin-top:7px; }
    @media (max-width:600px){
      .candidate-toolbar { grid-template-columns:1fr; }
      .candidate-actions { grid-template-columns:1fr; }
      .card-summary { gap:8px; }
    }
    @media (prefers-reduced-motion:reduce){
      .card-summary::after { transition:none; }
    }

    .review-toolbar-wide { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
    .review-recommendation {
      margin:8px 0 12px;
      padding:12px;
      border:1px solid #64748b;
      border-left-width:6px;
      border-radius:12px;
      background:linear-gradient(135deg,rgba(15,23,42,.98),rgba(30,41,59,.86));
    }
    .recommendation-main { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
    .recommendation-word { font-size:1.35rem; letter-spacing:.06em; }
    .recommendation-action { font-weight:800; color:#e2e8f0; }
    .recommendation-signals { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
    .recommendation-signal {
      display:inline-flex;
      align-items:center;
      min-height:28px;
      padding:4px 9px;
      border:1px solid currentColor;
      border-radius:999px;
      font-size:.78rem;
      font-weight:950;
      letter-spacing:.04em;
    }
    .signal-proof { color:#86efac; background:rgba(22,101,52,.28); }
    .signal-counter { color:#bfdbfe; background:rgba(30,64,175,.25); }
    .signal-major { color:#fecaca; background:rgba(153,27,27,.4); }
    .recommendation-meta,.recommendation-reason { margin:8px 0 0; line-height:1.45; }
    .recommendation-reason { color:#f8fafc; font-weight:700; }
    .recommendation-urgent {
      border-color:#ef4444;
      background:linear-gradient(135deg,rgba(127,29,29,.58),rgba(30,41,59,.94));
      box-shadow:0 0 0 2px rgba(239,68,68,.18),0 10px 28px rgba(127,29,29,.22);
    }
    .recommendation-urgent .recommendation-word { color:#fecaca; }
    .recommendation-high { border-color:#f97316; }
    .recommendation-high .recommendation-word { color:#fed7aa; }
    .recommendation-medium { border-color:#eab308; }
    .recommendation-medium .recommendation-word { color:#fef08a; }
    .recommendation-low { border-color:#64748b; }
    .recommendation-low .recommendation-word { color:#cbd5e1; }
    .recommendation-skip { border-color:#38bdf8; }
    .recommendation-skip .recommendation-word { color:#bae6fd; }
    @media (max-width:600px){
      .review-toolbar-wide { grid-template-columns:1fr; }
      .recommendation-main { align-items:flex-start; flex-direction:column; gap:2px; }
    }


    /* v33: Abschnittsüberschrift bleibt unter der Hauptnavigation sichtbar. */
    :root { --section-sticky-top:58px; }
    .card { overflow:visible; }
    .card > .card-details { overflow:visible; }
    .card-details > .card-summary {
      position:sticky;
      top:var(--section-sticky-top);
      z-index:34;
      margin:-16px -16px 0;
      padding:12px 16px;
      border-bottom:1px solid #475569;
      border-radius:17px 17px 10px 10px;
      background:linear-gradient(135deg,rgba(15,23,42,.99),rgba(30,41,59,.97));
      box-shadow:0 8px 18px rgba(2,6,23,.34);
      backdrop-filter:blur(12px);
    }
    .card-details:not([open]) > .card-summary {
      border-bottom-color:transparent;
      border-radius:17px;
    }
    .card-details > .card-summary h2 { min-width:0; }
    .candidate-filter-grid {
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr)) auto;
      gap:8px;
      align-items:end;
    }
    .candidate-refresh { margin-top:0; min-height:44px; }
    .candidate-batch-details {
      margin:12px 0;
      border:1px solid #6d5cae;
      border-radius:13px;
      background:rgba(46,16,101,.18);
      overflow:hidden;
    }
    .candidate-batch-details > summary {
      padding:11px 12px;
      color:#ede9fe;
      background:rgba(46,16,101,.34);
      list-style:none;
    }
    .candidate-batch-details > summary::-webkit-details-marker { display:none; }
    .candidate-batch-details > summary::after { content:' anzeigen'; color:#c4b5fd; font-weight:650; }
    .candidate-batch-details[open] > summary::after { content:' ausblenden'; }
    .candidate-batch-body { padding:0 12px 12px; }
    .candidate-selection-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:stretch; }
    .candidate-selection-actions > * { flex:1 1 210px; }
    .candidate-select-control {
      display:flex;
      align-items:center;
      gap:8px;
      margin:0 0 8px;
      padding:7px 9px;
      border:1px solid #475569;
      border-radius:9px;
      background:rgba(2,6,23,.62);
      color:#ddd6fe;
      font-weight:800;
      cursor:pointer;
    }
    .candidate-select-control input { width:auto; margin:0; }
    .candidate-card.candidate-selected {
      border-color:#a78bfa;
      box-shadow:0 0 0 2px rgba(167,139,250,.2);
    }
    @media (max-width:900px){
      .candidate-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
      .candidate-refresh { width:100%; }
    }
    @media (max-width:600px){
      :root { --section-sticky-top:55px; }
      .card-details > .card-summary { margin:-16px -16px 0; padding:11px 14px; }
      .candidate-filter-grid { grid-template-columns:1fr; }
      .candidate-selection-actions { display:grid; grid-template-columns:1fr; }
    }
    .screening-topics { margin:12px 0; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:#020617; }
    .screening-topics legend { padding:0 6px; font-weight:800; font-size:.92rem; }
    .screening-topic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 14px; margin:8px 0 12px; }
    .screening-topic-grid label { display:flex; gap:8px; align-items:flex-start; font-size:.88rem; line-height:1.35; color:var(--text); }
    .candidate-chip-row { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 4px; }
    .candidate-chip { padding:6px 12px; border:1px solid var(--border); border-radius:999px; background:var(--panel2); color:var(--muted); font-size:.85rem; font-weight:700; cursor:pointer; }
    .candidate-chip-active { border-color:var(--accent); background:#312e81; color:white; }
    .candidate-chip-count { font-weight:900; }
    .candidate-category-badge { background:var(--accent); color:white; font-weight:800; }
    .candidate-severity-high { background:#7f1d1d; color:#fecaca; }
    .candidate-severity-medium { background:#78350f; color:#fde68a; }
    .candidate-severity-low { background:#14532d; color:#bbf7d0; }
    @media (max-width:720px) {
      .screening-topic-grid { grid-template-columns:1fr; }
    }
    .topic-template-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
    #topicResearchTopic { width:100%; min-height:96px; resize:vertical; }
    .topic-research-progress { white-space:pre-wrap; margin:8px 0 0; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#020617; font-size:.85rem; line-height:1.4; }
    .topic-runs-row { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:12px 0 4px; }
    .topic-runs-row > div { flex:1 1 240px; min-width:0; }
    .topic-runs-row select { width:100%; }
    .topic-result { margin:6px 0 0; }
    .topic-result-block { margin:12px 0 0; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:#020617; }
    .topic-result-block h3 { margin:0 0 6px; font-size:1.02rem; }
    .topic-result-block h4 { margin:14px 0 4px; font-size:.94rem; }
    .topic-answer { margin:8px 0 0; font-size:.95rem; line-height:1.55; overflow-wrap:anywhere; }
    .topic-key-points { margin:6px 0 0; padding-left:20px; }
    .topic-key-points li { margin:0 0 9px; line-height:1.45; }
    .topic-evidence-row { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 0; }
    .topic-evidence-jump { padding:5px 11px; border:1px solid var(--accent); border-radius:999px; background:#312e81; color:white; font-size:.8rem; font-weight:800; cursor:pointer; }
    .topic-evidence-jump:hover, .topic-evidence-jump:focus { background:var(--accent); }
    .topic-finding { margin:10px 0 0; }
    .topic-finding h3 { overflow-wrap:anywhere; }
    .topic-relevance { background:#1e293b; color:#e2e8f0; font-weight:800; }
    .topic-timestamp-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 15px; border:1px solid var(--accent); border-radius:10px; background:var(--accent); color:white; font-weight:800; text-decoration:none; }
    .topic-timestamp-link:hover, .topic-timestamp-link:focus { background:#6d28d9; }
    .topic-finding-flash { box-shadow:0 0 0 3px rgba(167,139,250,.6); }
    .topic-log-details { margin:12px 0 0; padding:11px 13px; border:1px solid var(--border); border-radius:12px; background:#020617; }
    .topic-log-details > summary { cursor:pointer; font-weight:800; }
    .topic-log-list { list-style:none; margin:10px 0 0; padding:0; }
    .topic-log-row { margin:0 0 8px; padding:9px 11px; border:1px solid var(--border); border-radius:10px; background:var(--panel2); }
    .topic-log-head { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
    .topic-log-head b { flex:1 1 220px; min-width:0; overflow-wrap:anywhere; }
    .topic-log-stats { margin:0 0 4px; }
    .topic-log-state { background:#1e293b; color:#e2e8f0; font-weight:800; }
    .topic-log-checked .topic-log-state { background:#14532d; color:#bbf7d0; }
    .topic-log-skipped .topic-log-state { background:#334155; color:#e2e8f0; }
    .topic-log-missing .topic-log-state { background:#7f1d1d; color:#fecaca; }
    .topic-log-hits { background:var(--accent); color:white; font-weight:900; }
    .topic-sub-details { margin:10px 0 0; }
    .topic-sub-details > summary { cursor:pointer; font-weight:700; color:#c4b5fd; }
    #topicFindingFilter { width:100%; }
    @media (max-width:600px){
      .topic-runs-row { display:grid; grid-template-columns:1fr; }
      .topic-template-actions .btn { width:100%; }
      .topic-timestamp-link { width:100%; }
    }
    .topic-plan { margin:12px 0 0; padding:11px 13px; border:1px solid var(--accent); border-radius:12px; background:#020617; }
    .topic-plan-head b { flex:1 1 240px; min-width:0; }
    .topic-plan-total { background:var(--accent); color:white; font-weight:900; }
    .topic-plan-list { margin:8px 0 0; padding-left:20px; }
    .topic-plan-list li { margin:0 0 4px; line-height:1.4; overflow-wrap:anywhere; }
    .topic-plan-warn { color:var(--warn); }
    @media (max-width:600px){
      .topic-plan-head .btn { width:100%; }
    }