/* Aria — styled after Apple's Human Interface Guidelines (iOS 18+):
   system colours, SF type scale, translucent bars, inset grouped lists, 44pt touch targets. */

:root {
  --bg: #f2f2f7;               /* systemGroupedBackground */
  --chat-bg: #ffffff;
  --card: #ffffff;             /* secondarySystemGroupedBackground */
  --bar: rgba(249, 249, 249, .82);
  --label: #000000;
  --secondary: rgba(60, 60, 67, .6);
  --tertiary: rgba(60, 60, 67, .3);
  --separator: rgba(60, 60, 67, .29);
  --fill: rgba(120, 120, 128, .12);
  --fill-strong: rgba(120, 120, 128, .2);
  --tint: #007aff;
  --me: #007aff;
  --me-ink: #ffffff;
  --him: #e9e9eb;
  --him-ink: #000000;
  --red: #ff3b30;
  --green: #34c759;
  --orange: #ff9500;
  --yellow-bg: #fff4d6;
  --yellow-ink: #7a5600;
  --scrim: rgba(0, 0, 0, .4);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Geeza Pro", "Noto Sans Arabic",
          "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --chat-bg: #000000;
    --card: #1c1c1e;
    --bar: rgba(22, 22, 24, .78);
    --label: #ffffff;
    --secondary: rgba(235, 235, 245, .6);
    --tertiary: rgba(235, 235, 245, .3);
    --separator: rgba(84, 84, 88, .6);
    --fill: rgba(118, 118, 128, .24);
    --fill-strong: rgba(118, 118, 128, .32);
    --tint: #0a84ff;
    --me: #0a84ff;
    --him: #262629;
    --him-ink: #ffffff;
    --red: #ff453a;
    --green: #30d158;
    --orange: #ff9f0a;
    --yellow-bg: #3a2f12;
    --yellow-ink: #ffd56b;
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--chat-bg);
  color: var(--label);
  font: 17px/1.29 var(--font);
  letter-spacing: -.41px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.muted { color: var(--secondary); font-size: 15px; line-height: 1.33; }
code { font-family: var(--mono); font-size: .88em; }

.app {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 100dvh;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- navigation bar (iMessage) ---------- */
.bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 96px 1fr 96px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 4px) 8px 6px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--separator);
}
.bar-side { display: flex; align-items: center; }
.actions { justify-content: flex-end; }
.who { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #a5abb8, #858994);
  color: #fff; font-weight: 600; font-size: 17px; letter-spacing: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-text { text-align: center; min-width: 0; }
.name { font-size: 11px; line-height: 13px; font-weight: 400; letter-spacing: .06px; color: var(--label); }
.status { font-size: 11px; line-height: 13px; color: var(--secondary); transition: color .2s; }
.status.typing { color: var(--tint); }
.icon {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; fill: var(--tint); }
.icon:disabled svg { fill: var(--tertiary); }
.icon:not(:disabled):active { background: var(--fill); }

.mock-banner {
  margin: 8px 16px 0; padding: 10px 14px; border-radius: 12px;
  background: var(--yellow-bg); color: var(--yellow-ink); font-size: 13px; line-height: 18px;
}

/* ---------- conversation ---------- */
.thread {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 16px 12px;
  display: flex; flex-direction: column; gap: 2px;
  scroll-behavior: smooth;
}
.stamp {
  align-self: center; margin: 14px 0 6px; font-size: 11px; line-height: 13px;
  color: var(--secondary); letter-spacing: .06px;
}
.stamp b { font-weight: 600; }
.msg {
  max-width: min(75%, 520px); padding: 7px 12px 8px; border-radius: 18px;
  font-size: 17px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  animation: pop .2s cubic-bezier(.2, .8, .2, 1);
}
.msg.user { align-self: flex-end; background: var(--me); color: var(--me-ink); }
.msg.assistant { align-self: flex-start; background: var(--him); color: var(--him-ink); }
.msg.user + .msg.assistant, .msg.assistant + .msg.user { margin-top: 8px; }
/* grouped bubbles: tighten the joining corners */
.msg.user:has(+ .msg.user) { border-bottom-right-radius: 6px; }
.msg.user + .msg.user { border-top-right-radius: 6px; }
.msg.assistant:has(+ .msg.assistant), .msg.assistant:has(+ .typing) { border-bottom-left-radius: 6px; }
.msg.assistant + .msg.assistant, .msg.assistant + .typing { border-top-left-radius: 6px; }
.msg.error { align-self: center; background: transparent; color: var(--red); font-size: 13px; line-height: 18px; text-align: center; }
.msg.caption { font-size: 15px; line-height: 20px; opacity: .9; }

.typing {
  align-self: flex-start; background: var(--him); border-radius: 18px;
  padding: 12px 14px; display: flex; gap: 5px;
}
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); animation: blink 1.4s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

