/* Geräte-Inventur. Eine Spalte fürs Handy, der Ring ist das Herz der Startseite; ab Tablet Ring links,
   Trakte rechts. Farbe gibt es nur im Ring (ein Farbton je Trakt), alles andere bleibt ruhig. */
:root {
  --bg: oklch(0.972 0.005 255);
  --surface: oklch(0.995 0.002 255);
  --surface-2: oklch(0.944 0.007 255);
  --fg: oklch(0.21 0.015 262);
  --muted: oklch(0.5 0.018 262);
  --line: oklch(0.895 0.009 262);
  --ink: oklch(0.23 0.02 262);
  --on-ink: oklch(0.985 0.003 255);
  --danger: oklch(0.55 0.19 25);
  --paper: oklch(0.985 0.004 95);
  --paper-ink: oklch(0.22 0.01 260);
  --c0: oklch(0.67 0.17 25);
  --c1: oklch(0.72 0.16 55);
  --c2: oklch(0.79 0.15 88);
  --c3: oklch(0.74 0.17 130);
  --c4: oklch(0.66 0.15 158);
  --c5: oklch(0.67 0.11 200);
  --c6: oklch(0.66 0.13 238);
  --c7: oklch(0.58 0.17 268);
  --c8: oklch(0.6 0.18 302);
  --c9: oklch(0.66 0.19 350);
  --font-display: "Bricolage Grotesque Variable", "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.165 0.008 262);
    --surface: oklch(0.21 0.01 262);
    --surface-2: oklch(0.255 0.012 262);
    --fg: oklch(0.95 0.004 255);
    --muted: oklch(0.71 0.015 262);
    --line: oklch(0.31 0.012 262);
    --ink: oklch(0.95 0.004 255);
    --on-ink: oklch(0.18 0.01 262);
    --danger: oklch(0.72 0.16 25);
    --c0: oklch(0.72 0.17 25);
    --c1: oklch(0.76 0.16 55);
    --c2: oklch(0.83 0.15 88);
    --c3: oklch(0.79 0.17 130);
    --c4: oklch(0.72 0.15 158);
    --c5: oklch(0.74 0.11 200);
    --c6: oklch(0.72 0.13 238);
    --c7: oklch(0.68 0.16 268);
    --c8: oklch(0.7 0.17 302);
    --c9: oklch(0.72 0.18 350);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html.lock, html.lock body { overflow: hidden }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg) }
button { font: inherit; color: inherit }
img { max-width: 100% }
:focus-visible { outline: 3px solid var(--c7); outline-offset: 2px }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 4px 48px;
}
.wrap.raum { padding-bottom: 170px }
.loading { color: var(--muted); padding-top: 48px; text-align: center }

/* Kopf */
.brand { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; flex-wrap: wrap }
.brand-name { font-family: var(--font-display); font-weight: 760; font-size: clamp(24px, 6.8vw, 30px); letter-spacing: -.02em; margin: 0; line-height: 1.1 }
.me-chip { flex: none; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums }
.switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px }
.switch button { border: 0; background: transparent; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; min-height: 36px; cursor: pointer }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink) }

.start-grid { display: grid; gap: 4px }
@media (min-width: 860px) {
  .start-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start }
  .start-grid .hero { position: sticky; top: 24px }
}
.hero { display: grid; justify-items: center; padding-block: 22px 6px }
.hero .ringwrap { width: min(100%, 310px, 42dvh) }
@media (min-width: 860px) { .hero .ringwrap { width: min(100%, 400px) } }

