/* ===========================================================================
 * Familien-Fotobuch — Scrapbook-Design (keine Web-Fonts, nur System-Stacks)
 * ======================================================================== */
:root {
  /* Flächen */
  --bg:        oklch(0.93 0.022 305);
  --paper:     oklch(0.965 0.018 305);
  --card:      #fffdff;
  --ink-dark:  oklch(0.24 0.015 300);
  --divider:   oklch(0.85 0.03 305);
  --border:    oklch(0.9 0.015 305);

  /* Text */
  --ink:       oklch(0.27 0.04 300);
  --text:      oklch(0.3 0.03 300);
  --muted:     oklch(0.54 0.028 300);
  --muted2:    oklch(0.48 0.03 300);

  /* Akzente */
  --violet:    oklch(0.57 0.17 300);
  --violet-soft: oklch(0.93 0.055 300);
  --violet-deep: oklch(0.5 0.17 300);
  --sun:       oklch(0.85 0.13 88);
  --sun-text:  oklch(0.42 0.08 70);
  --lav:       oklch(0.62 0.13 280);
  --berry:     oklch(0.62 0.14 330);
  --coral:     oklch(0.66 0.15 32);

  --tape-yellow: rgba(255, 214, 120, .62);

  --shadow-card: 0 12px 26px rgba(70, 50, 95, .15);
  --shadow-soft: 0 6px 16px rgba(70, 50, 95, .12);
  --shadow-btn:  0 8px 18px rgba(110, 70, 180, .3);

  --r-card: 16px;
  --r-tile: 15px;

  --font-display: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Verdana, sans-serif;
  --photo-stripes: repeating-linear-gradient(135deg, oklch(0.9 0.02 70) 0 13px, oklch(0.95 0.012 70) 13px 26px);

  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.15; }
button { font-family: inherit; }

/* Hintergrund-Blobs */
.bg-shapes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-shapes .shape { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35; }
.shape.s1 { width: 230px; height: 230px; background: var(--sun); top: -60px; right: -50px; opacity: .3; }
.shape.s2 { width: 200px; height: 200px; background: var(--violet); bottom: 120px; left: -70px; opacity: .16; }
.shape.s3 { width: 160px; height: 160px; background: var(--berry); top: 40%; right: -60px; opacity: .14; }

/* --- Topbar --- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px calc(12px); gap: 12px;
  background: linear-gradient(var(--bg) 72%, transparent);
}
.top-title { display: flex; flex-direction: column; line-height: 1.05; }
.top-kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.top-title strong { font-family: var(--font-display); font-size: 23px; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--card); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-soft); position: relative;
}
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.notif-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.avatar-btn { border: none; background: none; padding: 0; cursor: pointer; }

/* Avatare */
.avatar {
  display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800;
  font-family: var(--font-display); background: var(--ink-dark); background-size: cover; background-position: center;
}
.avatar.sm { width: 42px; height: 42px; font-size: 15px; box-shadow: var(--shadow-soft); }
.avatar.md { width: 52px; height: 52px; font-size: 18px; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.avatar.xs { width: 26px; height: 26px; font-size: 11px; }
.avatar.has-img { color: transparent; }

/* --- Layout / Screen --- */
main#screen { padding: 0 16px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 640px; margin: 0 auto; }
.screen-head { margin: 4px 2px 14px; }
.screen-head h1 { font-size: 25px; }
.screen-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.section-divider {
  display: flex; align-items: center; gap: 10px; margin: 22px 2px 14px;
  color: var(--muted2); font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.section-divider::after { content: ""; flex: 1; border-top: 2px dashed var(--divider); }
.section-link { margin-left: auto; color: var(--violet-deep); font-weight: 800; font-size: 13px;
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }

/* --- Buttons --- */
.btn {
  border: none; border-radius: 14px; padding: 12px 18px; font-size: 15px; font-weight: 800;
  font-family: var(--font-display); cursor: pointer; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-soft); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-btn); }