/* flagged ("felt like a bot") */
.msg.assistant[data-id] { cursor: pointer; }
.msg.assistant.bot { box-shadow: inset 0 0 0 1.5px var(--red); }
.msg.assistant.bot::after { content: "felt like a bot"; display: block; font-size: 11px; line-height: 13px; color: var(--red); margin-top: 3px; }
.flag-menu {
  align-self: flex-start; margin: 4px 0 8px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 18px; background: var(--card); color: var(--red); font-size: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.12);
  animation: pop .15s ease-out;
}

/* ---------- composer ---------- */
.composer {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 12px calc(env(safe-area-inset-bottom) + 6px);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.composer .icon { width: 36px; height: 36px; flex: none; }
.composer .icon svg { fill: var(--secondary); }
.field {
  flex: 1; min-width: 0; display: flex; align-items: flex-end;
  border: 1px solid var(--separator); border-radius: 18px; background: var(--chat-bg);
  padding: 2px 3px 2px 12px; min-height: 36px;
}
.field textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none;
  font-size: 17px; line-height: 22px; padding: 5px 0; max-height: 140px; color: var(--label);
}
.field textarea::placeholder { color: var(--tertiary); }
.send {
  width: 30px; height: 30px; border: 0; border-radius: 50%; flex: none; margin: 0 0 1px 6px;
  background: var(--tint); display: grid; place-items: center; transition: transform .15s, opacity .15s;
}
.send svg { width: 20px; height: 20px; fill: #fff; }
.send:disabled { opacity: 0; transform: scale(.6); pointer-events: none; }
.recording { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.recording .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; flex: none; }
.icon.rec { background: color-mix(in srgb, var(--red) 15%, transparent); }
.icon.rec svg { fill: var(--red); }
#voice { touch-action: none; user-select: none; -webkit-user-select: none; }

/* voice notes */
.voice-msg { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.vplay { width: 32px; height: 32px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; background: rgba(127,127,127,.2); }
.vplay svg { width: 16px; height: 16px; fill: currentColor; }
.vplay.playing svg { opacity: .5; }
.vbar {
  --p: 0%; flex: 1; height: 4px; border-radius: 2px; background: rgba(127,127,127,.35);
  background-image: linear-gradient(currentColor, currentColor); background-size: var(--p) 100%; background-repeat: no-repeat;
}
.vlen { font-size: 13px; opacity: .75; font-variant-numeric: tabular-nums; }

/* ---------- modal sheets (iOS page sheet) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 10; animation: fade .25s ease-out; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  max-width: 680px; margin: 0 auto; height: calc(100dvh - env(safe-area-inset-top) - 28px); max-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 30px rgba(0, 0, 0, .25);
  animation: up .35s cubic-bezier(.2, .9, .25, 1);
}
.picker-sheet { z-index: 12; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--tertiary); margin: 6px auto 0; flex: none; }
.sheet-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 52px; padding: 0 8px; flex: none;
}
.sheet-head h2 { grid-column: 2; margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.41px; text-align: center; }
.sheet-head .text-btn { grid-column: 3; justify-self: end; }
.text-btn { border: 0; background: none; color: var(--tint); font-size: 17px; font-weight: 600; min-height: 44px; padding: 0 8px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(env(safe-area-inset-bottom) + 24px); }

/* inset grouped list */
.group-title {
  font-size: 13px; line-height: 18px; text-transform: uppercase; letter-spacing: -.08px;
  color: var(--secondary); margin: 22px 16px 7px;
}
.group-title:first-child { margin-top: 8px; }
.group { background: var(--card); border-radius: 10px; overflow: hidden; }
.setting { position: relative; padding: 11px 16px 12px; }
.setting + .setting::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--separator);
}
.setting > label { display: block; font-size: 17px; line-height: 22px; font-weight: 400; }
.setting .hint { font-size: 13px; line-height: 18px; color: var(--secondary); margin: 2px 0 9px; }
.fixed .hint { margin-bottom: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row input, .row select, .row .picker {
  flex: 1; min-width: 0; min-height: 44px; font-size: 17px; color: var(--label);
  background: var(--fill); border: 0; border-radius: 10px; padding: 0 12px;
}
.row select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--secondary) 50%), linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 30px; }
.row button {
  min-height: 44px; border: 0; border-radius: 10px; padding: 0 16px; font-size: 17px; font-weight: 600;
  background: var(--tint); color: #fff;
}
.row button:disabled { background: var(--fill-strong); color: var(--tertiary); }
.row button.ghost { background: var(--fill); color: var(--tint); font-weight: 400; }
.row .picker {
  text-align: left; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--secondary) 50%), linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.row button.link {
  flex: 0 1 auto; background: none; color: var(--tint); font-weight: 400; padding: 0 2px; min-height: 44px; border-radius: 0;
}
.row button.link::after { content: " A"; color: var(--tertiary); font-size: 20px; margin-left: 4px; }
.row button.link + button.link { margin-left: 18px; }
.row button.link.danger { color: var(--red); }
.row button.link.danger::after { content: none; }
.row .play { width: 44px; flex: none; padding: 0; background: var(--fill); color: var(--tint); }
.row .play svg { fill: var(--tint); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; line-height: 16px; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--secondary); }
.chip.ok { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.chip.warn { color: var(--yellow-ink); background: var(--yellow-bg); }
.note { font-size: 13px; line-height: 18px; margin-top: 8px; color: var(--secondary); }
.note:empty { display: none; }
.note.bad { color: var(--red); }
.note.warn { color: var(--yellow-ink); background: var(--yellow-bg); padding: 8px 10px; border-radius: 10px; }

/* model picker */
.picker-search { padding: 0 16px 10px; flex: none; }
.picker-search input {
  width: 100%; min-height: 36px; font-size: 17px; color: var(--label); background: var(--fill);
  border: 0; border-radius: 10px; padding: 0 12px; outline: none;
}
.pick-group { font-size: 13px; text-transform: uppercase; color: var(--secondary); margin: 18px 16px 6px; }
.pick { display: block; width: 100%; text-align: left; border: 0; background: var(--card); padding: 11px 16px; min-height: 44px; }
.pick + .pick { border-top: .5px solid var(--separator); }
.pick:active:not(:disabled) { background: var(--fill); }
.pick.current .pick-name::after { content: " ✓"; color: var(--tint); }
.pick:disabled { opacity: .4; cursor: not-allowed; }
.pick-name { display: block; font-size: 17px; line-height: 22px; }
.pick-sub { display: block; font-size: 13px; line-height: 18px; color: var(--secondary); margin-top: 1px; overflow-wrap: anywhere; }

/* "what he sees" */
.dbg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.dbg-block { margin: 16px 0; }
.dbg-block h3 { font-size: 13px; line-height: 18px; font-weight: 400; text-transform: uppercase; color: var(--secondary); margin: 0 16px 7px; }
.dbg-block pre {
  margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--card);
  white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext;
  font: 13px/1.5 var(--mono); letter-spacing: 0;
}
.turn { font-size: 15px; line-height: 20px; padding: 10px 16px; background: var(--card); unicode-bidi: plaintext; }
.turn:first-of-type { border-radius: 10px 10px 0 0; }
.turn:last-child { border-radius: 0 0 10px 10px; }
.turn + .turn { border-top: .5px solid var(--separator); }
.turn b { color: var(--secondary); font-weight: 600; margin-right: 6px; }