/* Ring */
.ringwrap { position: relative; width: min(100%, 310px); aspect-ratio: 1; container-type: inline-size; max-width: 100% }
.ring { display: block; width: 100%; height: 100%; overflow: visible; transition: opacity .8s ease .3s }
.ring path { fill: none; stroke: var(--c); stroke-width: 18; stroke-linecap: round }
.ring .trk { stroke-opacity: .16 }
.ring .sta { stroke-opacity: .42; transition: stroke-dashoffset 1.4s cubic-bezier(.22, .8, .2, 1), opacity .25s }
.ring .don { transition: stroke-dashoffset 1.4s cubic-bezier(.22, .8, .2, 1), opacity .25s }
.ring .seg.hl .don { animation: hl 1.7s ease .15s }
@keyframes hl { 0%, 100% { stroke-width: 18 } 40% { stroke-width: 25 } }
.closed-ring {
  position: absolute; inset: 5%; border-radius: 50%;
  background: conic-gradient(var(--c0), var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7), var(--c8), var(--c9), var(--c0));
  -webkit-mask: radial-gradient(closest-side, transparent 86.2%, white 86.8%, white 99.3%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 86.2%, white 86.8%, white 99.3%, transparent 100%);
  opacity: 0; transform: scale(.94) rotate(-20deg);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .9, .2, 1.15);
}
.is-closed .closed-ring { opacity: 1; transform: none; animation: breathe 3.4s ease-in-out 1.4s infinite }
.is-closed .ring { opacity: 0 }
@keyframes breathe { 50% { transform: scale(1.025); filter: saturate(1.25) brightness(1.06) } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none }
.ring-num { font-family: var(--font-display); font-weight: 800; font-size: 64px; font-size: 23cqw; line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums }
.ring-of { font-size: 14px; font-size: 4.7cqw; color: var(--muted); margin-top: 6px }
.ring-sub { margin-top: 10px; font-size: 12px; font-size: 3.9cqw; font-weight: 650; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); white-space: nowrap }
.ring-sub:empty { display: none }

.mini { display: block; flex: none }
.mini circle { fill: none; stroke: var(--c); stroke-width: 5 }
.mini .trk { stroke-opacity: .18 }
.mini .sta { stroke-opacity: .45 }

/* Startseite */
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 28px 0 12px; text-wrap: balance }
.resume {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px;
  padding: 12px 12px 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-align: left; cursor: pointer; margin-top: 10px; transition: transform .15s;
}
.resume-text { display: grid; min-width: 0 }
.resume-k { font-size: 13px; color: var(--muted) }
.resume-room { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere }
.resume-meta { font-size: 13px; color: var(--muted) }
.resume .i { color: var(--muted) }

.trakte { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px }
.trakt {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s;
}
.trakt:active, .room:active, .klasse:active, .resume:active { transform: scale(.96) }
.tring { position: relative; width: min(100%, 58px); aspect-ratio: 1 }
.tring .mini { width: 100%; height: 100% }
.tring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em }
.tring b.small { font-size: 13px; font-weight: 700 }
.trakt-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums }
@media (min-width: 600px) { .tring { width: 64px } .tring b { font-size: 24px } }

.linkbtn { border: 0; background: transparent; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 0; min-height: 44px; cursor: pointer; margin-top: 10px }
.textbtn { border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: inherit; cursor: pointer }
.other { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line) }
.other label { font-size: 14px; color: var(--muted) }
.other-row { display: flex; gap: 8px }
.other input { flex: 1; min-width: 0; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font-size: 17px; color: var(--fg) }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 26px 0 0; max-width: 46ch }
.privacy .i { width: 18px; height: 18px; margin-top: 1px }

/* Kopfleiste der Unterseiten */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15;
  background: var(--bg);
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topbar-in {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 4px; min-height: 52px; display: flex; align-items: center;
}
.back { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; font-size: 17px; color: var(--fg); min-height: 44px; padding: 0 10px 0 0; margin-left: -6px; cursor: pointer }
.back .i { width: 24px; height: 24px }

.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 4px }
.title { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; margin: 0 }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 15px }

/* Räume */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px }
.room {
  position: relative; min-height: 62px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  cursor: pointer; display: grid; place-items: center; transition: transform .15s;
}
.room.is-done {
  background: color-mix(in oklch, var(--c) 24%, var(--surface));
  border-color: color-mix(in oklch, var(--c) 50%, var(--surface));
}
.room-state { position: absolute; top: 8px; right: 8px; display: grid }
.room-state .i { width: 15px; height: 15px; stroke-width: 2.4 }
.dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--c) }
.room-mine { position: absolute; left: 9px; top: 7px; font: 650 11px var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: var(--muted) }
.legend span { display: inline-flex; align-items: center; gap: 7px }
.lg { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface) }
.lg.done { background: color-mix(in oklch, var(--c) 24%, var(--surface)); border-color: color-mix(in oklch, var(--c) 50%, var(--surface)) }

