/* 26 Connect web phone. Tokens mirror 26telecom.com. */
:root {
  --bg: #f6f5f1;
  --surface: #fff;
  --ink: #0b0f1e;
  --ink-2: #4b5368;
  --ink-3: #9aa2b5;
  --ink-4: #cdd2dd;
  --line: #ece9e3;
  --line-2: #f2efe9;
  --accent: #dc1f1f;
  --accent-2: #ef2929;
  --accent-soft: #fce4e4;
  --navy: #0b0f1e;
  --navy-2: #1a2135;
  --navy-3: #262d44;
  --green: #1f9d55;
  --green-soft: #e3f5ea;
  --orange: #e08a00;
  --orange-soft: #fff1d6;
  --shadow-sm: 0 2px 6px rgba(11,15,30,.04), 0 1px 2px rgba(11,15,30,.03);
  --shadow: 0 4px 20px rgba(11,15,30,.06), 0 1px 3px rgba(11,15,30,.04);
  --shadow-lg: 0 20px 48px rgba(11,15,30,.10), 0 4px 16px rgba(11,15,30,.05);
  --shadow-red: 0 12px 28px rgba(220,31,31,.32), 0 2px 6px rgba(220,31,31,.2);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --rail: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--ink-2); }
.ico { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.ico svg { width: 100%; height: 100%; }
.ico-sm { width: 14px; height: 14px; }
:focus-visible { outline: 3px solid rgba(220,31,31,.35); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 700; background: var(--ink); color: #fff; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.primary { background: var(--accent); box-shadow: var(--shadow-red); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost.danger { color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.block { width: 100%; }

/* ---------- sign in ---------- */
.view-login {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.login-side {
  background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(circle at 20% 10%, rgba(220,31,31,.35), transparent 45%), radial-gradient(circle at 90% 90%, rgba(255,255,255,.08), transparent 40%);
}
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand img { width: 44px; height: 44px; }
.login-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.login-tag { font-size: 13px; color: rgba(255,255,255,.7); }
.login-hero h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.02em; max-width: 12ch; }
.login-hero p { margin-top: 16px; color: rgba(255,255,255,.75); max-width: 40ch; }
.login-foot { font-size: 13px; color: rgba(255,255,255,.65); max-width: 44ch; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 28px; margin-bottom: 6px; }
.login-card .muted { margin-bottom: 24px; }
.login-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.login-top .login-brand { display: none; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; transition: border-color .18s, box-shadow .18s;
}
.field input:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(11,15,30,.06); outline: none; }
.error { color: var(--accent); font-size: 13px; font-weight: 600; margin: -6px 0 14px; }
.login-forgot { margin: -4px 0 14px; text-align: right; font-size: 13px; }
.login-forgot a { font-weight: 600; }
.login-stores { margin-top: 28px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.login-stores a { font-weight: 700; }
.login-keep { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; background: var(--surface); gap: 2px; }
.lang-toggle button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 5px 12px; font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: .04em; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rail .lang-toggle { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.rail .lang-toggle button { color: rgba(255,255,255,.7); }
.rail .lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail {
  background: var(--navy); color: #fff; padding: 28px 16px 24px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 8px;
}
.rail-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.rail-brand img { width: 36px; height: 36px; }
.rail-brand .login-name { font-size: 17px; }
.rail-brand .login-tag { font-size: 12px; }
.nav-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 0; background: transparent;
  color: rgba(255,255,255,.72); font-weight: 700; text-align: left; width: 100%; position: relative; transition: background .18s, color .18s;
}
.nav-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-btn.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-btn .ico { width: 20px; height: 20px; }
.nav-btn .nav-dot { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); background: var(--ink-3); }
.status-connected .nav-dot { background: var(--green); }
.status-connecting .nav-dot { background: var(--orange); }
.status-offline .nav-dot { background: var(--accent); }
.rail-foot { margin-top: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: rgba(255,255,255,.55); }
.main { padding: 36px 40px 60px; max-width: 780px; width: 100%; min-width: 0; }

.screen-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.screen-head h1 { font-size: 26px; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.my-number { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; letter-spacing: .02em;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.connected { background: var(--green-soft); color: var(--green); }
.pill.connecting { background: var(--orange-soft); color: var(--orange); }
.pill.connecting .dot { animation: blink 1s infinite; }
.pill.offline { background: var(--accent-soft); color: var(--accent); }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- dialer ---------- */
.dialer { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.dial-display { display: flex; align-items: center; gap: 8px; }
.dial-display input {
  flex: 1 1 0; width: 0; border: 0; background: transparent; font-size: 30px; font-weight: 800; letter-spacing: .02em; text-align: center; padding: 8px 0; min-width: 0; outline: none;
}
.dial-display input::placeholder { color: var(--ink-4); font-weight: 600; font-size: 22px; letter-spacing: 0; }
.icon-btn { border: 0; background: transparent; color: var(--ink-3); width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.dial-match { text-align: center; min-height: 20px; color: var(--ink-2); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; margin: 8px 0 20px; }
.key {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; line-height: 1; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background .12s, transform .12s;
}
.key small { font-size: 10px; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; margin-top: 3px; }
.key:hover { background: var(--line-2); }
.key:active { transform: scale(.96); background: var(--line); }
.keypad.small { grid-template-columns: repeat(3, 60px); gap: 10px; margin: 16px 0 0; }
.keypad.small .key { width: 60px; height: 60px; font-size: 20px; }
.call-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 252px; margin: 0 auto; padding: 16px 20px; border: 0; border-radius: var(--r-pill);
  background: var(--green); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 12px 28px rgba(31,157,85,.3); transition: transform .18s var(--ease);
}
.call-btn:hover { transform: translateY(-1px); }
.dial-actions { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 360px; margin: 0 auto; }
.dial-actions .call-btn { flex: 1 1 auto; margin: 0; }
.dial-side { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.dial-side .ico { width: 20px; height: 20px; }
.dial-side:hover:not(:disabled) { background: var(--line-2); color: var(--ink); }
.dial-side:disabled { opacity: .4; cursor: default; }
.dial-side.spacer { visibility: hidden; border: 0; }
.head-right { display: flex; align-items: center; gap: 8px; }
.bell-btn { position: relative; background: var(--line-2); color: var(--ink-2); width: 40px; height: 40px; }
.bell-btn .ico { width: 20px; height: 20px; }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.call-btn .ico { width: 22px; height: 22px; }

/* ---------- call panel ---------- */
.call-panel { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 36px 24px 28px; text-align: center; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.call-name { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.call-number { color: rgba(255,255,255,.65); margin-top: 4px; font-weight: 600; }
.call-state { margin-top: 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.call-timer { font-variant-numeric: tabular-nums; font-size: 36px; font-weight: 800; margin-top: 6px; }
.call-actions { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.round-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: transparent; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; }
.round-btn .ico { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.12); padding: 19px; transition: background .18s; }
.round-btn:hover .ico { background: rgba(255,255,255,.2); }
.round-btn.on .ico { background: #fff; color: var(--navy); }
.round-btn:disabled { opacity: .35; cursor: default; }
.dtmf-display { grid-column: 1 / -1; min-height: 24px; margin-top: 16px; font-size: 18px; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.call-panel .keypad.small .key { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.call-panel .keypad.small .key small { color: rgba(255,255,255,.5); }
.hangup-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 16px 30px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-red);
}
.hangup-btn .ico { width: 22px; height: 22px; }
.hangup-btn:disabled { opacity: .5; }

/* ---------- lists ---------- */
.section-title { font-size: 14px; font-weight: 800; color: var(--ink-2); margin: 0 0 10px; }
.search {
  display: block; width: 100%; padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.search:focus { outline: none; border-color: var(--ink-3); }
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.row.clickable { cursor: pointer; }
.row.clickable:hover { border-color: var(--ink-4); }
.row-info { flex: 1; min-width: 0; }
.row-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub.missed { color: var(--accent); }
.row-sub.in { color: var(--green); }
.row-meta { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.row-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.row-btn .ico { width: 18px; height: 18px; }
.row-btn:hover { filter: brightness(.96); }
.row-btn.ghost { background: var(--line-2); color: var(--ink-2); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.avatar-empty { background: var(--line-2); color: var(--ink-3); }
.avatar-empty .ico { width: 18px; height: 18px; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 12px; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); }
.vm.unread { border-color: rgba(220,31,31,.25); }
.vm-transcript { margin-top: 12px; font-size: 14px; color: var(--ink-2); background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.notice h3 { font-size: 16px; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ---------- messages ---------- */
.new-sms { display: flex; gap: 8px; margin-bottom: 16px; }
.new-sms input { flex: 1; padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.thread-head h2 { font-size: 18px; }
.thread-head .row-sub { margin-top: 1px; }
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; height: 56vh; min-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.bubble-text { white-space: pre-wrap; word-wrap: break-word; }
.bubble-time { font-size: 10px; opacity: .6; margin-top: 4px; text-align: right; }
.compose { display: flex; gap: 8px; margin-top: 12px; }
.compose input { flex: 1; padding: 13px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.compose .btn { padding: 12px 16px; }

/* ---------- settings ---------- */
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 6px 16px; margin-bottom: 16px; }
.set-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 12px 0 4px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.set-row:first-of-type { border-top: 0; }
.set-row .k { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.set-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.set-link:first-of-type { border-top: 0; }
.set-link:hover { color: var(--accent); }
.set-link small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.set-link .ico { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.link-btn { display: block; width: 100%; margin-top: 6px; padding: 10px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.link-btn.danger { color: var(--accent); }
.set-row .v { font-weight: 700; text-align: right; }
.set-body { padding: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.set-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; }
.logout-wrap { margin-top: 8px; }

/* ---------- sheet + toast ---------- */
.sheet {
  position: fixed; inset: 0; background: rgba(11,15,30,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 16px;
}
.sheet-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px; width: 100%; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-card .eyebrow { color: var(--accent); }
.sheet-card .call-name { color: var(--ink); margin-top: 8px; }
.sheet-card .call-number { color: var(--ink-2); }
.sheet-actions { display: flex; gap: 14px; margin-top: 24px; }
.sheet-actions .btn { flex: 1; padding: 16px; font-size: 16px; }
.sheet-actions .answer { background: var(--green); box-shadow: 0 12px 28px rgba(31,157,85,.3); }
.sheet-actions .decline { background: var(--accent); box-shadow: var(--shadow-red); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 60; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- responsive ---------- */
@media (min-width: 821px) {
  .sheet { align-items: center; }
  .toast { bottom: 32px; }
}
@media (max-width: 820px) {
  .view-login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-main { padding: 28px 20px 40px; align-items: flex-start; }
  .login-top .login-brand { display: flex; }
  .login-top .login-brand img { width: 36px; height: 36px; }
  .login-top .login-tag { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); z-index: 40;
  }
  .rail-brand, .rail-foot { display: none; }
  .nav-btn { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 10px; font-weight: 700; width: auto; flex: 1; text-align: center; border-radius: var(--r-sm); }
  .nav-btn .nav-dot { right: auto; left: 50%; top: 4px; transform: translate(10px, 0); width: 6px; height: 6px; }
  .main { padding: 20px 16px 110px; }
  .screen-head h1, .my-number { font-size: 22px; }
  .dialer { padding: 18px 14px; }
  .keypad { grid-template-columns: repeat(3, 72px); gap: 10px; }
  .key { width: 72px; height: 72px; }
  .dial-display input { font-size: 26px; }
  .thread { height: 52vh; }
}
@media (max-width: 360px) {
  .keypad { grid-template-columns: repeat(3, 64px); }
  .key { width: 64px; height: 64px; font-size: 22px; }
}

/* AI receptionist bar on the keypad (2026-09-30), same looks as the app: off, on, on a call. */
.rbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px 10px 10px; border-radius: 16px; }
.rbar.off { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.rbar.on, .rbar.live { background: var(--ink); color: #fff; }
.rbar.live { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 10px 12px; }
.rbar .rtop { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rbar .ri { width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--line-2); color: var(--ink-2); }
.rbar.on .ri, .rbar.live .ri { background: rgba(255,255,255,.14); color: #fff; }
.rbar .ri svg { width: 16px; height: 16px; }
.rbar .rt { flex: 1; min-width: 0; }
.rbar .r1 { font-size: 14px; font-weight: 700; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbar .r2 { font-size: 12px; line-height: 16px; margin-top: 1px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.rbar.on .r2, .rbar.live .r2 { color: rgba(255,255,255,.72); }
.rbar .rdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34c759; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(52,199,89,.25); }
.rbar .rsw { position: relative; width: 46px; height: 28px; border-radius: 14px; border: 0; padding: 0; flex: none; cursor: pointer; background: #e2dfd8; }
.rbar .rsw.on { background: #34c759; }
.rbar .rsw i { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s var(--ease); }
.rbar .rsw.on i { left: 20px; }
.rbar .rsw:disabled { opacity: .6; cursor: default; }
.rbar .racts { display: flex; gap: 8px; padding-left: 46px; }
.rbar .ract { flex: 1; min-width: 0; height: 36px; border-radius: 18px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 700 13px var(--sans); cursor: pointer; }
.rbar .ract.take { background: var(--green); border-color: var(--green); }
.recept-take { display: block; margin: 14px auto 0; height: 44px; padding: 0 26px; border-radius: 22px; border: 0; background: var(--green); color: #fff; font: 700 15px var(--sans); cursor: pointer; }
.recept-take:disabled { opacity: .6; cursor: default; }
.recept-take[hidden] { display: none; }
.rbar[hidden] { display: none; }

/* Calls and transcripts (2026-09-30) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 0; border-radius: var(--r-pill); padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; background: var(--line); color: var(--ink-2, #4b5368); cursor: pointer; }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.call-row { cursor: pointer; }
.call-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md, 16px); padding: 14px 16px; margin: -4px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.call-panel .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.call-panel .summary { font-size: 14px; line-height: 1.5; }
.tx { display: flex; flex-direction: column; gap: 8px; }
.tx-line { max-width: 86%; display: flex; flex-direction: column; gap: 3px; }
.tx-line.me { align-self: flex-end; align-items: flex-end; }
.tx-who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .6; }
.tx-text { padding: 9px 13px; border-radius: 16px; background: var(--line); font-size: 14px; line-height: 1.45; }
.tx-line.me .tx-text { background: var(--accent-soft); }
.tx-line.ai .tx-text { background: var(--surface); border: 1px solid var(--line); }
.tx-note { font-size: 13px; opacity: .7; }
