@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* ------------------------------------------------------------------ design tokens: palette 1a "Işık" (dark default, light by system)
   A dark ground with a low violet halo (--bg-grad) under translucent "glass" surfaces; one violet accent. --accent is a fill
   (white on it), --accent-text the same hue where it must read as text, --switch-on the switches. --surface is glass
   over the gradient; --solid an opaque card where nothing may show through. Design reference: the Claude Design canvas
   "phanorm" (24 phone screens, components, desktop; 2026-10-30). */
:root {
  --bg-grad: radial-gradient(130% 55% at 50% 112%, rgba(133, 82, 232, .20), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2));
  --bg: #110E15; --bg-2: #18121F; --solid: #1C1823; --cover: #110E15;
  --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .11); --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .22); --divider: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .12); --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); --glass-fx: blur(24px) saturate(150%);
  --field-line: rgba(255, 255, 255, .36);  /* the edge of what one types into (fields, code boxes, keypad, composer) */
  --av1: #5B3A8C; --av2: #2F4E7A; --av3: #7A3355; --av4: #2E6466; --av5: #6E4A2E; --avfg: #FFFFFF;  /* a tone per person */
  --text: #F4F1F7; --muted: #B6AEC0; --faint: #9A92A4;
  --accent: #8552E8; --accent-ink: #FFFFFF; --accent-text: #C4A8FF;  /* palette 1a */ --accent-soft: rgba(133, 82, 232, .22);
  --out: #4A2B8A; --out-ink: #FFFFFF; --out-faint: rgba(255, 255, 255, .78); --out-line: rgba(255, 255, 255, .3); --in: rgba(255, 255, 255, .08);
  --fuse-in: #C4A8FF; --fuse-out: #FFFFFF;
  --danger: #FF8A80; --danger-fill: #C42F2F; --danger-ink: #FFFFFF; --danger-bg: rgba(255, 138, 128, .1); --danger-line: rgba(255, 138, 128, .4); --fail-bg: rgba(255, 138, 128, .1);
  --rec-bg: rgba(214, 58, 58, .22); --rec-line: rgba(255, 138, 128, .45);
  --warn: #FFB454; --warn-bg: rgba(255, 180, 84, .08); --warn-line: rgba(255, 180, 84, .32); --ok: #5FD3A0;
  --switch-off: #8D8597; --switch-on: #8552E8; --sheet: rgba(29, 25, 36, .96); --sheet-row: rgba(255, 255, 255, .075);
  --scrim: rgba(0, 0, 0, .45); --radius: 24px; --pad: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Manrope", system-ui, sans-serif;
  --panel: #14111A; --halo: rgba(133, 82, 232, .25);
  --cover-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='14 12 80 80'%3E%3Cpath d='M34 82 L34 42 A20 20 0 1 1 54 62 L46 62' fill='none' stroke='%23B6AEC0' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='54' cy='42' r='6' fill='%23B6AEC0'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23B6AEC0' d='M530-481 353-658q-9-9-8.5-21t9.5-21q9-9 21.5-9t21.5 9l198 198q5 5 7 10t2 11q0 6-2 11t-7 10L396-261q-9 9-21 8.5t-21-9.5q-9-9-9-21.5t9-21.5l176-176Z'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* Light: by the system unless Ayarlar › Görünüm says "Koyu"; always with "Açık" (html[data-theme], main.ts applyTheme) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-grad: radial-gradient(130% 55% at 50% 112%, rgba(133, 82, 232, .10), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2));
    --bg: #FBFAFD; --bg-2: #F2EFF8; --solid: #FFFFFF; --cover: #F2EFF8;
    --surface: rgba(255, 255, 255, .80); --surface-2: #FFFFFF; --line: rgba(30, 20, 45, .08); --line-2: rgba(30, 20, 45, .22); --divider: rgba(30, 20, 45, .08);
    --glass-line: #DCD6E4; --glass-shadow: 0 4px 18px rgba(30, 20, 45, .07);  /* 3:1 against the light ground (a white edge vanished) */
    --field-line: #7A7386;  /* a white edge on a near-white ground hid the fields */
    --av1: #E4DAF7; --av2: #D9E4F4; --av3: #F3DCE6; --av4: #D7EDE9; --av5: #F1E3D3; --avfg: #1F1830;
    --text: #17121F; --muted: #5A5366; --faint: #6E6779;
    --accent: #6A35C9; --accent-ink: #FFFFFF; --accent-text: #5B2BB5; --accent-soft: rgba(106, 53, 201, .1);
    --out: #6A35C9; --out-ink: #FFFFFF; --out-faint: rgba(255, 255, 255, .82); --out-line: rgba(255, 255, 255, .3); --in: #EEEAF4;
    --fuse-in: #5B2BB5; --fuse-out: #FFFFFF;
    --danger: #B3261E; --danger-fill: #B3261E; --danger-ink: #FFFFFF; --danger-bg: rgba(179, 38, 30, .07); --danger-line: rgba(179, 38, 30, .35); --fail-bg: rgba(179, 38, 30, .07);
    --rec-bg: rgba(179, 38, 30, .12); --rec-line: rgba(179, 38, 30, .35);
    --warn: #9A5B00; --warn-bg: rgba(255, 244, 227, .8); --warn-line: #F0D2A6; --ok: #1A7654;
    --switch-off: #8C8597; --switch-on: #6A35C9; --sheet: rgba(255, 255, 255, .97); --sheet-row: rgba(255, 255, 255, .62);
    --scrim: rgba(30, 20, 45, .25); --shadow: 0 10px 30px rgba(30, 20, 45, .12);
    color-scheme: light;
    --panel: #F6F4FA; --halo: rgba(133, 82, 232, .12);
    --cover-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='14 12 80 80'%3E%3Cpath d='M34 82 L34 42 A20 20 0 1 1 54 62 L46 62' fill='none' stroke='%235A5366' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='54' cy='42' r='6' fill='%235A5366'/%3E%3C/svg%3E");
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%235A5366' d='M530-481 353-658q-9-9-8.5-21t9.5-21q9-9 21.5-9t21.5 9l198 198q5 5 7 10t2 11q0 6-2 11t-7 10L396-261q-9 9-21 8.5t-21-9.5q-9-9-9-21.5t9-21.5l176-176Z'/%3E%3C/svg%3E");
  }
}
:root[data-theme="light"] {
    --bg-grad: radial-gradient(130% 55% at 50% 112%, rgba(133, 82, 232, .10), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2));
    --bg: #FBFAFD; --bg-2: #F2EFF8; --solid: #FFFFFF; --cover: #F2EFF8;
    --surface: rgba(255, 255, 255, .80); --surface-2: #FFFFFF; --line: rgba(30, 20, 45, .08); --line-2: rgba(30, 20, 45, .22); --divider: rgba(30, 20, 45, .08);
    --glass-line: #DCD6E4; --glass-shadow: 0 4px 18px rgba(30, 20, 45, .07);  /* 3:1 against the light ground (a white edge vanished) */
    --field-line: #7A7386;  /* a white edge on a near-white ground hid the fields */
    --av1: #E4DAF7; --av2: #D9E4F4; --av3: #F3DCE6; --av4: #D7EDE9; --av5: #F1E3D3; --avfg: #1F1830;
    --text: #17121F; --muted: #5A5366; --faint: #6E6779;
    --accent: #6A35C9; --accent-ink: #FFFFFF; --accent-text: #5B2BB5; --accent-soft: rgba(106, 53, 201, .1);
    --out: #6A35C9; --out-ink: #FFFFFF; --out-faint: rgba(255, 255, 255, .82); --out-line: rgba(255, 255, 255, .3); --in: #EEEAF4;
    --fuse-in: #5B2BB5; --fuse-out: #FFFFFF;
    --danger: #B3261E; --danger-fill: #B3261E; --danger-ink: #FFFFFF; --danger-bg: rgba(179, 38, 30, .07); --danger-line: rgba(179, 38, 30, .35); --fail-bg: rgba(179, 38, 30, .07);
    --rec-bg: rgba(179, 38, 30, .12); --rec-line: rgba(179, 38, 30, .35);
    --warn: #9A5B00; --warn-bg: rgba(255, 244, 227, .8); --warn-line: #F0D2A6; --ok: #1A7654;
    --switch-off: #8C8597; --switch-on: #6A35C9; --sheet: rgba(255, 255, 255, .97); --sheet-row: rgba(255, 255, 255, .62);
    --scrim: rgba(30, 20, 45, .25); --shadow: 0 10px 30px rgba(30, 20, 45, .12);
    color-scheme: light;
    --panel: #F6F4FA; --halo: rgba(133, 82, 232, .12);
    --cover-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='14 12 80 80'%3E%3Cpath d='M34 82 L34 42 A20 20 0 1 1 54 62 L46 62' fill='none' stroke='%235A5366' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='54' cy='42' r='6' fill='%235A5366'/%3E%3C/svg%3E");
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%235A5366' d='M530-481 353-658q-9-9-8.5-21t9.5-21q9-9 21.5-9t21.5 9l198 198q5 5 7 10t2 11q0 6-2 11t-7 10L396-261q-9 9-21 8.5t-21-9.5q-9-9-9-21.5t9-21.5l176-176Z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic { width: 24px; height: 24px; fill: currentColor; stroke: none; }  /* Material Symbols Rounded (Apache 2.0), inlined */

.device { position: relative; height: 100%; max-width: 460px; margin: 0 auto; background: var(--bg); overflow: hidden; }
@media (min-width: 560px) { .device { height: min(900px, 100vh); margin-top: max(0px, calc((100vh - 900px) / 2));
  border: 1px solid var(--surface-2); border-radius: 28px; box-shadow: var(--shadow); } }

.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg);
  animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }
.scroll { overflow-y: auto; }

/* ------------------------------------------------------------------ top bar */
.bar { display: flex; align-items: center; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 8px 10px 4px;
  min-height: 60px; user-select: none; background: var(--bg); z-index: 2; }
#v-chat .bar { border-bottom: 1px solid var(--line); }
.peer { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.peer-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.peer-name { font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.peer-sub svg { width: 12px; height: 12px; color: var(--accent-text); }
.title { font-weight: 800; font-size: 18px; flex: 1; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 14px;
  background: var(--surface-2); color: var(--text); font-weight: 700; }
.bar-actions { display: flex; align-items: center; gap: 0; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; border-radius: 22px; color: var(--text); display: grid; place-items: center; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--text); background: var(--surface); }  /* focus keeps the accent ring */
.chip-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 12px; border: 0;
  background: var(--surface); color: var(--accent-text); font: 700 13px var(--font); }
.chip-btn::before { content: ""; position: absolute; inset: -8px -4px; }  /* 44 px to tap, 28 px to see */
.chip-btn svg { display: none; }  /* the words say it (Sis: no icon in the chip) */
.chip-btn[disabled] { opacity: .5; }

/* ------------------------------------------------------------------ threads */
.thread { flex: 1; overflow-y: auto; padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.99); } to { opacity: 1; transform: none; } }

/* the composer: + (the picker), the field (emoji inside on a computer), the round mic / send beside it */
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); position: relative; }
.composer .pill { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 26px;
  background: var(--surface); border: 2px solid transparent; }
.composer .pill:focus-within { border-color: var(--accent-text); }
.composer textarea { flex: 1; min-width: 0; resize: none; max-height: 130px; min-height: 44px; background: transparent; border: 0;
  padding: 11px 4px; outline: none; line-height: 1.35; font-size: 16px; font-weight: 500; }
.send, .composer .mic { width: 52px; height: 52px; border-radius: 26px; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; flex: none; transition: transform .1s ease; }
.send:active, .composer .mic:active { transform: scale(.94); }

/* ------------------------------------------------------------------ private chat */
.day { align-self: center; font: 600 13px var(--font); color: var(--muted); padding: 4px 0 8px; margin: 4px 0; }
.pm { position: relative; max-width: 76%; padding: 12px 16px 0; border-radius: 22px; cursor: pointer; touch-action: none; overflow: hidden;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; animation: pop .18s ease both; }
.pm.out { align-self: flex-end; background: var(--out); color: var(--out-ink); border-bottom-right-radius: 6px; }
.pm.in { align-self: flex-start; background: var(--in); border: 1px solid var(--in); border-bottom-left-radius: 6px; }
.pm .blk { display: flex; align-items: center; gap: 8px; width: 190px; height: 22px; color: var(--muted); font-size: 13px; }
.pm .blk::before { content: ""; flex: 1; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 2.2s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pm .body { display: none; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; font-weight: 500; }  /* 400 reads thin on a phone */
.pm.reveal .body { display: block; }
.pm.reveal .blk { display: none; }
.pm .meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 4px 0 10px; font: 600 12px var(--font); color: var(--muted); }
.pm.out .meta { color: var(--out-faint); }
.pm .meta svg { width: 12px; height: 12px; }
.pm .left { font-variant-numeric: tabular-nums; }
/* the fuse: how much of the message's time is left, a hairline at the bubble's foot (still, no colour change) */
.pm .fuse { display: none; }  /* Sis: the chat's duration is on its chip; the words are in .left in the last hour */
.pm .fuse i { display: block; height: 2px; background: var(--fuse-in); }
.pm.out .fuse { background: var(--out-line); }
.pm.out .fuse i { background: var(--fuse-out); }
.pm.expired { align-self: center; max-width: none; cursor: default; background: transparent; border: 1px dashed var(--line); color: var(--faint);
  font-size: 12px; padding: 6px 12px; border-radius: 14px; display: flex; align-items: center; gap: 6px; }