.btn.lav { background: var(--lav); color: #fff; box-shadow: 0 8px 18px rgba(90, 110, 200, .3); }
.btn.ghost { background: var(--violet-soft); color: var(--violet-deep); box-shadow: none; }
.btn.danger { background: #fff; color: var(--coral); box-shadow: var(--shadow-soft); }
.btn.block { width: 100%; }
.btn.big { padding: 15px 22px; font-size: 17px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.btn-row { display: flex; gap: 10px; }

/* Symbol-Buttons: gleich große, runde Icon-Knöpfe (wenig/kein Text) */
.icon-btn {
  flex: none; width: 50px; height: 50px; border: none; border-radius: 16px; cursor: pointer;
  background: var(--violet-soft); color: var(--violet-deep); box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.icon-btn.danger { background: #fff; color: var(--coral); box-shadow: var(--shadow-soft); }
.icon-actions { display: flex; gap: 10px; margin-top: 12px; }

/* Upload: zwei große Symbol-Kacheln (Kamera / Galerie) */
.upload-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.up-tile {
  border: none; cursor: pointer; border-radius: var(--r-card); padding: 26px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff;
}
.up-tile:active { transform: translateY(1px); }
.up-tile.primary { background: var(--violet); box-shadow: var(--shadow-btn); }
.up-tile.lav { background: var(--lav); box-shadow: 0 8px 18px rgba(90, 110, 200, .3); }
.up-tile svg { width: 36px; height: 36px; stroke: currentColor; fill: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-deep); font-weight: 800; font-size: 13px;
  border: none; cursor: pointer;
}
.chip.active { background: var(--violet); color: #fff; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Polaroid / Foto-Karte --- */
.polaroid {
  background: var(--card); border-radius: var(--r-card); padding: 9px 9px 0;
  box-shadow: var(--shadow-card); position: relative;
}
.polaroid .frame {
  border-radius: 10px; overflow: hidden; background: var(--photo-stripes);
  aspect-ratio: 4 / 3; position: relative;
}
.polaroid .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .ph-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; color: var(--muted2);
}
.polaroid .cap {
  text-align: center; font-family: var(--font-display); color: var(--ink); font-size: 15px;
  padding: 10px 6px 12px; line-height: 1.3;
}
.polaroid .cap .meta { display: block; font-family: var(--font-body); color: var(--muted); font-size: 11.5px; font-weight: 600; margin-top: 3px; }

/* Washi-Tape */
.tape {
  position: absolute; top: -10px; left: 50%; width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-4deg); background: var(--tape-yellow);
  box-shadow: 0 2px 5px rgba(0,0,0,.06); z-index: 2;
}
.tape.lav { background: var(--lav); opacity: .5; }
.tape.left { left: 26px; transform: rotate(-9deg); }
.tape.right { left: auto; right: 26px; transform: rotate(7deg); }

/* Like/Fav-Leiste auf der Karte */
.card-actions { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px; }
.act {
  display: inline-flex; align-items: center; gap: 5px; border: none; background: var(--violet-soft);
  color: var(--violet-deep); border-radius: 999px; padding: 6px 11px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.act svg { width: 17px; height: 17px; }
.act.liked { background: var(--coral); color: #fff; }
.act.faved { background: var(--sun); color: var(--sun-text); }
.act.muted { background: transparent; color: var(--muted); margin-left: auto; box-shadow: none; }

/* Sticker (Stern-Plakette für Foto des Monats) */
.sticker {
  position: absolute; top: -14px; right: -10px; width: 56px; height: 56px; z-index: 3;
  background: var(--sun); color: var(--sun-text); border-radius: 50%; display: grid; place-items: center;
  transform: rotate(10deg); box-shadow: 0 6px 14px rgba(180,140,40,.4); border: 3px solid #fffdff;
}
.sticker svg { width: 26px; height: 26px; fill: currentColor; }

/* Award-Banner */
.award-banner {
  background: linear-gradient(110deg, var(--sun), oklch(0.88 0.11 70));
  color: var(--sun-text); border-radius: 999px; padding: 8px 16px; font-weight: 800;
  font-family: var(--font-display); display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  box-shadow: var(--shadow-soft);
}
.award-banner svg { width: 18px; height: 18px; fill: currentColor; }

/* Foto des Monats – große Hero-Karte */
.fotm-card { position: relative; margin: 6px 0 4px; }
.fotm-card .polaroid { transform: rotate(-1.4deg); }
.fotm-likers { display: flex; align-items: center; gap: 0; margin-top: 8px; padding-left: 6px; }
.fotm-likers .avatar { margin-left: -8px; border: 2px solid var(--bg); }
.fotm-likers .lk-count { margin-left: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* Galerie-Grid */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.photo-grid .polaroid { padding: 7px 7px 0; }
.photo-grid .polaroid:nth-child(3n) { transform: rotate(1.3deg); }
.photo-grid .polaroid:nth-child(3n+1) { transform: rotate(-1.6deg); }
.photo-grid .frame { aspect-ratio: 1 / 1; }
.photo-grid .cap { font-size: 13px; padding: 7px 4px 9px; }
.grid-fav { position: absolute; top: 14px; right: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.grid-fav svg { width: 17px; height: 17px; }
.grid-like { position: absolute; left: 13px; bottom: 40px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
  background: rgba(40,25,55,.55); color: #fff; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; backdrop-filter: blur(3px); }
.grid-like svg { width: 13px; height: 13px; fill: currentColor; }

/* --- Empty / Hints --- */
.empty {
  text-align: center; padding: 38px 18px; color: var(--muted); background: var(--paper);
  border-radius: var(--r-card); border: 2px dashed var(--divider); margin-top: 10px;
}
.empty .em-emoji { font-size: 38px; display: block; margin-bottom: 8px; }
.empty .em-title { font-family: var(--font-display); color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.tip {
  display: flex; gap: 10px; align-items: flex-start; background: var(--sun); color: var(--sun-text);
  border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 600; margin-top: 14px;
}
.tip svg { width: 19px; height: 19px; flex: none; fill: currentColor; margin-top: 1px; }

/* --- Bottom-Nav --- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(70,50,95,.08);
}
.nav-btn {
  flex: 1; border: none; background: none; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 6px 0;
}
.nav-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.nav-btn.active { color: var(--violet); }
.nav-btn.active svg { fill: var(--violet-soft); }
.nav-btn.active span { color: var(--violet-deep); }
.nav-btn.upload-btn { color: var(--violet-deep); }
.upload-fab {
  width: 46px; height: 46px; margin-top: -16px; border-radius: 16px; background: var(--violet); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-btn); border: 3px solid var(--card);
}
.upload-fab svg { width: 24px; height: 24px; stroke: #fff; }

/* --- Detail / Pushed Screens --- */
.pushed-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.back-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--card);
  box-shadow: var(--shadow-soft); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.back-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.pushed-head h1 { font-size: 20px; }

.detail-photo { border-radius: var(--r-card); overflow: hidden; background: var(--photo-stripes); box-shadow: var(--shadow-card); }
.detail-photo img { width: 100%; display: block; }
.detail-meta { display: flex; align-items: center; gap: 10px; margin: 14px 2px; }
.detail-meta .who { font-family: var(--font-display); color: var(--ink); font-weight: 800; }
.detail-meta .when { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.detail-meta .when svg { color: var(--muted); }
/* Standort-Zeile unter dem Foto */
.detail-place {
  display: inline-flex; align-items: center; gap: 6px; margin: -4px 2px 12px;
  background: var(--violet-soft); color: var(--violet-deep);
  border-radius: 999px; padding: 6px 13px 6px 10px; font-weight: 800; font-size: 13px;
}
.detail-place svg { color: var(--violet); }
/* Standort-Hinweis im Upload-Sheet */
.loc-note {
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
  color: var(--muted2); font-size: 12px; line-height: 1.35;
}
.loc-note svg { flex: none; color: var(--violet); }
/* Ort-Chip auf der Galerie-Karte */
.card-place {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 3px;
  color: var(--muted); font-size: 11px; font-weight: 700;
  font-family: var(--font-body); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-place svg { flex: none; color: var(--lav); }
.detail-cap { font-size: 16px; color: var(--text); margin: 0 2px 14px; line-height: 1.45; }
.detail-actions { display: flex; gap: 10px; margin: 0 0 6px; }
.detail-actions .act { padding: 11px 16px; font-size: 15px; flex: 1; justify-content: center; box-shadow: var(--shadow-soft); }
.detail-actions .act.square { flex: none; width: 52px; padding: 11px 0; }
.detail-actions .act svg { width: 20px; height: 20px; }

/* Kommentare als Sprechblasen */
.comments { margin-top: 18px; }
.comment { display: flex; gap: 9px; margin-bottom: 12px; align-items: flex-start; }
.bubble {
  background: var(--card); border-radius: 14px 14px 14px 4px; padding: 9px 13px; box-shadow: var(--shadow-soft);
  max-width: 78%;
}
.bubble .b-name { font-family: var(--font-display); font-size: 12.5px; font-weight: 800; color: var(--violet-deep); margin-bottom: 1px; }
.bubble .b-text { font-size: 14px; color: var(--text); line-height: 1.35; }
.bubble .b-time { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.comment .del-x { margin-left: auto; align-self: center; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 6px); }
.comment-form input { flex: 1; }

/* --- Formen / Inputs --- */
.input, input.input, textarea.input {
  width: 100%; border: 2px solid var(--border); border-radius: 13px; padding: 12px 14px; font-size: 15px;
  background: var(--card); color: var(--ink); font-family: var(--font-body); outline: none;
}
.input:focus { border-color: var(--violet); }
textarea.input { resize: vertical; min-height: 48px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted2); margin: 0 2px 6px; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; }
.color-dot.sel { border-color: var(--ink); transform: scale(1.08); }

/* PIN-Pad */
.pin-display { display: flex; gap: 10px; justify-content: center; margin: 14px 0 18px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--violet-soft); }
.pin-dot.on { background: var(--violet); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 280px; margin: 0 auto; }
.key { aspect-ratio: 1.6 / 1; border-radius: 14px; border: none; background: var(--card); box-shadow: var(--shadow-soft);
  font-size: 22px; font-family: var(--font-display); font-weight: 800; color: var(--ink); cursor: pointer; }
.key.wide { font-size: 15px; }
.key:active { transform: translateY(1px); }

/* Person-Picker Grid */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; margin-top: 10px; }
.person-card { background: var(--card); border-radius: var(--r-card); padding: 16px 8px 12px; text-align: center;
  box-shadow: var(--shadow-soft); border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.person-card .nm { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 14px; }
.person-card .ro { font-size: 11px; color: var(--muted); }

/* Member-/Invite-Liste (Admin) */
.list-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 11px 14px;
  box-shadow: var(--shadow-soft); margin-bottom: 10px; }
.list-row .nm { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.list-row .sub { font-size: 12px; color: var(--muted); }
.list-row .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pill.admin { background: var(--violet-soft); color: var(--violet-deep); }
.pill.member { background: oklch(0.92 0.04 280); color: var(--lav); }
.pill.ok { background: oklch(0.9 0.08 150); color: oklch(0.42 0.1 150); }
.pill.warn { background: oklch(0.92 0.05 60); color: var(--sun-text); }

/* --- Overlays: Login / Onboarding / Join --- */
.cover {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  overflow-y: auto;
}
.cover .cover-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-card);
  padding: 28px 24px; width: 100%; max-width: 360px; text-align: center; }
.cover .logo { width: 76px; height: 76px; margin: 0 auto 14px; display: block; }
.cover h2 { font-size: 24px; margin-bottom: 4px; }
.cover .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.4; }
.cover .err { color: var(--coral); font-size: 13px; font-weight: 700; margin: -6px 0 12px; }
.cover .field { text-align: left; }

/* --- Sheet --- */
.sheet-root { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(40,25,55,.42); backdrop-filter: blur(2px); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper);
  border-radius: 22px 22px 0 0; padding: 18px 18px calc(20px + var(--safe-b));
  max-height: 88vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(40,25,55,.25);
  max-width: 640px; margin: 0 auto;
}
.sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--divider); margin: -4px auto 14px; }
.sheet h3 { font-size: 19px; margin-bottom: 12px; }
.sheet .muted { color: var(--muted); }
.sheet .small { font-size: 12.5px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(20,12,28,.92); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* Ausschnitt-Wähler (Fokuspunkt) */
.focus-wrap { text-align: center; }
.focus-pick { position: relative; display: inline-block; line-height: 0; border-radius: 12px;
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: var(--shadow-soft); cursor: crosshair; max-width: 100%; }
.focus-pick img { max-width: 100%; max-height: 46vh; display: block; pointer-events: none; }
.focus-marker { position: absolute; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 2px 10px rgba(0,0,0,.55); }
.focus-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 4px rgba(0,0,0,.6); }
.focus-previews { display: flex; gap: 18px; justify-content: center; margin-top: 14px; }
.fp-box { display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); font-weight: 700; }
.fp-prev { object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-soft); display: block; background: var(--photo-stripes); }
.fp-sq { width: 88px; height: 88px; }
.fp-wide { width: 118px; height: 88px; }

/* Konfetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 65; overflow: hidden; }
.confetti i { position: absolute; width: 9px; height: 9px; top: -12px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .9; } }

/* Notification-Liste */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item { text-align: left; background: var(--card); border: none; border-radius: 12px; padding: 11px 13px;
  box-shadow: var(--shadow-soft); cursor: pointer; }
.notif-item.unread { border-left: 4px solid var(--violet); }
.notif-text { font-size: 14px; color: var(--text); }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%);
  background: var(--ink-dark); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px;
  font-weight: 700; z-index: 80; box-shadow: var(--shadow-card); max-width: 90%;
}
.toast.ok { background: oklch(0.5 0.13 150); }
.toast.err { background: var(--coral); }

.spin { width: 30px; height: 30px; border: 3px solid var(--violet-soft); border-top-color: var(--violet);
  border-radius: 50%; animation: rot .8s linear infinite; margin: 30px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
