:root {
  /* ===== Design „Neon“ (Standard) ===== */
  --c1: #2fd8ee;  --c1-rgb: 47,216,238;     /* Farbe 1 */
  --c3: #7a6bff;                            /* Mitte des Verlaufs */
  --c2: #ff3d72;  --c2-rgb: 255,61,114;     /* Farbe 2 */
  --bg: #0b0f17;  --bg-rgb: 11,15,23;
  --panel: #121826; --panel-rgb: 18,24,38;
  --card-top-rgb: 27,35,52; --card-bot-rgb: 15,20,31;
  --panel-2: #1b2334;
  --line: #243049; --line-rgb: 36,48,73;
  --input-bg: #0a0e16;
  --text: #e8eef9;
  --muted: #8d9ab3;
  --meta: rgba(236,233,247,.6);
  --sys-text: #a9dbe6;
  --mine: linear-gradient(135deg, #14506a 0%, #4b2a6e 100%);
  --theirs: #161e2e;
  --danger: #ff5d7a;
  --glow: 1;                                /* Stärke des Leuchtens */

  --cyan: var(--c1); --pink: var(--c2);
  --accent: var(--c1); --accent-2: var(--c2); --read: var(--c1);
  --grad: linear-gradient(120deg, var(--c1) 0%, var(--c3) 50%, var(--c2) 100%);
  --glow-cyan: 0 0 calc(12px * var(--glow)) rgba(var(--c1-rgb),.45);
  --glow-pink: 0 0 calc(14px * var(--glow)) rgba(var(--c2-rgb),.5);
  --radius: 16px;
  color-scheme: dark;
}

/* ===== Design „Glut“: Rot · Orange · Gold ===== */
:root[data-theme="glut"] {
  --c1: #ffb340;  --c1-rgb: 255,179,64;
  --c3: #ff6a2b;
  --c2: #e8173d;  --c2-rgb: 232,23,61;
  --bg: #120a0b;  --bg-rgb: 18,10,11;
  --panel: #1c1012; --panel-rgb: 28,16,18;
  --card-top-rgb: 38,22,24; --card-bot-rgb: 20,11,12;
  --panel-2: #2a181b;
  --line: #3d2327; --line-rgb: 61,35,39;
  --input-bg: #0e0708;
  --text: #fbeee6; --muted: #b8968c; --meta: rgba(251,238,230,.6); --sys-text: #ffd29a;
  --mine: linear-gradient(135deg, #7a2a12 0%, #6e1028 100%);
  --theirs: #221416;
}

/* ===== Design „Aurora“: Grün · Türkis · Violett ===== */
:root[data-theme="aurora"] {
  --c1: #3dffa8;  --c1-rgb: 61,255,168;
  --c3: #22c4d6;
  --c2: #a35bff;  --c2-rgb: 163,91,255;
  --bg: #07110f;  --bg-rgb: 7,17,15;
  --panel: #0e1c1a; --panel-rgb: 14,28,26;
  --card-top-rgb: 20,38,35; --card-bot-rgb: 10,20,18;
  --panel-2: #16302c;
  --line: #1f3f3a; --line-rgb: 31,63,58;
  --input-bg: #050d0b;
  --text: #e6fbf4; --muted: #86ada3; --meta: rgba(230,251,244,.6); --sys-text: #9ff5d2;
  --mine: linear-gradient(135deg, #0f5a48 0%, #3e2a70 100%);
  --theirs: #12221f;
}

/* ===== Design „Sakura“ ===== */
:root[data-theme="sakura"] {
  --c1: #ff8fc7;  --c1-rgb: 255,143,199;
  --c3: #d78cff;
  --c2: #ff4f8b;  --c2-rgb: 255,79,139;
  --bg: #150b12;  --bg-rgb: 21,11,18;
  --panel: #20111b; --panel-rgb: 32,17,27;
  --card-top-rgb: 42,24,36; --card-bot-rgb: 22,12,19;
  --panel-2: #2e1a28;
  --line: #43263a; --line-rgb: 67,38,58;
  --input-bg: #10080d;
  --text: #fdeef6; --muted: #b993a8; --meta: rgba(253,238,246,.6); --sys-text: #ffc2e1;
  --mine: linear-gradient(135deg, #7a2456 0%, #4e2a78 100%);
  --theirs: #24131f;
}

/* ===== Design „Ozean“ ===== */
:root[data-theme="ozean"] {
  --c1: #4fe3ff;  --c1-rgb: 79,227,255;
  --c3: #2f8bff;
  --c2: #2242d6;  --c2-rgb: 34,66,214;
  --bg: #050c1a;  --bg-rgb: 5,12,26;
  --panel: #0b1730; --panel-rgb: 11,23,48;
  --card-top-rgb: 16,32,62; --card-bot-rgb: 8,16,34;
  --panel-2: #13254a;
  --line: #1c3260; --line-rgb: 28,50,96;
  --input-bg: #040a16;
  --text: #e8f3ff; --muted: #88a2c8; --meta: rgba(232,243,255,.6); --sys-text: #9fe9ff;
  --mine: linear-gradient(135deg, #0f4f7a 0%, #1c2f8a 100%);
  --theirs: #0e1c38;
}

/* ===== Design „Galaxie“ ===== */
:root[data-theme="galaxie"] {
  --c1: #ffd166;  --c1-rgb: 255,209,102;
  --c3: #e040fb;
  --c2: #7c3aed;  --c2-rgb: 124,58,237;
  --bg: #0c0716;  --bg-rgb: 12,7,22;
  --panel: #160e28; --panel-rgb: 22,14,40;
  --card-top-rgb: 32,20,56; --card-bot-rgb: 16,10,30;
  --panel-2: #241638;
  --line: #36224f; --line-rgb: 54,34,79;
  --input-bg: #080412;
  --text: #f3ecff; --muted: #a397c0; --meta: rgba(243,236,255,.6); --sys-text: #ffe09a;
  --mine: linear-gradient(135deg, #5b1f8a 0%, #8a1f6e 100%);
  --theirs: #1a1030;
}

/* ===== Design „Toxic“ ===== */
:root[data-theme="toxic"] {
  --c1: #c6ff3d;  --c1-rgb: 198,255,61;
  --c3: #6dff4a;
  --c2: #00e676;  --c2-rgb: 0,230,118;
  --bg: #070907;  --bg-rgb: 7,9,7;
  --panel: #0f140f; --panel-rgb: 15,20,15;
  --card-top-rgb: 22,30,22; --card-bot-rgb: 10,14,10;
  --panel-2: #182218;
  --line: #243324; --line-rgb: 36,51,36;
  --input-bg: #040604;
  --text: #ecffe4; --muted: #8fa889; --meta: rgba(236,255,228,.6); --sys-text: #d4ff8a;
  --mine: linear-gradient(135deg, #2d5a10 0%, #0f5a3a 100%);
  --theirs: #121a12;
}
:root[data-theme="toxic"] .btn.primary, :root[data-theme="toxic"] .round, :root[data-theme="toxic"] .fab, :root[data-theme="toxic"] .badge { color: #06210f; text-shadow: none; }

/* ===== Design „Tag“: hell ===== */
:root[data-theme="tag"] {
  --c1: #0bb5d0;  --c1-rgb: 11,181,208;
  --c3: #6c5cff;
  --c2: #ff3d72;  --c2-rgb: 255,61,114;
  --bg: #eef2f8;  --bg-rgb: 238,242,248;
  --panel: #ffffff; --panel-rgb: 255,255,255;
  --card-top-rgb: 255,255,255; --card-bot-rgb: 246,248,252;
  --panel-2: #eef2f8;
  --line: #d6deea; --line-rgb: 214,222,234;
  --input-bg: #f7f9fc;
  --text: #182033; --muted: #5d6a82; --meta: rgba(24,32,51,.55); --sys-text: #0b7f93;
  --mine: linear-gradient(135deg, #cdf3fa 0%, #e6dcff 100%);
  --theirs: #ffffff;
  --glow: .55;
  color-scheme: light;
}
:root[data-theme="tag"] .icon { filter: none; }
:root[data-theme="tag"] .bar::before { background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); }
:root[data-theme="tag"] dialog::backdrop { background: rgba(20,28,45,.45); }


* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Füllt genau den sichtbaren Bereich – auch auf Handys, die bei 100dvh die Navigationsleiste mitzählen */
#app { position: fixed; inset: 0; max-width: 760px; margin: 0 auto; overflow: hidden; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen.center { align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }

.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--danger); min-height: 1em; margin: 8px 0 0; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }

h1, h2 { margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 19px; margin-bottom: 12px; }

/* ---------- Karten & Formulare ---------- */
.card { width: 100%; max-width: 380px; background: var(--panel); border-radius: 22px; padding: 24px; }
.brand { text-align: center; margin-bottom: 18px; }
.brand p { margin: 4px 0 0; }
.logo {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; display: grid; place-items: center;
  font-size: 34px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }

.btn {
  border: 0; border-radius: 12px; padding: 11px 16px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--panel-2); color: var(--text);
}
.btn:disabled { opacity: .5; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.danger { background: transparent; color: var(--danger); padding-left: 0; margin-top: 10px; }
.btn.link { background: none; color: var(--muted); padding: 6px 0; font-weight: 500; }
.btn.wide { width: 100%; margin-top: 4px; }

.tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: none; color: var(--muted); padding: 9px; border-radius: 9px; font: inherit; font-weight: 600; }
.tabs button.active { background: var(--panel-2); color: var(--text); }

/* ---------- Kopfleiste ---------- */
.bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.bar .title { line-height: 1.2; }
.bar .title .sub { font-size: 12px; color: var(--muted); }
#chat-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon { border: 0; background: none; color: var(--text); font-size: 22px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.icon:active { background: var(--panel-2); }

.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 19px; color: #fff; flex: none;
}
.bar .avatar { width: 38px; height: 38px; font-size: 16px; }
.avatar.big { width: 64px; height: 64px; font-size: 28px; }

/* ---------- Chatliste ---------- */
.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.chat-item:active { background: var(--panel); }
.chat-item .name { font-weight: 600; }
.chat-item .preview { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-item .time { font-size: 12px; color: var(--muted); }
.badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.empty p { margin: 4px 0; max-width: 300px; }

.fab {
  position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 20px; border: 0; font-size: 32px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* ---------- Nachrichten ---------- */
.messages { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.system, .day, .loading-msgs {
  align-self: center; text-align: center; font-size: 12px; color: var(--muted);
  background: var(--panel); padding: 5px 12px; border-radius: 10px; margin: 8px 0; max-width: 90%;
}
.msg { display: flex; }
.msg.mine { justify-content: flex-end; }
.bubble {
  max-width: 100%; padding: 7px 10px 5px; border-radius: var(--radius);
  background: var(--theirs); word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.mine .bubble { background: var(--mine); border-bottom-right-radius: 5px; }
.msg.theirs .bubble { border-bottom-left-radius: 5px; }
.msg.pending .bubble { opacity: .65; font-style: italic; }
.text { white-space: pre-wrap; }
.meta { font-size: 11px; color: var(--meta); text-align: right; margin-top: 2px; }
.ticks.read { color: var(--read); }

.media { min-width: 200px; color: var(--muted); font-size: 13px; }
.media.image, .media.video { width: 260px; max-width: 100%; background: rgba(0,0,0,.25); border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.media img, .media video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.media.audio { min-width: 240px; }
.media audio { width: 100%; height: 40px; }
.media .file { color: var(--text); }

/* ---------- Eingabe ---------- */
.composer {
  display: flex; align-items: flex-end; gap: 6px; padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line);
}
.composer textarea { margin: 0; resize: none; max-height: 120px; overflow-y: hidden; scrollbar-width: thin; border-radius: 22px; padding: 10px 16px; line-height: 1.35; }
.round {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; font-size: 20px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.composer.recording { align-items: center; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; margin-left: 4px; }
#rec-time { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Dialoge ---------- */
dialog {
  width: min(420px, calc(100% - 24px)); border: 0; border-radius: 22px; padding: 22px;
  background: var(--panel); color: var(--text);
}
dialog::backdrop { background: rgba(5,4,10,.7); }
.actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.row { display: flex; gap: 8px; margin: 12px 0 16px; }
.row .btn { flex: 1; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: -2px 0 10px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.code { font-size: 26px; font-weight: 800; letter-spacing: 2px; color: var(--accent); font-variant-numeric: tabular-nums; }
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; margin: 16px 0; text-align: center;
  font: 600 18px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 1px; }

/* ---------- Bildbetrachter & Toast ---------- */
#viewer { position: fixed; inset: 0; background: rgba(0,0,0,.95); display: grid; place-items: center; z-index: 50; }
#viewer img { max-width: 100%; max-height: 100%; }

#toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #000c; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: 90%; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Medien-Status & Einstellungen ---------- */
.media-status { display: block; padding: 14px 10px; text-align: center; color: var(--muted); font: inherit; font-size: 13px;
  background: none; border: 0; width: 100%; }
button.media-status { color: var(--text); cursor: pointer; font-weight: 600; }
.media.audio .media-status { text-align: left; padding: 10px 4px; }
.save-link { color: inherit; text-decoration: none; margin-right: 8px; }
.section { border-top: 1px solid var(--line); margin: 6px 0 12px; padding-top: 12px; }
.section-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
label.switch { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 8px; }
label.switch input { display: inline-block; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.small-btn { padding: 7px 12px; font-size: 14px; }


/* =====================================================================
   NEON-DESIGN: Verlauf, Leuchtränder, Schimmer
   ===================================================================== */

body {
  background:
    radial-gradient(1200px 600px at 0% -10%, rgba(var(--c1-rgb),.10), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(var(--c2-rgb),.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- Kopfleiste mit Verlauf + leuchtender Unterkante ---------- */
.bar {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, rgba(var(--c1-rgb),.16), rgba(var(--panel-rgb),.95) 40%, rgba(var(--panel-rgb),.95) 60%, rgba(var(--c2-rgb),.16));
  border-bottom: 0;
}
.bar::after {                       /* leuchtende Linie unten */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(var(--c2-rgb),.7), 0 0 18px rgba(var(--c1-rgb),.5);
}
.bar::before {                      /* Lichtstreifen, der durch den Header wandert */
  content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent);
  animation: sweep 6s ease-in-out infinite; pointer-events: none;
}
@keyframes sweep { 0%, 55% { left: -40%; } 100% { left: 110%; } }

/* ---------- Logo-Schriftzug mit Schimmer ---------- */
.shine {
  background: linear-gradient(90deg, var(--cyan) 0%, #fff 12%, var(--cyan) 24%, var(--c3) 50%, var(--pink) 76%, #fff 88%, var(--pink) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(var(--c1-rgb),.45)) drop-shadow(0 0 14px rgba(var(--c2-rgb),.25));
  font-weight: 800; letter-spacing: .5px;
}
@keyframes shine { to { background-position: -250% 0; } }

/* ---------- Logo-Kachel mit Glühen ---------- */
.logo {
  position: relative; overflow: hidden;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(var(--c1-rgb),.5), 0 0 28px rgba(var(--c2-rgb),.35);
  animation: glow 3s ease-in-out infinite alternate;
}
.logo::after {
  content: ''; position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  animation: tile-shine 3.5s ease-in-out infinite;
}
@keyframes tile-shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes glow {
  from { box-shadow: 0 0 12px rgba(var(--c1-rgb),.45), 0 0 22px rgba(var(--c2-rgb),.25); }
  to   { box-shadow: 0 0 22px rgba(var(--c1-rgb),.7),  0 0 36px rgba(var(--c2-rgb),.45); }
}

/* ---------- Karten & Dialoge mit Neonrand ---------- */
.card, dialog {
  background: linear-gradient(180deg, rgba(var(--card-top-rgb),.96), rgba(var(--card-bot-rgb),.98));
  border: 1px solid rgba(var(--c1-rgb),.35);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(var(--c1-rgb),.05);
}
.brand h1 { font-size: 28px; }

input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(var(--c1-rgb),.4), var(--glow-cyan); }
input, textarea { background: var(--input-bg); }

/* ---------- Knöpfe ---------- */
.btn.primary, .round, .fab, .badge {
  background: var(--grad); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.btn.primary, .round { box-shadow: 0 0 12px rgba(var(--c2-rgb),.35); }
.btn { border: 1px solid transparent; }
.btn:not(.primary):not(.link):not(.danger) { border-color: rgba(var(--c1-rgb),.2); }
.fab { box-shadow: 0 0 18px rgba(var(--c1-rgb),.5), 0 0 30px rgba(var(--c2-rgb),.4), 0 8px 24px rgba(0,0,0,.5); }
.tabs button.active { background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--cyan); }

/* ---------- Chatliste ---------- */
.chat-item { border-bottom: 1px solid rgba(var(--line-rgb),.6); }
.chat-item:active { background: rgba(var(--c1-rgb),.06); }
.avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(var(--c1-rgb),.45); }
.badge { box-shadow: var(--glow-pink); }

/* ---------- Nachrichten ---------- */
.bubble { background: var(--theirs); border: 1px solid rgba(var(--c1-rgb),.18); }
.msg.mine .bubble { background: var(--mine); border-color: rgba(var(--c2-rgb),.25); }
.system, .day { background: rgba(var(--panel-rgb),.85); border: 1px solid rgba(var(--c1-rgb),.25); color: var(--sys-text); }
.ticks.read { text-shadow: 0 0 6px rgba(var(--c1-rgb),.8); }

/* ---------- Eingabeleiste ---------- */
.composer { position: relative; background: rgba(var(--panel-rgb),.96); border-top: 0; }
.composer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--grad); opacity: .6;
}
.code { color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .shine, .logo, .logo::after, .bar::before { animation: none; }
}

/* ---------- Design-Auswahl ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.theme-pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font: inherit; font-size: 12px; cursor: pointer;
}
.theme-pick .dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.theme-pick.active { border-color: var(--c1); box-shadow: var(--glow-cyan); }
:root[data-theme="tag"] .media.image, :root[data-theme="tag"] .media.video { background: #e3e9f2; }
:root[data-theme="tag"] .media-status { color: var(--muted); }
:root[data-theme="tag"] button.media-status { color: var(--text); }
:root[data-theme="tag"] .shine {
  background-image: linear-gradient(90deg, var(--c1) 0%, var(--c3) 25%, var(--c2) 50%, var(--c3) 75%, var(--c1) 100%);
  filter: drop-shadow(0 0 6px rgba(var(--c1-rgb),.25));
}

/* =====================================================================
   Antworten, Reaktionen, Aktionsmenü, Status
   ===================================================================== */
.bwrap { max-width: 78%; display: flex; flex-direction: column; align-items: flex-start; }
.msg.mine .bwrap { align-items: flex-end; }
.bubble { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 2px var(--c1), var(--glow-cyan); } }

.quote {
  border-left: 3px solid var(--c1); background: rgba(var(--bg-rgb), .35);
  border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; cursor: pointer; min-width: 120px;
}
.msg.mine .quote { border-left-color: var(--c2); }
.qname { font-size: 12px; font-weight: 700; color: var(--c1); }
.msg.mine .qname { color: var(--c2); }
.qtext { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.edited { font-style: italic; }

.reacts {
  margin-top: -6px; position: relative; z-index: 1; padding: 2px 8px; border-radius: 999px; font: inherit; font-size: 14px;
  background: var(--panel-2); color: var(--text); border: 1px solid rgba(var(--c1-rgb), .35); cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.msg.theirs .reacts { margin-left: 8px; }
.msg.mine .reacts { margin-right: 8px; }
.reacts.own { border-color: rgba(var(--c2-rgb), .6); }

/* Kontextleiste (Antworten / Bearbeiten) */
.compose-ctx {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
  background: rgba(var(--panel-rgb), .98); border-top: 1px solid var(--line);
}
.compose-ctx #ctx-title { font-size: 13px; font-weight: 700; color: var(--c1); }
.compose-ctx #ctx-text { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compose-ctx .icon { font-size: 18px; }

/* Aktionsmenü als Bottom-Sheet */
dialog.sheet {
  margin: auto auto 0; width: min(520px, 100%); max-width: 100%; border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  animation: sheet-in .18s ease-out;
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.react-row { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.react-btn {
  flex: 1; font-size: 26px; padding: 8px 0; border-radius: 14px; border: 1px solid transparent;
  background: var(--panel-2); cursor: pointer;
}
.react-btn.active { border-color: var(--c1); box-shadow: var(--glow-cyan); }
.sheet-list { display: flex; flex-direction: column; gap: 4px; }
.sheet-list button {
  text-align: left; padding: 13px 14px; border: 0; border-radius: 12px; font: inherit; font-size: 16px;
  background: transparent; color: var(--text); cursor: pointer;
}
.sheet-list button:active { background: var(--panel-2); }
.danger-text { color: var(--danger) !important; }

/* Online & schreibt… */
.avatar { position: relative; }
.avatar.online::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #3ddc84; border: 2px solid var(--bg); box-shadow: 0 0 6px #3ddc84;
}
.preview.typing, #chat-sub.live { color: var(--c1); font-style: italic; }
#chat-sub.live { font-style: normal; }
button:focus:not(:focus-visible) { outline: none; }

/* =====================================================================
   Profilbilder, Kontakte, Suche, Blockieren
   ===================================================================== */
.avatar.has-img { background-size: cover !important; background-position: center !important; }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit::after {
  content: '📷'; position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line);
}
#chat-avatar, #chat-name { cursor: pointer; }
.big-name { font-size: 20px; font-weight: 700; }

.search-row {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(var(--panel-rgb), .96);
  border-bottom: 1px solid var(--line);
}
.search-row input { margin: 0; border-radius: 22px; padding: 10px 16px; }
.search-head { padding: 12px 16px 4px; font-size: 13px; font-weight: 700; color: var(--c1); text-transform: uppercase; letter-spacing: .5px; }
.search-empty { padding: 30px 16px; text-align: center; color: var(--muted); }
mark { background: rgba(var(--c1-rgb), .3); color: var(--text); border-radius: 3px; padding: 0 1px; }

.blocked-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(var(--panel-rgb), .98); border-top: 1px solid var(--line); color: var(--muted);
}
#btn-password { margin-top: 8px; }
.profile-head { margin-bottom: 14px; }
#btn-avatar-remove { margin-top: -6px; }

/* =====================================================================
   Emojis
   ===================================================================== */
.composer .icon { padding: 6px 4px; }
.emoji-panel {
  height: min(300px, 42vh); display: flex; flex-direction: column;
  background: rgba(var(--panel-rgb), .98); border-top: 1px solid var(--line);
}
.emoji-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 4px 6px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tabs button {
  flex: none; font-size: 21px; padding: 6px 9px; background: none; border: 0; border-bottom: 2px solid transparent;
  opacity: .55; cursor: pointer;
}
.emoji-tabs button.active { opacity: 1; border-bottom-color: var(--c1); }
.emoji-title { padding: 6px 12px 0; font-size: 13px; font-weight: 700; color: var(--c1); }
.emoji-grid {
  flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  align-content: start; padding: 6px; overscroll-behavior: contain;
}
.emo { font-size: 27px; line-height: 1.25; padding: 5px 0; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.emo:active, .emo:hover { background: var(--panel-2); }
.emoji-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }

.text.jumbo { font-size: 46px; line-height: 1.15; }
.bubble.emoji-only { background: transparent !important; border-color: transparent !important; box-shadow: none; padding: 0 2px 2px; }
.bubble.emoji-only .meta { color: var(--muted); }
.react-btn.more { font-size: 22px; color: var(--text); }

/* =====================================================================
   Tabs, Status, Selbstlöschend
   ===================================================================== */
.tabbar { display: flex; background: rgba(var(--panel-rgb), .96); border-bottom: 1px solid var(--line); }
.tabbar button {
  flex: 1; padding: 11px 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
  border-bottom: 2px solid transparent; position: relative;
}
.tabbar button.active { color: var(--text); border-bottom-color: var(--c1); box-shadow: 0 6px 10px -8px rgba(var(--c1-rgb), .8); }
.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c2); box-shadow: var(--glow-pink); vertical-align: middle; margin-left: 4px; }
#status-view { flex: 1; overflow-y: auto; }

.ring { padding: 3px; border-radius: 50%; background: var(--grad); flex: none; }
.ring.seen { background: var(--line); }
.ring .avatar { box-shadow: 0 0 0 2px var(--bg); }
.status-actions { display: flex; gap: 2px; }
.status-actions .icon { font-size: 20px; background: var(--panel-2); border-radius: 50%; width: 40px; height: 40px; padding: 0; }

.name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.name-row #chat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chat-timer { font-size: 14px; }
.system.disappear { border-color: rgba(var(--c2-rgb), .4); }
.timer-icon { font-size: 10px; }

/* Status-Betrachter */
#status-viewer, #status-compose {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; color: #fff;
  max-width: 760px; margin: 0 auto; background: #000;
}
.sv-bars { display: flex; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 10px 0; position: relative; z-index: 3; }
.sv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-fill { height: 100%; width: 0; background: #fff; }
.sv-head { display: flex; align-items: center; gap: 10px; padding: 10px; position: relative; z-index: 3; }
.sv-head .icon { color: #fff; }
#sv-name { font-weight: 700; }
#sv-time { font-size: 12px; opacity: .8; }
.sv-body { position: absolute; inset: 0; display: grid; place-items: center; padding: 90px 24px 90px; }
.sv-text { font-size: 30px; font-weight: 700; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.sv-text.long { font-size: 21px; }
.sv-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-loading { opacity: .8; }
.sv-tap { position: absolute; inset: 70px 0 70px; z-index: 2; }
.sv-caption {
  position: absolute; left: 0; right: 0; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 3; text-align: center;
  padding: 10px 16px; background: rgba(0,0,0,.45); font-size: 16px;
}
.sv-views {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 3;
  background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 16px; font: inherit; cursor: pointer;
}

/* Status erstellen */
.sc-top { display: flex; padding: calc(10px + env(safe-area-inset-top)) 10px 0; }
.sc-top .icon { color: #fff; font-size: 24px; }
#sc-text {
  flex: 1; background: transparent; border: 0; color: #fff; font-size: 30px; font-weight: 700; text-align: center;
  padding: 20vh 24px 20px; resize: none; box-shadow: none !important;
}
#sc-text::placeholder { color: rgba(255,255,255,.6); }
.sc-image { flex: 1; display: grid; place-items: center; overflow: hidden; padding: 10px; }
.sc-image img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.sc-bottom { display: flex; align-items: center; gap: 8px; padding: 10px; }
#sc-caption { margin: 0; flex: 1; background: rgba(0,0,0,.5); color: #fff; border-color: rgba(255,255,255,.3); border-radius: 22px; }
.sc-hint { text-align: center; font-size: 12px; opacity: .75; padding: 0 10px calc(12px + env(safe-area-inset-bottom)); }
#views-list { max-height: 50vh; }

.muted-head { cursor: pointer; color: var(--muted) !important; }
label.switch { align-items: flex-start; }
label.switch input { margin-top: 2px; }

/* =====================================================================
   Gruppen
   ===================================================================== */
.sender-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.avatar.group::after {
  content: '👥'; position: absolute; right: -3px; bottom: -3px; font-size: 13px; line-height: 1;
  background: var(--panel-2); border-radius: 50%; padding: 2px; border: 1px solid var(--line);
}
.avatar.group.big::after { font-size: 18px; }
.new-group-btn { margin-bottom: 16px; }
.checklist { max-height: 38vh; overflow-y: auto; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 0; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: 0; }
.check-item input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--c1); }
.check-item .avatar { width: 36px; height: 36px; font-size: 15px; }
.member-list { max-height: 34vh; overflow-y: auto; margin-bottom: 8px; }
.member-list .chat-item { padding: 8px 4px; }
.member-list .avatar { width: 40px; height: 40px; font-size: 16px; }
.remove-member { font-size: 16px; color: var(--muted); }
#grp-add-box { margin-top: 8px; }

/* =====================================================================
   Sticker & GIFs
   ===================================================================== */
.emoji-grid.sticker-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.emoji-grid.gif-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.grid-head { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--c1); text-transform: uppercase; letter-spacing: .5px; padding: 6px 2px 0; }
.sticker-tile, .sticker-add, .gif-tile {
  aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; padding: 4px; cursor: pointer; overflow: hidden;
}
.sticker-tile:active, .sticker-tile:hover { background: var(--panel-2); }
.sticker-tile img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sticker-add { background: var(--panel-2); color: var(--muted); font: inherit; font-size: 13px; white-space: pre-line; border: 1px dashed var(--line); }
.gif-tile { aspect-ratio: auto; height: 110px; padding: 0; background: var(--panel-2); }
.gif-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gif-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 0; }
.gif-bar input { margin: 0; padding: 8px 12px; border-radius: 18px; }
.giphy-credit { font-size: 10px; color: var(--muted); white-space: nowrap; }

.media.sticker { width: 150px; min-width: 0; background: none; }
.media.sticker img { width: 100%; display: block; }
.media.gif { width: 240px; max-width: 100%; position: relative; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); }
.media.gif video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.55); color: #fff; padding: 1px 6px; border-radius: 6px; }
#emoji-tabs [data-cat="gif"] { font-size: 13px; font-weight: 800; color: var(--text); }
.sticker-tile, .sticker-add { aspect-ratio: auto; height: 88px; width: 100%; }
.emoji-grid.sticker-grid, .emoji-grid.gif-grid { grid-auto-rows: auto; }
.sticker-add { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.sound-row { margin: 4px 0 6px; }
.sound-row select {
  flex: 1; padding: 10px 12px; border-radius: 12px; background: var(--input-bg); color: var(--text);
  border: 1px solid var(--line); font: inherit;
}

/* =====================================================================
   Anhang-Menü & Standort
   ===================================================================== */
.attach-menu {
  display: flex; flex-direction: column; gap: 2px; padding: 8px; margin: 0 8px 6px; align-self: flex-start;
  background: var(--panel); border: 1px solid rgba(var(--c1-rgb), .35); border-radius: 16px; box-shadow: var(--glow-cyan);
}
.attach-menu button { text-align: left; padding: 12px 14px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.attach-menu button:active, .attach-menu button:hover { background: var(--panel-2); }

.media.location { width: 250px; max-width: 100%; color: var(--text); }
.map {
  position: relative; width: 100%; height: 150px; overflow: hidden; border-radius: 12px; background: #c9d7e3; cursor: pointer;
}
.map img.tile { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.map .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -92%); font-size: 34px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); pointer-events: none; }
.map .acc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(47,140,255,.18); border: 2px solid rgba(47,140,255,.6); pointer-events: none; }
.map .osm { position: absolute; right: 4px; bottom: 2px; font-size: 9px; color: #333; background: rgba(255,255,255,.75); padding: 0 4px; border-radius: 4px; }
.map-off { height: 90px; display: grid; place-items: center; font-size: 40px; background: var(--panel-2); }
.loc-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 2px 0; font-size: 13px; }
.loc-info a { color: var(--c1); font-weight: 700; text-decoration: none; white-space: nowrap; }
.loc-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-info { flex-wrap: wrap; row-gap: 2px; }
.loc-info span { overflow: visible; text-overflow: clip; }

/* =====================================================================
   Dokumente, Weiterleiten, Markiert
   ===================================================================== */
.doc-card {
  display: flex; align-items: center; gap: 12px; min-width: 220px; max-width: 280px; padding: 10px; border-radius: 12px;
  background: rgba(var(--bg-rgb), .35); color: var(--text); text-decoration: none; cursor: pointer; border: 0; font: inherit; text-align: left; width: 100%;
}
.doc-icon {
  flex: none; width: 42px; height: 50px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800;
  color: #fff; background: var(--grad); position: relative;
}
.doc-icon::before { content: attr(data-emoji); position: absolute; top: 4px; font-size: 18px; }
.doc-icon span { position: absolute; bottom: 4px; }
.doc-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.doc-sub { font-size: 12px; color: var(--muted); }
.doc-action { margin-left: auto; font-size: 20px; }
.fwd-label { font-size: 12px; font-style: italic; color: var(--muted); margin-bottom: 3px; }
.star-mark { margin-right: 4px; }
#fwd-search { margin: 0 0 8px; }
.starred-list { max-height: 60vh; overflow-y: auto; }
.starred-list .chat-item { padding: 10px 4px; }

/* Sprachnachrichten */
.voice { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 4px 2px; }
.voice-play {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 14px;
  background: var(--grad); box-shadow: 0 0 10px rgba(var(--c1-rgb), .45);
}
.voice-right { flex: 1; min-width: 0; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; touch-action: none; }
.voice-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .35; transition: opacity .15s; }
.voice-wave i.on { opacity: 1; color: var(--c2); }
.mine .voice-wave i.on { color: #fff; }
.voice-info { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; font-size: 11px; color: var(--muted); }
.voice-speed {
  border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 10px; padding: 0 7px;
  font-size: 11px; font-weight: 700; cursor: pointer; line-height: 18px;
}

/* Chatliste: angeheftet, stumm, archiviert */
.chat-item .flags { font-size: 12px; margin-left: 4px; opacity: .8; }
.badge.muted-badge { background: var(--muted); box-shadow: none; }
.badge.mention-badge { background: var(--c2); }
.archive-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; }
.archive-row .grow { color: var(--text); }
.archive-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; list-style: none; }
.sheet-title { padding: 10px 16px 4px; font-weight: 700; color: var(--muted); font-size: 13px; }
.mute-opts { display: flex; gap: 6px; padding: 0 12px 8px; }
.mute-opts button { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 8px; cursor: pointer; font: inherit; }

