:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #66746d;
  --line: #dbe3dd;
  --surface: #ffffff;
  --surface-alt: #f5f8f6;
  --dark: #1d2b24;
  --green: #2f7d59;
  --green-soft: #e8f4ee;
  --gold: #9b6b21;
  --gold-soft: #fff4dc;
  --coral: #bd4b42;
  --coral-soft: #fdeceb;
  --blue: #3267a8;
  --blue-soft: #eaf1fb;
  --shadow: 0 10px 30px rgba(23, 32, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--green);
  font-weight: 750;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface-alt);
}

.login-panel {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-row h1,
.brand-row p {
  margin: 0;
}

.brand-row p,
.brand-row span {
  color: var(--muted);
  font-size: 13px;
}

.brand-row.compact {
  padding: 4px 0 18px;
}

.brand-row.compact div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background: var(--dark);
  color: white !important;
  font-weight: 800;
  letter-spacing: 0;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.compact-stack {
  gap: 10px;
  margin-top: 8px;
}

.two-column-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.profile-field {
  display: grid;
  gap: 6px;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
  font-size: 13px;
  line-height: 1.35;
}

.profile-field-label {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.profile-form-section {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.profile-form-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.profile-section-heading .profile-field-label {
  min-height: 0;
}

.weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weekday-option {
  display: grid;
  grid-template-columns: 16px auto;
  align-items: center;
  gap: 6px;
  flex: 0 1 74px;
  min-height: 36px;
  min-width: 68px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.weekday-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.history-icon-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.history-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.history-icon-arrowhead {
  fill: currentColor;
  stroke: none;
}

.history-icon-button:hover,
.history-icon-button:focus {
  color: var(--ink);
  border-color: var(--green);
}

.profile-history-count {
  min-width: 18px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.profile-history-popover {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(23, 32, 27, 0.32);
  padding: 20px;
}

.profile-history-dialog {
  width: min(480px, 100%);
  max-height: min(620px, 90vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(23, 32, 27, 0.2);
  padding: 14px;
}

.profile-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-history-header h3 {
  margin: 0;
  font-size: 16px;
}

.profile-history-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.profile-history-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-history-list li:last-child {
  border-bottom: 0;
}

.profile-history-list strong,
.profile-history-list span,
.profile-history-list p {
  display: block;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 89, 0.12);
}

.phone-field {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 89, 0.12);
}

.phone-field input {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding-left: 10px;
}

.phone-field input:focus {
  border-color: transparent;
  box-shadow: none;
}

.phone-prefix {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.us-flag {
  position: relative;
  width: 25px;
  height: 16px;
  display: inline-block;
  border: 1px solid #d7dde0;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 1.23px,
    #ffffff 1.23px 2.46px
  );
  box-shadow: 0 1px 1px rgba(23, 32, 27, 0.08);
}

.us-flag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 8.8px;
  background: #3c3b6e;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.nav-list button {
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-weight: 700;
}

.primary-button {
  background: var(--green);
  color: white;
}

.secondary-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

a.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.danger-button {
  background: var(--coral);
  color: white;
}


.subtle-danger-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--coral);
}

.subtle-danger-button:hover {
  background: var(--coral-soft);
}

.coach-assignment-list {
  margin-top: 4px;
  max-width: 640px;
}
.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--coral);
  font-size: 13px;
}

.form-error.success {
  color: var(--green);
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.checkbox-label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.4;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.notification-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #f8faf9;
}

.notification-toggle strong,
.notification-toggle .quiet {
  display: block;
}

.doc-body {
  background: white;
}

.legal-page {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.legal-page h1 {
  margin: 20px 0 8px;
  font-size: 38px;
}

.legal-page h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.62;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
}

.nav-list button.active,
.nav-list button:hover {
  background: var(--green-soft);
  color: var(--ink);
}

.sidebar .ghost-button {
  margin-top: auto;
}

.main-shell {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.topbar h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.1;
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.plan-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.pill.ok,
.plan-badge.premium,
.plan-badge.paid {
  background: var(--green-soft);
  color: var(--green);
}

.pill.warn,
.plan-badge.free,
.plan-badge.trial {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-badge.open,
.pill.hot {
  background: var(--coral-soft);
  color: var(--coral);
}

.status-badge.done {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-badge.status-scheduled {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-badge.status-sent {
  background: var(--green-soft);
  color: var(--green);
}

.status-badge.status-failed {
  background: var(--coral-soft);
  color: var(--coral);
}

.status-badge.status-cancelled {
  background: var(--blue-soft);
  color: var(--blue);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  min-height: 78px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(360px, 1fr) minmax(280px, 360px);
  gap: 14px;
  min-height: 630px;
}

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 32, 27, 0.03);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.panel-body {
  padding: 14px;
}

.user-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  max-height: 520px;
  overflow: auto;
}

.user-row {
  width: 100%;
  min-height: 72px;
  text-align: left;
  display: grid;
  gap: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.user-row.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 89, 0.12);
}

.user-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta,
.message-meta,
.quiet {
  color: var(--muted);
  font-size: 12px;
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 14px;
  align-items: start;
}

.users-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 240px);
  gap: 10px;
}