/* Raum */
.roomhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px }
.room-code { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere }
.room-code.long { font-size: 36px }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap }
.pill.is-started { color: var(--fg) }
.pill.is-done { background: color-mix(in oklch, var(--c) 26%, var(--surface)); color: var(--fg) }
.pill .i { width: 15px; height: 15px; stroke-width: 2.4 }

.klassen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
@media (min-width: 640px) { .klassen { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.klasse {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px; min-height: 100px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left; transition: transform .15s;
}
.klasse .i { width: 32px; height: 32px; stroke-width: 1.5 }
.klasse-name { font-weight: 620; font-size: 16px; line-height: 1.2; hyphens: manual }
.badge { position: absolute; top: 10px; right: 10px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums }

.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
@media (min-width: 640px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.shot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 4px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line) }
.shot.new { animation: slidein .4s cubic-bezier(.2, .9, .3, 1) }
@keyframes slidein { from { opacity: 0; transform: translateY(10px) } }
.shot-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; max-width: 100%; background: var(--surface-2); color: var(--muted) }
.shot-text { display: grid; gap: 1px; min-width: 0 }
.shot-text b { font-weight: 620 }
.shot-text span { font-size: 13px; color: var(--muted) }
.shot-text .ok { display: inline-flex; align-items: center; gap: 4px }
.shot-text .ok .i { width: 14px; height: 14px; stroke-width: 2.4 }
.shot-text .err { color: var(--danger) }
.progress { display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 5px; width: min(150px, 100%) }
.progress i { display: block; height: 100%; width: 40%; background: var(--ink); border-radius: 2px; animation: slide 1.1s ease-in-out infinite }
@keyframes slide { from { transform: translateX(-100%) } to { transform: translateX(250%) } }
.iconbtn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; color: var(--muted); display: grid; place-items: center; cursor: pointer }
.smallbtn { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 650; cursor: pointer; margin-right: 4px }
.smallbtn.danger { color: var(--danger) }
.empty { margin: 0; padding: 18px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 15px }
.tip { font-size: 13px; color: var(--muted); margin: 12px 0 0 }

/* Dock unten im Raum */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dock-in {
  max-width: 640px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 12px; display: grid; gap: 8px;
}
.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.dock-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; text-wrap: balance }
.done-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 650 }
.done-mark .i { width: 22px; height: 22px; stroke-width: 2.4 }

.btn {
  min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 650; font-size: 17px; padding: 0 18px; cursor: pointer; text-decoration: none; color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: transparent }
.btn.ghost { background: transparent; font-size: 15px; min-height: 44px; font-weight: 550 }
.btn.wide { width: 100% }
.btn:disabled { opacity: .55; cursor: default }
.btn .i { width: 22px; height: 22px }

/* Aufnahme-Blatt */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center }
.sheet-back { position: absolute; inset: 0; background: rgba(8, 10, 16, .45); opacity: 0; transition: opacity .25s; cursor: pointer }
.sheet-panel {
  position: relative; width: min(100%, 540px); background: var(--surface); border-radius: 26px 26px 0 0;
  padding-top: 8px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .34s cubic-bezier(.2, .9, .25, 1);
  display: grid; gap: 14px; max-height: 94dvh; overflow: auto;
}
.sheet.open .sheet-back { opacity: 1 }
.sheet.open .sheet-panel { transform: none }
@media (min-width: 700px) {
  .sheet { align-items: center }
  .sheet-panel { border-radius: 26px; padding-bottom: 22px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .25, 1), opacity .2s }
  .sheet.open .sheet-panel { opacity: 1 }
}
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center }
.sheet-head { display: flex; align-items: center; gap: 12px }
.sheet-head .i { width: 30px; height: 30px; stroke-width: 1.5 }
.sheet-head div { display: grid; flex: 1; min-width: 0 }
.sheet-head b { font-family: var(--font-display); font-size: 22px; font-weight: 760; letter-spacing: -.015em; line-height: 1.15 }
.sheet-head span { color: var(--muted); font-size: 14px }
.sticker { background: var(--surface-2); border-radius: 18px; padding: 20px 18px; display: grid; place-items: center }
.sticker svg { width: min(100%, 250px); height: auto; transform: rotate(-2.5deg); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .16)) }
.shoot { position: relative; overflow: hidden; min-height: 60px; font-size: 18px }
.shoot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0 }
.hint { margin: -4px 0 0; font-size: 14px; color: var(--muted); text-align: center; text-wrap: balance }