/* @Erwähnungen */
.composer { position: relative; }
.mention-box {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); max-height: 220px; overflow-y: auto; z-index: 5;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.mention-box button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--text); padding: 8px 12px; font: inherit; cursor: pointer; text-align: left; }
.mention-box button.sel, .mention-box button:hover { background: rgba(var(--c1-rgb), .15); }
.mention-box .avatar { width: 30px; height: 30px; font-size: 13px; }
.mention { color: var(--c1); font-weight: 700; }
.mention.me { background: rgba(var(--c1-rgb), .2); border-radius: 5px; padding: 0 3px; }

/* Einmal ansehen */
.once-card { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 10px 12px; border-radius: 12px; border: 1px dashed currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.once-card[disabled] { cursor: default; opacity: .7; }
.once-card .once-ic { font-size: 22px; }
#once-viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
#once-viewer[hidden] { display: none; }
.once-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: #fff; font-size: 14px; }
.once-head .icon { color: #fff; }
.once-body { flex: 1; display: grid; place-items: center; min-height: 0; }
.once-body img, .once-body video { max-width: 100%; max-height: 100%; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* App-Sperre */
#lock-screen {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(var(--c1-rgb), .25), transparent 60%), var(--bg);
  backdrop-filter: blur(20px);
}
#lock-screen[hidden] { display: none; }
.lock-card { width: min(340px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lock-card .logo { font-size: 44px; }
.pin-dots { display: flex; gap: 12px; min-height: 18px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c1); }
.pin-dots i.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 8px rgba(var(--c1-rgb), .6); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; margin: 6px 0; }
.pin-pad button {
  height: 72px; border-radius: 50%; border: 1px solid var(--line); background: rgba(var(--c1-rgb), .07);
  color: var(--text); font-size: 26px; cursor: pointer; font-family: inherit;
}
.pin-pad button:active { background: rgba(var(--c1-rgb), .3); }
.pin-pad button.ghost { border: 0; background: transparent; font-size: 22px; }

.logo-mark { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); position: relative; z-index: 1; }
