:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #e7eaf0;
  --text: #172033;
  --muted: #7a8497;
  --soft: #eef3ff;
  --accent: #315efb;
  --success: #1f9d68;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); overflow: hidden; }
button, input { font: inherit; }

.seed-shell {
  display: grid;
  grid-template-columns: 220px 330px minmax(520px, 1fr) 310px;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.seed-nav, .conversation-list, .chat-panel, .contact-panel { background: var(--panel); }
.seed-nav { min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: white; font-weight: 800; }
.brand strong, .brand span, .nav-footer strong, .nav-footer span { display: block; }
.brand span, .nav-footer span { color: var(--muted); font-size: 12px; margin-top: 2px; }
nav { display: grid; gap: 6px; }
.nav-item { text-decoration: none; color: #465066; padding: 11px 12px; border-radius: 10px; display: flex; justify-content: space-between; }
.nav-item.active { background: var(--soft); color: var(--accent); font-weight: 700; }
.nav-item span { background: var(--accent); color: white; border-radius: 999px; min-width: 22px; text-align: center; font-size: 12px; padding: 2px 6px; }
.nav-footer { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e9edff; color: #4254c5; font-weight: 800; }
.avatar.large { width: 44px; height: 44px; }
.avatar.xlarge { width: 68px; height: 68px; font-size: 22px; margin: 0 auto; }
.conversation-list { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.panel-header, .chat-header { min-height: 78px; padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
h1 { font-size: 24px; margin: 0; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: 22px; }
.search-box { margin: 14px 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: #a1a8b6; background: #fafbfc; }
.conversation { display: flex; gap: 11px; padding: 14px 16px; border-top: 1px solid #f1f3f6; cursor: pointer; }
.conversation.active { background: #f4f7ff; border-left: 3px solid var(--accent); padding-left: 13px; }
.conversation-copy { min-width: 0; flex: 1; }
.row { display: flex; justify-content: space-between; gap: 10px; }
.row time { color: var(--muted); font-size: 12px; }
.conversation p { margin: 5px 0 8px; color: #697387; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.badge { display: inline-block; font-size: 11px; color: #64708a; background: #eef1f6; border-radius: 999px; padding: 3px 7px; }

.chat-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; }
.chat-header { justify-content: flex-start; gap: 11px; }
.chat-header span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.chat-actions { margin-left: auto; display: flex; gap: 8px; }
.chat-actions button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 10px; color: #536077; }
.messages-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
}
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px;
}
.message-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
}
.day-label { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.bubble { max-width: 68%; padding: 12px 14px 8px; border-radius: 15px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(25,40,70,.05); }
.bubble p { margin: 0 0 7px; line-height: 1.5; }
.bubble small { display: block; text-align: right; color: var(--muted); font-size: 11px; }
.incoming, .translated { align-self: flex-start; background: white; border: 1px solid var(--line); }
.outgoing { align-self: flex-end; margin-left: 0; background: var(--accent); color: white; }
.outgoing small { color: #dce4ff; }
.translation-note { align-self: flex-start; font-size: 11px; color: var(--success); margin: 4px 0 6px 8px; }
.composer { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; align-items: center; background: var(--panel); position: relative; z-index: 2; }
.composer-tools { display: flex; gap: 5px; }
.composer-tools button { border: 0; background: transparent; font-size: 20px; }
.composer-input { flex: 1; color: #a0a7b4; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fafbfc; }
.send-button { border: 0; background: var(--accent); color: white; border-radius: 10px; padding: 11px 18px; font-weight: 700; }

.contact-panel { border-left: 1px solid var(--line); padding: 24px 18px; overflow-y: auto; min-height: 0; }
.contact-hero { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-hero h2 { margin: 10px 0 2px; font-size: 20px; }
.contact-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.detail-card { padding: 18px 2px 2px; }
.detail-card h3 { margin: 0 0 12px; font-size: 14px; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; }
.stage { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; color: #657086; font-size: 13px; }
.active-stage { background: #ecf8f2; color: #177a53; border-color: #caebdc; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }

@media (max-width: 1180px) {
  .seed-shell { grid-template-columns: 76px 300px minmax(500px, 1fr); }
  .contact-panel { display: none; }
  .brand div:last-child, .seed-nav .nav-item, .nav-footer div:last-child { display: none; }
  .seed-nav { align-items: center; }
}

.attachment-input { display: none; }
.attach-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
  font-size: 22px;
  color: #536077;
}
.attach-button:hover { background: var(--soft); color: var(--accent); }
.attachment { margin: 8px 0; padding: 8px 10px; border-radius: 9px; background: rgba(49,94,251,.08); }
.attachment a { color: inherit; text-decoration: none; font-size: 13px; font-weight: 600; }
.outgoing .attachment { background: rgba(255,255,255,.14); }
.attachment-media { padding: 0; overflow: hidden; background: transparent; }
.outgoing .attachment-media { background: transparent; }
.message-image {
  display: block;
  width: auto;
  max-width: min(380px, 100%);
  max-height: 420px;
  object-fit: contain;
  border-radius: 11px;
}
.message-audio {
  display: block;
  width: min(340px, 100%);
  min-width: 250px;
  height: 42px;
}
.message-video {
  display: block;
  width: min(420px, 100%);
  max-height: 420px;
  border-radius: 11px;
  background: #111;
}
.file-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}
.composer-input { outline: none; }
.composer-input:focus { border-color: #a9b9ff; box-shadow: 0 0 0 3px rgba(49,94,251,.08); }

.detail-card form.button_to { margin: 0; }
.detail-card button.stage {
  width: 100%;
  text-align: left;
  background: white;
  cursor: pointer;
  font: inherit;
}
.detail-card button.stage:hover { border-color: #b9c5df; background: #fafbff; }
.detail-card button.active-stage { background: #ecf8f2; }
.prayer-item {
  margin: 0 0 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff7df;
  color: #725b17;
  font-size: 13px;
  line-height: 1.4;
}
.prayer-form { display: grid; gap: 8px; }
.prayer-form textarea {
  min-height: 70px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
}
.prayer-form input[type="submit"] {
  justify-self: end;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  cursor: pointer;
}
.mentoring-profile-form { display: grid; gap: 12px; }
.profile-field { display: grid; gap: 6px; }
.profile-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.profile-field select,
.profile-field input,
.profile-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  background: white;
  color: var(--text);
  font: inherit;
}
.profile-field textarea { resize: vertical; line-height: 1.4; }
.profile-field select:focus,
.profile-field input:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: #a9b9ff;
  box-shadow: 0 0 0 3px rgba(49,94,251,.08);
}
.profile-save-button {
  justify-self: end;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}
.accepted-jesus-marker {
  margin: 0;
  border-radius: 8px;
  background: #ecf8f2;
  color: #177a53;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fb 0%, #eef3ff 100%);
}
.login-card {
  width: min(420px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(30, 45, 80, .10);
}
.login-brand { padding: 0 0 24px; }
.login-card h1 { margin-bottom: 6px; }
.login-form { display: grid; gap: 16px; margin-top: 22px; }
.login-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
.login-form input:focus { border-color: #a9b9ff; box-shadow: 0 0 0 3px rgba(49,94,251,.08); }
.login-form input[type="submit"] {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.login-error {
  margin-top: 14px;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff0f0;
  color: #a73737;
  font-size: 13px;
}
.signout-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

/* Keep a held finger on the microphone from scrolling or opening a callout. */
.voice-record-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cdd8ff;
  background: #eef3ff;
  color: #3155b5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.voice-record-button:focus-visible {
  outline: 3px solid #91a8ff;
  outline-offset: 2px;
}

.voice-record-button.recording {
  color: #ffffff;
  background: #c53939;
  border-color: #a72c2c;
  box-shadow: 0 0 0 3px #c5393924;
}
.composer-status {
  max-width: 170px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.settings-shell {
  min-height: 100vh;
  padding: 34px;
  background: var(--bg);
}
.settings-header {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.settings-header h1 { margin: 0 0 7px; }
.secondary-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.channel-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.channel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(30, 45, 80, .05);
}
.channel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 15px;
}
.channel-title h2 { margin: 5px 0 0; font-size: 18px; }
.provider-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5cad4;
  margin-top: 5px;
}
.status-dot.online { background: var(--success); }
.channel-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.channel-form label:not(.checkbox-row) {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.channel-form input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.channel-form input[type="submit"] {
  justify-self: start;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
}
.settings-notice {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
}
.settings-notice.success { background: #ecf8f2; color: #177a53; }
.settings-notice.error { background: #fff0f0; color: #a73737; }
.settings-footnote {
  max-width: 1100px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.resource-shell {
  min-height: 100vh;
  padding: 34px;
  background: var(--bg);
}
.resource-header {
  max-width: 1100px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.resource-header h1 { margin: 0 0 7px; }
.resource-card {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(30, 45, 80, .05);
}
.resource-search {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: flex;
  gap: 8px;
}
.resource-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.resource-search input[type="submit"] {
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
}
.resource-table { display: grid; }
.resource-row {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr 1.2fr;
  gap: 16px;
  padding: 13px 18px;
  align-items: center;
  border-top: 1px solid #f0f2f5;
  font-size: 13px;
}
.resource-row:first-child { border-top: 0; }
.resource-row-head {
  background: #fafbfc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.empty-resource { padding: 28px; text-align: center; color: var(--muted); }

.team-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.team-card { margin: 0; padding: 20px; }
.team-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.team-card-header h2 { margin: 0 0 4px; font-size: 18px; }
.team-card-header p { margin: 0; color: var(--muted); font-size: 12px; }
.mentor-list { display: grid; gap: 9px; }
.mentor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.mentor-copy { flex: 1; min-width: 0; }
.mentor-copy strong, .mentor-copy span { display: block; }
.mentor-copy span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.mentor-state { text-align: right; font-size: 11px; }
.mentor-state span, .mentor-state small { display: block; }
.mentor-state small { color: var(--muted); margin-top: 3px; }
.available { color: var(--success); font-weight: 700; }
.unavailable { color: #9a6570; font-weight: 700; }

.invite-card {
  margin-bottom: 18px;
  padding: 22px;
}
.invite-card-header h2 { margin: 0 0 5px; font-size: 19px; }
.invite-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.invite-form label { display: grid; gap: 6px; }
.invite-form label > span { font-size: 12px; font-weight: 700; color: #556078; }
.invite-form input,
.invite-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: white;
}
.invite-form small { color: var(--muted); font-size: 11px; }
.invite-form-action {
  display: flex;
  align-items: end;
}
.invite-form-action input {
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.invite-success {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cfe9dc;
  border-radius: 11px;
  background: #f0fbf5;
}
.invite-success p { margin: 5px 0 9px; color: #557063; font-size: 12px; }
.invite-success input {
  width: 100%;
  border: 1px solid #c8ddd2;
  border-radius: 9px;
  padding: 9px 10px;
  background: white;
}
.pending-invites-card {
  margin-top: 18px;
  padding: 20px;
}
.pending-invites-card h2 { margin: 0 0 12px; font-size: 17px; }
.pending-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pending-invite-row:first-of-type { border-top: 0; }
.pending-invite-row strong,
.pending-invite-row span { display: block; }
.pending-invite-row span,
.pending-invite-row small { color: var(--muted); font-size: 11px; }
.invitee-summary {
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}
.invitee-summary strong,
.invitee-summary span { display: block; }
.invitee-summary span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.invite-expiry { margin: 16px 0 0; color: var(--muted); font-size: 11px; }

.resource-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.client-create-card { margin-bottom: 18px; padding: 22px; }
.client-create-card h2 { margin: 0 0 5px; font-size: 19px; }
.client-form {
  display: grid;
  grid-template-columns: 1.4fr .6fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}
.client-form label { display: grid; gap: 6px; }
.client-form label > span { font-size: 12px; font-weight: 700; color: #556078; }
.client-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: white;
}
.client-form-action input {
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.client-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
.client-card { margin: 0; padding: 20px; }
.client-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.client-card-head h2 { margin: 0 0 4px; font-size: 18px; }
.client-card-head p { margin: 0; color: var(--muted); font-size: 11px; }
.client-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}
.client-metrics div {
  padding: 10px 8px;
  border-radius: 10px;
  background: #f8f9fc;
  text-align: center;
}
.client-metrics strong,
.client-metrics span { display: block; }
.client-metrics strong { font-size: 20px; }
.client-metrics span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.client-units { display: grid; gap: 7px; }
.client-units div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.client-units span { color: var(--muted); }
.client-notice,
.client-error { margin-bottom: 14px; padding: 12px 14px; }
.client-notice { background: #f0fbf5; color: #246b4a; }
.client-error { background: #fff0f0; color: #a73737; }

.metric-grid {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.metric-card span { color: var(--muted); font-size: 12px; display: block; }
.metric-card strong { font-size: 28px; margin-top: 7px; display: block; }
.stage-report { padding: 20px; }
.stage-report h2 { margin: 0 0 18px; font-size: 17px; }
.stage-report-row { margin-bottom: 16px; }
.stage-report-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 13px;
}
.stage-report-track {
  height: 8px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}
.stage-report-bar {
  min-width: 3px;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 720px) {
  .resource-shell, .settings-shell { padding: 20px 14px; }
  .resource-row { grid-template-columns: 1fr 1fr; }
  .resource-row-head { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .invite-form { grid-template-columns: 1fr; }
  .client-form { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .client-metrics { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .pending-invite-row { align-items: flex-start; flex-direction: column; }
}

/* Inbox lifecycle and deliberate permanent deletion. */
.priority-badge, .state-badge { display: inline-flex; padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 650; line-height: 1.4; margin: 3px 2px 0 0; background: #eef1f6; color: #536079; }
.priority-1 { background: #fff3d6; color: #8a5a05; }
.priority-2 { background: #ffe8e9; color: #ae2638; }
.completed { background: #e6f5ec; color: #226943; }
.priority-form { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 10px 0 14px; }
.priority-form label { flex-basis: 100%; font-size: 12px; font-weight: 600; }
.priority-form select, .priority-form button { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: white; font: inherit; font-size: 12px; }
.priority-form select { flex: 1; }
.priority-form button { cursor: pointer; }
.priority-form.compact { margin: 8px 0 0; max-width: 180px; }
.contact-handling small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 8px; }
.complete-button, .reopen-button { width: 100%; border: 0; border-radius: 9px; padding: 10px; cursor: pointer; font-weight: 650; background: #e6f5ec; color: #226943; }
.reopen-button { background: #eef1fa; color: #405c91; }
.completed-label { color: #226943; font-size: 12px; }
.chat-actions { flex-wrap: wrap; }
.chat-actions form { margin: 0; }
.message-meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.message-delete { color: inherit; opacity: .65; font-size: 10px; text-decoration: underline; }
.message-delete:hover, .message-delete:focus { opacity: 1; }
.composer-closed { padding: 20px; color: var(--muted); font-size: 13px; }
.purge-card { padding: 24px; max-width: 820px; margin: 0 auto 20px; line-height: 1.65; }
.purge-card h2 { font-size: 18px; }
.purge-card blockquote { overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; padding: 12px; background: #f8f9fc; border-left: 3px solid #d6dce5; }
.purge-form { display: grid; gap: 18px; max-width: 460px; margin-top: 24px; }
.purge-form label { display: grid; gap: 7px; font-size: 13px; }
.purge-form input:not([type=submit]) { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px; }
.danger-button { border: 0; border-radius: 9px; padding: 12px 16px; background: #b83342; color: white; cursor: pointer; font-weight: 650; }
.danger-button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
