/* OwlPTT visual system: modern interpretation of PRIP's high-contrast PTT controls. */
:root {
  --ink: #10232d;
  --muted: #657780;
  --line: #dce5e8;
  --surface: #ffffff;
  --soft: #f2f7f7;
  --brand: #0b9f9a;
  --brand-dark: #08746f;
  --brand-soft: #e4f7f5;
  --navy: #10252d;
  --navy-2: #193943;
  --green: #18a66f;
  --amber: #e89b20;
  --red: #d9525f;
  --shadow: 0 18px 50px rgb(16 37 45 / 14%);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgb(15 169 163 / 12%), transparent 28%),
    linear-gradient(145deg, #dce8e9, #f5f8f8 58%, #d9e5e7);
}

.app-shell {
  color: var(--ink);
  background: #fbfdfd;
}

button,
input { letter-spacing: -.005em; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(11 159 154 / 24%);
  outline-offset: 2px;
}

/* Access */
.auth-screen {
  background: linear-gradient(165deg, var(--navy) 0 34%, transparent 34.2%), #fff;
}
.brand-mark {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
.brand-block .brand-mark { width: 68px; height: 68px; }
.login-copy { color: #b7cccf; }
.field-wrap input,
.search-box input {
  border-color: #d5e1e3;
  border-radius: 12px;
  background: #f7fafa;
}
.field-wrap input:focus,
.search-box input:focus {
  border-color: #56bbb6;
  box-shadow: 0 0 0 4px rgb(11 159 154 / 11%);
}
.primary-button {
  border-radius: 12px;
  background: linear-gradient(135deg, #13b8b2, #087a76);
  box-shadow: 0 12px 26px rgb(11 159 154 / 26%);
}
.text-button,
.trial-button { color: var(--brand-dark); }
.check-label input { accent-color: var(--brand); }

/* Shell, header and navigation */
.app-header {
  border-color: #dfe7e9;
  background: rgb(255 255 255 / 94%);
}
.menu-avatar-button,
.icon-button {
  border-radius: 10px;
  background: #edf4f4;
  color: #35505a;
}
.connection-pill {
  border: 1px solid #cdebe4;
  background: #e9f8f3;
  color: #147353;
}
.connection-pill i { box-shadow: 0 0 0 3px rgb(24 166 111 / 14%); }
.bottom-nav {
  border-color: #dce5e7;
  background: rgb(250 253 253 / 96%);
  backdrop-filter: none;
}
.bottom-nav button { color: #718089; }
.bottom-nav button.active {
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.section-kicker { color: var(--brand-dark); }
.side-menu { box-shadow: 16px 0 45px rgb(16 37 45 / 22%); }
.menu-brand { width: 40px; height: 40px; border: 0; background: transparent; }
.menu-account,
.identity-card {
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: 0 12px 30px rgb(16 37 45 / 18%);
}
.menu-options > button:hover,
.setting-row.action-row:hover { background: #f0f7f7; }
.menu-option-icon,
.setting-icon.blue { background: var(--brand-soft); color: var(--brand-dark); }

/* Dial pad */
.destination-label { color: #60747d; }
.number-row input { color: #10252d; }
.call-state { border: 1px solid #e0e7e9; background: #f5f8f8; }
.call-state.ready,
.call-state.requesting {
  border-color: #cbe9e7;
  background: var(--brand-soft);
  color: #08746f;
}
.call-state.ready .state-dot,
.call-state.requesting .state-dot { background: var(--brand); }
.dial-pad { gap: 11px 22px; }
.dial-pad button {
  border-color: #dce6e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eff4f5);
  box-shadow: 0 3px 0 #d3dfe1;
}
.dial-pad button:hover { background: #edf6f6; box-shadow: 0 3px 0 #c9dbdc; }
.dial-pad button:active { transform: translateY(2px) scale(.98); box-shadow: 0 1px 0 #c9d6d8; }
.dial-pad strong { color: #17313a; font-weight: 720; }
.dial-pad small { color: #71838a; }
.ptt {
  height: 122px;
  border: 1px solid #08716d;
  border-radius: 16px;
  background: linear-gradient(180deg, #18bbb5, #07908b);
  box-shadow: 0 8px 0 #066d69, 0 16px 30px rgb(7 116 111 / 22%);
}
.ptt-halo { inset: 7px; border-radius: 10px; border-color: rgb(255 255 255 / 30%); }
.ptt:not(:disabled):active,
.ptt.talking { transform: translateY(5px); box-shadow: 0 3px 0 #075e5b, 0 9px 18px rgb(7 116 111 / 18%); }
.ptt.talking { background: linear-gradient(180deg, #20c987, #119c68); }
.ptt.requesting { background: linear-gradient(180deg, #28c8c2, #099a95); }
.ptt.busy { border-color: #b87514; background: linear-gradient(180deg, #f2b64b, #d98a12); box-shadow: 0 8px 0 #ad6b0d; }
.ptt:disabled {
  border-color: #bdc9cc;
  background: #d9e0e2;
  box-shadow: 0 5px 0 #b9c4c7;
  color: #fff;
}
.ptt.phone-action {
  border-color: #11734f;
  background: linear-gradient(180deg, #2ab982, #13855e);
  box-shadow: 0 8px 0 #0c6848, 0 16px 28px rgb(19 133 94 / 20%);
}

/* Unified history and directory */
.recents-summary,
.privacy-note { color: #718188; }
.contact-list { gap: 10px; }
.contact-row,
.group-row {
  border: 1px solid #dfe8ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(16 37 45 / 4%);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.contact-row:hover,
.group-row:hover { border-color: #b8dad8; background: #fbfefe; transform: translateY(-1px); }
.contact-avatar,
.group-row-avatar {
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.recent-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; }
.recent-row .recent-direction {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #e9f8f3;
  color: #12825b;
  font-size: .9rem;
  font-weight: 900;
}
.recent-row.outgoing .recent-direction { background: #e5f7f6; color: #087d78; }
.recent-row.missed .recent-direction { background: #ffebed; color: #c84251; }
.recent-row.recent-alert .contact-avatar { background: #fff2df; color: #b66d13; }
.recent-row.recent-phone .contact-avatar { background: #e9f8f3; color: #12825b; }
.recent-row.recent-group .contact-avatar { background: #eeeafa; color: #6d56ba; }
.recent-chevron { color: #829097; font-size: 1.2rem; }
.presence { box-shadow: 0 0 0 3px rgb(24 166 111 / 12%); }
.contact-alert-shortcut { border-color: #f0dcc1; background: #fff7ec; color: #ad6614; }
.contacts-view-switch button.active { color: var(--brand-dark); }

/* Detail, settings and preparation */
.contact-detail-avatar,
.profile-avatar,
.recent-detail-avatar {
  background: linear-gradient(145deg, #19b7b1, #087d78);
  box-shadow: 0 14px 30px rgb(11 159 154 / 20%);
}
.contact-presence.online,
.availability-badge.available,
.recent-detail-badge { background: #e9f8f3; color: #147a57; }
.copy-contact-id,
.status-action { background: var(--brand-soft); color: var(--brand-dark); }
.contact-primary-actions button,
.recent-detail-actions button,
.settings-group,
.recent-detail-information,
.profile-information,
.device-check-card {
  border-color: #dde7e9;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgb(16 37 45 / 4%);
}
.contact-primary-actions button > span,
.recent-detail-actions button > span,
.device-setup-icon { background: var(--brand-soft); color: var(--brand-dark); }
.switch input:checked + i { background: var(--brand); }
.settings-panel,
.device-setup-panel,
.profile-panel,
.security-panel,
.diagnostics-panel,
.help-panel,
.privacy-panel { background: #f7fafa; }
.diagnostics-summary,
.security-hero { background: linear-gradient(145deg, var(--navy), var(--navy-2)); }

/* Calls and alerts */
.call-alert-screen,
.send-alert-confirm { backdrop-filter: none; background: rgb(9 26 32 / 56%); }
.call-alert-card,
.send-alert-confirm-card { border-radius: 20px; box-shadow: 0 24px 64px rgb(8 29 35 / 30%); }
.call-alert-avatar,
.send-alert-confirm-avatar { background: #fff2df; color: #b46a10; }
.communication-screen[data-mode="ptt"] { background: #fbfdfd; }
.communication-screen[data-mode="ptt"] .communication-avatar {
  background: linear-gradient(145deg, #19b7b1, #087d78);
  box-shadow: 0 16px 35px rgb(11 159 154 / 20%);
}
.communication-screen[data-mode="ptt"] .communication-company { border-color: #cde9e7; background: var(--brand-soft); color: var(--brand-dark); }
.outgoing-ptt {
  border: 1px solid #08716d;
  border-radius: 18px;
  background: linear-gradient(180deg, #18bbb5, #078f8a);
  box-shadow: 0 8px 0 #066d69, 0 18px 38px rgb(7 116 111 / 22%);
}
.outgoing-ptt.talking { background: linear-gradient(180deg, #22c988, #119b68); }
.outgoing-ptt.remote-receiving { background: linear-gradient(180deg, #264f5b, #15343d); box-shadow: 0 8px 0 #0d252c; }
.end-communication { border-radius: 12px; }
.communication-screen[data-mode="phone"] { background: linear-gradient(160deg, #10252d, #193943); }
.phone-call-status { border-color: rgb(255 255 255 / 12%); background: rgb(255 255 255 / 8%); }

/* Less layout and paint work for long views. */
.contact-row,
.group-row,
.setting-row,
.diagnostic-row { contain: layout paint; }
.contact-list,
.settings-group { content-visibility: auto; contain-intrinsic-size: 1px 320px; }
.side-menu { will-change: transform; }

/* Desplazamiento discreto dentro de cada pantalla; la ventana y la navegación
   permanecen inmóviles. */
.dialer-screen > .panel,
.side-menu {
  scrollbar-width: thin;
  scrollbar-color: #aebabc transparent;
}
.dialer-screen > .panel::-webkit-scrollbar,
.side-menu::-webkit-scrollbar { width: 6px; }
.dialer-screen > .panel::-webkit-scrollbar-track,
.side-menu::-webkit-scrollbar-track { background: transparent; }
.dialer-screen > .panel::-webkit-scrollbar-thumb,
.side-menu::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #aebabc;
}

@media (min-width: 620px) {
  .app-shell { border-color: #cfdcdf; box-shadow: var(--shadow); }
}

/* Ventanas compactas de escritorio y tablet: ocupan el espacio disponible en
   lugar de volver repentinamente al ancho fijo de un teléfono. */
@media (min-width: 700px) and (max-width: 1023px) {
  body { height: 100vh; overflow: hidden; }
  .app-shell {
    width: 100%;
    height: 100vh;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .screen { min-height: 100%; height: 100%; }
  .dialer-screen { overflow: hidden; }
  .panel,
  .list-panel,
  .contact-detail-panel,
  .add-contact-panel,
  .settings-panel,
  .device-setup-panel,
  .profile-panel,
  .security-panel,
  .diagnostics-panel,
  .help-panel,
  .privacy-panel,
  .group-detail-panel,
  .recent-detail-panel {
    width: min(700px, 100%);
    height: calc(100% - 78px);
    min-height: 0;
    margin: 0 auto;
    padding-right: clamp(32px, 7vw, 72px);
    padding-left: clamp(32px, 7vw, 72px);
    overflow-y: auto;
  }
  .side-menu { min-height: 100%; }
}

@media (min-width: 1024px) {
  .app-shell { width: min(1440px, calc(100vw - 44px)); }
  .auth-screen { background: linear-gradient(90deg, var(--navy) 0 45%, #fff 45%); }
  .bottom-nav button.active { background: var(--brand-soft); }
  .panel { width: min(1180px, 100%); }
  .dialer-panel {
    grid-template-columns: minmax(300px, .86fr) minmax(390px, 1.14fr);
    gap: 24px clamp(30px, 4vw, 72px);
  }
  .ptt { min-height: 330px; height: 100%; }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-row { min-height: 74px; }
  .outgoing-ptt { min-height: 300px; }
  .list-panel,
  .contact-detail-panel,
  .add-contact-panel,
  .settings-panel,
  .device-setup-panel,
  .profile-panel,
  .security-panel,
  .diagnostics-panel,
  .help-panel,
  .privacy-panel,
  .group-detail-panel,
  .recent-detail-panel { width: min(1120px, 100%); }
}

@media (max-width: 619px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }
  .screen {
    height: 100%;
    min-height: 0;
  }
  .dialer-screen {
    position: relative;
    padding-bottom: 70px;
    overflow: hidden;
  }
  .dialer-screen > .panel {
    height: calc(100% - 78px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .bottom-nav {
    position: absolute;
    inset: auto 0 0;
    z-index: 8;
  }
  .recent-row { grid-template-columns: auto minmax(0,1fr) auto auto; }
  .ptt { height: 110px; }
  .dial-pad button { border-radius: 13px; }
}

/* Ventanas angostas y bajas de escritorio (incluida la medida mínima de
   Electron): el marcador debe caber completo entre encabezado y navegación,
   sin hacer crecer el documento ni depender de desplazamiento vertical. */
@media (max-width: 619px) and (max-height: 720px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }
  .screen {
    height: 100%;
    min-height: 0;
  }
  .dialer-screen {
    padding-bottom: 62px;
    overflow: hidden;
  }
  .app-header {
    height: 54px;
    min-height: 54px;
    padding: 7px 14px;
  }
  .dialer-screen > .panel {
    height: calc(100% - 54px);
    min-height: 0;
  }
  .dialer-panel {
    padding: 5px 20px 7px;
    overflow: hidden;
  }
  .dialer-panel .destination {
    min-height: 55px;
  }
  .dialer-panel .destination-label {
    display: none;
  }
  .dialer-panel .number-row input {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
    line-height: 1.18;
  }
  .dialer-panel .destination-meta {
    margin-top: 2px;
    font-size: .7rem;
  }
  .dialer-panel .call-state {
    min-height: 27px;
    margin: 0 auto 5px;
    padding: 4px 11px;
    font-size: .7rem;
  }
  .dialer-panel .dial-pad {
    gap: 5px 18px;
  }
  .dialer-panel .dial-pad button {
    height: 40px;
  }
  .dialer-panel .dial-pad strong {
    font-size: 1.28rem;
  }
  .dialer-panel .dial-pad small {
    min-height: 7px;
    margin-top: 1px;
    font-size: .48rem;
  }
  .dialer-panel .send-call-alert {
    min-height: 42px;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 13px;
  }
  .dialer-panel .send-call-alert-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .dialer-panel .send-call-alert-copy small {
    display: none;
  }
  .dialer-panel .ptt-area {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
    margin-top: 6px;
  }
  .dialer-panel .ptt {
    height: clamp(150px, 32vh, 225px);
    min-height: 76px;
    max-height: 100%;
  }
  .dialer-panel .ptt svg {
    width: 30px;
  }
  .dialer-panel .ptt-copy strong {
    font-size: .9rem;
  }
  .dialer-panel .ptt-copy small {
    margin-top: 2px;
    font-size: .63rem;
  }
  .bottom-nav {
    min-height: 62px;
    height: 62px;
    padding-top: 4px;
  }
  .bottom-nav button {
    gap: 2px;
    font-size: .61rem;
  }
  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }
  .contact-detail-hero {
    margin-top: 18px;
  }
  .contact-detail-avatar {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    font-size: 1.75rem;
  }
  .contact-detail-hero h2 {
    margin-top: 12px;
    font-size: 1.4rem;
  }
  .contact-primary-actions {
    margin-top: 20px;
  }
  .contact-primary-actions button {
    min-height: 88px;
  }
  .contact-primary-actions button > span {
    width: 38px;
    height: 38px;
  }
  .profile-hero {
    padding: 12px 0 16px;
  }
  .profile-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 9px;
    border-radius: 24px;
    font-size: 1.65rem;
  }
  .profile-hero h2 {
    font-size: 1.3rem;
  }
  .profile-hero p {
    margin-bottom: 8px;
  }
  .availability-section {
    margin-top: 16px;
  }
  .device-setup-heading {
    padding: 10px 6px 14px;
  }
  .device-setup-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 18px;
  }
  .device-setup-icon svg {
    width: 29px;
    height: 29px;
  }
  .device-setup-heading h2 {
    font-size: 1.35rem;
  }
  .device-check-card {
    min-height: 82px;
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-row:hover,
  .group-row:hover { transform: none; }
}

/* Mensajería OwlPTT */
.bottom-nav { grid-template-columns: repeat(3,1fr); }
.desktop-chat-nav { display: none !important; position: relative; }
.desktop-only-nav,.desktop-nav-divider { display: none !important; }
.contact-primary-actions { grid-template-columns: repeat(2,1fr); }
.contact-primary-actions button:nth-child(2) > span { background: #e7f7f3; color: #137a69; }
.contact-primary-actions button:nth-child(3) > span { background: #e8f8f1; color: #13835f; }
.contact-primary-actions button:nth-child(4) > span { background: #fff0e3; color: #c56527; }
.group-chat-button { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px; width: 100%; min-height: 68px; margin-top: 10px; padding: 10px 16px; border: 1px solid #dce5e7; border-radius: 18px; background: #fff; color: #17343e; cursor: pointer; text-align: left; }
.group-chat-button svg { width: 27px; height: 27px; fill: none; stroke: #168373; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.group-chat-button strong,.group-chat-button small { display: block; }.group-chat-button strong { font-size: .82rem; }.group-chat-button small { margin-top: 3px; color: #788892; font-size: .67rem; }
.chat-panel { height: calc(100vh - 150px); min-height: 0; padding: 0 !important; overflow: hidden !important; background: #f5f8f9; }
.chat-sidebar { height: 100%; padding: 20px 18px 92px; overflow-y: auto; background: #fff; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.chat-heading h2 { margin: 2px 0 0; font-size: 1.55rem; }.chat-unread-total { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: #168373; color: #fff; font-size: .72rem; font-weight: 850; }
.new-chat-form { margin-bottom: 18px; padding: 12px; border: 1px solid #e0e8ea; border-radius: 16px; background: #f8fafb; }.new-chat-form label { display: block; margin-bottom: 7px; color: #536672; font-size: .68rem; font-weight: 800; }.new-chat-form > div { display: flex; gap: 7px; }.new-chat-form input { min-width: 0; flex: 1; height: 42px; padding: 0 11px; border: 1px solid #d5dfe2; border-radius: 11px; background: #fff; outline: none; }.new-chat-form input:focus { border-color: #168373; box-shadow: 0 0 0 3px #16837318; }.new-chat-form button { width: 48px; border: 0; border-radius: 11px; background: #168373; color: #fff; font-weight: 850; cursor: pointer; }.new-chat-form small { display: block; min-height: 14px; margin-top: 5px; color: #bb4050; font-size: .64rem; }
.chat-conversation-list { display: grid; gap: 7px; }.chat-conversation-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 64px; padding: 9px 10px; border: 1px solid transparent; border-radius: 15px; background: transparent; color: #18323c; text-align: left; cursor: pointer; }.chat-conversation-row:hover,.chat-conversation-row.active { border-color: #dce9e8; background: #eef7f5; }.chat-list-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #e2f3ef; color: #137767; font-weight: 900; }.chat-list-avatar.group { background: #e9efff; color: #315bea; }.chat-list-copy { min-width: 0; }.chat-list-copy strong,.chat-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.chat-list-copy strong { font-size: .82rem; }.chat-list-copy small { margin-top: 4px; color: #7b8992; font-size: .67rem; }.chat-list-meta { display: grid; justify-items: end; gap: 5px; color: #8a969e; font-size: .59rem; }.chat-list-meta b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #168373; color: #fff; font-size: .62rem; }
.chat-thread { height: 100%; background: #f2f6f6; }.chat-empty-state { display: none; }.chat-active { display: grid; grid-template-rows: 64px minmax(0,1fr) auto auto; height: 100%; }.chat-thread-header { display: grid; grid-template-columns: 36px 40px minmax(0,1fr) 40px; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid #dce5e7; background: #fff; }.chat-thread-header > button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 11px; background: #edf3f3; color: #31505a; cursor: pointer; font-size: 1.7rem; }.chat-thread-header > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #dff2ed; color: #137767; font-weight: 900; }.chat-thread-header div { min-width: 0; }.chat-thread-header strong,.chat-thread-header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.chat-thread-header strong { font-size: .82rem; }.chat-thread-header small { margin-top: 3px; color: #7b8992; font-size: .63rem; }.chat-thread-header svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-messages { display: flex; flex-direction: column; gap: 7px; min-height: 0; padding: 15px 13px; overflow-y: auto; }.chat-day { align-self: center; margin: 5px 0; padding: 4px 8px; border-radius: 99px; background: #e3e9ea; color: #6d7a82; font-size: .58rem; font-weight: 800; }.chat-bubble { align-self: flex-start; max-width: 84%; padding: 9px 11px 6px; border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 3px 12px #2d4c5610; color: #203840; }.chat-bubble.mine { align-self: flex-end; border-radius: 15px 15px 4px 15px; background: #dff4ed; }.chat-bubble .chat-sender { display: block; margin-bottom: 3px; color: #137767; font-size: .62rem; font-weight: 850; }.chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.38; }.chat-bubble footer { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 3px; color: #77868e; font-size: .55rem; }.chat-typing { margin: 0; padding: 3px 15px; color: #708089; font-size: .63rem; font-style: italic; }.chat-composer { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #dce5e7; background: #fff; }.chat-composer textarea { min-height: 44px; max-height: 110px; padding: 11px 12px; resize: none; border: 1px solid #d5dfe2; border-radius: 14px; outline: none; font: inherit; font-size: .78rem; }.chat-composer textarea:focus { border-color: #168373; }.chat-composer button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #168373; color: #fff; cursor: pointer; }.chat-composer button:disabled { opacity: .45; }.chat-composer svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }.chat-nav-badge { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e35565; color: #fff; font-size: .55rem; font-style: normal; }
.chat-panel:not(.thread-open) .chat-thread { display: none; }.chat-panel.thread-open .chat-sidebar { display: none; }