.users-directory-list {
  padding: 10px;
  max-height: 660px;
  overflow: auto;
}

.user-directory-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.message-list {
  height: 430px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f8faf9;
}

.message {
  max-width: min(78%, 620px);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.message.inbound {
  align-self: flex-start;
}

.message.outbound {
  align-self: flex-end;
  background: var(--green-soft);
  border-color: #c7e4d5;
}

.message.admin {
  background: var(--blue-soft);
  border-color: #c9daf2;
}

.message.system {
  background: var(--gold-soft);
  border-color: #ecd7a8;
}

.message.scheduled {
  background: #eef2f1;
  border-color: #d6dfdc;
}

.message.failed {
  background: var(--coral-soft);
  border-color: #efbbb6;
}

.message p {
  margin: 0;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.message-meta,
.message-error {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-feedback {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(56, 71, 65, 0.16);
  border-radius: 6px;
  background: rgba(56, 71, 65, 0.06);
  color: #384741;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.message.outbound .message-feedback {
  border-color: rgba(33, 117, 83, 0.2);
  background: rgba(33, 117, 83, 0.1);
}

.message-feedback span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-media-list {
  display: grid;
  gap: 8px;
}

.message-media-link {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef3f0;
}

.message-media-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-media-file {
  color: var(--green);
  font-weight: 700;
}

.message-error {
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
}

.message-actions .secondary-button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px;
}

.conversation-actions {
  gap: 6px;
}

.conversation-actions .secondary-button,
.conversation-actions .danger-button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.composer-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.send-button-group {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.send-now-button {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.send-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  border-left-color: rgba(255, 255, 255, 0.28);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 8px 0;
}

.send-menu-button::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.send-options-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  min-width: 164px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.send-options-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  font-weight: 700;
}

.send-options-menu button:hover,
.send-options-menu button:focus {
  background: var(--green-soft);
}

.composer-schedule-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.composer-repeat-toggle {
  align-self: end;
  min-height: 40px;
  padding: 8px 0;
}

.composer-repeat-interval.is-disabled,
.composer-repeat-times.is-disabled {
  opacity: 0.62;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.birthday-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.form-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.trial-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trial-summary-copy,
.trial-summary-copy span {
  display: block;
}

.trial-summary-text {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.trial-summary-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.extend-trial-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 0;
  width: 100%;
}

.extend-trial-form .secondary-button {
  min-height: 38px;
  white-space: nowrap;
}

.table-like {
  display: grid;
  gap: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 14px;
  align-items: start;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  gap: 14px;
  align-items: start;
}

.admin-side-stack {
  display: grid;
  gap: 14px;
}

.danger-zone {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.record-row > div {
  min-width: 0;
}

.record-row strong,
.record-row p {
  overflow-wrap: anywhere;
}

.record-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.code-block {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
  color: var(--ink);
  padding: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  min-height: 44px;
  display: none;
  align-items: center;
  background: var(--dark);
  color: white;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.toast.show {
  display: flex;
}

.billing-history-panel {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.billing-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.billing-history-header h3 {
  margin: 0;
  font-size: 16px;
}

.billing-history-list {
  display: grid;
  gap: 8px;
}

.billing-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.billing-payment-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.billing-payment-row .secondary-button {
  min-height: 34px;
  padding: 6px 10px;
}

.alert-cleanup-bar {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.alert-cleanup-bar .quiet {
  margin-right: auto;
}

.intake-layout {
  display: grid;
  gap: 14px;
}

.intake-row {
  grid-template-columns: minmax(220px, 1fr) auto minmax(520px, max-content);
  align-items: start;
}

.intake-row.archived {
  opacity: 0.74;
}

.intake-row-main {
  display: grid;
  gap: 4px;
}

.intake-row-main p {
  margin: 0;
}

.intake-status-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.intake-checks {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.intake-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.intake-chip.ok {
  background: var(--green-soft);
  color: var(--green);
}

.intake-chip.warn,
.status-badge.waiting {
  background: var(--gold-soft);
  color: var(--gold);
}

.intake-chip.hot {
  background: var(--coral-soft);
  color: var(--coral);
}

@media (max-width: 1180px) {
  .workspace-grid,
  .setup-grid,
  .admin-grid,
  .users-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .message-list {
    height: 360px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .topbar,
  .record-row {
    display: grid;
  }

  .record-row,
  .intake-row {
    grid-template-columns: 1fr;
  }

  .intake-status-badges,
  .intake-checks {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .stats-grid,
  .birthday-grid,
  .split-grid,
  .users-filter-bar,
  .trial-summary,
  .two-column-form {
    grid-template-columns: 1fr;
  }

  .weekday-option {
    flex-basis: calc(50% - 4px);
  }

  .extend-trial-form {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 92%;
  }

  .billing-payment-row {
    grid-template-columns: 1fr;
  }

  .billing-payment-row .secondary-button,
  .billing-payment-row .quiet {
    justify-self: start;
  }
}