.pm.expired svg { width: 13px; height: 13px; }
.hint { text-align: center; font-size: 12px; color: var(--faint); padding: 8px var(--pad) 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hint svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ cards: unlock, setup, kit, pair */
.unlock, .pair { margin: auto; width: 100%; min-height: 100%; padding: calc(96px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.unlock h1, .pair h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; line-height: 1.1; }
.lead { color: var(--muted); max-width: 340px; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; }
.lock-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); }
.lock-icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.steps { display: flex; gap: 4px; margin-bottom: 4px; }
.steps i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }
.primary, .secondary { width: 100%; max-width: 360px; min-height: 56px; padding: 0 20px; border-radius: 28px; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s ease, opacity .1s ease; }
.primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.secondary { background: transparent; border: 0; color: var(--text); font-weight: 600; font-size: 16px; min-height: 48px; }  /* Sis: the second action is a text button */
.primary:active, .secondary:active { transform: scale(.985); }
.primary[disabled], .secondary[disabled] { opacity: .55; }
.or { color: var(--faint); font-size: 13px; }
.unlock-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.unlock-form label:not(.row) { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 4px; }
.unlock-form input, .unlock-form textarea { min-height: 52px; background: var(--surface); border: 2px solid transparent; border-radius: 14px; padding: 0 14px;
  outline: none; resize: none; font-size: 16px; }
.unlock-form textarea { border-radius: 14px; padding: 14px; font-family: var(--mono); font-size: 16px; }
.unlock-form input:focus, .unlock-form textarea:focus { border-color: var(--accent-text); }
.unlock-form .primary, .unlock-form .secondary { max-width: none; margin-top: 6px; }
/* The Capacitor shell: no service worker, web push, passkey or storage persistence there (main.ts NATIVE) */
html.native .web-only { display: none !important; }
/* Face ID set up (and "Açılışta şifre de iste" off): the lock screen is Face ID only; "Şifreyle aç" shows the password */
#v-lock:not(.faceid) #l-usepw, #v-lock:not(.faceid) .faceid-only, #v-lock.faceid #l-lead, #v-lock.faceid #l-form { display: none; }
.error { min-height: 18px; color: var(--danger); font-size: 13px; line-height: 1.45; }
.error.ok { color: var(--ok); }
.link { background: none; border: 0; color: var(--text); font-weight: 600; font-size: 16px; padding: 8px; min-height: 44px; }
.link:hover { color: var(--text); }
.fine { color: var(--faint); font-size: 12px; line-height: 1.45; max-width: 340px; margin: 0; }
.warn-note { display: flex; gap: 8px; color: var(--muted); font-size: 13px; max-width: none; }
.kit { font: 15px/1.6 var(--mono); word-break: break-all; width: 100%; max-width: 360px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; user-select: all; text-align: left; }
.code-box { width: 100%; max-width: 360px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.code-box .kit { max-width: none; border: 0; padding: 0; background: none; font-size: 14px; }
.code-actions { display: flex; gap: 8px; }
.invite-code { font: 500 30px/1.2 var(--mono); letter-spacing: .04em; }
.invite-link { font: 12px/1.4 var(--mono); color: var(--faint); word-break: break-all; }
.code-actions .secondary { min-height: 50px; font-size: 15px; }
.row { display: flex; gap: 14px; align-items: center; justify-content: space-between; width: 100%; }
.row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.check { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; text-align: left; font-size: 14px; color: var(--text); }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.divider { width: 100%; max-width: 360px; display: flex; align-items: center; gap: 12px; color: var(--muted); font: 600 13px var(--font); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------------ settings (grouped list) */
.settings { padding: 8px 16px 34px; display: flex; flex-direction: column; gap: 24px; }
.set-group { display: flex; flex-direction: column; gap: 8px; }
.set-title { font: 700 13px var(--font); color: var(--muted); padding: 0 16px; }
.set-card { background: var(--surface); border-radius: 16px; overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--divider); min-height: 52px; }
.set-row:last-child { border-bottom: 0; }
.set-row > span:first-child { font-size: 16px; font-weight: 600; }
.set-row .val { color: var(--muted); font-size: 15px; font-weight: 600; text-align: right; }
.set-row select, .set-row input { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; max-width: 60%; }
.set-row select, .set-row input:not(.switch) { min-height: 44px; }
.set-row select:focus, .set-row input:not(.switch):focus { border-color: var(--accent-text); outline: none; }  /* switches keep the ring */
.set-row button.inline { background: none; border: 0; color: var(--accent-text); font-weight: 600; font-size: 14px; padding: 4px 0; min-height: 44px; min-width: 44px; }
.set-row.stack { flex-direction: column; align-items: stretch; }
.set-row.nav { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; color: var(--text); font-size: 16px; font-weight: 600; text-align: left; }
.set-row.nav .val { display: flex; align-items: center; gap: 6px; margin-left: auto; }  /* the value sits by the chevron */
.set-row.nav svg { flex: none; width: 22px; height: 22px; color: var(--muted); }  /* one chevron everywhere */
.set-note { color: var(--muted); font-size: 13px; line-height: 1.45; padding: 0 16px; }
.danger { color: var(--danger) !important; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
/* the danger zone: report and block, apart from everything else */
.set-card.danger-zone { background: var(--danger-bg); border: 1px solid var(--danger-line); }
.set-card.danger-zone .set-row { border-bottom-color: var(--danger-line); }
.set-title.danger-title { color: var(--danger); }
/* Ayarlar at a glance: Face ID, recovery backup, panic password */
.status-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.status-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; min-height: 84px;
  display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--text); }
.status-tile i { width: 8px; height: 8px; border-radius: 4px; background: var(--accent-text); }
.status-tile span { font-size: 12px; color: var(--muted); }
.status-tile b { font-size: 14px; font-weight: 600; }
.status-tile.warn { border-color: var(--warn-line); }
.status-tile.warn i { background: var(--warn); }
.big-title { margin: 0; font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.page-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }

/* ------------------------------------------------------------------ bottom sheet */
.sheet { position: absolute; inset: 0; background: var(--scrim); display: flex; align-items: flex-end; z-index: 12;  /* over a notice (it is announced anyway) */ animation: fade .15s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-card { width: 100%; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; animation: up .2s ease both; box-shadow: var(--shadow); max-height: calc(100% - 40px); overflow-y: auto; }
/* A wide window: settings in a readable column, not lines across the whole panel */
@media (min-width: 720px) { .settings { max-width: 620px; margin-left: auto; margin-right: auto; width: 100%; } }
/* A wide window: the sheet is a centred card, not a strip across the whole app */
@media (min-width: 720px) { .sheet { align-items: center; justify-content: center; } .sheet-card { max-width: 440px; border-radius: 24px; padding-bottom: 20px; } .sheet-grip { display: none; } }
@keyframes up { from { transform: translateY(30px); } to { transform: none; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; margin-bottom: 4px; }
.sheet-title { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.sheet-sub { color: var(--muted); font-size: 13px; }
.opt { display: flex; align-items: center; justify-content: space-between; background: none; border: 0; border-top: 1px solid var(--divider); padding: 0 6px; min-height: 54px;
  font-size: 16px; text-align: left; color: var(--text); }
.opt:first-child { border-top: 0; }
.opt:hover { background: var(--surface-2); }
.opt .tick { color: var(--accent-text); visibility: hidden; }
.opt.on .tick { visibility: visible; }
/* media */
.pm .blk.media { width: auto; gap: 10px; color: inherit; font-size: 15px; height: auto; min-height: 22px; }
.pm .blk.media::before { display: none; }
.pm .blk.media svg { width: 20px; height: 20px; color: var(--accent-text); }
.pm.out .blk.media svg { color: var(--fuse-out); }
.pm .body img { display: block; max-width: 240px; max-height: 320px; border-radius: 15px; margin: -4px -8px 0; }
.pm .body .audio { display: flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: 14px; }
.pm .body .audio svg { width: 18px; height: 18px; }
.pm.busy .blk { opacity: .6; }
.composer .icon-btn { width: 44px; height: 44px; flex: none; }
/* "+": the menu over the composer (photo, video, file; emoji) */
#c-plus[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.emoji-panel { position: absolute; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 7; max-height: 232px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); }
.emoji-panel.hidden { display: none; }
.emoji-panel button { font-size: 24px; line-height: 1; min-height: 44px; padding: 6px 0; border: 0; background: none; border-radius: 12px; cursor: pointer; }
.emoji-panel button:active { background: var(--surface-2); }
.composer .mic.on { background: var(--danger); color: var(--danger-ink); transform: scale(1.08); }
.rec { flex: 1; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 26px; background: var(--surface);
  border: 1px solid var(--danger); font: 500 14px var(--mono); }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec .rec-hint { color: var(--muted); font: 12px var(--font); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .pill:has(+ .rec:not(.hidden)), .composer .rec:not(.hidden) ~ .pill { display: none; }
input.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--switch-off); position: relative;
  transition: background .15s ease; flex: none; cursor: pointer; border: 0; padding: 0; max-width: none; min-height: 0; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease; }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { transform: translateX(20px); }
/* Mic while the field is empty, send once there is text (no :has(): both stay, as before) */
.composer:has(#c-input:placeholder-shown) .send { display: none; }
.composer:not(:has(#c-input:placeholder-shown)) .mic:not(.on) { display: none; }
/* Recording: the text field is hidden (iPhone Safari then stops matching :placeholder-shown): the mic stays, no send */
.composer:has(#c-mic.on) .send { display: none; }
/* Time left: written out only in the last hour (main.ts tickLeft); before that read out, not shown */
.pm .meta .left.far { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pm .meta .left.far + .sep { display: none; }
.pm .once-tag { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--mono); color: var(--accent-text); margin-top: 3px; }
/* view-once: a dashed card until it is held open */
.pm.force-mask { border: 1px dashed var(--accent-text); background: transparent; color: var(--text); padding-bottom: 12px; }
.pm.force-mask .blk { width: auto; height: auto; color: var(--text); font-weight: 600; font-size: 15px; gap: 12px; }
.pm.force-mask .blk::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 18px; animation: none;  /* the eye: "Bir kez açılır" */
  background: var(--accent-text); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%20-960%20960%20960%22%3E%3Cpath%20d%3D%22M480-320q75%200%20127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75%200-127.5%2052.5T300-500q0%2075%2052.5%20127.5T480-320Zm0-72q-45%200-76.5-31.5T372-500q0-45%2031.5-76.5T480-608q45%200%2076.5%2031.5T588-500q0%2045-31.5%2076.5T480-392Zm0%20192q-146%200-266-81.5T40-500q54-137%20174-218.5T480-800q146%200%20266%2081.5T920-500q-54%20137-174%20218.5T480-200Z%22/%3E%3C/svg%3E") center / 22px no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%20-960%20960%20960%22%3E%3Cpath%20d%3D%22M480-320q75%200%20127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75%200-127.5%2052.5T300-500q0%2075%2052.5%20127.5T480-320Zm0-72q-45%200-76.5-31.5T372-500q0-45%2031.5-76.5T480-608q45%200%2076.5%2031.5T588-500q0%2045-31.5%2076.5T480-392Zm0%20192q-146%200-266-81.5T40-500q54-137%20174-218.5T480-800q146%200%20266%2081.5T920-500q-54%20137-174%20218.5T480-200Z%22/%3E%3C/svg%3E") center / 22px no-repeat; }
.pm.force-mask.reveal { border-style: solid; background: var(--in); }
/* default (masking off): text is simply readable; media open with a tap; view-once always needs a hold */
#v-chat.unmasked .pm:not(.force-mask) .blk:not(.media) { display: none; }
#v-chat.unmasked .pm:not(.force-mask) .body { display: block; }
#v-chat.unmasked .pm:not(.force-mask) { cursor: default; touch-action: auto; user-select: text; -webkit-user-select: text; }
.toast { position: absolute; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; white-space: nowrap; z-index: 20; box-shadow: var(--shadow); animation: fade .15s ease both; }  /* above sheets (12): a toast from inside one must show */

/* Try-out mode (#deneme) */
.demo-pill { position: absolute; left: 50%; top: calc(56px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 5;
  height: 30px; padding: 0 14px; border-radius: 15px; background: var(--surface-2); color: var(--muted); font: 12px var(--mono); white-space: nowrap;
  display: inline-flex; align-items: center; pointer-events: none; }
.demo-pill.hidden { display: none; }

/* Partner key changed / an unexpected member / an invite waiting: the chat stops and says why */
.keywarn { display: none; margin: 18px 14px 0; padding: 18px; border-radius: 20px; border: 1px solid var(--danger);
  background: var(--danger-bg); flex-direction: column; gap: 10px; }
.keywarn b { font-size: 16px; font-weight: 600; }
.keywarn span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.keywarn .secondary { align-self: flex-start; width: auto; min-height: 44px; font-size: 14px; color: var(--danger); font-weight: 600; }
.keywarn.pending-warn { border-color: var(--line-2); background: var(--surface); }
.keywarn.pending-warn .secondary { color: var(--text); }
#v-chat.key-changed .keywarn { display: flex; }
#v-chat.key-changed #c-thread, #v-chat.key-changed #c-form, #v-chat.key-changed .emoji-panel { display: none; }
.safety { font: 500 22px/1.5 var(--mono); letter-spacing: .06em; text-align: center; padding: 6px 0; }
.val.warn { color: var(--danger); }

/* Deletion details and "Sunucuda ne var?" */
#v-chat.unmasked .pm.expired:not(.force-mask), .pm.expired { cursor: pointer; }
.info-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.info-body p:first-child { color: var(--text); font-weight: 600; font-size: 15px; }
#info-close { width: 100%; max-width: none; margin-top: 6px; }
.sv-tag { margin-left: 8px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 10px;
  border: 1px solid var(--faint); color: var(--faint); }
.sv-tag.live { color: var(--accent-text); border-color: var(--accent-text); }
#sv-body .set-row .val { text-align: right; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }

/* ------------------------------------------------------------------ landing (a full web page, outside the phone frame) */
.landing { position: fixed; inset: 0; overflow-y: auto; z-index: 20; background: var(--bg); scroll-behavior: smooth; }
.ln-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ln-nav { position: sticky; top: 0; z-index: 3; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ln-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; padding-top: env(safe-area-inset-top); }
.ln-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.ln-brand-sm { font-size: 15px; }
.ln-logo { width: 30px; height: 30px; flex: none; }
.ln-brand .wordmark { font-size: 21px; }
.ln-brand-sm .wordmark { font-size: 17px; }
.ln-links { display: none; gap: 22px; margin-left: auto; }
.ln-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.ln-links a:hover { color: var(--text); }
.ln-nav .ln-btn-sm { margin-left: auto; }
@media (min-width: 760px) { .ln-links { display: flex; } .ln-nav .ln-btn-sm { margin-left: 0; } }
.ln-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 16px; transition: transform .12s ease, filter .12s ease; }
.ln-btn:hover { filter: brightness(1.06); }
.ln-btn:active { transform: scale(.98); }
.ln-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.ln-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.ln-btn-ghost:hover { background: var(--surface); filter: none; }

.ln-hero { padding: 56px 0 40px; background: radial-gradient(900px 420px at 80% 0%, var(--accent-soft), transparent 70%); }
.ln-hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .ln-hero { padding: 96px 0 72px; } .ln-hero-in { grid-template-columns: 1.15fr .85fr; } }
.ln-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent-text);
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); }
.ln-hero h1 { max-width: 11.5em; text-wrap: balance; font-size: clamp(34px, 6vw, 58px); line-height: 1.06; letter-spacing: -.035em; margin: 18px 0 16px; font-weight: 650; }
.ln-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.ln-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ln-fine { color: var(--faint); font-size: 13px; margin: 14px 0 0; }