/* memories, voices, import lists */
.mem {
  display: flex; gap: 12px; align-items: center; padding: 11px 16px; min-height: 44px;
  background: var(--card); border-bottom: .5px solid var(--separator);
}
.mem:first-of-type { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.mem:last-of-type { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; border-bottom: 0; }
.mem-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mem-kind { font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--secondary); }
.mem-content { font-size: 17px; line-height: 22px; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.mem-date { font-size: 13px; color: var(--secondary); }
.mem-del {
  width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0;
  background: var(--fill); color: var(--secondary); font-size: 18px; line-height: 1;
}
.mem-del:hover { color: var(--red); }
.mem-del.use { width: auto; height: 30px; padding: 0 14px; border-radius: 15px; font-size: 15px; font-weight: 600; color: var(--tint); }
.mem .vplay { color: var(--tint); background: var(--fill); }
.pick-mem { cursor: pointer; }
.pick-mem input { width: 22px; height: 22px; flex: none; accent-color: var(--tint); }
#importBody > .muted { margin: 4px 4px 12px; }
#importText, .charform input:not([type=file]), .charform select, .charform textarea {
  width: 100%; font-size: 17px; line-height: 22px; color: var(--label); background: var(--card);
  border: 0; border-radius: 10px; padding: 11px 16px; resize: vertical; outline: none;
}
#importBody .row { margin: 10px 0 14px; }
#importFile { flex: 1; min-width: 0; font-size: 15px; color: var(--secondary); background: transparent; padding: 0; }
#importStep > p { margin: 10px 4px; }
.inline-btn {
  display: inline-flex; align-items: center; min-height: 36px; margin: 8px 0 0; border: 0; border-radius: 18px;
  padding: 0 16px; background: var(--tint); color: #fff; font-size: 15px; font-weight: 600;
}

