/* AI LAB · UPSCALE (AILAB-UPSCALER-T2, 02.10.2026). Nur Tokens aus css/app.css
   (--panel #1b1d2a, --panel-2 #232537, --input #2d2e40, --radius 18px, --radius-s 12px,
   --font Outfit) und der Lab-Ueberschreibung aus css/ailab-design.css (body:has(.ald):
   --ink #f5f5f5, --line #343434, --teal/--mint #94FAE2). Keine eigene Farbwelt. */
.alu { display: grid; gap: 18px; font-family: var(--font); color: var(--ink); }
.alu-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.alu-head h2 .alu-icon { width: 24px; height: 24px; color: var(--teal); }
.alu-sub { margin: 6px 0 0; color: #a0a7bf; line-height: 1.6; }
.alu-body { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.alu-controls { display: grid; gap: 14px; background: var(--panel); border: 1px solid rgba(190,202,230,.09); border-radius: var(--radius); padding: 18px; }
.alu-icon { width: 20px; height: 20px; flex: none; }
.alu-drop { position: relative; display: block; border: 1.5px dashed rgba(190,202,230,.22); border-radius: var(--radius-s); background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s; }
.alu-drop:hover, .alu-drop.is-over { border-color: var(--teal); background: rgba(148,250,226,.06); }
.alu-drop[aria-disabled="true"] { cursor: progress; opacity: .7; }
.alu-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.alu-drop-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; }
.alu-drop-empty .alu-icon { width: 28px; height: 28px; color: var(--teal); }
.alu-drop-empty strong { font-size: 15px; }
.alu-drop-empty span { color: #a0a7bf; font-size: 12px; line-height: 1.5; }
.alu-drop-file { display: flex; align-items: center; gap: 12px; padding: 10px; }
.alu-drop-file img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: var(--input); }
.alu-drop-file div { display: grid; gap: 3px; min-width: 0; }
.alu-drop-file strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alu-drop-file span { color: #a0a7bf; font-size: 12px; }
.alu-drop-file .alu-replace { color: var(--teal); }
.alu-group { display: grid; gap: 8px; }
.alu-label { color: #b4bdd3; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.alu-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.alu-seg-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alu-seg button { display: grid; gap: 3px; align-content: start; min-height: 44px; padding: 10px; text-align: left; border-radius: var(--radius-s); background: var(--panel-2); color: var(--ink); border: 1px solid transparent; font: inherit; cursor: pointer; }
.alu-seg-f button { text-align: center; justify-items: center; align-content: center; }
.alu-seg button strong { font-size: 14px; }
.alu-seg button span { color: #a0a7bf; font-size: 11px; line-height: 1.4; }
.alu-seg button[aria-checked="true"] { border-color: rgba(148,250,226,.45); background: rgba(148,250,226,.08); color: var(--teal); }
.alu-seg button:disabled { opacity: .45; }
.alu-out { color: #a0a7bf; font-size: 13px; }
.alu-out b { color: var(--ink); font-weight: 600; }
.alu-cost { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); background: var(--input); color: #c9cde0; font-size: 12px; line-height: 1.5; }
.alu-cost .alu-icon { width: 16px; height: 16px; color: var(--teal); margin-top: 1px; }
.alu-cost b { color: var(--ink); }
.alu-go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 0; border-radius: var(--radius-s); background: var(--teal); color: #10131c; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.alu-go:hover:not(:disabled) { filter: brightness(1.06); }
.alu-go:disabled { opacity: .6; cursor: progress; }
.alu-go[aria-disabled="true"][data-pricing-pending="true"] { filter: grayscale(1); cursor: not-allowed; }
.alu-msg:empty { display: none; }
.alu-msg { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: var(--radius-s); background: var(--panel-2); }
.alu-msg.is-error { color: #ffb4bc; box-shadow: inset 3px 0 0 #ff5d6c; }
.alu-msg.is-warn { color: #ffe2a8; box-shadow: inset 3px 0 0 #f4b740; }
.alu-msg.is-ok { color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.alu-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(148,250,226,.35); background: transparent; color: var(--teal); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.alu-link .alu-icon { width: 14px; height: 14px; }
.alu-stage { min-height: 360px; display: grid; background: var(--panel); border: 1px solid rgba(190,202,230,.09); border-radius: var(--radius); padding: 14px; }
.alu-empty { display: grid; place-content: center; justify-items: center; gap: 8px; color: #a0a7bf; text-align: center; }
.alu-empty .alu-icon { width: 36px; height: 36px; color: rgba(148,250,226,.6); }
.alu-preview, .alu-progress { position: relative; display: grid; place-items: center; min-height: 330px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg); }
.alu-preview img, .alu-progress img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.alu-progress img { filter: blur(2px) brightness(.55); }
.alu-progress-card { position: absolute; display: grid; gap: 8px; width: min(320px, 86%); padding: 16px; border-radius: var(--radius-s); background: rgba(20,20,30,.86); text-align: center; }
.alu-progress-card span { color: #a0a7bf; font-size: 12px; }
.alu-bar { height: 6px; border-radius: 6px; background: var(--input); overflow: hidden; }
.alu-bar i { display: block; height: 100%; border-radius: 6px; background: var(--teal); transition: width .2s; }
.alu-bar.is-indeterminate i { animation: aluSlide 1.3s ease-in-out infinite; }
@keyframes aluSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.alu-tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(20,20,30,.78); color: var(--ink); font-size: 11px; }
.alu-compare { position: relative; width: 100%; max-height: 56vh; margin: 0 auto; border-radius: var(--radius-s); overflow: hidden; background: var(--bg); touch-action: pan-y; }
.alu-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.alu-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--alu-pos)) 0 0); }
.alu-before img { image-rendering: auto; }
.alu-tag-r { left: auto; right: 10px; color: var(--teal); }
.alu-handle { position: absolute; top: 0; bottom: 0; left: var(--alu-pos); width: 2px; margin-left: -1px; background: var(--teal); box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.alu-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.alu-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.alu-range:focus-visible + .alu-handle, .alu-compare:focus-within .alu-handle { box-shadow: 0 0 0 3px rgba(148,250,226,.35); }
.alu-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.alu-result > div:first-child { display: grid; gap: 3px; }
.alu-result span { color: #a0a7bf; font-size: 12px; }
.alu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.alu-dl, .alu-again { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-s); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.alu-dl { background: var(--teal); color: #10131c; border: 0; }
.alu-again { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.alu-dl .alu-icon, .alu-again .alu-icon { width: 17px; height: 17px; }
@media (max-width: 1100px) { .alu-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ald-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .alu-head h2 { font-size: 24px; }
  .alu-controls { padding: 14px; }
  .alu-seg button span { display: none; }
  .alu-stage { min-height: 260px; padding: 10px; }
  .alu-preview, .alu-progress { min-height: 240px; }
  .alu-actions, .alu-dl, .alu-again { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .alu *, .alu *::before, .alu *::after { animation: none !important; transition: none !important; } }

/* Video uses the same panel, spacing and controls as image upscales. */
.alu-preview video, .alu-progress video { display: block; max-width: 100%; max-height: 62vh; object-fit: contain; }
.alu-progress video { filter: blur(2px) brightness(.55); }
.alu-video-result { display: block; width: 100%; max-height: 62vh; margin: auto; border-radius: var(--radius-s); background: var(--bg); }
.alu-seg button:focus-visible, .alu-drop:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
