:root{--bg:#f3f4f6;--panel:#fff;--fg:#14161a;--muted:#4b5563;--line:#d5d9e0;--accent:#1f4fd8;--on-accent:#fff}
@media (prefers-color-scheme:dark){:root{--bg:#111318;--panel:#1b1e25;--fg:#f1f3f6;--muted:#aeb6c4;--line:#363b47;--accent:#8fb0ff;--on-accent:#0d1426}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
header{display:flex;gap:12px;align-items:baseline;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--panel)}
header span{color:var(--muted)}
main{max-width:960px;margin:0 auto;padding:16px}
h1{font-size:22px;margin:0 0 12px}h2{font-size:17px;margin:0 0 10px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:16px;overflow-x:auto}
.narrow{max-width:420px;margin:40px auto}
.line{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.line h1{margin:0}.grow{flex:1}
label{display:block;margin-bottom:12px;font-weight:600}
input,select{font:inherit;color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-height:40px}
label input{display:block;width:100%;margin-top:4px;font-weight:400}
.line input{flex:1;min-width:180px}
#link{width:100%;margin:8px 0}
button,.button{font:inherit;font-weight:600;min-height:40px;padding:8px 14px;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);cursor:pointer;text-decoration:none;display:inline-block}
button.quiet,.button.quiet{background:transparent;color:var(--fg);border-color:var(--line)}
button:disabled{opacity:.5}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
table{width:100%;border-collapse:collapse;margin-top:10px}td{padding:8px 6px;border-top:1px solid var(--line);vertical-align:middle}
a{color:var(--accent);font-weight:600}
.note{color:#b45309;min-height:1.5em;margin:8px 0 0}.links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:0}.actions{white-space:nowrap}.actions button+button{margin-left:6px}.small{color:var(--muted);font-size:13px}
[hidden]{display:none!important}
#invite input[readonly]{background:var(--bg);color:var(--muted)}
.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0 0 16px}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}

/* Aufnahme und Kodierung */
body[data-view=aufnahmen] main{max-width:1400px}
body[data-view=aufnahmen] header a{margin-right:8px}
.recbar{margin-bottom:4px}
.resume{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
audio,video{width:100%;max-height:420px}
progress{width:100%}
summary{cursor:pointer;font-weight:600}
.check{display:flex;gap:6px;align-items:center;margin:0}.check input{display:inline;width:auto;min-height:0;min-width:0;flex:none}
textarea{display:block;width:100%;font:inherit;color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin:8px 0}
.work{display:grid;grid-template-columns:minmax(0,3fr) minmax(300px,2fr);gap:16px;align-items:start}
.work aside{position:sticky;top:8px;max-height:calc(100vh - 16px);overflow:auto}
@media (max-width:860px){.work{grid-template-columns:1fr}.work aside{position:sticky;bottom:0;top:auto;order:-1;max-height:60vh}}
#sentences{list-style:none;margin:0 0 16px;padding:0}
.sentence{border-bottom:2px dotted var(--line)}
.sentence .pick{display:block;width:100%;text-align:left;background:transparent;color:var(--fg);border:0;border-left:6px solid transparent;border-radius:0;padding:8px 10px;font-weight:400}
.sentence.one .pick{border-left-color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent)}
.sentence.many .pick{border-left:6px dashed var(--muted);background:color-mix(in srgb,var(--muted) 14%,transparent)}
.sentence.many .text{text-decoration:underline dashed;text-underline-offset:4px;text-decoration-thickness:1px}
.sentence.active .pick{outline:3px solid var(--accent);outline-offset:-3px}
.sentence.moderator .text{color:var(--muted)}
.sentence span{display:block}.sentence .meta{font-size:12px;color:var(--muted)}.sentence .object{font-size:13px;font-style:italic}
.sentence .chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.chip,button.chip{display:inline-block;font-size:13px;font-weight:400;min-height:0;padding:2px 8px;border-radius:999px;border:2px solid var(--c);background:color-mix(in srgb,var(--c) 16%,var(--panel));color:var(--fg)}
button.chip{min-height:34px;background:transparent}
button.chip[aria-pressed=true]{background:color-mix(in srgb,var(--c) 40%,var(--panel));font-weight:600;box-shadow:inset 0 0 0 1px var(--c)}
button.chip[aria-pressed=true]::before{content:"✓ "}
.codes{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#filters{margin-bottom:8px}

/* Nutzertests: Verwaltung */
body[data-view=tests] header a{margin-right:8px}
body[data-view=tests] .test>.line h2{margin:0}
.test details{margin:12px 0}.test details form{margin-top:12px}.test details label:not(.check)>input,.test details label>textarea{display:block;width:100%;margin:4px 0;font-weight:400}.test details label>.small{display:block;font-weight:400}.test details .check{margin-bottom:8px;font-weight:400;align-items:flex-start}.test details .check input{margin-top:5px}
.test details .line label{flex:1;min-width:160px}
.test h3{font-size:15px;margin:16px 0 4px}
.test th{text-align:left;font-size:13px;color:var(--muted);font-weight:600;padding:4px 6px;vertical-align:bottom}
.test td{vertical-align:top}.test .buttons{text-align:right}.test .buttons>*{margin:0 0 6px 6px}
.test .said{margin:2px 0}
.badge{font-size:13px;padding:1px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}.badge[data-status=offen]{border-color:var(--accent);color:var(--accent);font-weight:600}
.wrap{white-space:pre-line;overflow-wrap:anywhere}

/* Nutzertest: Seite der Testperson und ihr Aufgabenfenster */
.steps{max-width:640px}.steps h2{margin-top:18px}
.steps .check{display:flex;align-items:flex-start;margin:0 0 10px;font-weight:400}.steps .check input{margin-top:5px}
meter{width:100%;height:16px}
.taskwindow{padding:12px}
.taskcard .task{font-size:18px;font-weight:600;line-height:1.4}
.taskcard a.button.quiet{color:var(--fg)}
#inline .taskcard{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0}
.recline{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px;margin-top:16px;color:var(--muted);font-size:13px}
.scale{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.scale button{padding:8px 0}
.ends{display:flex;justify-content:space-between;gap:12px}

/* Auswertungstabelle */
body[data-view=tabelle] main{max-width:none}
body[data-view=tabelle] header a{margin-right:8px}
body[data-view=tabelle] header{flex-wrap:wrap}
#help ol{margin:8px 0;padding-left:20px}
.tools{margin-bottom:8px}
.warn{color:#b45309}
.group ul{margin:8px 0;padding-left:20px}.group input{flex:1;min-width:240px}
.grid{padding:0;overflow:auto;max-height:calc(100vh - 80px)}
.grid>p{padding:16px;margin:0}
.grid table{border-collapse:separate;border-spacing:0;margin:0;width:max-content;min-width:100%}
.grid th,.grid td{border-top:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px;text-align:left;vertical-align:top;font-weight:400;width:250px;min-width:250px;max-width:250px;overflow-wrap:anywhere}
.grid thead th{position:sticky;top:0;z-index:2;background:var(--panel)}
.grid th.question{position:sticky;left:0;z-index:1;background:var(--panel);font-weight:600}
.grid thead th.question{z-index:3}
.grid .pattern{width:280px;min-width:280px;max-width:280px}
.grid tr.area th{background:var(--bg);font-weight:600;width:auto;max-width:none;color:var(--muted)}
.grid tr.area span{position:sticky;left:8px}
.grid .check{align-items:flex-start;font-weight:600}.grid .check input{margin-top:5px}
.grid details{margin-top:6px;font-weight:400}.grid summary{font-size:13px;color:var(--muted);font-weight:400}
.wording{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:6px 0}
.grid .line{margin-top:6px}
button.cell{display:block;width:100%;height:100%;text-align:left;font-weight:400;background:transparent;color:var(--fg);border:1px solid transparent;border-radius:8px;padding:6px}
button.cell:hover{border-color:var(--accent)}
button.cell.open{border:1px dashed var(--muted);background:color-mix(in srgb,var(--muted) 8%,transparent)}
button.cell.checked{border-color:var(--line)}
button.cell.empty{color:var(--muted);font-size:13px}
button.cell span{display:block}
button.cell .chips{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}
.meta{font-size:12px;color:var(--muted)}.meta.warn{color:#b45309}
.chips{display:flex;flex-wrap:wrap;gap:4px}
button.wanted{outline:3px solid var(--accent);outline-offset:2px}
dialog#panel{margin:0 0 0 auto;width:min(520px,100%);height:100%;max-height:100%;max-width:100%;border:0;border-left:1px solid var(--line);background:var(--panel);color:var(--fg);padding:16px;overflow:auto}
dialog#panel::backdrop{background:rgb(0 0 0/.35)}
#panel h3{font-size:15px;margin:20px 0 6px}
#panel .asked{font-weight:600}
#panel audio,#panel video{max-height:220px;margin-bottom:8px}
.evidence,.candidates{list-style:none;margin:0;padding:0}
.evidence li{border-bottom:2px dotted var(--line);padding:8px 0}
.evidence blockquote{margin:4px 0}
.candidates{max-height:320px;overflow:auto}
.candidates button{display:block;width:100%;text-align:left;font-weight:400;margin-bottom:4px}
.candidates button span{display:block}
#search{width:100%;margin:8px 0}
@media (max-width:640px){.grid th,.grid td,.grid .pattern{width:210px;min-width:210px;max-width:210px}.grid th.question{width:130px;min-width:130px;max-width:130px;font-size:13px}.grid .check{gap:4px}}

/* Profil, Ablage und Tabellen im Stil der Seminarvorlagen */
body[data-view=profil] main,body[data-view=ablage] main{max-width:none}
body[data-view=ablage] main{max-width:1100px;margin:0 auto}
body[data-view=profil] header,body[data-view=ablage] header{flex-wrap:wrap}
body[data-view=profil] header a,body[data-view=ablage] header a{margin-right:8px}
#personaTitle h2{margin:0}#personaTitle{margin-bottom:10px}
.sheet table th.nr,.sheet table td.nr{width:44px;min-width:44px;max-width:44px;text-align:center;font-weight:700;background:#767a81;color:#fff}
.sheet table th.groupcol{width:210px;min-width:210px;max-width:210px;background:#767a81;color:#fff;position:sticky;left:0;z-index:1}
.sheet table thead th.groupcol{z-index:3}
.sheet table th.colored{background:var(--c);color:#14161a}
.sheet table th.colored summary,.sheet table th.colored .small{color:#1f2937}
.sheet table th.colored button.quiet{color:#14161a;border-color:#1f293766}
.sheet th.groupcol input,.sheet th.groupcol select{width:100%;margin-bottom:6px;font-weight:700;background:transparent;color:#fff;border-color:#ffffff66}
.sheet th.groupcol select{font-weight:400}.sheet th.groupcol option{color:#14161a;background:#fff}
.sheet th.groupcol summary,.sheet th.groupcol .small{color:#f3f4f6}
.sheet th.groupcol button.quiet{color:#fff;border-color:#ffffff88}
.sheet th.groupcol button[aria-pressed=true]{background:#fff;color:#14161a}
.rowname{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.rowname.start{justify-content:flex-start}
.mark{flex:none}
.listcell .view{cursor:text;min-height:40px;border:1px solid transparent;border-radius:8px;padding:4px}
.listcell .view:hover{border-color:var(--accent)}
.listcell ul{margin:0;padding-left:18px}.listcell li{margin:0 0 2px}
.listcell .empty{color:var(--muted);font-size:13px}.listcell .proofline{font-size:12px;color:var(--muted);margin-top:4px}
.listcell .editor{display:none}.listcell.editing .view{display:none}.listcell.editing .editor{display:block}
.listcell textarea{margin:0 0 6px;resize:vertical}.listcell input{width:100%;min-width:0}
#personaGrid th input,#personaGrid th textarea{width:100%;margin:0 0 6px}
#personaGrid tr.required td{background:color-mix(in srgb,#f7b46a 9%,transparent)}
#pains table input{width:100%}#pains th{text-align:left;font-size:13px;color:var(--muted);padding:4px 6px}
#checks h3{font-size:15px;margin:12px 0 4px}
#filing select{max-width:100%}
.tree,.tree ul{list-style:none;margin:0;padding:0}.tree ul{padding-left:22px;border-left:1px solid var(--line);margin-left:8px}
.folderline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 0}
.folderline details summary{font-weight:400;font-size:13px;color:var(--muted)}
.tree ul.docs{border-left:0}
.doc{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding:8px 0}
.doc .line select{max-width:260px}
@media (max-width:640px){.sheet table th.groupcol{width:140px;min-width:140px;max-width:140px;font-size:13px}.doc .line select{max-width:100%}}
body[data-view=tabelle] .grid thead th{background:#8cbcff;color:#14161a}
body[data-view=tabelle] .grid thead th .small,body[data-view=tabelle] .grid thead th .warn{color:#1f2937}
body[data-view=tabelle] .grid thead th button.quiet{color:#14161a;border-color:#1f293766}
body[data-view=tabelle] .grid thead th button:not(.quiet){background:#14161a;border-color:#14161a;color:#fff}
body[data-view=tabelle] .grid th.question{background:#767a81;color:#fff}
body[data-view=tabelle] .grid thead th.question{background:#767a81;color:#fff}
body[data-view=tabelle] .grid th.question summary,body[data-view=tabelle] .grid th.question .small{color:#f3f4f6}
body[data-view=tabelle] .grid th.question button.quiet{color:#fff;border-color:#ffffff88}
.rownr{min-width:20px;flex:none}
.statement.bullets{display:block}.statement.bullets>span{display:list-item;margin-left:16px}
.markrow{display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:4px;margin:4px 0}
.markpick{display:flex;flex-wrap:wrap;gap:6px}
.markpick button{padding:3px;min-height:34px;opacity:.45;border-radius:999px;line-height:0}
.markpick button[aria-pressed=true]{opacity:1;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
#columns{margin:8px 0}
.columnpick{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid var(--line);border-left:8px solid var(--c);border-radius:8px;background:var(--panel)}
.columnpick button.quiet{min-height:28px;padding:0 8px}
body[data-view=profil] select{max-width:100%;min-width:0}
body[data-view=profil] .line>label,body[data-view=profil] .columnpick{max-width:100%;min-width:0}
body[data-view=profil] label.check select{flex:1;min-width:0}

/* neben dem linken Menue */
body.withnav header{min-height:47px;align-items:center;flex-wrap:wrap}

/* Zweck der Aufnahme */
fieldset.purpose{border:1px solid var(--line);border-radius:10px;margin:12px 0;padding:8px 12px}fieldset.purpose legend{font-weight:600;padding:0 6px}
fieldset.purpose .check{align-items:flex-start;font-weight:400;margin:6px 0}fieldset.purpose .check input{margin-top:4px;min-width:0}
#evalBanner{border-color:var(--accent);border-width:2px}
/* Fragebogen (UEQ, SUS) */
table.ueq,table.sus{width:100%;border-collapse:collapse;margin:12px 0}
table.ueq tr:nth-child(odd),table.sus tr:nth-child(odd){background:var(--bg)}
table.ueq td,table.sus td,table.sus th{padding:7px 6px;vertical-align:middle}
table.ueq td.l{text-align:right;width:26%}table.ueq td.r{text-align:left;width:26%}table.ueq td.n{color:var(--muted);font-size:12px;width:28px}
table.ueq td.c,table.sus td.c,table.sus th.c{text-align:center}
table.ueq input[type=radio],table.sus input[type=radio]{width:20px;height:20px;margin:0}
table.sus td.l{max-width:420px}
@media (max-width:700px){table.ueq td.l,table.ueq td.r{font-size:13px;width:auto}table.ueq td,table.sus td{padding:6px 2px}}

/* Aufnahme hochladen: kompakt */
#uploadCard{padding:12px 16px}#uploadCard h2{font-size:15px;margin:0 0 8px}
.qform .qrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 6px}
.qform .qlabel{font-size:13px;font-weight:600;min-width:52px;color:var(--muted)}
.qform label{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:400;margin:0}
.qform input[type=radio],.qform input[type=checkbox]{width:auto;height:auto;margin:0;padding:0}
.qform select,.qform input:not([type=radio]):not([type=checkbox]):not([type=file]){width:auto;min-width:0;padding:5px 8px;font-size:14px}
.qform #quickName{width:200px}.qform select{max-width:240px}
.qform input[type=file]{width:auto;height:auto;padding:0;font-size:13px;border:0;background:none;box-shadow:none}
.qform button{padding:6px 14px;font-size:14px}.qform .note{margin:4px 0 0}
/* Beispiele und Vorschau */
.exbox{margin:0 0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:8px 14px}
.exbox summary{cursor:pointer;font-weight:600;font-size:14px}.exbox .expart{border-top:1px solid var(--line);padding:8px 0}.exbox .expart:first-child{border-top:0}
.exbox h3{font-size:14px;margin:4px 0}.exbox p{margin:4px 0}.eximg{max-width:100%;max-height:420px;border:1px solid var(--line);border-radius:6px;margin:6px 0}
.exbadge{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:1px 10px;font-size:12px;font-weight:600}
.exbadge.fehlt{border-color:#b45309;color:#b45309}.exbadge.euer{border-color:#15803d;color:#15803d}.exbadge.entwurf,.exbadge.live{border-color:var(--accent);color:var(--accent)}
#exTable{width:100%;border-collapse:collapse}#exTable td,#exTable th{padding:8px 6px;vertical-align:top;border-top:1px solid var(--line);text-align:left}
/* Beobachtung und Fokusgruppe */
.qgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 14px;margin:8px 0}
#erhebung .card{margin-bottom:12px}#erhebung textarea{width:100%}
.notelist{list-style:none;margin:8px 0;padding:0}.notelist li{border-top:1px solid var(--line);padding:8px 0}.notelist .time{font-variant-numeric:tabular-nums;font-weight:600;min-width:48px}
#erhebung table{width:100%;border-collapse:collapse}#erhebung table td{padding:8px 6px;border-top:1px solid var(--line)}
/* Eigene Umfragen */
#own .card{margin-bottom:12px}#own textarea{width:100%}#own table{width:100%;border-collapse:collapse}#own table td{padding:8px 6px;border-top:1px solid var(--line)}
#sQuestions{padding-left:20px}#sQuestions li{margin:10px 0}.sq{border:0;margin:14px 0;padding:0}.sq legend{font-weight:600;margin-bottom:6px}.sc{display:inline-flex;align-items:center;gap:4px;margin-right:12px}
.sq input[type=radio],.sq input[type=checkbox]{width:auto;height:auto;margin:0;padding:0}.sq .check{display:flex;align-items:center;gap:8px;margin:4px 0;font-weight:400}.sq .scale{display:flex;flex-wrap:wrap;gap:6px 10px}.sq .scale .sc{margin-right:0;padding:6px 10px;border:1px solid var(--line);border-radius:8px}
#erhebung input[type=checkbox],#own input[type=checkbox]{width:auto;height:auto;margin:0}
/* Ergebnisseite */
#results .card{margin-bottom:12px}#results table{width:100%;border-collapse:collapse}#results table td,#results table th{padding:6px;border-top:1px solid var(--line);text-align:left}
.twocols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;align-items:start}@media (max-width:1000px){.twocols{grid-template-columns:1fr}}
#results .methods{list-style:none;margin:6px 0;padding:0}#results .methods li{padding:4px 0}.quotes{list-style:none;margin:6px 0;padding:0}.quotes li{border-top:1px solid var(--line);padding:6px 0}.cat{margin:8px 0}.cat summary{cursor:pointer;font-weight:600}
