:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:#242a34;
  background:#181c24;
  font-size:14px
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button {
  border:0;
  border-radius:7px;
  padding:8px 12px;
  background:#2864c5;
  color:white;
  cursor:pointer;
  font-weight:600;
  line-height:1.3
}
button:hover:not(:disabled) {
  filter:brightness(.95)
}
button:disabled {
  opacity:1;
  background:#eceef1;
  color:#8a919b;
  border:1px solid #e0e3e8;
  cursor:not-allowed
}
.subtle {
  background:#f7f8fa;
  border:1px solid #dce0e6;
  color:#334155
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:2px solid #3d75cc;
  outline-offset:2px
}
.hidden {
  display:none!important
}
.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
}
.error {
  color:#c00000
}
.hint {
  color:#777985;
  font-size:12px;
  line-height:1.4
}
.wide {
  width:100%
}
.brand-logo { display:block; width:min(100%,280px); height:auto; }
.rail-brand {
  width:40px;
  height:40px;
  flex:none;
  background:url('/assets/patitasco-logo.png') no-repeat -5px -8px / 205px 68px;
  filter:invert(1)
}
.login-card {
  max-width:430px;
  margin:12vh auto;
  background:#fff;
  border-radius:14px;
  padding:32px;
  box-shadow:0 18px 60px #0003
}
.login-card h1 {
  margin:20px 0 8px
}
.login-card #google-login { margin-top:24px; min-height:44px; }
.login-card p {
  color:#6d6f79;
  line-height:1.5
}
.login-card form {
  display:grid;
  gap:10px;
  margin-top:24px
}
.login-card input {
  width:100%
}
input,select,textarea {
  border:1px solid #d8dde4;
  border-radius:7px;
  padding:8px 9px;
  background:#fff;
  color:#242a34
}
input:focus,select:focus,textarea:focus {
  border-color:#3d75cc
}
.app-shell {
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  height:100dvh;
  min-height:480px;
  overflow:hidden
}
.icon-rail {
  background:#181c24;
  color:#abb2be;
  display:flex;
  align-items:center;
  flex-direction:column;
  padding:6px 5px 12px;
  gap:13px
}
.icon-rail nav {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:8px;
  width:100%
}
.icon-rail nav button {
  position:relative;
  width:42px;
  height:42px;
  padding:0;
  border-radius:8px;
  color:#a2a2a8;
  background:transparent;
  font-size:23px;
  font-weight:400;
  display:grid;
  place-items:center
}
.icon-rail nav button:hover,.icon-rail nav button.active {
  background:#303846;
  color:white;
  filter:none
}
.icon-rail nav button span {
  position:absolute;
  left:48px;
  top:7px;
  z-index:5;
  display:none;
  background:#303846;
  padding:6px 10px;
  border-radius:5px;
  color:white;
  font-size:12px;
  white-space:nowrap
}
.icon-rail nav button:hover span {
  display:block
}
.rail-avatar {
  margin-top:auto;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#c8a575;
  color:white;
  display:grid;
  place-items:center;
  font-weight:700
}
.rail-avatar:hover,.rail-avatar.active,.rail-avatar:focus-visible {
  outline:2px solid #fff;
  outline-offset:2px;
  filter:none
}
.app-main {
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:#181c24;
  padding-right:6px;
  padding-bottom:6px
}
.topbar {
  height:82px;
  flex:none;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:5px 0 6px
}
.presence-banner {
  height:33px;
  border-radius:7px;
  background:#fff0ed;
  color:#873629;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:12px;
  font-weight:600
}
.presence-banner.available {
  background:#e7f4eb;
  color:#24563a
}
.presence-banner button {
  background:#fff;
  border:1px solid #d5e1d9;
  color:inherit;
  font-weight:650;
  padding:4px 10px;
  font-size:12px
}
.topbar-lower {
  height:32px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,420px) minmax(150px,1fr);
  align-items:center;
  gap:12px;
  position:relative;
  padding:0 10px
}
.alert-count {
  grid-column:1;
  grid-row:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-size:11px;
  font-weight:650;
  padding-left:2px
}
#alert-wait-minutes { display:block; width:100px; margin:7px 0 12px; }
.global-search {
  grid-column:2;
  grid-row:1;
  height:32px;
  min-width:0;
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  background:#303846;
  border-radius:8px;
  color:#fff;
  padding:0 12px;
  font-size:22px
}
.global-search input {
  border:0;
  background:transparent;
  padding:0;
  color:#fff;
  width:100%;
  outline:none;
  font-size:13px
}
.global-search input::placeholder {
  color:#c1c8d3
}
.global-search:focus-within {
  outline:2px solid #9ebef2;
  outline-offset:2px
}
.identity {
  grid-column:3;
  grid-row:1;
  justify-self:end;
  height:34px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#e8e8e8;
  font-size:12px;
  white-space:nowrap
}
.identity-profile {
  background:transparent;
  color:inherit;
  padding:5px;
  font-size:12px
}
.identity-profile:hover,.identity-profile:focus-visible {
  text-decoration:underline;
  filter:none
}
.exit-button {
  background:#303846;
  border:1px solid #515b6b;
  color:#fff;
  font-size:12px;
  padding:6px 9px
}
.workspace,.archive-workspace,.page-workspace {
  background:#fff;
  border-radius:11px;
  min-height:0;
  flex:1;
  overflow:hidden
}
.workspace {
  display:grid;
  grid-template-columns:minmax(235px,22%) minmax(350px,1fr) minmax(238px,20%);
  grid-template-rows:minmax(0,1fr)
}
.sidebar {
  min-width:0;
  border-right:1px solid #e6e6e9;
  display:flex;
  flex-direction:column;
  overflow:auto
}
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.sidebar>.section-head {
  min-height:50px;
  border-bottom:1px solid #e6e6e9;
  padding:0 15px
}
.section-head h2,.details>h2 {
  margin:0;
  font-size:16px;
  font-weight:680
}
.icon-button {
  background:transparent;
  color:#536070;
  padding:4px;
  font-size:20px;
  line-height:1
}
.filter-disclosure {
  border-bottom:1px solid #e6e6e9;
  padding:9px 14px
}
.filter-disclosure summary {
  cursor:pointer;
  font-weight:600;
  color:#54545b;
  font-size:12px
}
.filters {
  display:grid;
  grid-template-columns:78px 1fr;
  gap:8px;
  align-items:center;
  margin:12px 0
}
.filters label,.details label {
  color:#666873;
  font-size:12px
}
.filters select {
  min-width:0;
  width:100%
}
.list-count {
  margin:8px 15px 4px
}
.conversation-list {
  overflow:auto;
  flex:1
}
.list-pager {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:7px 12px;
  border-top:1px solid #e6e6e9;
}
.list-group-heading {
  padding:11px 15px 7px;
  font-weight:700;
  color:#26262b;
  font-size:13px;
  background:#fff;
  position:sticky;
  top:0;
  z-index:1
}
.conversation-item {
  display:flex;
  gap:10px;
  width:calc(100% - 12px);
  margin:2px 6px;
  padding:10px 11px;
  border-radius:8px;
  color:#222228;
  background:#fff;
  text-align:left;
  font-weight:400;
  min-width:0
}
.conversation-item:hover,.conversation-item.selected {
  background:#f0f4f9;
  filter:none
}
.conversation-item.selected {
  box-shadow:inset 3px 0 #3270c8
}
.list-avatar,.table-avatar {
  width:34px;
  height:34px;
  flex:none;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#9c6cf2;
  color:white;
  font-weight:700
}
.list-content {
  min-width:0;
  flex:1
}
.conversation-title {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:14px;
  font-weight:650
}
.conversation-title>span:first-child {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.item-time {
  font-size:11px;
  font-weight:400;
  color:#777985;
  white-space:nowrap
}
.conversation-secondary {
  font-size:12px;
  color:#686a75;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.queue-tag {
  display:inline-block;
  background:#f1f1f3;
  color:#61616b;
  border-radius:12px;
  padding:2px 7px;
  margin-top:6px;
  font-size:11px
}
.thread {
  display:flex;
  min-width:0;
  min-height:0;
  overflow:hidden
}
.thread #thread-content {
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:0;
  overflow:hidden
}
.empty {
  margin:auto;
  color:#90919a;
  text-align:center;
  padding:20px
}
.thread-header {
  min-height:50px;
  border-bottom:1px solid #e8e8eb;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 16px
}
.thread-header h1 {
  font-size:16px;
  margin:0
}
.thread-header p {
  margin:2px 0 0
}
.thread-owner { color:#536070; font-size:11px; font-weight:600; }
.thread-owner.read-only { color:#805826; }
.thread-access { margin:0; padding:6px 16px; background:#eef7f0; color:#24563a; font-size:11px; font-weight:600; }
.thread-access.read-only { background:#fff4e4; color:#76501f; }
.badge {
  background:#f0f0f3;
  border-radius:15px;
  padding:4px 9px;
  color:#55555d;
  font-size:11px;
  white-space:nowrap
}
.messages {
  flex:1;
  min-height:0;
  overflow:auto;
  padding:18px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#fcfcfd
}
.message-history {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:8px 18px;
  border-bottom:1px solid #e8e8eb
}
.message-history button { background:#f4f4f5; color:#202127; border:1px solid #dedee2; }
.message {
  max-width:min(75%,560px);
  border-radius:12px;
  padding:9px 11px;
  background:#eef1f5;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:14px;
  line-height:1.42
}
.message.in {
  align-self:flex-start
}
.message.out {
  align-self:flex-end;
  background:#2864c5;
  color:#fff
}
.message.note {
  align-self:center;
  background:#fff5dc;
  border:1px solid #eadfbe
}
.message-meta {
  font-size:11px;
  color:#707986;
  margin-top:5px;
  line-height:1.25
}
.message.out .message-meta {
  color:#d7e6ff
}
.message-body:empty {
  display:none
}
.message-attachments {
  display:grid;
  gap:9px;
  margin-top:6px
}
.message-attachments:empty {
  display:none
}
.attachment {
  display:grid;
  gap:6px;
  min-width:180px;
  max-width:100%
}
.attachment-label {
  font-size:11px;
  font-weight:650;
  overflow-wrap:anywhere
}
.attachment-status {
  font-size:12px;
  color:#666873
}
.message.out .attachment-status,.message.out .attachment-label {
  color:#fff
}
.message.out .attachment-status.error {
  color:#ffe0dc
}
.attachment img,.attachment video {
  display:block;
  max-width:100%;
  max-height:360px;
  border-radius:8px;
  object-fit:contain;
  background:#f5f5f6
}
.attachment audio {
  width:min(320px,100%);
  max-width:100%
}
.attachment a {
  color:inherit;
  overflow-wrap:anywhere
}
.attachment-load {
  justify-self:start;
  padding:7px 10px;
  font-size:12px;
  background:#fff;
  color:#202127;
  border:1px solid #c6c9d0
}
.composer {
  margin:8px 14px 12px;
  border:1px solid #d8dde5;
  border-radius:11px;
  box-shadow:0 1px 5px #15223810;
  padding:9px 11px;
  background:#fff
}
.composer:focus-within {
  border-color:#7fa3d9;
  box-shadow:0 0 0 2px #dfeafb
}
.composer textarea {
  width:100%;
  border:0;
  outline:0;
  resize:vertical;
  min-height:44px;
  max-height:170px;
  padding:5px 2px;
  font-size:14px;
  line-height:1.4
}
.composer-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px
}
.composer-actions label {
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:600;
  font-size:12px
}
.composer-actions button {
  font-size:12px;
  padding:7px 12px
}
.composer-buttons { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; min-width:0; }
.composer .hint {
  margin:5px 0 0
}
.details {
  border-left:1px solid #e6e6e9;
  min-width:0;
  overflow:auto
}
.details>h2 {
  height:50px;
  border-bottom:1px solid #e6e6e9;
  display:flex;
  align-items:center;
  padding:0 15px
}
.contact-card {
  text-align:center;
  padding:17px 12px 14px;
  border-bottom:1px solid #e6e6e9
}
.contact-avatar,.welcome-avatar {
  width:43px;
  height:43px;
  margin:auto;
  border-radius:50%;
  background:#a46cf5;
  color:white;
  display:grid;
  place-items:center;
  font-size:19px
}
.contact-card h3 {
  margin:8px 0 3px;
  font-size:14px
}
.contact-card p {
  margin:0;
  color:#666873;
  font-size:12px;
  overflow-wrap:anywhere
}
.detail-section {
  padding:12px 15px;
  border-bottom:1px solid #e6e6e9
}
.detail-section h3 {
  margin:0 0 10px;
  font-size:13px;
  color:#343e4c
}
.details dl {
  display:grid;
  grid-template-columns:79px 1fr;
  gap:7px;
  font-size:12px;
  margin:0
}
.details dt {
  color:#6c6e78
}
.details dd {
  margin:0;
  overflow-wrap:anywhere
}
.details label {
  display:block;
  margin:10px 0 4px
}
.details select {
  width:100%
}
.detail-section button {
  margin-top:8px
}
.action-hint { margin:6px 0 0; }
.page-workspace {
  overflow:auto
}
.page-content {
  max-width:1180px;
  margin:0 auto;
  padding:48px 34px
}
.page-content h1 {
  font-size:25px
}
.page-content h2 {
  font-size:17px;
  margin:34px 0 12px
}
.profile-content { max-width:780px; }
.profile-card {
  background:#f7f7f8;
  border:1px solid #e5e5e8;
  border-radius:12px;
  padding:18px 22px;
  margin-top:20px
}
.profile-card h2 { margin:0 0 16px; }
.profile-card dl { display:grid; grid-template-columns:minmax(130px,35%) 1fr; gap:12px 18px; margin:0; }
.profile-card dt { color:#62636b; }
.profile-card dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.profile-card button { margin-top:8px; }
#template-dialog {
  width:min(560px,calc(100vw - 24px));
  max-height:calc(100dvh - 32px);
  overflow:auto;
  border:1px solid #dddde3;
  border-radius:14px;
  padding:24px;
  box-shadow:0 24px 70px #0005
}
#template-dialog::backdrop { background:#0009; }
#template-form { display:grid; gap:10px; }
#template-form h2 { margin:0; font-size:21px; }
#template-form h3 { margin:10px 0 0; font-size:14px; }
#template-form label { font-weight:600; font-size:13px; }
#template-form select,#template-form input[type="text"],#template-form input[type="tel"] { width:100%; }
#template-form .hint { margin:0; }
#template-archive-fields,#template-parameters { display:grid; gap:9px; }
#template-archive-fields { padding:12px; border:1px solid #e4e4e8; border-radius:8px; }
#template-archive-fields .check-label { display:flex; align-items:flex-start; gap:8px; font-weight:500; }
.template-mode { background:#f2f3f6; border-radius:7px; padding:10px; margin:0; }
.template-preview { white-space:pre-wrap; background:#f8f8f9; border:1px solid #e4e4e8; border-radius:8px; padding:12px; min-height:72px; margin:0; overflow-wrap:anywhere; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }
.welcome {
  display:flex;
  gap:15px;
  align-items:center;
  margin:6px 0 34px
}
.welcome-avatar {
  margin:0;
  background:#c8a575
}
.welcome h1 {
  margin:0 0 4px
}
.welcome p {
  margin:0;
  color:#777985
}
.summary-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px
}
.metric-card {
  padding:22px 20px;
  background:#f5f5f6;
  border-radius:9px;
  min-height:142px;
  display:flex;
  flex-direction:column;
  gap:9px
}
.metric-card span {
  font-weight:600;
  font-size:13px
}
.metric-card strong {
  font-size:42px;
  line-height:1.1
}
.metric-card small {
  color:#777985
}
.wide-content {
  max-width:none
}
.table-wrap {
  overflow:auto;
  border-top:1px solid #e6e6e9;
  margin-top:20px
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left
}
th {
  font-size:12px;
  color:#767782;
  font-weight:500
}
th,td {
  padding:14px;
  border-bottom:1px solid #e8e8eb
}
td {
  font-size:13px
}
.team-name {
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:650
}
.table-avatar {
  width:30px;
  height:30px
}
.is-available {
  color:#008748
}
.is-unavailable {
  color:#a2a2aa
}
.report-list {
  border:1px solid #e6e6e9;
  border-radius:9px
}
.report-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:16px;
  border-bottom:1px solid #e6e6e9
}
.report-row:last-child {
  border:0
}
.report-row span {
  color:#777985
}
.archive-workspace {
  display:grid;
  grid-template-columns:minmax(270px,25%) 1fr
}
.archive-workspace .sidebar {
  padding:16px
}
.archive-workspace .sidebar h2 {
  margin:0 0 16px;
  font-size:18px
}
.archive-search {
  display:grid;
  gap:8px
}
.archive-search label {
  font-size:12px;
  color:#666873
}
.archive-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px
}
.archive-heading h1 { margin:0 }
.archive-channel-badge {
  display:inline-flex;
  width:max-content;
  align-items:center;
  border:1px solid #d8dce4;
  border-radius:999px;
  padding:2px 8px;
  background:#f3f5f8;
  color:#46505e;
  font-size:11px;
  font-weight:650;
  line-height:1.5
}
.archive-channel-badge[data-channel="whatsapp"] {
  border-color:#b8dfc8;
  background:#eaf7ef;
  color:#276a40
}
.archive-channel-badge[data-channel="instagram"] {
  border-color:#e5c9e0;
  background:#fbf0f8;
  color:#7c3e73
}
.archive-channel-badge[data-channel="messenger"] {
  border-color:#c5d9f4;
  background:#eef5ff;
  color:#315f98
}
.archive-channel-badge[data-channel="web"] {
  border-color:#c8dce5;
  background:#eef7fa;
  color:#366477
}
.archive-workspace .conversation-item {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px
}
.archive-workspace .conversation-item strong {
  display:block;
  width:100%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.archive-workspace .conversation-secondary {
  max-width:100%;
  margin-top:0;
  font-size:12px
}
.archive-pager {
  display:flex;
  justify-content:center;
  gap:8px;
  padding:12px
}
.archive-detail {
  overflow:auto;
  padding:24px
}
.archive-detail h1 {
  font-size:20px
}
.archive-detail #archive-threads {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:18px 0
}
.archive-detail .messages {
  padding:0;
  overflow:visible
}
.toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  background:#2a2a30;
  color:white;
  padding:11px 16px;
  border-radius:8px;
  box-shadow:0 6px 20px #0003;
  max-width:90vw;
  z-index:10
}
@media(max-width:1050px) {
  .workspace {
    grid-template-columns:260px minmax(320px,1fr);
    grid-template-rows:minmax(0,1fr) minmax(180px,35%)
  }
  .details {
    display:block;
    grid-column:1/-1;
    max-height:none;
    border-left:0;
    border-top:1px solid #e6e6e9
  }
  .page-content {
    padding:32px 24px
  }
}
@media(max-width:680px) {
  .app-shell {
    grid-template-columns:48px 1fr
  }
  .icon-rail nav button {
    width:38px
  }
  .topbar {
    height:116px
  }
  .presence-banner {
    height:44px;
    padding:5px 8px;
    font-size:11px;
    gap:7px;
    text-align:center
  }
  .presence-banner button {
    font-size:11px;
    padding:7px
  }
  .identity-profile {
    display:none
  }
  .topbar-lower {
    height:54px;
    grid-template-columns:minmax(0,1fr) 64px;
    grid-template-rows:32px 18px;
    gap:4px 8px;
    padding:0 8px
  }
  .global-search {
    grid-column:1;
    grid-row:1;
    width:100%
  }
  .alert-count {
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    padding-left:0;
    font-size:11px
  }
  .identity {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    height:32px
  }
  .workspace {
    display:flex;
    flex-direction:column;
    overflow:auto
  }
  .workspace .sidebar {
    max-height:40vh;
    min-height:170px
  }
  .thread {
    height:56vh;
    min-height:350px;
    flex:none
  }
  .details {
    flex:none;
    overflow:visible
  }
  .archive-workspace {
    display:block;
    overflow:auto
  }
  .archive-workspace .sidebar {
    max-height:40vh
  }
  .page-content {
    padding:24px 16px
  }
  .summary-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .metric-card {
    padding:15px;
    min-height:120px
  }
  .metric-card strong {
    font-size:32px
  }
}
.presence-banner button:disabled {
  background:#eceef1;
  color:#8a919b;
  border-color:#e0e3e8
}
.icon-rail nav button svg {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round
}
.local-badge {
  position:absolute;
  left:15px;
  top:-28px;
  color:#b7b7bf;
  font-size:11px;
  border:1px solid #59595e;
  border-radius:12px;
  padding:3px 8px
}
.channel-dot {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#19ba65;
  margin-right:5px
}
.empty-list {
  padding:12px 16px
}
.conversation-item .queue-tag {
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere
}
@media(max-width:680px) {
  .local-badge {
    display:none
  }
}
#lifecycle-settings { margin-top: 24px; }
#lifecycle-form { display: grid; grid-template-columns: minmax(180px, 240px) minmax(180px, 240px); gap: 10px 18px; align-items: end; }
#lifecycle-form label { font-weight: 600; }
#lifecycle-form label, #lifecycle-form input, #lifecycle-form select { grid-column: 1 / -1; }
#lifecycle-form button { grid-column: 1; }
#lifecycle-status { grid-column: 1 / -1; }
.unread-badge { display:inline-flex; min-width:20px; height:20px; padding:0 5px; align-items:center; justify-content:center; border-radius:12px; color:#fff; background:#19705d; font-size:12px; font-weight:700; }
#rescue-reason { width:100%; resize:vertical; }
.catalog-tags { display:grid; gap:8px; max-height:240px; overflow:auto; margin:10px 0; }
.catalog-tags label { display:flex; align-items:flex-start; gap:8px; }
.catalog-tags small { display:block; color:#696969; }
#saved-reply { max-width:190px; }
#saved-reply-search { max-width:140px; }
.message-quote:not(:empty) { margin-bottom:8px; padding:6px 8px; border-left:3px solid #878b96; background:rgba(0,0,0,.05); color:inherit; font-size:11px; }
.message.out .message-quote:not(:empty) { background:rgba(255,255,255,.14); }
.message-body a { color:#0648be; text-decoration:underline; }
.shared-contact { display:grid; gap:3px; margin-top:7px; padding:7px 9px; border:1px solid #d8dbe1; border-radius:6px; }
.message-selection { display:block; font-weight:700; margin-bottom:4px; }