/* character form */
.charform { display: grid; gap: 6px; padding-top: 4px; }
.charform > label { display: grid; gap: 6px; font-size: 13px; line-height: 18px; text-transform: uppercase; color: var(--secondary); margin-top: 14px; }
.charform > label > * { text-transform: none; }
.char-top { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 10px; padding: 12px 16px; }
.char-top .grow { flex: 1; display: grid; gap: 8px; }
.char-top label { display: grid; gap: 4px; font-size: 13px; color: var(--secondary); }
.char-top input, .char-top select { background: var(--fill) !important; min-height: 40px; padding: 0 12px !important; }
#charAvatar { cursor: pointer; flex: none; position: relative; }
#charAvatar::after {
  content: "edit"; position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 4px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 11px; text-align: center; letter-spacing: 0;
}
.charform .row { margin-top: 16px; }
.charform .row button { flex: 1; }

/* A/B comparison */
table.ab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--card); border-radius: 10px; overflow: hidden; margin: 4px 0 12px; }
table.ab th, table.ab td { padding: 11px 12px; text-align: right; font-variant-numeric: tabular-nums; border-bottom: .5px solid var(--separator); }
table.ab tr:last-child td { border-bottom: 0; }
table.ab th { font-size: 13px; font-weight: 600; color: var(--secondary); }
table.ab th:first-child, table.ab td:first-child { text-align: left; color: var(--secondary); }

/* ---------- lock / passkey ---------- */
.lock {
  position: fixed; inset: 0; z-index: 20; background: var(--bg);
  display: grid; place-items: center; padding: 24px 24px calc(env(safe-area-inset-bottom) + 24px);
}
.lock-card { width: 100%; max-width: 360px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.lock-card h1 { margin: 6px 0 0; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .37px; }
.lock-card p { margin: 0; }
.avatar.big { width: 84px; height: 84px; font-size: 36px; }
.lock .avatar.big { background: linear-gradient(160deg, #5ac8fa, #007aff); box-shadow: 0 8px 24px rgba(0,122,255,.3); }
#setupBox, #unlockBox { display: grid; gap: 12px; width: 100%; margin-top: 12px; }
#setupCode {
  font-size: 22px; letter-spacing: .12em; text-align: center; color: var(--label);
  background: var(--card); border: 0; border-radius: 12px; min-height: 52px; font-variant-numeric: tabular-nums;
}
.primary {
  width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--tint); color: #fff;
  font-size: 17px; font-weight: 600;
}
.primary:active { opacity: .8; }

/* ---------- call (FaceTime style) ---------- */
.call {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 64px) 24px calc(env(safe-area-inset-bottom) + 36px);
  background: radial-gradient(120% 80% at 50% 0%, #3a3a3c 0%, #1c1c1e 45%, #000 100%);
  color: #fff; text-align: center; letter-spacing: -.41px;
}
.call-top { display: grid; justify-items: center; gap: 6px; }
.call .avatar.big { width: 120px; height: 120px; font-size: 48px; margin-bottom: 14px; background: linear-gradient(180deg, #a5abb8, #858994); }
.call-name { font-size: 34px; line-height: 41px; font-weight: 600; }
.call-status { font-size: 17px; color: rgba(235,235,245,.6); }
.call-timer { font-size: 15px; color: rgba(235,235,245,.6); font-variant-numeric: tabular-nums; }
.call-latency {
  margin-top: 8px; font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.call-mode, .call-error {
  max-width: 340px; margin-top: 12px; font-size: 15px; line-height: 20px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.call-error { background: rgba(255,69,58,.18); }
.call-actions { display: flex; justify-content: center; gap: 56px; }
.round-wrap { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: rgba(235,235,245,.85); }
.round {
  width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.round svg { width: 30px; height: 30px; fill: #fff; }
.round.off { background: #fff; }
.round.off svg { fill: #000; }
.round.hang { background: #ff3b30; }
.round:active { filter: brightness(.85); }

/* rating after a call */
.rate {
  display: grid; gap: 12px; justify-items: center; margin-top: 18px; width: 100%; max-width: 340px; padding: 18px;
  border-radius: 18px; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.rate-engine { font-size: 17px; line-height: 22px; font-weight: 600; }
.stars { display: flex; gap: 4px; }
.stars button { width: 44px; height: 44px; font-size: 32px; line-height: 1; border: 0; background: none; color: rgba(255,255,255,.25); }
.stars button.on { color: #ffd60a; }
#rateNote {
  width: 100%; font-size: 17px; border-radius: 10px; border: 0; min-height: 44px; padding: 0 12px;
  background: rgba(255,255,255,.14); color: #fff;
}
#rateNote::placeholder { color: rgba(235,235,245,.45); }
.rate-actions { display: flex; gap: 12px; width: 100%; }
.rate-actions button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; font-size: 17px; font-weight: 600; }
#rateSend { background: #fff; color: #000; }
#rateSend:disabled { opacity: .4; }
#rateSkip { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --separator: rgba(60, 60, 67, .6); --secondary: rgba(60, 60, 67, .85); }
}