/* Erledigt-Moment */
.cel {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  opacity: 0; transition: opacity .3s;
}
.cel.open { opacity: 1 }
.cel-card { display: grid; justify-items: center; gap: 8px; text-align: center; width: min(100%, 400px); transform: translateY(14px) scale(.98); transition: transform .5s cubic-bezier(.2, .9, .25, 1.1) }
.cel.open .cel-card { transform: none }
.cel .ringwrap { width: min(72vw, 270px, 42dvh) }
.cel-title { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.025em; line-height: 1.1; margin: 18px 0 0; text-wrap: balance }
.cel-sub { margin: 0; color: var(--muted); text-wrap: balance }
.cel-actions { display: grid; gap: 8px; width: 100%; margin-top: 18px }

/* Hinweis unten */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 6px 6px 6px 16px;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  font-size: 15px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); transition: transform .3s cubic-bezier(.2, .9, .3, 1), opacity .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto }
.has-dock .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) }
.toast span { padding-block: 8px }
.toast button { background: transparent; border: 0; color: inherit; font-weight: 700; min-height: 40px; padding: 0 10px; border-radius: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }
.toast button:empty { display: none }

/* Owner */
.owner-top { display: grid; gap: 22px; align-items: center; margin-top: 18px }
@media (min-width: 700px) { .owner-top { grid-template-columns: 230px minmax(0, 1fr); gap: 32px } }
.owner-top .ringwrap { width: min(62vw, 230px); justify-self: center }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0 }
.stats dt { font-size: 13px; color: var(--muted) }
.stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 760; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15 }
.stats small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0 }
.stats p { margin: 4px 0 0; font-size: 12px; color: var(--muted) }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px }
.fresh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 600 }
.exports { display: grid; gap: 10px }
@media (min-width: 700px) { .exports { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.export { display: grid; align-content: start; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer }
.export b { font-size: 16px; font-weight: 650 }
.export span { font-size: 14px; color: var(--muted) }
.export:disabled { cursor: default; opacity: .7 }
.export.is-later { border-style: dashed; background: transparent; cursor: default }
.tag { justify-self: start; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-top: 6px }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -2px; padding-inline: 2px }
.chips::-webkit-scrollbar { display: none }
.chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: transparent }
.oroom { margin-top: 22px }
.oroom-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px }
.oroom-code { font-family: var(--font-display); font-weight: 760; font-size: 22px; letter-spacing: -.02em }
.oroom-n { color: var(--muted); font-size: 14px }
.oroom-head .textbtn { font-size: 14px; color: var(--muted); margin-left: auto; min-height: 36px }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px }
.thumb { margin: 0; position: relative; min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; display: block; width: 100% }
.thumb img, .thumb .ph { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2) }
.thumb .cap { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.thumb .sn { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff }
.more { margin-top: 20px }
.foot { margin-top: 36px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted) }

/* Foto groß (Owner) */
.lightbox {
  position: fixed; inset: 0; z-index: 45; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px;
  background: rgba(8, 10, 16, .92); color: #fff;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.lb-img { display: grid; place-items: center; min-height: 0 }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; display: block }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap }
.lb-info { font-size: 15px }
.lb-actions { display: flex; gap: 8px; flex-wrap: wrap }
.btn.on-dark { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); min-height: 44px; font-size: 15px }
.btn.ghost.on-dark { background: transparent }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important }
}