.ln-phone { justify-self: center; width: min(340px, 100%); border-radius: 36px; padding: 12px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 40px 80px -40px rgba(19, 140, 124, .45); }
.ln-phone-bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.ln-phone-bar b { display: block; font-size: 15px; }
.ln-phone-bar small { color: var(--muted); font-size: 11px; }
.ln-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 650;
  background: linear-gradient(135deg, #3D8C80, #23544D); color: #EAF7F4; }
.ln-chip { margin-left: auto; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.ln-phone-thread { display: flex; flex-direction: column; gap: 8px; padding: 14px 6px; min-height: 280px; }
.ln-day { align-self: center; font-size: 11px; color: var(--faint); margin-bottom: 4px; }
.ln-msg { max-width: 78%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; }
.ln-msg small { display: block; margin-top: 3px; font-size: 10px; opacity: .65; }
.ln-msg.in { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ln-msg.out { align-self: flex-end; background: var(--out); color: var(--out-ink); border-bottom-right-radius: 6px; }
.ln-msg.gone { color: var(--muted); font-style: italic; background: transparent; border-style: dashed; }
.ln-msg.once { color: var(--accent-text); font-weight: 600; }
.ln-phone-input { display: flex; align-items: center; gap: 8px; margin: 4px 4px 2px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.ln-phone-input i { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }

.ln-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.ln-strip-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 28px; }
@media (min-width: 760px) { .ln-strip-in { grid-template-columns: repeat(4, 1fr); } }
.ln-strip b { display: block; font-size: 28px; font-weight: 650; letter-spacing: -.02em; color: var(--accent-text); }
.ln-strip span { color: var(--muted); font-size: 14px; }

.ln-section { padding: 72px 0; }
.ln-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.ln-section h2, .ln-final h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; font-weight: 650; }
.ln-lead { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 620px; }
.ln-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .ln-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ln-grid { grid-template-columns: repeat(3, 1fr); } }
.ln-card { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ln-card h3, .ln-steps h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.ln-card p, .ln-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.ln-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.ln-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .ln-steps { grid-template-columns: repeat(3, 1fr); } }
.ln-steps li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ln-steps b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.ln-split { display: grid; gap: 24px; }
@media (min-width: 900px) { .ln-split { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.ln-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ln-limits li { padding: 14px 16px 14px 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; color: var(--text); }
.ln-limits li::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; display: grid;
  place-items: center; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.ln-faq details { max-width: 760px; }
.ln-faq details { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.ln-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ln-faq summary::-webkit-details-marker { display: none; }
.ln-faq summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
.ln-faq details[open] summary::after { content: "–"; }
.ln-faq p { color: var(--muted); margin: 10px 0 0; }
.ln-final { padding: 72px 0; text-align: center; background: radial-gradient(700px 300px at 50% 100%, var(--accent-soft), transparent 70%); }
.ln-final-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ln-final .ln-cta { justify-content: center; }
.ln-foot { border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 13px; }
.ln-foot-in { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }

/* Mesajlar (home): the chats */
.title-l { flex: 1; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.inbox { flex: 1; overflow-y: auto; padding: 8px 10px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; }
.chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-radius: 16px;
  background: transparent; text-align: left; }
.chat-row:hover, .chat-row:active { background: var(--surface); }
.chat-row .avatar { width: 48px; height: 48px; font-size: 18px; }
.chat-row.self .avatar, #v-chat.self-chat .avatar { background: var(--accent-soft); color: var(--accent-text); }
.chat-row.self .avatar svg, #v-chat.self-chat .avatar svg { width: 20px; height: 20px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font-weight: 650; font-size: 16px; }
.row-prev { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { color: var(--faint); font-size: 12px; align-self: flex-start; margin-top: 4px; }
.bar .back { margin-left: -8px; }
.add-card .primary { width: 100%; max-width: none; }
.add-card .unlock-form { max-width: none; }
/* "Sana verilen kod": the field and its button on one row */
.code-form { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.code-form label { color: var(--muted); font-size: 13px; padding: 0 4px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; min-height: 52px; background: var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 0 18px; outline: none; font: 500 17px var(--mono); letter-spacing: .04em; }
.code-row input:focus { border-color: var(--accent-text); }
.code-row .secondary { width: auto; max-width: none; min-height: 52px; margin: 0; padding: 0 22px; font-weight: 600; }
.add-card .code-box, .add-card .divider, .add-card .secondary { width: 100%; max-width: none; }
.add-card .code-actions .secondary, .add-card .code-actions .primary { flex: 1; width: auto; }
.add-card .code-row .secondary { width: auto; }
/* "Kendime not": no timer, no view-once, no partner checks */
#v-chat.self-chat #c-dur-chip, #v-chat.self-chat #c-info, #v-chat.self-chat .keywarn { display: none; }
.day.self-hint { max-width: 300px; text-align: center; line-height: 1.4; }

/* Unexpected member in the room: the chat stops (keys never go to anyone but the two people) */
#v-chat.intruder .intruder-warn { display: flex; }
#v-chat:not(.intruder) .intruder-warn { display: none; }
/* The contact has not joined (or left): no composer — nothing is sent into a chat nobody reads */
#v-chat:not(.pending) .pending-warn { display: none; }
#v-chat.pending .pending-warn { display: flex; border-color: var(--line-2); }
#v-chat.pending #c-form, #v-chat.pending .emoji-panel { display: none; }
#v-chat.intruder #c-thread, #v-chat.intruder #c-form, #v-chat.intruder #c-keywarn, #v-chat.intruder .emoji-panel { display: none; }

/* content pass: one-line verification state, notes */
.peer-sub { white-space: nowrap; overflow: hidden; }
.peer-text { overflow: hidden; }
#c-peer-ver.warn { color: var(--danger); }
.warn-note { color: var(--muted); text-align: left; margin: 2px 0 0; }
/* narrow phones (under 370 px): room for the name and its verification state in the chat header */
@media (max-width: 370px) {
  #chat-bar { gap: 6px; padding-left: 10px; padding-right: 6px; }
  #chat-bar .peer { gap: 8px; }
  #chat-bar .avatar { display: none; }  /* the name needs the room: with the call buttons only 23 px were left at 360 px */
  #chat-bar .chip-btn { padding: 0 8px; gap: 4px; }
  #chat-bar .back { margin-left: -4px; }
}
@media (max-width: 340px) { #chat-bar #c-dur-label { display: none; } }


/* Leaving the app: an opaque cover over everything at once (app-switcher snapshots) */
body.covered::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--bg); }
.set-note.warn-text { color: var(--danger); }

/* Brand: the Phanorm symbol (inline, in the signal colour) and the wordmark in the app's own Geist */
.wordmark { font-family: inherit; font-weight: 700; letter-spacing: -.03em; }
.unlock h1.wordmark { font-size: 34px; }
.brand-mark { width: 72px; height: 72px; color: var(--accent-text); }

/* Decrypted photos: no save callout, no drag, no selection (taps go to the bubble) */
.pm img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }

/* Recovery backup: the phrase, large enough to copy by hand */
.phrase { font-size: 17px; letter-spacing: .06em; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; word-break: break-word; }
.bk-step { display: flex; flex-direction: column; gap: 12px; }

/* Invite QR code and the scanner */
.qr { width: 220px; height: 220px; margin: 8px auto 0; image-rendering: pixelated; background: #fff; border-radius: 12px; }
.scan-video { width: 100%; max-height: 50vh; border-radius: 14px; background: #000; object-fit: cover; }

/* Videos: inline like photos, no save callout */
.pm .body video { display: block; max-width: 260px; max-height: 360px; border-radius: 14px; background: #000; -webkit-touch-callout: none; }

/* 1:1 call: layout only; colours are the purple-glass tokens in the "calls" block below. Over a video the top and
   the buttons get a dark scrim so the words read on any picture; a voice call has no scrim (the gradient ground). */
.call { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: space-between; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-local { position: absolute; right: 18px; top: calc(150px + env(safe-area-inset-top)); width: 104px; height: 150px; object-fit: cover; border-radius: 18px; border: 2px solid var(--glass-line); z-index: 1; }
.call-top { position: relative; z-index: 1; padding: calc(60px + env(safe-area-inset-top)) 24px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.call:has(#call-cam:not(.hidden)) .call-top { background: linear-gradient(to bottom, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.call-av { display: none; border-radius: 50%; place-items: center; margin: 90px 0 36px; }
.call:has(#call-accept:not(.hidden)) .call-av { display: grid; }
.call-status { margin-top: 6px; font-variant-numeric: tabular-nums; }
.call-actions { position: relative; z-index: 1; display: flex; gap: 26px; justify-content: center; align-items: flex-start; padding: 40px 24px 18px; }
.call:has(#call-accept:not(.hidden)) .call-actions { gap: 0; justify-content: space-around; }
.call-btn { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; padding: 0; }
.call-btn .c { display: grid; place-items: center; }
.call-btn .c svg { width: 24px; height: 24px; }
.call-note { position: relative; z-index: 1; text-align: center; margin: 0 auto calc(30px + env(safe-area-inset-bottom)); padding: 0 24px; max-width: 360px; font-size: 12px; }

/* ------------------------------------------------------------------ package 1: accessibility, chat settings, status, voice */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.bar h1.title { margin: 0; }
/* the contact's name in the chat header is the button to "Sohbet ayarları" */
button.peer { background: none; border: 0; padding: 4px 2px; margin: -4px 0; border-radius: 12px; text-align: left; color: inherit; min-height: 44px; }
button.peer:hover, button.peer:focus-visible { background: var(--surface); }
button.peer[disabled] { cursor: default; background: none; }
label.set-row { cursor: pointer; }
/* Settings › Gizlilik and the one-time card in Mesajlar */
.privacy-facts { gap: 8px; padding: 16px !important; }
.privacy-facts b { font-size: 15px; font-weight: 600; }
.privacy-facts ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.privacy-facts span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.privacy-card { margin: 4px 12px 6px; padding: 12px 14px 2px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0; }
.privacy-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.privacy-card b { color: var(--text); font-weight: 600; }
.privacy-card .link { align-self: flex-end; color: var(--accent-text); font-weight: 600; padding: 8px 4px; }
/* Mesajlar: the mark and two actions, the big title, one quiet line; the chats; "Kişi ekle" at the thumb */
.inbox-head { padding: calc(18px + env(safe-area-inset-top)) 20px 12px; display: flex; flex-direction: column; gap: 6px; }
.inbox-head .top { display: flex; align-items: center; justify-content: space-between; }
.inbox-head .brand-mark { width: 30px; height: 30px; }
.inbox-head .big-title { margin-top: 12px; }
.inbox-head .quiet { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.inbox-head .quiet::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--accent-text); flex: none; }
#i-lock { background: var(--surface-2); color: var(--text); }
.inbox { flex: 1; overflow-y: auto; padding: 4px 8px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; }
.chat-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 18px;
  background: none; color: inherit; text-align: left; min-height: 70px; }
.chat-row:hover, .chat-row:active { background: var(--surface); }
.chat-row .avatar { width: 46px; height: 46px; font-size: 17px; }
.chat-row.self { margin-top: 12px; border-top: 1px solid var(--surface-2); border-radius: 0 0 18px 18px; padding-top: 16px; }
.chat-row.self .avatar, #v-chat.self-chat .avatar { background: var(--surface-2); color: var(--accent-text); border-radius: 14px; }
#v-chat.self-chat .avatar { border-radius: 11px; }
.chat-row.self .avatar svg, #v-chat.self-chat .avatar svg { width: 20px; height: 20px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-name { font-weight: 600; font-size: 16px; }
.row-prev { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { color: var(--faint); font: 12px var(--mono); align-self: flex-start; margin-top: 4px; }
.fab-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: center;
  background: linear-gradient(to top, var(--bg) 60%, color-mix(in srgb, var(--bg) 0%, transparent)); pointer-events: none; }
.fab { pointer-events: auto; height: 56px; padding: 0 26px; border-radius: 28px; border: 0; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.fab svg { width: 20px; height: 20px; stroke-width: 2.2; }
/* Mesajlar without a contact yet: what to do first */
.inbox-empty { margin: 8px 4px 0; padding: 22px 18px; border: 1px dashed var(--line-2); border-radius: 22px; display: flex; flex-direction: column; gap: 6px; }
.inbox-empty b { font-size: 17px; font-weight: 600; }
.inbox-empty span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.chat-hint { align-self: center; max-width: 290px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); text-align: center; font-size: 12px; line-height: 1.45; color: var(--muted); margin-bottom: 8px; }
/* message status: in words under the bubble; a failure stays on its bubble */
.pm .status { white-space: nowrap; }
.pm.failed { background: var(--fail-bg); color: var(--text); border: 1px solid var(--danger); padding-bottom: 10px; }
.pm.failed .meta { color: var(--muted); padding-bottom: 0; }
.pm .fail { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 8px; font-size: 13px; }
.pm .fail b { color: var(--danger); font-weight: 600; }
.pm .fail button { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.pm .fail button.del { color: var(--muted); }
.pm .fail small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
/* voice message: play/pause, position, time, speed */
.pm.voice .blk { display: none; }
.pm.voice .body { display: block; }
.voice-player { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.voice-player .vp-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.voice-player .vp-play svg { width: 18px; height: 18px; }
.voice-player input[type=range] { flex: 1; min-width: 80px; height: 44px; accent-color: var(--fuse-in); margin: 0; }
.voice-player .vp-time { font: 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.pm.out .voice-player .vp-time { color: var(--out-faint); }
.pm.out .voice-player input[type=range] { accent-color: var(--fuse-out); }
.voice-player .vp-speed { min-width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: none; color: inherit; font: 600 12px var(--mono); }
@media (prefers-reduced-motion: reduce) { .view, .pm, .sheet, .sheet-card, .toast { animation: none !important; } .thread { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ stage 4, remaining items */
.chat-row .row-muted { color: var(--faint); align-self: center; display: grid; place-items: center; }
.chat-row .row-muted svg { width: 18px; height: 18px; }
.chat-row[aria-current="true"] { background: var(--surface); }
/* the server cannot be reached */
.conn-strip { position: absolute; left: 12px; right: 12px; top: calc(70px + env(safe-area-inset-top)); z-index: 9; padding: 12px 14px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; line-height: 1.45; box-shadow: var(--shadow); }
/* devices: signed / unsigned as a tag; a warning card */
.dev-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font: 500 12px var(--mono); }
.dev-tag.warn { color: var(--danger); background: var(--fail-bg); }
.warn-card { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--danger); background: var(--fail-bg); color: var(--text); font-size: 14px; line-height: 1.45; }
.notice-card { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--text); font-size: 13px; line-height: 1.45; }
/* recovery backup: what comes back */
.restore-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; padding: 14px 16px !important; }
.restore-lists b { font-weight: 600; }
.restore-lists ul { margin: 6px 0 0; padding-left: 16px; line-height: 1.5; color: var(--muted); }
.restore-lists div:first-child ul { color: var(--text); }
.restore-lists div:last-child b { color: var(--muted); }
.unlock-form .restore-lists { background: var(--surface); border-radius: 18px; margin-top: 6px; }
/* recovery: the phrase in groups, the step bar */
.phrase { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.phrase span { display: flex; flex-direction: column; gap: 2px; font: 500 18px var(--mono); letter-spacing: .04em; }
.phrase span small { font: 12px var(--mono); color: var(--faint); letter-spacing: 0; }
.stepbar { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--faint); }
.stepbar i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.stepbar i.on { background: var(--accent); }
/* restore: the Turkish file chooser */
.file-label { font-size: 13px; color: var(--muted); margin-top: 4px; padding: 0 4px; }
.file-pick { display: flex; align-items: center; gap: 12px; }
.file-pick .secondary { width: auto; min-height: 44px; padding: 0 18px; margin: 0; font-size: 14px; }
.file-pick .fine { overflow-wrap: anywhere; font-family: var(--mono); }
/* the lock screen: the mark, the name, one line; Face ID in the middle; the password a tap away (the panic password) */
#v-lock .unlock, #v-unlock .unlock { justify-content: flex-start; padding-top: calc(120px + env(safe-area-inset-top)); }
#v-lock .brand-mark, #v-unlock .brand-mark { width: 72px; height: 72px; }
.tagline { margin: 0; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.unlock .grow { flex: 1; }
.faceid-btn { width: 96px; height: 96px; border-radius: 48px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent-text);
  display: grid; place-items: center; }
.faceid-btn svg { width: 44px; height: 44px; stroke-width: 1.5; }
#l-faceid-label { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
/* A computer screen: Mesajlar on the left, the chat (or its settings) on the right */
.desk-empty { display: none; }
@media (min-width: 900px) {
  .device { max-width: 1200px; }
  body.split #v-inbox { right: auto; width: 340px; border-right: 1px solid var(--surface-2); animation: none; }
  body.split #v-chat, body.split #v-chatset { left: 340px; }
  body.split .conn-strip { left: 352px; }
  body.split-empty .desk-empty { display: grid; position: absolute; left: 340px; right: 0; top: 0; bottom: 0; place-items: center; color: var(--muted); font-size: 15px; }
  body.split .inbox-head .big-title { font-size: 28px; }
  /* the chat column reads at most 720 px wide, centred in the pane */
  body.split #v-chat .thread, body.split #v-chat .composer { padding-left: max(14px, calc((100% - 720px) / 2)); padding-right: max(14px, calc((100% - 720px) / 2)); }
}

/* Setup and restore: left-aligned, the main button at the foot of the screen */
.unlock.left { align-items: stretch; text-align: left; padding-top: calc(80px + env(safe-area-inset-top)); }
.unlock.left .brand-mark { width: 44px; height: 44px; }
.unlock.left h1 { margin-top: 14px; max-width: 300px; }
.unlock.left .lead, .unlock.left .unlock-form { max-width: none; }
.unlock.left .unlock-form { flex: 1; margin-top: 18px; }
.unlock.left .unlock-form > .primary { margin-top: auto; }
.unlock.left .link { align-self: center; }
.unlock .back-top { align-self: flex-start; margin: -48px 0 0 -14px; color: var(--text); }
.warn-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent-text); }
/* a wrong password: the field turns danger too (the message is under it) */
.unlock-form:has(.error:not(:empty)) input { border-color: var(--danger); }

/* Kişi ekle: title and close in one row; the invite with its QR beside the code; "Yeni davet oluştur" once one is shown */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head > div { display: flex; flex-direction: column; gap: 2px; }
.sheet-close { background: var(--surface-2); color: var(--muted); }
.code-main { display: flex; align-items: center; gap: 16px; }
.code-main .qr { width: 128px; height: 128px; border-radius: 14px; background: #FFFFFF; padding: 6px; flex: none; image-rendering: pixelated; }
.code-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.code-label { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.code-actions .primary, .code-actions .secondary { flex: 1; width: auto; min-height: 50px; font-size: 15px; }
.accent-link { color: var(--accent-text); font-weight: 500; }
#p-again { display: none; }
.add-card:has(#p-code-box:not(.hidden)) #p-again { display: inline; }
.add-card:has(#p-code-box:not(.hidden)) #p-new { display: none; }
.inbox-head .quiet { align-items: flex-start; }
.inbox-head .quiet::before { margin-top: 6px; }
.code-actions .primary, .code-actions .secondary { white-space: nowrap; padding: 0 12px; }
.code-actions svg { width: 18px; height: 18px; }
#p-again { color: var(--accent-text); }
.code-main .qr { margin: 0; }
.scan-video { height: min(420px, 50dvh); max-height: none; border-radius: 24px; background: var(--surface-2); outline: 3px solid var(--accent-text); outline-offset: -3px; }
#scan-cancel { width: 100%; max-width: none; margin-top: 6px; }
#dur-opts { display: flex; flex-direction: column; }
.opt { width: 100%; }

/* Sohbet ayarları: the person on top; report and block apart, at the end */
.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar.big { width: 56px; height: 56px; font-size: 22px; }
.avatar.huge { width: 112px; height: 112px; font-size: 40px; }
.avatar.big .ic { width: 28px; height: 28px; }
.avatar.huge .ic { width: 56px; height: 56px; }
#st-av .ic, #me-av .ic { color: var(--muted); }
.profile-btn { width: 100%; background: none; border: 0; padding: 4px 0 8px; color: var(--text); text-align: left; cursor: pointer; }
.profile-btn .profile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-btn .ic { color: var(--muted); }
.me-name { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-pic { display: flex; justify-content: center; margin: 4px 0 20px; }
.profile-sub { margin: 2px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.pill-btn { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.set-row button.inline.report, .set-row button.inline.block { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); font-weight: 400; }
.set-row button.inline.report svg { width: 18px; height: 18px; color: var(--danger); }
.set-row button.inline.block { color: var(--danger); font-weight: 600; }
.set-row button.inline.block svg { width: 18px; height: 18px; }
.safety { max-width: 12.6ch; margin: 0 auto; word-break: normal; overflow-wrap: normal; }
#chatset-bar, #settings-bar, #backup-bar, #server-bar { border-bottom: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Ayarlar sub-pages (Şifreyi değiştir, Acil şifre, Cihazlar) and the recovery card that wants attention */
.unlock-form.wide { max-width: none; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state-chip { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font: 500 12px var(--mono); display: inline-flex; align-items: center; }
.set-card.warn { border: 1px solid var(--warn-line); }
.set-card.warn .val { color: var(--warn); }
.set-row.nav[disabled] { opacity: .55; cursor: default; }
#st-devices .set-row { min-height: 68px; }
#st-devices-out-row { border: 0; justify-content: flex-end; padding: 0; min-height: 0; }
.page-intro { display: flex; flex-direction: column; gap: 8px; }
.page-intro .lead { font-size: 13px; max-width: none; }
.sv-key { color: var(--muted); }
.sv-key.live { color: var(--accent-text); }
.sv-body { display: flex; flex-direction: column; gap: 22px; }
#v-settings .settings, #v-password .settings, #v-panic .settings, #v-devices .settings, #v-backup .settings, #v-server .settings, #v-chatset .settings { padding-top: 4px; }

/* ------------------------------------------------------------------ Sis: lock, unlock, setup, restore (2026-10-29) */
.lock-screen { min-height: 100%; display: flex; flex-direction: column; padding: calc(48px + env(safe-area-inset-top)) 24px calc(34px + env(safe-area-inset-bottom)); }
.lock-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.lock-badge { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--accent-text); }
.lock-badge svg.ic { width: 40px; height: 40px; }
.lock-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.lock-actions { display: flex; flex-direction: column; gap: 6px; }
.lock-actions .primary, .lock-actions .secondary, .lock-form .primary { max-width: none; }
.lock-form { flex: 1; max-width: none; gap: 8px; }
.lock-form .page-title { margin-bottom: 12px; }
.lock-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
#l-faceid2 { display: none; }
#v-lock:not(.faceid):has(#l-faceid:not(.hidden)) #l-faceid2 { display: grid; }  /* came here with "Şifreyle aç": Face ID is one tap back */
.form-page { min-height: 100%; display: flex; flex-direction: column; padding: calc(4px + env(safe-area-inset-top)) 24px calc(34px + env(safe-area-inset-bottom)); }
.page-bar { min-height: 52px; display: flex; align-items: center; margin-left: -16px; }
.form-page .lead { margin-top: 8px; max-width: none; }
.form-page .unlock-form { max-width: none; margin-top: 20px; flex: 1; }
.form-page > .link { align-self: center; }
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1; min-width: 0; padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; color: var(--text); display: grid; place-items: center; }
.field-note { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.lock-form .grow, .form-page .grow { flex: 1; min-height: 16px; }
.lock-screen { padding-top: calc(100px + env(safe-area-inset-top)); }  /* clear of the try-out's pill */
.file-pick { background: var(--surface); border-radius: 16px; padding: 8px 8px 8px 16px; min-height: 60px; }
.file-pick .secondary { order: 2; margin-left: auto; background: var(--bg); border-radius: 12px; font-weight: 700; }
.file-pick .fine { font-family: var(--font); font-weight: 700; font-size: 15px; color: var(--text); }

/* ------------------------------------------------------------------ Sis: Sohbetler and Kişi ekle */
.inbox-head { flex-direction: row; align-items: center; gap: 4px; padding: calc(12px + env(safe-area-inset-top)) 14px 14px 22px; }
.inbox-head .big-title { margin: 0; flex: 1; }
.inbox { padding: 0 14px calc(110px + env(safe-area-inset-bottom)); gap: 8px; }
.chat-row { background: var(--surface); border-radius: 20px; padding: 14px; gap: 14px; }
.chat-row:hover, .chat-row:active { background: var(--surface-2); }
.chat-row .avatar { width: 48px; height: 48px; font-size: 17px; background: var(--bg); color: var(--text); }
.chat-row.self { margin-top: 0; border-top: 0; border-radius: 20px; padding-top: 14px; }
.chat-row.self .avatar { background: var(--bg); color: var(--text); border-radius: 50%; }
.chat-row.self .avatar svg.ic { width: 24px; height: 24px; }
.row-name { font-weight: 700; }
.row-prev { font-weight: 500; }
.row-time { font: 700 13px var(--font); color: var(--muted); }
.chat-row[aria-current="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.fab-bar { justify-content: flex-end; }
.fab { font-weight: 700; padding: 0 22px 0 18px; gap: 8px; }
.fab svg.ic { width: 24px; height: 24px; }
#v-inbox.empty .inbox { flex: none; padding-bottom: 0; }
#v-inbox.empty .fab-bar { position: static; justify-content: center; background: none; padding-top: 16px; }
.inbox-empty { margin: 14vh 0 0; padding: 0 26px; border: 0; align-items: center; text-align: center; gap: 12px; }
.inbox-empty .lock-badge { margin-bottom: 8px; }
.inbox-empty .lock-badge svg.ic { width: 40px; height: 40px; }
.inbox-empty b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.inbox-empty span { font-size: 16px; font-weight: 500; }

.add-page { align-items: stretch; }
.add-page .add-card { height: 100%; max-height: none; border-radius: 0; background: var(--bg); box-shadow: none;
  padding: calc(4px + env(safe-area-inset-top)) 20px calc(34px + env(safe-area-inset-bottom)); gap: 10px; }
@media (min-width: 720px) { .add-page { align-items: center; } .add-page .add-card { height: auto; min-height: 560px; max-height: calc(100% - 40px); border-radius: 24px; } }
.add-page .page-bar { margin-left: -8px; gap: 4px; }
#p-menu .page-title { padding: 0 4px 12px; }
.add-options { display: flex; flex-direction: column; gap: 10px; }
.add-option { width: 100%; border: 0; background: var(--surface); color: var(--text); border-radius: 20px; padding: 18px 16px;
  display: flex; gap: 14px; align-items: center; text-align: left; }
.add-option:hover { background: var(--surface-2); }
.opt-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.opt-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt-text b { font-size: 17px; font-weight: 700; }
.opt-text span { font-size: 14px; font-weight: 500; color: var(--muted); }
.add-option .chev { width: 22px; height: 22px; color: var(--muted); }
.invite-box { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 4px 0; text-align: center; }
.invite-lead { margin: 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.invite-box .invite-code { font: 800 48px/1.1 var(--font); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.invite-note { margin: -8px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.invite-box .qr { width: 220px; height: 220px; margin: 0; border-radius: 16px; padding: 0; background: #FFFFFF; image-rendering: auto; }  /* smooth: a fractional nearest-neighbour scale makes modules uneven and scanners miss */
.link-row { margin-top: auto; width: 100%; background: var(--surface); border-radius: 16px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 4px; }
.link-row .invite-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal;
  font: 600 15px var(--font); color: var(--text); text-align: left; }
.primary.small { width: auto; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; gap: 6px; }
.primary.small svg.ic { width: 20px; height: 20px; }
.invite-box .field-note { max-width: 320px; }
.code-form { flex: 1; max-width: none; }
.code-form .page-title { margin-bottom: 8px; }
.code-form .code-input { min-height: 60px; font: 800 26px var(--font); letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Sis: the chat */
#chat-bar { padding: calc(4px + env(safe-area-inset-top)) 8px 10px; gap: 2px; }
#chat-bar .avatar { display: none; }
#chat-bar .peer { flex: 0 1 auto; min-width: 0; background: none; border: 0; color: inherit; padding: 0 4px; min-height: 44px; }
#chat-bar .peer-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* read out; Sohbet ayarları shows it */
.bar-spacer { flex: 1; }
.pm.force-mask { min-height: 48px; padding: 0 16px 0 8px; border: 0; border-radius: 24px; background: var(--in); display: flex; align-items: center; gap: 10px; }
.pm.force-mask .blk { font-size: 15px; font-weight: 700; gap: 10px; }
.pm.force-mask .blk::before { width: 32px; height: 32px; border: 0; background: var(--accent); color: var(--accent-ink); font: 800 12px var(--font); }
.pm.out.force-mask { background: var(--out); color: var(--out-ink); }
.pm.out.force-mask .blk { color: var(--out-ink); }
.pm.out.force-mask .blk::before { background: var(--out-ink); color: var(--out); }
.pm.force-mask .once-tag { display: none; }  /* the pill says it */
.pm.force-mask .meta { padding: 0; }
.pm.force-mask.reveal { display: block; padding: 12px 16px 0; border-radius: 22px; background: var(--in); }
.composer { align-items: flex-end; }
.plus-btn { width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--surface); color: var(--text); flex: none; }
#c-plus[aria-expanded="true"] { background: var(--text); color: var(--bg); }
#c-plus[aria-expanded="true"] svg.ic { transform: rotate(45deg); transition: transform .15s ease; }
.composer .pill { padding: 4px 4px 4px 16px; }
#dur-sheet .sheet-card { background: var(--sheet); border-radius: 28px 28px 0 0; padding: 10px 16px calc(34px + env(safe-area-inset-bottom)); gap: 14px; }
@media (min-width: 720px) { #dur-sheet .sheet-card { border-radius: 24px; } }
#dur-sheet .sheet-grip { background: var(--switch-off); }
#dur-sheet .sheet-title { font-size: 20px; font-weight: 800; padding: 4px 4px 0; }
#dur-sheet .sheet-sub { font-size: 14px; padding: 0 4px; margin-top: -10px; }
#dur-opts { background: var(--sheet-row); border-radius: 16px; overflow: hidden; }
#dur-opts .opt { min-height: 52px; padding: 0 16px; border-top-color: var(--line-2); font: 600 16px var(--font); }
#dur-opts .opt.on { font-weight: 700; }

/* ------------------------------------------------------------------ Sis: Ayarlar and its pages */
.bar .title { margin: 0; flex: 1; text-align: left; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.danger-row > span:first-child { color: var(--danger); }
.settings > .page-title { margin: 0; }
.settings > .lead { max-width: none; }
.facts { display: flex; flex-direction: column; gap: 22px; padding: 0 4px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.fact-ic svg.ic { width: 22px; height: 22px; }
.fact b { font-size: 16px; font-weight: 700; }
.fact p { margin: 3px 0 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.primary.danger-btn { background: var(--danger); color: var(--danger-ink); }
#v-delacct .unlock-form { max-width: none; }
/* Sis: the danger zone is a plain card; its words carry the colour */
.set-card.danger-zone { background: var(--surface); border: 0; }
.set-card.danger-zone .set-row { border-bottom-color: var(--divider); }
.set-card.danger-zone svg.ic { display: none; }
.set-title.danger-title { color: var(--muted); }
#cs-title { display: none; }  /* the bar says "Sohbet ayarları" */

/* ------------------------------------------------------------------ Sis: calls (voice in the theme; a video call stays dark over the picture) */
.call { background: var(--bg); color: var(--text); }
.call-remote { background: var(--bg); }
.call-av { background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 46px; }
.call-name, .call:has(#call-accept:not(.hidden)) .call-name { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.call-status, .call:has(#call-accept:not(.hidden)) .call-status { font: 600 17px var(--font); color: var(--muted); letter-spacing: 0; text-transform: none; }
.call-btn, .call:has(#call-accept:not(.hidden)) .call-btn { color: var(--text); font: 700 14px var(--font); }
.call-btn .c { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); color: var(--text); }
.call:has(#call-accept:not(.hidden)) .call-btn .c { width: 76px; height: 76px; }
.call-btn .c svg.ic { width: 26px; height: 26px; }
.call-btn[aria-pressed="true"] .c { background: var(--text); color: var(--bg); }
.call-btn.ok .c { background: var(--accent); color: var(--accent-ink); }
.call-btn.danger .c { background: var(--danger); color: var(--danger-ink); }
.call-note { color: var(--muted); }
.call:has(#call-cam:not(.hidden)) { background: #0E0F10; color: #FFFFFF; }
.call:has(#call-cam:not(.hidden)) .call-status, .call:has(#call-cam:not(.hidden)) .call-note { color: #C9CDCE; }
.call:has(#call-cam:not(.hidden)) .call-actions { margin: 0 16px calc(24px + env(safe-area-inset-bottom)); padding: 16px 8px 12px; border-radius: 28px; background: rgba(0, 0, 0, .55); }
.call:has(#call-cam:not(.hidden)) .call-btn { color: #FFFFFF; }
.call:has(#call-cam:not(.hidden)) .call-btn .c { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
.call:has(#call-cam:not(.hidden)) .call-btn[aria-pressed="true"] .c { background: #FFFFFF; color: #111314; }
.call:has(#call-cam:not(.hidden)) .call-btn.danger .c { background: var(--danger); color: var(--danger-ink); }

/* ------------------------------------------------------------------ Sis: a computer screen (Sohbetler 380 px; Kişi ekle across its foot; the lock lives there) */
@media (min-width: 900px) {
  body.split #v-inbox { width: 380px; border-right: 1px solid var(--line); }
  body.split #v-chat, body.split #v-chatset { left: 380px; }
  body.split .conn-strip { left: 392px; }
  body.split-empty .desk-empty { left: 380px; }
  body.split .inbox-head .big-title { font-size: 26px; }
  body.split #v-inbox .fab-bar { padding: 14px; background: var(--bg); }
  body.split #v-inbox .fab { flex: 1; justify-content: center; }
  body.split #v-inbox.empty .fab { flex: none; }
  body.split #v-chat .thread, body.split #v-chat .composer { padding-left: max(16px, calc((100% - 760px) / 2)); padding-right: max(16px, calc((100% - 760px) / 2)); }
}

/* View-once while held: across the screen, never under the finger; it takes no touches (the bubble keeps the pointer) */
.once-view { position: absolute; inset: 0; z-index: 30; pointer-events: none; user-select: none; -webkit-user-select: none;
  background: var(--bg); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: calc(32px + env(safe-area-inset-top)) 28px calc(40px + env(safe-area-inset-bottom)); animation: fade .12s ease both; }
.once-view.media { background: #000; color: #fff; }
.once-view-body { max-width: 560px; width: 100%; display: flex; justify-content: center; }
.once-text { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.4; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.once-view img, .once-view video { max-width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 12px; }
.once-view-note { margin: 0; padding: 12px 18px; border-radius: 22px; background: var(--surface); font-size: 15px; font-weight: 700; }
.once-view.media .once-view-note { background: rgba(255, 255, 255, .14); color: #fff; }
body.covered .once-view { display: none; }

/* No lock set yet (ONBOARDING-DESIGN.md): nothing to lock, so no lock buttons. */
.no-lock #i-lock, .no-lock #c-lock { display: none; }
.inbox-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 8px; }
.inbox-ways .link { font-size: 14px; color: var(--muted); }
.set-row.off { opacity: .45; }

/* Emoji: in the field on a computer only; a phone's keyboard has its own emoji key */
.composer .emoji-btn { width: 44px; height: 44px; flex: none; color: var(--muted); }
@media (hover: none) { .composer .emoji-btn { display: none; } }
.pm .once-tag svg { width: 14px; height: 14px; }
/* A photo or video before it goes */
.media-preview { display: flex; justify-content: center; margin: 4px 0 12px; }
.media-preview img, .media-preview video { max-width: 100%; max-height: 46dvh; border-radius: 16px; object-fit: contain; background: var(--surface-2); }
.once-label { display: inline-flex; align-items: center; gap: 10px; }
.once-label svg { width: 22px; height: 22px; color: var(--accent-text); }
/* Mesajlar: a row slides left to show "Sil" (touch) */
.row-wrap { position: relative; overflow: hidden; border-radius: inherit; }
.row-wrap .chat-row { position: relative; z-index: 1; transition: transform .18s ease; }
.row-wrap.swiped .chat-row { transform: translateX(-96px); }
.row-del { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; border: 0; background: var(--danger); color: var(--danger-ink, #fff); font-weight: 700; font-size: 15px; }

/* ================================================================== purple glass (Claude Design "phanorm", 2026-10-30)
   One gradient ground for every screen; cards, rows, bubbles and fields are glass over it (translucent fill, hairline
   border, soft top light). Blur (backdrop-filter) only where content moves underneath (the chat header, the composer,
   sheets, the round buttons over lists); a list of cards on a smooth gradient looks the same without it and scrolls
   lighter on a phone. Overrides the earlier layers above. */
html, body { background: var(--bg-2); }
.device, .view, .landing { background: var(--bg-grad); }
@media (min-width: 560px) { .device { border-color: var(--line-2); } }
.glassy, #i-lock, #i-settings, .bar > .icon-btn:first-child, .page-bar .icon-btn:not(.hidden), #chat-bar, .plus-btn, .composer .pill, .conn-strip, .demo-pill {
  background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); }
.composer .pill { border-color: var(--field-line); }
.chat-row, .set-card, .set-card.danger-zone, .add-option, .link-row, .file-pick, .phrase, .keywarn.pending-warn, .privacy-card, .ln-card, .ln-steps li, .ln-limits li {
  background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--surface-2); }
:focus-visible { outline-color: var(--accent-text); }

/* type: bigger and heavier than before (17 px messages, 800 titles) */
.big-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.page-title { font-size: 30px; font-weight: 800; }
.lead { font-size: 16px; font-weight: 500; color: var(--muted); }

/* buttons */
.primary { min-height: 60px; border-radius: 30px; background: var(--accent); color: var(--accent-ink); font: 700 17px var(--font); }
.secondary { font: 600 16px var(--font); color: var(--text); }
.primary.danger-btn { background: var(--danger-fill); color: #FFFFFF; }
.pill-btn { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.link.accent-link, .accent-link, #p-again { color: var(--accent-text); font-weight: 700; }
input.switch:checked { background: var(--switch-on); }

/* fields */
.unlock-form input, .unlock-form textarea, .code-row input { min-height: 56px; background: var(--surface); border: 1px solid var(--field-line); border-radius: 18px; padding: 0 16px; }
.unlock-form textarea { padding: 14px 16px; }
.unlock-form input:focus, .unlock-form textarea:focus, .code-row input:focus { border-color: var(--accent-text); }
.unlock-form label:not(.row) { font-size: 15px; }

/* top bars of the pages: a round glass back button, the title beside it */
.bar { background: transparent; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 10px; min-height: 64px; }
.bar > .icon-btn:first-child, .page-bar .icon-btn { width: 44px; height: 44px; border-radius: 50%; color: var(--text); }
.bar .title { font-size: 20px; font-weight: 800; }
.page-bar { margin-left: 0; gap: 10px; }

/* ------------------------------------------------------------------ Sohbetler */
.inbox-head { padding: calc(10px + env(safe-area-inset-top)) 14px 16px 22px; gap: 8px; }
#i-lock, #i-settings { width: 44px; height: 44px; border-radius: 50%; color: var(--text); }
.inbox { padding: 0 14px calc(110px + env(safe-area-inset-bottom)); gap: 10px; }
.chat-row { border-radius: 24px; padding: 14px; gap: 14px; min-height: 76px; }
.chat-row:hover, .chat-row:active { background: var(--surface-2); }
.chat-row[aria-current="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent-text); }
.avatar { background: var(--surface-2); color: var(--text); font-weight: 800; }
.chat-row .avatar, .chat-row.self .avatar { width: 48px; height: 48px; font-size: 17px; background: var(--surface-2); color: var(--text); border-radius: 50%; }
.row-name { font-size: 17px; font-weight: 700; }
.row-prev { font-size: 15px; font-weight: 500; color: var(--muted); }
.row-time { font: 700 13px var(--font); color: var(--muted); }
.row-wrap { border-radius: 24px; }
.row-wrap.swiped { background: var(--danger-fill); }
.row-wrap.swiped .chat-row { background: var(--solid); }
.row-del { visibility: hidden; background: var(--danger-fill); color: #FFFFFF; border-radius: 0 24px 24px 0; font: 700 15px var(--font); }
.row-wrap.swiped .row-del { visibility: visible; }
.fab-bar { background: none; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
.fab { height: 60px; border-radius: 30px; padding: 0 24px 0 20px; background: var(--accent); color: var(--accent-ink); font: 700 17px var(--font);
  box-shadow: 0 10px 28px rgba(30, 20, 45, .35); }
/* none yet: a big round glass badge, the line, the button; the two ways back for an existing account at the foot */
.inbox-empty { margin-top: 18vh; }
.inbox-empty .lock-badge { width: 96px; height: 96px; background: var(--surface); border: 1px solid var(--glass-line); color: var(--text); }
.inbox-empty .lock-badge svg.ic { width: 44px; height: 44px; }
.inbox-empty span { color: var(--muted); }
.inbox-ways { position: absolute; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); gap: 4px 20px; }
.inbox-ways .link { font: 600 14px var(--font); color: var(--muted); }

/* ------------------------------------------------------------------ the chat */
#chat-bar { margin: calc(6px + env(safe-area-inset-top)) 10px 4px; padding: 5px 6px; min-height: 58px; border-radius: 29px; gap: 2px; z-index: 3; }
#v-chat .bar { border-bottom: 1px solid var(--glass-line); }
#chat-bar > .icon-btn:first-child { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; margin-left: 0; }
#chat-bar .peer-name { font-size: 18px; font-weight: 800; }
#chat-bar .chip-btn { height: 30px; padding: 0 10px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); font: 700 13px var(--font); margin-left: 6px; }
#chat-bar .icon-btn { color: var(--text); }
.thread { padding: 14px 16px 18px; gap: 6px; }
.day { font: 700 13px var(--font); color: var(--muted); }
/* bubbles: own ones in the accent, the other side's glass; the status and the time under the bubble */
.pm { max-width: 78%; padding: 12px 18px; border-radius: 24px; overflow: visible; margin-bottom: 24px; }
.pm.out { background: var(--out); color: var(--out-ink); border-radius: 24px 24px 8px 24px; }
.pm.in { background: var(--in); border: 1px solid var(--glass-line); border-radius: 24px 24px 24px 8px; box-shadow: var(--glass-shadow); }
.pm .body { font-size: 17px; line-height: 1.4; font-weight: 500; }
.pm .meta, .pm.out .meta { position: absolute; top: 100%; margin-top: 5px; padding: 0 4px; gap: 10px; white-space: nowrap; min-width: 100%;
  font: 700 12px var(--font); color: var(--muted); }
.pm.in .meta { left: 0; justify-content: flex-start; }
.pm.out .meta { right: 0; justify-content: flex-end; }
.pm .meta .status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pm .body img, .pm .body video { border-radius: 16px; margin: -4px -10px; max-width: 240px; }
.pm .blk.media { min-height: 44px; padding: 10px 14px; margin: 0 -8px; border-radius: 16px; background: rgba(255, 255, 255, .14); font: 700 15px var(--font); }
.pm.in .blk.media { background: var(--surface); }
.pm .blk.media svg { color: currentColor; width: 24px; height: 24px; }
.pm.out .blk.media svg { color: var(--out-ink); }
.pm.expired { border: 1px dashed var(--line-2); color: var(--muted); font: italic 500 15px var(--font); padding: 10px 16px; border-radius: 20px; margin-bottom: 8px; }
.pm.failed { background: var(--out); color: var(--out-ink); border: 2px solid var(--danger); padding-bottom: 12px; }
.pm.failed .fail b { color: #FFFFFF; }
.pm.failed .fail button { color: #FFFFFF; text-decoration: underline; }
.pm.failed .fail small, .pm.failed .fail button.del { color: var(--out-faint); }
.pm.failed .meta { color: var(--muted); }
/* view-once: a soft, blurred card with a dark veil, white words and the eye in a ring (both themes); held open, the
   content fills the screen. The colours are fixed, never taken from the photo. */
.pm.force-mask, .pm.out.force-mask { width: 236px; min-height: 150px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--glass-line); color: #FFFFFF; overflow: hidden;
  background: linear-gradient(rgba(10, 6, 14, .42), rgba(10, 6, 14, .42)), radial-gradient(circle at 28% 35%, #B07A8E 0, transparent 55%),
    radial-gradient(circle at 72% 65%, #5C7FA0 0, transparent 55%), radial-gradient(circle at 60% 20%, #C9A46B 0, transparent 45%), #3A2C40; }
.pm.in.force-mask { border-radius: 24px 24px 24px 8px; }
.pm.out.force-mask { border-radius: 24px 24px 8px 24px; }
.pm.force-mask .blk, .pm.out.force-mask .blk { flex-direction: column; justify-content: center; text-align: center; color: #FFFFFF; font: 700 15px var(--font); gap: 10px; width: auto; height: auto; }
.pm.force-mask .blk::before, .pm.out.force-mask .blk::before { width: 48px; height: 48px; border-radius: 50%; box-sizing: border-box; -webkit-mask: none; mask: none;
  background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 -960 960 960%27%3E%3Cpath fill=%27%23FFFFFF%27 d=%27M600.5-379.62q49.5-49.62 49.5-120.5T600.38-620.5Q550.76-670 479.88-670T359.5-620.38Q310-570.76 310-499.88t49.62 120.38q49.62 49.5 120.5 49.5t120.38-49.62Zm-200-41.12q-32.5-32.73-32.5-79.5 0-46.76 32.74-79.26 32.73-32.5 79.5-32.5 46.76 0 79.26 32.74 32.5 32.73 32.5 79.5 0 46.76-32.74 79.26-32.73 32.5-79.5 32.5-46.76 0-79.26-32.74ZM234.5-276Q124-352 57-470q-4-7.13-6-14.65-2-7.52-2-15.43 0-7.92 2-15.38 2-7.47 6-14.54 67-118 177.5-194T480-800q135 0 245.5 76T903-530q4 7.12 6 14.65 2 7.52 2 15.43 0 7.92-2 15.38-2 7.47-6 14.54-67 118-177.5 194T480-200q-135 0-245.5-76ZM480-500Zm222.5 174.5Q804-391 857-500q-53-109-154.33-174.5Q601.34-740 480.17-740T257.5-674.5Q156-609 102-500q54 109 155.33 174.5Q358.66-260 479.83-260t222.67-65.5Z%27/%3E%3C/svg%3E") center / 26px no-repeat; border: 1px solid rgba(255, 255, 255, .3); }
.pm.force-mask .blk.media svg { display: none; }  /* the eye says it */
.pm.force-mask.reveal { display: flex; }
/* voice */
.voice-player .vp-play { width: 48px; height: 48px; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.pm.in .voice-player .vp-play { background: var(--surface-2); color: var(--text); }
.voice-player input[type=range] { accent-color: var(--accent-text); }
.pm.out .voice-player input[type=range] { accent-color: #FFFFFF; }
.voice-player .vp-time { font: 700 13px var(--font); }
.voice-player .vp-speed { border-color: var(--glass-line); font: 700 12px var(--font); }
.chat-hint { border-color: var(--glass-line); background: var(--surface); font: 600 13px var(--font); }
/* the composer: the round "+", the glass field with the mic (or send) inside; red while recording */
.composer { gap: 10px; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); align-items: flex-end; }
.plus-btn { width: 56px; height: 56px; margin: 0; border-radius: 50%; color: var(--text); }
.plus-btn svg.ic { width: 26px; height: 26px; }
.composer .pill { min-height: 56px; border-radius: 28px; padding: 5px 5px 5px 20px; gap: 2px; align-items: flex-end; }
.composer .pill:focus-within { border-color: var(--accent-text); }
.composer textarea { font-size: 17px; font-weight: 500; padding: 12px 0; min-height: 44px; align-self: center; }
.composer textarea::placeholder { color: var(--muted); }
.composer .mic, .send { width: 44px; height: 44px; border-radius: 50%; }
.composer .mic { background: none; color: var(--text); }
.send { background: var(--accent); color: var(--accent-ink); }
.composer .mic.on { background: var(--danger-fill); color: #FFFFFF; transform: none; }
.composer .emoji-btn { color: var(--text); }
.composer .pill:has(.rec:not(.hidden)) { background: var(--rec-bg); border-color: var(--rec-line); }
.composer .pill:has(.rec:not(.hidden)) .emoji-btn { display: none; }
.rec { min-height: 44px; padding: 0; gap: 10px; background: none; border: 0; border-radius: 0; font: 800 17px var(--font); font-variant-numeric: tabular-nums; align-self: center; }
.rec i { background: var(--danger); }
.rec .rec-hint { margin-left: 4px; font: 600 14px var(--font); color: var(--muted); }
.emoji-panel { background: var(--solid); border-color: var(--glass-line); border-radius: 24px; }
/* warnings in the chat */
.keywarn { border-radius: 24px; }

/* ------------------------------------------------------------------ sheets */
.sheet-card { background: var(--sheet); border: 1px solid var(--glass-line); border-bottom: 0; border-radius: 32px 32px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); gap: 12px; }
@media (min-width: 720px) { .sheet-card { border-radius: 28px; border-bottom: 1px solid var(--glass-line); } }
.sheet-grip { width: 40px; background: var(--line-2); }
.sheet-title { font-size: 22px; font-weight: 800; }
.sheet-sub { font-size: 15px; font-weight: 500; }
#dur-sheet .sheet-card { background: var(--sheet); }
#dur-opts { background: var(--surface); border: 1px solid var(--glass-line); border-radius: 24px; }
#dur-opts .opt { min-height: 56px; padding: 0 18px; border-top-color: var(--divider); font: 600 17px var(--font); }
.opt:hover { background: var(--surface-2); }
.media-preview img, .media-preview video { border-radius: 24px; border: 1px solid var(--glass-line); }
#media-sheet .set-card { border-radius: 24px; }
.toast { background: var(--solid); color: var(--text); border: 1px solid var(--glass-line); border-radius: 22px; font: 600 14px var(--font); padding: 12px 18px; }

/* ------------------------------------------------------------------ Kişi ekle, the invite, the code */
.add-page .add-card { background: var(--bg-grad); }
.add-option { border-radius: 24px; padding: 20px 18px; }
.add-option:hover { background: var(--surface-2); }
.opt-ic { width: 52px; height: 52px; background: var(--accent); color: var(--accent-ink); }
.invite-box .invite-code { font: 800 54px/1.1 var(--font); }
.link-row { border-radius: 24px; padding: 6px 6px 6px 18px; }
.invite-box .qr { box-sizing: border-box; padding: 18px; border-radius: 24px; background: #FFFFFF; }  /* a white quiet zone inside the round card: the corners never cut the code */
/* six boxes; the field lies over them (typing, paste, screen readers); a pasted link shows as text */
.digits { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.digits span { height: 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--field-line); display: grid; place-items: center;
  font: 800 28px var(--font); font-variant-numeric: tabular-nums; }
.digits:focus-within span.at { border: 2px solid var(--accent-text); }
.digits.full:focus-within span:last-of-type { border: 1px solid var(--field-line); }
.digits .code-input, .code-form .digits .code-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0 16px; border: 0;
  background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; text-align: left; z-index: 1; }
.digits .code-input:focus { outline: none; }
.code-form .grow { flex: 1; }
.digits.raw span { visibility: hidden; }
.digits.raw .code-input { color: var(--text); background: var(--surface); border: 1px solid var(--field-line); border-radius: 18px; caret-color: auto; }
/* the keypad: touch screens only (it stands in for the phone's keyboard); a computer types */
.keypad { display: none; }
.after-code { display: flex; flex-direction: column; gap: 10px; }
@media (hover: none) {
  .keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .digits:not(.full) ~ .keyless, .digits:not(.full) ~ .after-code { display: none; }  /* the keypad stays: a wrong digit can always be deleted */
}
.keypad button { height: 58px; border-radius: 29px; background: var(--surface); border: 1px solid var(--field-line); color: var(--text);
  font: 700 24px var(--font); font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.keypad button:active { background: var(--surface-2); }
.keypad button[data-k="del"] { background: none; border: 0; }
.keypad button svg.ic { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ Ayarlar, Sohbet ayarları and their pages */
.settings { padding: 4px 16px 34px; gap: 20px; }
.set-card { border-radius: 24px; }
.set-row { min-height: 58px; padding: 8px 16px 8px 18px; }
.set-row > span:first-child, .set-row > label, .set-row.nav { font: 600 17px var(--font); }
.set-row .val { font: 600 15px var(--font); color: var(--muted); }
.set-row .val.warn { color: var(--danger); }
.set-title { padding: 0 18px; font: 700 13px var(--font); color: var(--muted); }
.set-note { padding: 0 18px; font-size: 14px; }
.set-row.nav svg { color: var(--muted); }
/* values written in the row (name, duration, temporary): no box, right-aligned, a chevron for the lists */
.set-row select, .set-row input:not(.switch) { background-color: transparent; border: 0; border-radius: 10px; padding: 0 2px; text-align: right; text-align-last: right;
  color: var(--muted); font: 600 15px var(--font); max-width: 55%; }
.set-row input:not(.switch):focus { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent-text); }
.set-row select { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background: no-repeat right center / 22px var(--chev); }
.set-card.danger-zone .set-row { border-bottom-color: var(--divider); }
.danger-row > span:first-child { color: var(--danger); }
/* Ayarlar: the profile card on top */
.profile-btn { background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: 24px; padding: 16px 16px 16px 18px; gap: 16px; }
.profile-btn .avatar.big, #st-av { width: 56px; height: 56px; background: var(--accent); color: var(--accent-ink); font-size: 22px; }
#st-av .ic { color: var(--accent-ink); }
.me-name { font-size: 20px; font-weight: 800; }
.profile-sub { font-size: 15px; font-weight: 500; }
/* Sohbet ayarları: the person in the middle, the two calls under the name */
.cs-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 8px; text-align: center; }
.cs-head .avatar.huge { width: 88px; height: 88px; font-size: 34px; background: var(--accent); color: var(--accent-ink); }
.cs-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-calls { display: flex; gap: 28px; margin-top: 6px; }
.cs-calls:not(:has(.call-pick:not(.hidden))) { display: none; }
.call-pick { border: 0; background: none; color: var(--text); font: 700 14px var(--font); display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; padding: 0; }
.call-pick .c { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.call-pick:hover .c { background: var(--surface-2); }
.call-pick svg.ic { width: 26px; height: 26px; }
.safety { font: 700 24px/1.5 var(--font); }
.fact-ic { background: var(--surface); border: 1px solid var(--glass-line); }

/* ------------------------------------------------------------------ the lock screen */
.lock-badge { width: 132px; height: 132px; background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); color: var(--text); }
.lock-badge svg.ic { width: 60px; height: 60px; }
.lock-title { font-size: 22px; font-weight: 800; }

/* ------------------------------------------------------------------ calls */
.call { background: var(--bg-grad); color: var(--text); }
.call-remote { background: transparent; }
.call-av { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.call-btn .c { background: var(--surface); border: 1px solid var(--glass-line); color: var(--text); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); }
.call-btn[aria-pressed="true"] .c { background: var(--text); color: var(--bg); }
.call-btn.ok .c { background: var(--accent); color: var(--accent-ink); border: 0; }
.call-btn.danger .c, .call:has(#call-cam:not(.hidden)) .call-btn.danger .c { background: var(--danger-fill); color: #FFFFFF; border: 0; }
.call:has(#call-cam:not(.hidden)) { background: #000000; color: #FFFFFF; }
.call:has(#call-cam:not(.hidden)) .call-actions { background: rgba(28, 16, 34, .6); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); border: 1px solid rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------------ view-once open, the cover */
.once-view { background: var(--bg-grad); }
.once-view.media { background: #000000; }
.once-view-note { background: var(--surface); border: 1px solid var(--glass-line); }
/* Leaving the app: a flat cover with the name only (nothing of the screen beneath) */
body.covered::after { content: "Phanorm"; display: grid; place-items: center; padding-top: 100px; background: var(--cover-mark) center calc(50% - 30px) / 72px 72px no-repeat, var(--cover); color: var(--muted); font: 800 22px var(--font); letter-spacing: -.03em; }

/* ------------------------------------------------------------------ landing in the new palette */
.ln-phone { box-shadow: var(--shadow), 0 40px 80px -40px rgba(133, 82, 232, .4); }
.ln-av { background: var(--accent); color: var(--accent-ink); }
.ln-btn { border-radius: 30px; font-weight: 700; }
.ln-btn-sm { border-radius: 22px; }
.ln-strip, .ln-alt { background: transparent; }
.ln-nav { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }

/* ------------------------------------------------------------------ a computer screen */
@media (min-width: 900px) {
  body.split #v-chat, body.split #v-chatset, body.split #v-safety { left: 380px; }
  body.split #v-inbox { border-right: 1px solid var(--glass-line); }
  body.split #v-inbox .fab-bar { background: none; }
}

/* ------------------------------------------------------------------ canvas details (2026-10-30, second pass) */
/* status under an own bubble: a dotted ring while it goes */
.pm .meta .status.sending::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px dotted currentColor; box-sizing: border-box; }
/* a deleted message: dashed, italic, on its sender's side */
.pm.expired { align-self: flex-start; background: none; border: 1.5px dashed var(--line-2); border-radius: 24px 24px 24px 8px; font: italic 500 16px var(--font); color: var(--muted); padding: 12px 18px; }
.pm.out.expired { align-self: flex-end; border-radius: 24px 24px 8px 24px; }
/* the lock screen with Face ID: one big round button in the middle, "Şifreyle aç" at the foot */
#v-lock.faceid .lock-top { display: none; }
#v-lock.faceid .lock-actions { flex: 1; }
#v-lock.faceid #l-faceid { margin: auto 0; flex-direction: column; gap: 22px; min-height: 0; height: auto; padding: 0; background: none; color: var(--text); font: 800 22px var(--font); }
#v-lock.faceid #l-faceid svg.ic { width: 132px; height: 132px; padding: 36px; box-sizing: border-box; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); }
#v-lock.faceid #l-faceid:active svg.ic { background: var(--surface-2); }
/* Sohbetler: "Sil" behind a row, its icon over the word */
.row-del { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 700 14px var(--font); }
.row-del svg.ic { width: 24px; height: 24px; }
/* Kişi ekle: bigger cards, a 56 px accent circle */
.add-options { gap: 12px; }
.add-option { border-radius: 28px; padding: 22px 18px; gap: 16px; }
.opt-ic { width: 56px; height: 56px; }
.opt-ic svg.ic { width: 28px; height: 28px; }
.opt-text b { font-size: 18px; font-weight: 800; }
.opt-text span { font-size: 15px; }
/* the invite: code, its note, the QR card, then Kopyala and Paylaş side by side */
.invite-box .invite-code { font: 800 54px/1.1 var(--font); letter-spacing: .06em; margin-top: 8px; }
.invite-note { margin-top: -6px; font-size: 15px; }
.invite-actions { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invite-actions .primary, .glass-btn { min-height: 56px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px var(--font); padding: 0 20px; }
.glass-btn { width: 100%; background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); color: var(--text); }
.glass-btn:active { background: var(--surface-2); }
.invite-actions svg.ic, .glass-btn svg.ic { width: 22px; height: 22px; }
/* photo/video preview: the title and its close in one row; Gönder with the arrow */
.sheet-head .sheet-title { font-size: 20px; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--glass-line); color: var(--text); }
#media-send svg.ic { width: 24px; height: 24px; }
.media-preview img, .media-preview video { max-height: 50dvh; }
/* the QR scanner: one line under the camera, "Kodu elle gir" */
.scan-note { font: 600 17px var(--font); text-align: center; }
/* the landing: the canvas' line and its two steps */
.ln-hero h1 { font-weight: 800; }
.ln-steps-mini { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font: 700 16px var(--font); }
.ln-steps-mini span { height: 48px; padding: 0 18px 0 8px; border-radius: 24px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.ln-steps-mini b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.ln-steps-mini i { font-style: normal; color: var(--muted); }
@media (max-width: 759px) { .ln-sub, .ln-fine, .ln-phone { display: none; } }
/* calls: a ring around the ringing person */
.call-av { box-shadow: 0 0 0 10px transparent, 0 0 0 11px var(--glass-line); width: 140px; height: 140px; font-size: 50px; }
/* a computer screen: the list on a still panel, a soft halo under the chat (canvas "1b Işık halesi") */
@media (min-width: 900px) {
  body.split #v-inbox { background: var(--panel); }
  body.split #v-chat, body.split #v-chatset, body.split #v-safety, body.split .desk-empty {
    background: radial-gradient(ellipse 75% 65% at 65% 105%, var(--halo), transparent 70%), var(--bg-grad); }
}
@media (min-width: 900px) { body.split #v-inbox .fab-bar { justify-content: center; } body.split #v-inbox .fab { flex: none; } }
/* Sohbetler: a chat with a message this phone has not shown yet (main.ts unreadIn) */
.chat-row.unread .avatar { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chat-row.unread .row-prev { color: var(--text); font-weight: 700; }
.chat-row.unread .row-time { color: var(--accent-text); }
/* a voice message with its waveform (MSC1767): bars, the played part bright; the range lies over them, invisible */
.vp-track { position: relative; flex: 1; min-width: 80px; height: 44px; display: flex; align-items: center; }
.vp-wave { position: absolute; inset: 10px 0; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.vp-wave i { flex: 1; max-width: 4px; min-height: 3px; border-radius: 2px; background: var(--muted); opacity: .55; }
.vp-wave i.on { opacity: 1; background: var(--text); }
.pm.out .vp-wave i { background: var(--out-ink); }
.vp-track input[type=range] { position: relative; z-index: 1; width: 100%; opacity: 0; cursor: pointer; }
.vp-track:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }
/* the composer's "+": the canvas' 56 px glass circle (an older .composer .icon-btn rule made it 44) */
.composer .plus-btn { width: 56px; height: 56px; }
/* a computer: the list beside the chat has the lock; the chat's header does not repeat it (canvas "Masaüstü") */
@media (min-width: 900px) { body.split #c-lock { display: none; } }
/* ------------------------------------------------------------------ reactions, replies, the message menu */
/* the quote at the top of a reply: who and a line of what; "Silinen mesaj" once that message is gone */
.pm .quote { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: -2px 0 8px; padding: 8px 12px; border: 0; border-left: 3px solid currentColor;
  border-radius: 12px; background: rgba(255, 255, 255, .12); color: inherit; text-align: left; font: 500 14px/1.35 var(--font); cursor: pointer; }
.pm.in .quote { background: var(--surface); border-left-color: var(--accent-text); }
.pm .quote b { font-weight: 800; font-size: 13px; }
.pm .quote span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .85; }
.pm .quote.gone span { font-style: italic; }
.pm.flash { outline: 2px solid var(--accent-text); outline-offset: 3px; }
/* reactions under a message, inside its bubble */
.pm .reacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px -6px -2px; }
.pm .react { min-height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--glass-line); background: var(--surface); color: var(--text);
  font: 700 14px var(--font); display: inline-flex; align-items: center; gap: 4px; position: relative; }
.pm .react::before { content: ""; position: absolute; inset: -7px -2px; }  /* 44 px to tap */
.pm.out .react { background: var(--out-line); border-color: var(--out-line); color: var(--out-ink); }
.pm .react.mine { border-color: var(--accent-text); }
.pm.out .react.mine { border-color: #FFFFFF; }
/* the bar over the composer while a reply is written */
.reply-bar { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 8px 6px 8px 16px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--glass-line); border-left: 3px solid var(--accent-text); }
.reply-bar.hidden { display: none; }
.reply-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 500 14px var(--font); }
.reply-text b { font-weight: 800; font-size: 13px; color: var(--accent-text); }
.reply-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
/* the menu of a held message: six reactions, then the actions */
.react-row { display: flex; justify-content: space-between; gap: 6px; padding: 4px 2px 6px; }
.react-pick { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--surface); font-size: 24px; display: grid; place-items: center; }
.react-pick.on { background: var(--accent-soft); border-color: var(--accent-text); }
#msg-sheet .set-row.nav svg.ic { margin-left: auto; }
/* a phone: holding a message opens the menu (it has Kopyala), not the system's text selection */
@media (hover: none) { #v-chat.unmasked .pm:not(.force-mask) { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } }

/* Sabitle: slide a chat right; pinned chats first with a pin by the time. The photo/video note: what was taken out. */
.row-pin { position: absolute; top: 0; left: 0; bottom: 0; width: 96px; border: 0; visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--accent); color: var(--accent-ink); border-radius: 24px 0 0 24px; font: 700 14px var(--font); }
.row-pin svg.ic { width: 24px; height: 24px; }
.row-wrap.pinswiped { background: var(--accent); }
.row-wrap.pinswiped .chat-row { transform: translateX(96px); background: var(--solid); }
.row-wrap.pinswiped .row-pin { visibility: visible; }
.row-pin-mark { display: inline-flex; vertical-align: -3px; margin-right: 4px; color: var(--muted); }
.row-pin-mark svg.ic { width: 16px; height: 16px; }
.media-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 12px; color: var(--muted); font-size: 13px; }
.media-note svg.ic { width: 16px; height: 16px; }

/* Sessiz gönder: the send button's hold menu (over the composer, right), the mark under a silent message */
.send-menu-wrap { position: fixed; inset: 0; z-index: 60; background: var(--scrim, rgba(0,0,0,.35)); }
.send-menu { position: absolute; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 230px; padding: 6px; display: flex; flex-direction: column;
  border-radius: 24px; background: var(--solid); border: 1px solid var(--glass-line); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.send-menu button { height: 52px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; gap: 12px; padding: 0 14px;
  font: 600 16px var(--font); border-radius: 18px; text-align: left; }
.send-menu button + button { border-top: 1px solid var(--line, var(--glass-line)); border-radius: 0 0 18px 18px; }
.send-menu button:first-child { border-radius: 18px 18px 0 0; }
.send-menu button:focus-visible, .send-menu button:hover { background: var(--surface-2); }
.send-menu svg.ic { width: 22px; height: 22px; }
.pm .meta .silent-mark { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.pm .meta .silent-mark svg.ic { width: 16px; height: 16px; }
.send { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* iOS: a quick second tap on a button is a tap, not a double-tap zoom (the keypad lost repeated digits) */
button, .keypad button, [role="button"] { touch-action: manipulation; }

/* UX research 2026-10-31 (B8): a contact whose safety code is not compared yet — a dot on ⓘ, the way to it */
#c-info { position: relative; }
#c-info.attn::after { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 0 2px var(--bg, #110E15); }
.val.attn { color: var(--warn); }
/* (B10) "Şifremi unuttum" under the centred "Aç"; the Face ID button keeps the right edge */
.lock-foot { justify-content: center; position: relative; }
.lock-foot .icon-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
/* (B9) the status sits beside the time: "Gönderildi  11:39" reads as one line about this message */
/* (B7) one line above the composer, once */
.hint-bar { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 6px 6px 6px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--glass-line); font-size: 14px; color: var(--muted); }
.hint-bar span { flex: 1; min-width: 0; }
.hint-bar .link { flex: none; color: var(--accent-text); font-size: 14px; }
.hint-bar.hidden { display: none; }
/* (B11) auto-lock is a fact under the card, not a row that looks tappable */
#st-autolock-row.off { opacity: .6; }
#st-faceid-row .val { margin-left: auto; }
/* Voice message on a phone: play, bars, one time and the speed button fit a 78% bubble at 375 px */
.voice-player { min-width: 0; }
.voice-player .vp-time { min-width: 0; flex: none; }
.voice-player .vp-speed { flex: none; }
.vp-track { min-width: 48px; }
/* Held buttons: never a selection, a callout or the loupe (iPhone) */
.composer .mic, .composer .send, .plus-btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* The reaction button beside a message under the mouse (main.ts hoverOn) */
.pm-hover { position: absolute; z-index: 5; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--solid); border: 1px solid var(--field-line); color: var(--muted); box-shadow: var(--shadow); cursor: pointer; }
.pm-hover:hover { color: var(--text); }
.pm-hover .ic { width: 20px; height: 20px; }

/* Sohbetler (design 2026-11-01): filters, one glass block for the pinned chats and "Kendime not", plain rows below */
.i-filters { display: flex; gap: 8px; padding: 0 2px 10px; overflow-x: auto; scrollbar-width: none; }
.i-filter { height: 44px; padding: 0 18px; border-radius: 22px; flex: none; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); color: var(--text); font: 700 15px var(--font); }
.i-filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: none; }
.i-filter .n { font-size: 13px; font-weight: 800; color: var(--accent-text); }
.i-filter[aria-pressed="true"] .n { color: inherit; }
.pin-block { display: flex; flex-direction: column; padding: 4px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); }
.flat-list { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.pin-block .chat-row, .flat-list .chat-row { background: transparent; box-shadow: none; border: 0; border-radius: 22px; padding: 12px; }
.pin-block .chat-row:hover, .flat-list .chat-row:hover { background: var(--surface-2); }
.pin-block .row-wrap .chat-row, .flat-list .row-wrap .chat-row { background: var(--solid); }  /* covers the Sil / Sabitle behind it */
.pin-block .row-wrap:not(.swiped):not(.pinswiped) .chat-row, .flat-list .row-wrap:not(.swiped):not(.pinswiped) .chat-row { background: transparent; }
.chat-row .row-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.row-top, .row-bottom { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row-top .row-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.row-top .row-time { align-self: auto; margin: 0; flex: none; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 4px; }
.row-bottom .row-prev { flex: 1; min-width: 0; font-size: 15px; }
.row-kind { flex: none; display: grid; place-items: center; color: var(--muted); margin-right: -4px; }
.row-kind .ic { width: 18px; height: 18px; }
.row-badge { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.chat-row .av-wrap { position: relative; flex: none; display: grid; }
.chat-row .avatar { width: 52px; height: 52px; font-size: 18px; font-weight: 800; }
.chat-row .avatar[class*="tone-"] { background: var(--av1); color: var(--avfg); }
.avatar.tone-2 { background: var(--av2) !important; } .avatar.tone-3 { background: var(--av3) !important; }
.avatar.tone-4 { background: var(--av4) !important; } .avatar.tone-5 { background: var(--av5) !important; }
.chat-row.unread .avatar[class*="tone-"] { color: var(--avfg); border-color: transparent; }
.chat-row.unread .avatar.tone-1 { background: var(--av1); }
.av-timer { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--solid); border: 1px solid var(--glass-line); color: var(--text); }
.av-timer .ic, .av-timer svg { width: 15px; height: 15px; }
.chat-row.unread .row-name { font-weight: 800; }
.chat-row .row-muted { order: 3; }

/* The held message's reactions: one row (the most used, then +); + opens every emoji in a short grid below it, inside
   the same menu, scrolling on its own */
#msg-sheet .react-row { justify-content: space-between; gap: 4px; }
#msg-sheet .react-pick { width: 44px; height: 44px; font-size: 24px; flex: none; cursor: pointer; padding: 0; }
.react-plus { font: 600 26px var(--font) !important; color: var(--muted); }
.react-plus.on { color: var(--accent-text); }
.react-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: min(232px, 34vh);
  overflow-y: auto; overscroll-behavior: contain; padding: 8px; margin: 0 0 6px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--glass-line); }
.react-more.hidden { display: none; }
.react-more .react-pick { width: 100%; height: 44px; border: 0; background: transparent; font-size: 26px; border-radius: 12px; }
.react-more .react-pick:focus-visible { background: var(--surface-2); }
@media (hover: hover) { .react-more .react-pick:hover { background: var(--surface-2); } }  /* a phone keeps :hover after a tap */
.react-more .react-pick.on { background: var(--accent-soft); }

/* UI/UX review 2026-11-01 (Claude Design): */
/* the held message stands out: the rest of the chat dims, the bubble stays (no grey scrim over it) */
body.menu-held #msg-sheet { background: transparent; }
body.menu-held #c-thread > *:not(.held), body.menu-held #chat-bar, body.menu-held .composer, body.menu-held #c-reply { opacity: .28 !important; transition: opacity .15s; }  /* !important: the bubbles' entry animation holds their opacity */
body.menu-held #c-thread .pm.held { transform: scale(1.02); transition: transform .15s; }
@media (prefers-reduced-motion: reduce) { body.menu-held #c-thread .pm.held { transform: none; } }
/* nothing floats over an open sheet (Kişi ekle sat above the new-device alert) */
body:has(.sheet:not(.hidden)) .fab-bar, body:has(.sheet:not(.hidden)) .pm-hover { visibility: hidden; }
/* the new-device alert: a warning, not an ordinary sheet */
.dev-icon { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.dev-icon .ic { width: 32px; height: 32px; }
#dev-sheet .sheet-title { text-align: center; }
.dev-what { padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--glass-line); font-weight: 700; font-size: 15px; text-align: center; }
#dev-body p { text-align: center; color: var(--muted); margin: 0; font-size: 16px; line-height: 1.5; }
#dev-sheet .sheet-grip { display: none; }  /* it does not close by a slide or a tap outside: only by its two buttons */
/* the duration chip reads as a button in both themes */
#chat-bar .chip-btn { border: 1px solid var(--field-line); }
/* the timer badge stands out on a dark avatar */
.av-timer { width: 22px; height: 22px; border-width: 1.5px; }
/* the new device's code: time left, and a spent code covered */
#lk-qr.spent { filter: blur(6px); opacity: .35; }
/* the screen's own big title says it; the bar keeps only the back button */
#lg-bar .title { display: none; }

/* Shortcuts: search, the way back down, dropping a file, the key list */
.i-search { padding: 0 16px 8px; }
.i-search input, .c-search input { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--field-line); color: var(--text); font-size: 16px; }
#v-inbox.empty .i-search { display: none; }
.c-search { display: flex; align-items: center; gap: 2px; margin: 0 10px 4px; }
.c-search.hidden { display: none; }
.c-search input { flex: 1; min-width: 0; }
#c-search-count { flex: none; padding: 0 6px; font-size: 13px; color: var(--muted); }
.pm.hit { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.pm.hit-on { outline: 2px solid var(--accent-text); }
.c-down { position: absolute; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px;
  background: var(--solid); border: 1px solid var(--field-line); color: var(--text); box-shadow: var(--shadow); }
.c-down.hidden { display: none; }
#v-chat.dropping::after { content: "Göndermek için bırak"; position: absolute; inset: 10px; z-index: 11; display: grid; place-items: center; border-radius: 24px;
  border: 2px dashed var(--accent-text); background: var(--sheet); color: var(--text); font-weight: 700; pointer-events: none; }
.keys-list { margin: 8px 0 14px; }
.keys-list .set-row { display: flex; justify-content: space-between; gap: 16px; }
.keys-list kbd { font: 600 13px var(--font); color: var(--muted); white-space: nowrap; }
