:root {
  color-scheme: light;
  --paper: #f5f0e8;
  --surface: #fffaf1;
  --surface-strong: #ffffff;
  --ink: #17202a;
  --muted: #5c6570;
  --line: #d8cfc1;
  --teal: #0d736e;
  --teal-deep: #084c4b;
  --coral: #d15a42;
  --gold: #b77a18;
  --mist: #dbe8ea;
  --sage: #889d83;
  --shadow: 0 18px 60px rgba(23, 32, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(209, 90, 66, 0.1), transparent 32rem),
    radial-gradient(circle at top right, rgba(13, 115, 110, 0.17), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
select {
  cursor: pointer;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: 0;
}

a {
  color: var(--teal-deep);
  font-weight: 850;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(8, 76, 75, 0.2);
}

.brand-lockup {
  display: inline-flex;
  max-width: 100%;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.brand-lockup img {
  width: 92px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 22%;
  display: block;
}

.brand-lockup strong {
  color: #102333;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 950;
  line-height: 0.95;
}

.brand-lockup span {
  color: var(--teal);
}

.eyebrow {
  margin: 0 0 7px;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.68;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-note {
  max-width: 28rem;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.feedback {
  min-height: 19px;
  margin: 0;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

button:hover {
  background: var(--teal-deep);
}

.quiet-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.quiet-button:hover {
  background: rgba(23, 32, 42, 0.07);
}

.quiet-button.sound-on {
  border-color: rgba(13, 115, 110, 0.36);
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.danger-inline {
  color: #8a2d1c;
}

.danger-inline:hover {
  background: rgba(209, 90, 66, 0.13);
}

.danger-button {
  border: 1px solid rgba(209, 90, 66, 0.28);
  background: rgba(209, 90, 66, 0.13);
  color: #8a2d1c;
}

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

label,
legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

input,
select {
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 115, 110, 0.16);
}

form {
  display: grid;
  gap: 14px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  width: min(1040px, 100%);
  min-height: min(690px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-art {
  position: relative;
  min-height: 420px;
  background: #142b2d;
}

.login-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 42%, rgba(20, 43, 45, 0.45));
  content: "";
}

.login-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-form {
  align-content: center;
  padding: clamp(24px, 5vw, 70px);
}

.auth-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quiet-link {
  color: var(--teal-deep);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.login-copy {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.demo-login-copy {
  margin-top: -6px;
  font-size: 0.9rem;
  font-weight: 850;
}

.dashboard {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100vh;
  padding: 18px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 20px clamp(18px, 3vw, 34px);
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: #142b2d;
  color: #fbf3e7;
  box-shadow: var(--shadow);
}

.app-bar h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.app-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dashboard-lockup {
  margin-bottom: 0;
}

.dashboard-lockup img {
  width: 86px;
}

.dashboard-lockup strong {
  color: #fbf3e7;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.dashboard-lockup span {
  color: #4fc1b8;
}

.account-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.account-bar div {
  display: grid;
  gap: 3px;
  text-align: right;
}

.account-bar span:not(.pill) {
  color: rgba(251, 243, 231, 0.72);
  font-size: 0.87rem;
}

.pill,
.channel-pill,
.delivery-pill,
.badge {
  display: inline-grid;
  min-height: 31px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.app-bar .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fbf3e7;
}

.channel-pill {
  background: rgba(183, 122, 24, 0.17);
  color: #744800;
}

.delivery-pill {
  background: rgba(136, 157, 131, 0.21);
  color: #35513c;
}

.badge.warning {
  background: rgba(209, 90, 66, 0.15);
  color: #8a2d1c;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.panel {
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.93);
}

.metric {
  display: grid;
  gap: 5px;
  min-height: 94px;
  align-content: center;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.36fr) minmax(330px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.section-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.section-heading.compact {
  margin-bottom: 15px;
}

.job-list,
.archive-list,
.history-list {
  display: grid;
  gap: 10px;
}

.job-list {
  margin-bottom: 22px;
}

.archive-section {
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.archive-card div,
.archive-card span,
.archive-card time {
  display: grid;
  gap: 4px;
}

.archive-card span,
.archive-card time {
  color: var(--muted);
  font-size: 0.8rem;
}

.job-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.job-card.selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.job-button {
  display: grid;
  width: 100%;
  min-height: 112px;
  gap: 7px;
  justify-items: start;
  padding: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.job-button:hover {
  background: rgba(13, 115, 110, 0.08);
  color: var(--ink);
}

.job-topline {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.job-progress {
  display: grid;
  min-width: 52px;
  min-height: 29px;
  place-items: center;
  border-radius: 6px;
  background: rgba(209, 90, 66, 0.14);
  color: #8a2d1c;
  font-size: 0.81rem;
  font-weight: 950;
}

.job-vehicle,
.job-meta,
.history-card span,
.history-card time {
  color: var(--muted);
  font-size: 0.86rem;
}

.job-meta {
  color: var(--teal-deep);
  font-weight: 850;
}

.job-reminder {
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.76rem;
  font-weight: 900;
}

.job-reminder.due {
  background: rgba(209, 90, 66, 0.16);
  color: #8a2d1c;
}

.new-job-form {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.consent-row,
.consent-badges,
.form-actions,
.message-actions,
.repair-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.consent-row label,
.tone-box label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.consent-row input,
.tone-box input {
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

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

.repair-links a {
  display: grid;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface-strong);
  text-decoration: none;
}

.repair-links a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.quiet-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.consent-badges {
  margin-bottom: 20px;
}

.edit-job-form {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: rgba(219, 232, 234, 0.42);
}

.edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#update-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.stage-picker legend,
.tone-box legend {
  margin-bottom: 8px;
}

.stage-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.stage-options label {
  position: relative;
  display: grid;
  min-height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: center;
}

.stage-options input {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
}

.stage-options label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.update-grid {
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(210px, 1fr);
}

.range-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: var(--surface-strong);
}

input[type="range"] {
  min-height: 0;
  margin: 0;
  border: 0;
  padding: 0;
  accent-color: var(--coral);
  box-shadow: none;
}

output {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 6px;
  background: rgba(209, 90, 66, 0.14);
  color: #8a2d1c;
  font-size: 0.86rem;
  font-weight: 950;
}

.tone-box {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(136, 157, 131, 0.13);
}

.tone-box.horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tone-box.horizontal legend {
  grid-column: 1 / -1;
}

.history-section {
  margin-top: 20px;
}

.reminder-section {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.reminder-form {
  grid-template-columns: minmax(220px, 0.8fr) minmax(200px, 1fr);
  align-items: end;
}

.reminder-list {
  display: grid;
  gap: 9px;
}

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

.reminder-row.due {
  border-color: rgba(209, 90, 66, 0.4);
  background: rgba(209, 90, 66, 0.09);
}

.reminder-row div {
  display: grid;
  gap: 3px;
}

.reminder-row time {
  color: var(--muted);
  font-size: 0.84rem;
}

.audit-section {
  margin-top: 20px;
}

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

.audit-grid h3 {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.74);
}

.audit-row.failed {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.audit-row.delayed {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.audit-row strong,
.audit-row span,
.audit-row time,
.audit-row em {
  overflow-wrap: anywhere;
}

.audit-row span,
.audit-row time,
.audit-row em {
  color: var(--muted);
  font-size: 0.8rem;
}

.audit-row time {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.audit-row em {
  grid-column: 1 / -1;
  color: #8a2d1c;
  font-style: normal;
}

.history-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface-strong);
}

.conversation-section {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.notification-readiness {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(13, 115, 110, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 115, 110, 0.08);
}

.notification-readiness.attention {
  border-color: rgba(206, 85, 59, 0.24);
  background: rgba(206, 85, 59, 0.08);
}

.notification-readiness div {
  display: grid;
  gap: 3px;
}

.notification-readiness strong {
  color: var(--ink);
}

.notification-readiness span,
.notification-readiness em {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.notification-readiness em {
  font-style: normal;
}

.conversation-thread {
  display: grid;
  gap: 10px;
}

.conversation-reply-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.conversation-reply-form select,
.conversation-reply-form textarea {
  margin-top: 6px;
}

.conversation-item {
  display: grid;
  gap: 8px;
  max-width: min(88%, 680px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.conversation-item.outbound {
  justify-self: end;
  background: rgba(13, 115, 110, 0.1);
}

.conversation-item.inbound {
  justify-self: start;
}

.conversation-item.open {
  border-color: rgba(13, 115, 110, 0.42);
}

.conversation-item p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.conversation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.conversation-meta span,
.conversation-meta time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.conversation-handle {
  justify-self: start;
}

.photo-section {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.photo-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  align-items: end;
}

.photo-visibility {
  display: flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.photo-visibility input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.photo-list,
.portal-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
}

.photo-card,
.portal-photo {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.photo-card img,
.portal-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}

.photo-card div {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.photo-card span,
.portal-photo figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.portal-photo figcaption {
  padding: 10px 12px 12px;
}

.history-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.history-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.91rem;
  line-height: 1.45;
}

.preview-panel {
  display: grid;
  gap: 14px;
}

.message-card {
  min-height: 240px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 232, 0.94)),
    var(--surface-strong);
}

#message-preview {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  white-space: pre-wrap;
}

.customer-preview-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.customer-preview-phone {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-strong);
}

.customer-preview-phone span,
.customer-preview-phone dt,
.customer-preview-phone p {
  color: var(--muted);
}

.customer-preview-phone strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.04rem;
}

.customer-preview-phone dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.customer-preview-phone dd,
.customer-preview-phone dt {
  margin: 0;
}

.customer-preview-phone dd {
  color: var(--ink);
  font-weight: 900;
}

.portal-progress.mini {
  height: 9px;
}

.preview-checks {
  display: grid;
  gap: 8px;
}

.preview-check {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(13, 115, 110, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 115, 110, 0.06);
}

.preview-check strong {
  color: var(--teal-deep);
}

.preview-check span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.preview-check.blocked {
  border-color: rgba(202, 88, 57, 0.26);
  background: rgba(202, 88, 57, 0.08);
}

.preview-check.blocked strong {
  color: var(--coral);
}

.beta-card,
.team-card,
.billing-card,
.email-card,
.sms-card,
.compliance-card,
.activity-card,
.support-inbox-card,
.issues-card,
.readiness-card,
.help-card,
.trust-card,
.account-card,
.setup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(219, 232, 234, 0.54);
}

.team-card,
.billing-card,
.email-card,
.sms-card,
.compliance-card,
.activity-card,
.support-inbox-card,
.issues-card,
.readiness-card,
.help-card,
.trust-card,
.account-card,
.setup-card {
  background: rgba(255, 255, 255, 0.68);
}

.password-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.support-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.support-form h3 {
  margin: 0;
  font-size: 1.15rem;
}

.sms-test-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.empty-state {
  border: 1px dashed rgba(13, 115, 110, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(13, 115, 110, 0.05);
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.attention {
  border-color: rgba(13, 115, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(13, 115, 110, 0.12), var(--shadow);
}

.onboarding-wizard {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(13, 115, 110, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr));
  gap: 8px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 8px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.onboarding-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.78rem;
  font-weight: 950;
}

.onboarding-step.ready span,
.onboarding-step.active span {
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.onboarding-step.active {
  border-color: rgba(13, 115, 110, 0.48);
  background: rgba(13, 115, 110, 0.08);
}

.onboarding-step strong {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.onboarding-body {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.onboarding-body h3,
.onboarding-body p {
  margin: 0;
}

.onboarding-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.onboarding-state {
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.rehearsal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(183, 122, 24, 0.28);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(219, 232, 234, 0.72)),
    var(--surface);
}

.rehearsal-card p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.46;
}

.rehearsal-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.activity-list {
  display: grid;
  gap: 9px;
}

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

.activity-row.warning {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.activity-row.danger {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.activity-row.info {
  border-color: rgba(13, 115, 110, 0.38);
  background: rgba(13, 115, 110, 0.1);
}

.activity-row > div:first-child {
  display: grid;
  gap: 3px;
}

.activity-row span,
.activity-row p,
.activity-row time {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.activity-row time {
  font-weight: 900;
}

.activity-row button {
  white-space: nowrap;
}

.activity-actions {
  display: grid;
  gap: 7px;
}

.support-list {
  display: grid;
  gap: 9px;
}

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

.support-row.open {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.support-row.handled {
  opacity: 0.72;
}

.support-row > div:first-child {
  display: grid;
  gap: 3px;
}

.support-row span,
.support-row p,
.support-row time {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.support-row time {
  font-weight: 900;
}

.support-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.issue-list {
  display: grid;
  gap: 9px;
}

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

.issue-row.failed {
  border-color: rgba(209, 90, 66, 0.42);
  background: rgba(209, 90, 66, 0.09);
}

.issue-row.delayed {
  border-color: rgba(183, 122, 24, 0.38);
  background: rgba(183, 122, 24, 0.1);
}

.issue-row > div:first-child {
  display: grid;
  gap: 3px;
}

.issue-actions {
  display: grid;
  gap: 7px;
  justify-items: stretch;
}

.issue-actions button {
  white-space: nowrap;
}

.issue-row span,
.issue-row em,
.issue-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.issue-row em {
  font-style: normal;
  font-weight: 900;
}

.readiness-summary,
.readiness-list {
  display: grid;
  gap: 9px;
}

.help-list {
  display: grid;
  gap: 9px;
}

.trust-list {
  display: grid;
  gap: 9px;
}

.help-list article,
.trust-list article {
  border: 1px solid rgba(13, 115, 110, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.help-list strong,
.trust-list strong {
  color: var(--teal-deep);
}

.help-list p,
.trust-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.help-assistant-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(430px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow: var(--shadow);
}

.help-assistant-header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #142b2d;
  color: #fbf3e7;
}

.help-assistant-header h2 {
  color: #fbf3e7;
}

.help-assistant-header .quiet-button {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fbf3e7;
}

.help-assistant-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  overflow-y: auto;
  padding: 14px;
}

.help-message {
  width: fit-content;
  max-width: 92%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: pre-wrap;
}

.help-message.user {
  justify-self: end;
  border-color: rgba(13, 115, 110, 0.28);
  background: rgba(13, 115, 110, 0.1);
  color: var(--teal-deep);
}

.help-message.assistant {
  justify-self: start;
}

.help-message.thinking {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 56px;
  min-height: 40px;
}

.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  animation: thinking-pulse 0.95s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes thinking-pulse {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.help-assistant-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}

.help-assistant-prompts button {
  min-height: 38px;
  border: 1px solid rgba(13, 115, 110, 0.22);
  background: rgba(13, 115, 110, 0.1);
  color: var(--teal-deep);
  font-size: 0.78rem;
}

.help-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.help-assistant-form input {
  margin-top: 0;
}

.readiness-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.readiness-runtime,
.readiness-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.readiness-runtime {
  display: grid;
  gap: 4px;
  padding: 11px;
}

.readiness-runtime span,
.readiness-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.readiness-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
}

.readiness-row > span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 6px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.72rem;
  font-weight: 950;
}

.readiness-row.ready > span {
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.readiness-row div {
  display: grid;
  gap: 3px;
}

.sms-setup {
  display: grid;
  gap: 10px;
}

.sms-status,
.sms-option-grid article,
.sms-provider-list article,
.sms-env-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sms-status {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.sms-status.ready {
  border-color: rgba(13, 115, 110, 0.32);
  background: rgba(13, 115, 110, 0.08);
}

.sms-status p,
.sms-option-grid p,
.sms-provider-list p,
.sms-steps,
.sms-tech-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.sms-provider-list {
  display: grid;
  gap: 8px;
}

.sms-provider-list article {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.sms-option-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.sms-env-list {
  display: grid;
  gap: 8px;
}

.sms-env-list article {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.sms-env-list span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.sms-webhooks {
  display: grid;
  gap: 8px;
}

.sms-webhooks input {
  font-size: 0.76rem;
}

.sms-steps {
  padding-left: 20px;
}

.sms-tech-list {
  padding-left: 18px;
}

.compliance-list {
  display: grid;
  gap: 9px;
}

.compliance-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.compliance-row > span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 6px;
  background: rgba(183, 122, 24, 0.16);
  color: #744800;
  font-size: 0.7rem;
  font-weight: 950;
}

.compliance-row.ready > span {
  background: rgba(13, 115, 110, 0.14);
  color: var(--teal-deep);
}

.compliance-row div {
  display: grid;
  gap: 3px;
}

.compliance-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.beta-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

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

.usage-list,
.plan-list {
  display: grid;
  gap: 8px;
}

.usage-list {
  margin-bottom: 12px;
}

.usage-row {
  display: flex;
  min-height: 38px;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.usage-row strong {
  color: var(--ink);
}

.plan-button {
  display: grid;
  min-height: 74px;
  justify-items: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.plan-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.plan-checkout {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.78rem;
  text-align: center;
}

.setup-theme-grid {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
}

.accent-field {
  display: grid;
  gap: 10px;
}

.accent-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.accent-swatches button {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--swatch);
  color: transparent;
}

.accent-swatches button.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13, 115, 110, 0.16);
}

.accent-swatches button::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  content: "";
}

.custom-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px auto;
  gap: 8px;
  align-items: center;
}

.custom-color-row input[type="color"] {
  width: 58px;
  min-height: 42px;
  height: 42px;
  margin-top: 0;
  padding: 4px;
}

.custom-color-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.team-row.pending {
  background: rgba(219, 232, 234, 0.5);
}

.team-identity {
  display: grid;
  gap: 3px;
}

.team-row span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.83rem;
}

.team-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.team-controls select {
  width: auto;
  min-width: 118px;
  margin-top: 0;
}

.team-controls button {
  min-height: 38px;
  padding-inline: 12px;
}

.team-row em {
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: capitalize;
}

.portal-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  gap: 18px;
  padding: 18px;
}

.portal-hero {
  position: relative;
  min-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 8px;
  background: #142b2d;
}

.portal-hero > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.68;
}

.portal-hero > div {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(22px, 4vw, 50px);
  background: linear-gradient(0deg, rgba(20, 43, 45, 0.96), transparent);
  color: #fbf3e7;
}

.portal-logo {
  display: block;
  width: min(160px, 42vw);
  max-height: 72px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

.portal-brand-lockup {
  margin-bottom: 16px;
}

.portal-brand-lockup strong {
  color: #fbf3e7;
}

.portal-brand-lockup span {
  color: #75d8ce;
}

.portal-hero p {
  max-width: 34rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.portal-status {
  display: grid;
  align-content: start;
  gap: 14px;
}

.portal-access {
  display: grid;
  align-content: start;
}

.portal-access.hidden {
  display: none;
}

.portal-access-form {
  display: grid;
  gap: 12px;
}

.portal-card {
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 250, 241, 0.94);
}

.portal-progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 115, 110, 0.12);
}

.portal-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tracking-accent, var(--teal)), var(--coral));
}

.portal-action-form {
  display: grid;
  gap: 12px;
}

.portal-preferences-form {
  display: grid;
  gap: 12px;
}

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

.portal-preference-list {
  display: grid;
  gap: 8px;
}

.portal-action-grid label,
.portal-preference-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(13, 115, 110, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 115, 110, 0.05);
  color: var(--ink);
}

.portal-preference-list span {
  display: grid;
  gap: 3px;
}

.portal-preference-list strong,
.portal-preference-list em {
  display: block;
}

.portal-preference-list em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
}

.portal-action-grid input,
.portal-preference-list input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tracking-accent, var(--teal));
}

.portal-conversation {
  display: grid;
  gap: 10px;
}

.portal-notification-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(13, 115, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 115, 110, 0.06);
}

.portal-notification-box strong,
.portal-notification-box p {
  margin: 0;
}

.portal-notification-box p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.portal-notification-box .portal-notification-help {
  margin-top: 6px;
  color: var(--teal-deep);
  font-weight: 850;
}

.portal-notification-box button {
  white-space: nowrap;
}

.portal-conversation-item {
  display: grid;
  gap: 7px;
  max-width: min(92%, 640px);
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.portal-conversation-item.outbound {
  justify-self: start;
  border-color: rgba(13, 115, 110, 0.24);
  background: rgba(13, 115, 110, 0.08);
}

.portal-conversation-item.inbound {
  justify-self: end;
}

.portal-conversation-item div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.portal-conversation-item span,
.portal-conversation-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.portal-stage-list {
  display: grid;
  gap: 10px;
}

.portal-stage {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.portal-stage span {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(13, 115, 110, 0.28);
  border-radius: 999px;
  background: #fffaf1;
}

.portal-stage strong {
  color: var(--ink);
}

.portal-stage em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-stage.complete span,
.portal-stage.current span {
  border-color: var(--tracking-accent, var(--teal));
  background: var(--tracking-accent, var(--teal));
}

.portal-stage.current strong,
.portal-stage.current em {
  color: var(--tracking-accent, var(--teal-deep));
}

@media (max-width: 1220px) {
  .dashboard-grid {
    grid-template-columns: minmax(260px, 0.9fr) minmax(450px, 1.35fr);
  }

  .preview-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .preview-panel .section-heading,
  .preview-panel .message-actions {
    grid-column: 1 / -1;
  }

  .customer-preview-card {
    align-self: start;
  }
}

@media (max-width: 860px) {
  .login-shell,
  .dashboard,
  .portal-shell {
    padding: 12px;
  }

  .login-panel,
  .dashboard-grid,
  .preview-panel,
  .portal-shell,
  .rehearsal-card,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .rehearsal-actions {
    justify-items: start;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-bar,
  .repair-header {
    align-items: start;
    flex-direction: column;
  }

  .account-bar,
  .account-bar div {
    justify-content: start;
    text-align: left;
  }

  .team-row,
  .team-controls {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .team-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .team-controls select {
    width: 100%;
  }

  .stage-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tone-box.horizontal,
  .audit-grid,
  .readiness-summary,
  .sms-option-grid,
  .portal-action-grid,
  .reminder-form,
  .photo-form,
  .setup-theme-grid,
  .edit-grid,
  .two-up {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: 380px;
  }

  .portal-hero > img {
    object-position: center 36%;
  }

  .help-assistant-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .help-assistant-prompts,
  .help-assistant-form {
    grid-template-columns: 1fr;
  }
}
