:root{--bg:#f5efe4;--surface:#fffbf4;--text:#2a1d16;--muted:#6b5d52;--accent:#8c2f1f;--accent-text:#fff;--accent-soft:#f2dcd3;--border:#ddd0bd;--danger:#a3271a;--danger-strong:#c0392b;--focus-ring:#8c2f1f;--media-bg:#000;--ok:#2e6b3a;--ok-text:#fff;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#16120f;--surface:#221c17;--text:#efe6da;--muted:#b3a597;--accent:#e58f75;--accent-text:#23110b;--accent-soft:#3d2620;--border:#3d332b;--danger:#f2907e;--danger-strong:#c0392b;--focus-ring:#e58f75;--ok:#8fd19e;--ok-text:#10240f;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#16120f;--surface:#221c17;--text:#efe6da;--muted:#b3a597;--accent:#e58f75;--accent-text:#23110b;--accent-soft:#3d2620;--border:#3d332b;--danger:#f2907e;--danger-strong:#c0392b;--focus-ring:#e58f75;--ok:#8fd19e;--ok-text:#10240f;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[hidden]{display:none!important}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}#root{height:100%}button,input,textarea,select{font:inherit;color:inherit}button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:8px 16px;display:inline-flex}@media (hover:hover) and (pointer:fine){button:hover:not(:disabled){border-color:var(--accent)}}button:active:not(:disabled){filter:brightness(.95);transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.icon-button{background:0 0;border:none;min-width:44px;padding:0;font-size:1.3rem}input,textarea,select{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;min-height:44px;padding:10px 12px;font-size:16px}label{flex-direction:column;gap:4px;font-weight:600;display:flex}.muted{color:var(--muted)}.form-error{color:var(--danger);margin:8px 0;font-weight:600}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.spread{justify-content:space-between}.app{left:0;right:0;top:var(--app-top,0);height:var(--app-height,100%);flex-direction:column;display:flex;position:fixed}.app-header{padding:calc(env(safe-area-inset-top) + 16px) 16px 8px;flex-shrink:0;align-items:center;gap:10px;display:flex}.app-header h1{text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:1.75rem;overflow:hidden}.header-icon{border-radius:7px;flex-shrink:0}.content{overscroll-behavior-y:contain;flex:1;min-height:0;padding:8px 16px 24px;overflow-y:auto}.update-banner{background:var(--accent-soft);border-color:var(--accent);flex-shrink:0;margin:0 16px 8px;font-weight:600}.login,.splash{height:100%;padding:calc(env(safe-area-inset-top) + 48px) 16px 32px;flex-direction:column;align-items:center;display:flex;overflow-y:auto}.login img,.splash img{border-radius:16px}.login h1{margin:8px 0 24px}.login-form{flex-direction:column;gap:16px;width:100%;max-width:360px;display:flex}.setup-hint p{margin:0}.technik-test{max-width:960px;margin:0 auto}.technik-test section{margin-bottom:28px}.technik-test h2{margin:8px 0 12px;font-size:1.1rem}.technik-test h2 small{color:var(--muted);font-weight:400}.media-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}@media (width>=720px){.media-list{grid-template-columns:repeat(auto-fill,minmax(420px,1fr))}}.media-item{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:6px;min-width:0;padding:12px;display:flex}.media-item audio{width:100%;height:44px;display:block}.media-item video{aspect-ratio:16/9;background:var(--media-bg);border-radius:8px;width:100%}.media-stats{margin:0;font-weight:600}.media-name{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:.8rem}.notice{border:1px solid var(--border);background:var(--surface);border-radius:12px;max-width:520px;margin:24px auto;padding:16px}.notice p{margin:0 0 8px}.sheet-backdrop{z-index:10;background:#0006;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:520px;max-height:90%;padding:16px 16px calc(env(safe-area-inset-bottom) + 16px);background:var(--surface);border-radius:16px 16px 0 0;flex-direction:column;gap:12px;display:flex;overflow-y:auto}.sheet h2{margin:0}.sheet h3{margin:12px 0 0;font-size:1rem}.release ul{margin:4px 0;padding-left:20px}.release p{margin:4px 0}.release-head{font-weight:600}.history summary{cursor:pointer;align-items:center;min-height:44px;display:flex}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.small{font-size:.85rem}textarea{resize:vertical;line-height:1.4}.tab-bar{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);flex-shrink:0;display:flex}.tab{min-height:56px;color:var(--muted);font:inherit;background:0 0;border:none;border-radius:0;flex-direction:column;flex:1;align-items:center;gap:2px;padding:8px 0;font-size:.8rem;line-height:18px;display:flex;position:relative}.tab[aria-current=page]{color:var(--accent);font-weight:600}.tab-icon{font-size:1.3rem;line-height:28px}.keyboard-open .tab-bar{display:none}.speech-form{flex-direction:column;gap:12px;max-width:720px;margin:0 auto;display:flex}.speech-form h2{margin:0;font-size:1.2rem}.speech-form h3{margin:8px 0;font-size:1rem}.speech-form p{margin:0}select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 20px),calc(100% - 14px);background-repeat:no-repeat;background-size:6px 6px;padding-right:40px}.speech-form>.primary{margin-top:8px}.who{border:none;flex-direction:column;gap:12px;min-width:0;margin:0;padding:0;display:flex}.who legend{margin-bottom:8px;padding:0;font-weight:600}.figure-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.figure-card{border-width:2px;flex-direction:column;gap:4px;min-width:0;padding:6px}.figure-card img,.figure-icon{aspect-ratio:16/9;object-fit:cover;background:var(--accent-soft);border-radius:6px;width:100%}.figure-icon{justify-content:center;align-items:center;font-size:1.8rem;display:flex}.figure-card span:last-child{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.figure-card[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.two-columns{gap:12px;display:grid}@media (width>=560px){.two-columns{grid-template-columns:1fr 1fr}}button.quiet{color:var(--danger);background:0 0;border-color:#0000;align-self:flex-start}.drop-zone{border:2px dashed var(--border);border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.drop-zone.over{border-color:var(--accent);background:var(--accent-soft)}.drop-zone p{margin:0}.file-button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;flex-direction:row;justify-content:center;align-items:center;min-height:44px;padding:8px 16px;font-weight:400;display:inline-flex}.file-button:focus-within{outline:3px solid var(--focus-ring);outline-offset:2px}.link-row{gap:8px;display:flex}.link-row input{flex:1;min-width:0}.photo-picked{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.photo-preview{aspect-ratio:16/9;background:var(--media-bg);border-radius:8px;width:100%;max-width:480px}.read-aloud-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;display:flex}.read-aloud{border-left:4px solid var(--accent);background:var(--surface);margin:0;padding:8px 12px;font-size:1.05rem;line-height:1.5}button.recording{background:var(--danger-strong);border-color:var(--danger-strong);color:#fff;font-weight:600}.recorded audio{width:100%;height:44px;display:block}.speeches{max-width:960px;margin:0 auto}.speech-list{gap:16px;margin:0;padding:0;list-style:none;display:grid}@media (width>=900px){.speech-list{grid-template-columns:1fr 1fr}}.speech-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:8px;min-width:0;padding:12px;display:flex}.speech-card video,.speech-image{aspect-ratio:16/9;background:var(--media-bg);object-fit:contain;border-radius:8px;width:100%}.speech-card h2{margin:0;font-size:1.1rem}.speech-card p{margin:0}.speech-text{white-space:pre-wrap;overflow-wrap:anywhere}.status-line{flex-direction:column;gap:6px;margin:0;display:flex}p.status-line{display:block}.status-line p{margin:0}.status-line progress{width:100%;height:10px;accent-color:var(--accent)}.chip{background:var(--accent-soft);color:var(--text);border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:600;display:inline-block}.chip.running{background:var(--accent);color:var(--accent-text)}.chip.done{background:var(--ok);color:var(--ok-text)}.chip.failed{background:var(--danger-strong);color:#fff}.button-link{border:1px solid var(--border);min-height:44px;color:inherit;border-radius:10px;align-items:center;padding:8px 16px;text-decoration:none;display:inline-flex}.waiting-note{color:var(--danger);margin-top:4px;font-size:.9rem;display:block}.segmented{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:4px;margin-bottom:16px;padding:4px;display:flex}.segmented button{min-height:44px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1}.segmented button small{color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);font-weight:600}.segmented button[aria-pressed=true] small{color:inherit}.segmented button:active{opacity:.8}.segmented button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}@media (hover:hover){.segmented button[aria-pressed=false]:hover{background:var(--accent-soft)}}.rating{border-top:1px solid var(--border);gap:8px;margin-top:12px;padding-top:12px;display:grid}.rating-row{align-items:center;gap:2px;display:grid}@media (width>=600px){.rating-row{grid-template-columns:1fr auto;gap:12px}}.rating-label{margin:0;font-weight:600}.rating-label small{color:var(--muted);font-weight:400;display:block}.stars{display:flex}.star{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;font-size:1.6rem;line-height:1}.star.on{color:var(--accent)}.star:active{background:var(--accent-soft)}.star:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}@media (hover:hover){.star:hover{background:var(--accent-soft)}}.rating-error{color:var(--danger);margin:0}.images{max-width:960px;margin:0 auto}.image-form{flex-direction:column;gap:12px;margin-bottom:24px;display:flex}.image-form textarea{width:100%;min-height:88px}.image-form .segmented{margin-bottom:0}.image-form>.primary{min-height:48px}.shape-icon{vertical-align:-2px;border:2px solid;border-radius:3px;margin-right:8px;display:inline-block}.shape-icon.quadrat{width:14px;height:14px}.shape-icon.hoch{width:11px;height:16px}.shape-icon.quer{width:18px;height:11px}.image-jobs{gap:24px;margin:0;padding:0;list-style:none;display:grid}.image-job{flex-direction:column;gap:8px;min-width:0;display:flex}.image-job:focus{outline:none}.image-job:focus-visible{outline:3px solid var(--focus-ring);outline-offset:4px;border-radius:10px}.image-head{align-items:center;gap:10px;display:flex}.source-thumb{object-fit:cover;border:1px solid var(--border);border-radius:8px;flex:none;width:44px;height:44px}.image-prompt{overflow-wrap:anywhere;margin:0;font-weight:600}.image-grid{grid-template-columns:1fr 1fr;gap:6px;display:grid}@media (width>=720px){.image-grid.quadrat,.image-grid.hoch{grid-template-columns:repeat(4,1fr)}}.image-tile{background:var(--accent-soft);aspect-ratio:1;cursor:zoom-in;border:0;border-radius:10px;width:100%;min-height:0;padding:0;display:block;position:relative;overflow:hidden}.image-grid.hoch .image-tile{aspect-ratio:768/1344}.image-grid.quer .image-tile{aspect-ratio:1344/768}.image-tile img{object-fit:cover;width:100%;height:100%;display:block}.variant-note{color:#fff;background:#0000009e;border-radius:999px;padding:2px 8px;font-size:.8rem;position:absolute;bottom:6px;left:6px}.image-grid.single{grid-template-columns:minmax(0,480px)}.image-tile:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.image-tile.pending{cursor:default;background:linear-gradient(100deg, var(--accent-soft) 30%, var(--surface) 50%, var(--accent-soft) 70%);background-size:300% 100%;animation:1.4s linear infinite shimmer}.image-tile.pending.failed{background:var(--border);animation:none}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){.image-tile.pending{animation:none}}.viewer{z-index:20;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);background:#000000e0;flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex;position:fixed;inset:0}.viewer img{object-fit:contain;border-radius:8px;flex:auto;max-width:100%;min-height:0}.viewer .form-error{color:#ffb4a6}.viewer-refine{gap:8px;width:min(100%,560px);display:flex}.viewer-refine input{flex:auto;min-width:0}.viewer-refine button{background:var(--surface);color:var(--text);flex:none}.source-picked{align-items:center;gap:12px;display:flex}.source-picked img{object-fit:cover;border:1px solid var(--border);border-radius:8px;width:64px;height:64px}.source-picked span{flex:auto}.source-pick{flex-direction:column;gap:8px;display:flex}.source-pick-title{margin:0;font-weight:600}.image-form .add-source{align-self:flex-start}.viewer-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.viewer-actions .button-link,.viewer-actions button:not(.primary){background:var(--surface);color:var(--text)}.media-title{overflow-wrap:anywhere;margin:0;font-size:1rem}.media-title small{color:var(--muted);margin-top:2px;font-size:.85rem;font-weight:400;display:block}.photo-list{flex-wrap:wrap;gap:8px;margin:0 0 8px;padding:0;list-style:none;display:flex}.photo-list li{width:140px;position:relative}.photo-list img{aspect-ratio:16/9;object-fit:cover;border-radius:8px;width:100%;display:block}.photo-list button{color:#fff;background:#0009;border-color:#0000;border-radius:50%;min-width:36px;min-height:36px;padding:0;position:absolute;top:4px;right:4px}.person-panel{flex-direction:column;align-items:flex-start;gap:12px;margin-top:12px;display:flex}.person-panel>*{max-width:100%}.photo-choice{flex-wrap:wrap;gap:8px;display:flex}.photo-option{border:2px solid var(--border);background:var(--surface);border-radius:10px;width:120px;padding:3px}.photo-option img{aspect-ratio:16/9;object-fit:cover;border-radius:6px;width:100%;display:block}.photo-option[aria-pressed=true]{border-color:var(--accent);background:var(--accent)}.later-voice{border:1px solid var(--border);background:var(--surface);border-radius:12px;width:100%;padding:12px}.later-voice h3{margin:0 0 8px}.later-voice-hint{margin:0}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip-button{border-radius:18px;min-height:36px;padding:4px 12px;font-size:.9rem}.chip-button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.questions{border:1px solid var(--accent);background:var(--surface);border-radius:12px;flex-direction:column;gap:12px;padding:12px;display:flex}.question{flex-direction:column;gap:8px;display:flex}.question-text{margin:0;font-weight:600}.question input{width:100%}.understood summary{min-height:32px;color:var(--muted);cursor:pointer}.understood p{color:var(--muted);overflow-wrap:anywhere;margin:4px 0 0;font-size:.9rem}.again{flex-direction:column;gap:8px;display:flex}.again label{flex-direction:column;gap:6px;font-weight:600;display:flex}.again textarea{width:100%;font-weight:400}.marks{margin-top:6px}.marks select{flex:10rem;width:auto}.say-as{border-left:4px solid var(--accent);background:var(--surface);margin-top:8px;padding:8px 12px}.crop-picker{gap:8px;margin-top:8px;display:grid}.crop-area{touch-action:none;cursor:crosshair;line-height:0;position:relative}.crop-area img{border-radius:8px;width:100%}.crop-square{border:3px solid var(--accent);pointer-events:none;border-radius:8px;position:absolute;box-shadow:0 0 0 9999px #00000073}.crop-area{border-radius:8px;overflow:hidden}
