:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #ece7dc;
  --ink: #17201f;
  --muted: #66706d;
  --line: #ded8cb;
  --blue: #0f58a8;
  --blue-deep: #083b73;
  --red: #df4f46;
  --amber: #c78123;
  --green: #14785f;
  --green-soft: #e4f1ea;
  --shadow: 0 18px 45px rgba(23, 32, 31, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(15, 88, 168, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: Manrope, sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.app-shell.is-locked {
  display: none;
}

.access-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 18px;
}

.access-screen.is-hidden {
  display: none;
}

.access-card {
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.access-card h1 {
  font-size: 36px;
}

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

.access-plate {
  width: fit-content;
  min-width: 214px;
}

.access-error {
  min-height: 18px;
  margin: -4px 0 0;
  color: #a2342c;
  font-size: 12px;
  font-weight: 800;
}

.topbar,
.workspace,
.client-intake-page,
.public-portal-page,
.work-panel,
.activity-panel,
.progress-panel,
.roi-panel,
.case-rail,
.case-board,
.client-preview {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(23, 32, 31, 0.07);
  backdrop-filter: blur(16px);
}

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

.plate-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  min-width: 206px;
  padding: 5px 10px 5px 6px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  background: #fff;
  color: var(--blue-deep);
  box-shadow: inset 0 -3px 0 rgba(15, 88, 168, 0.08);
}

.plate-mark span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 30px;
  background: var(--blue);
  border-radius: 3px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.plate-mark strong {
  font-size: 15px;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-family: "Source Serif 4", serif;
  font-size: 26px;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.2;
}

h4 {
  margin-bottom: 10px;
  font-size: 13px;
}

.topbar-actions,
.case-actions,
.composer-actions,
.modal-actions,
.section-heading,
.rail-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  justify-content: flex-end;
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2eee5;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.view-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(23, 32, 31, 0.08);
}

.view-tab svg {
  width: 15px;
  height: 15px;
}

.view {
  display: none !important;
}

.view.is-active {
  display: grid !important;
}

.signal {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #b9d8ca;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(20, 120, 95, 0.14);
}

.primary-btn,
.secondary-btn,
.icon-btn,
.text-btn,
.filter-pill,
.template-tab,
.whatsapp-btn {
  border: 0;
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn,
.secondary-btn,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.icon-btn.ghost {
  background: transparent;
}

.text-btn {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.filter-pill:hover,
.template-tab:hover,
.whatsapp-btn:hover {
  transform: translateY(-1px);
}

.primary-btn svg,
.secondary-btn svg,
.icon-btn svg,
.whatsapp-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(292px, 340px);
  gap: 16px;
  margin-top: 16px;
}

.client-intake-page,
.public-portal-page {
  margin-top: 16px;
}

.client-intake-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 16px;
}

.intake-copy,
.client-form,
.portal-main,
.portal-side,
.portal-panel,
.portal-contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.intake-copy {
  align-self: start;
  padding: 26px;
}

.intake-copy h2 {
  max-width: 560px;
  font-family: "Source Serif 4", serif;
  font-size: 38px;
  line-height: 1.05;
}

.intake-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.intake-proof {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.intake-proof div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.intake-proof strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.intake-proof span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.client-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.client-notes {
  min-height: 104px;
  margin-top: 0;
}

.payment-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #b9d8ca;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.payment-strip strong,
.payment-strip span {
  display: block;
}

.payment-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-row {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--green);
  white-space: nowrap;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
}

.portal-main,
.portal-side {
  padding: 18px;
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-header h2 {
  font-family: "Source Serif 4", serif;
  font-size: 36px;
}

.portal-header p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.portal-progress-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-progress.large {
  height: 14px;
  margin-top: 14px;
}

.portal-stage-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.portal-stage {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f6ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.portal-stage.complete {
  border-color: #b9d8ca;
  background: var(--green-soft);
  color: var(--green);
}

.portal-stage.current {
  border-color: var(--blue);
  background: #e8f0fa;
  color: var(--blue-deep);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.portal-panel {
  min-height: 168px;
  padding: 16px;
  box-shadow: none;
}

.portal-panel ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.portal-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-list strong {
  color: var(--ink);
  text-align: right;
}

.portal-side {
  align-self: start;
  background: #1f2726;
}

.portal-contact {
  padding: 16px;
  background: #f8f6ef;
  box-shadow: none;
}

.portal-contact h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.portal-contact .secondary-btn {
  width: 100%;
  margin-top: 10px;
}

.portal-contact .primary-btn {
  width: 100%;
}

.case-rail,
.case-board,
.client-preview {
  align-self: start;
}

.case-rail {
  position: sticky;
  top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.rail-header,
.section-heading {
  justify-content: space-between;
}

.queue-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.queue-stats div,
.metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.queue-stats strong,
.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.queue-stats span,
.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.filter-pill,
.template-tab {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-pill.active,
.template-tab.active {
  border-color: var(--blue);
  background: #e8f0fa;
  color: var(--blue-deep);
}

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

.case-card {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.case-card.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.case-card-top,
.case-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.case-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.case-card-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f9e4df;
  color: #a2342c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.priority.calm {
  background: #e8f0fa;
  color: var(--blue-deep);
}

.priority.ready {
  background: var(--green-soft);
  color: var(--green);
}

.case-board {
  display: grid;
  gap: 14px;
}

.case-hero,
.progress-panel,
.work-panel,
.activity-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.case-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.case-hero h2 {
  font-size: 28px;
}

.case-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.metric.green {
  border-color: #b9d8ca;
  background: var(--green-soft);
}

.metric strong {
  margin-top: 6px;
  font-size: 19px;
}

.progress-panel,
.work-panel,
.activity-panel {
  padding: 16px;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.step {
  position: relative;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.step.complete {
  border-color: #b9d8ca;
  background: var(--green-soft);
}

.step.current {
  border-color: var(--blue);
  background: #e8f0fa;
}

.step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.step.complete span {
  background: var(--green);
  color: #fff;
}

.step.current span {
  background: var(--blue);
  color: #fff;
}

.step strong {
  display: block;
  margin-top: 10px;
  font-size: 12px;
}

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

.doc-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.doc-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f9e4df;
  color: #a2342c;
}

.doc-item.received .doc-icon {
  background: var(--green-soft);
  color: var(--green);
}

.doc-icon svg {
  width: 16px;
  height: 16px;
}

.doc-item strong {
  display: block;
  font-size: 13px;
}

.doc-item span {
  color: var(--muted);
  font-size: 12px;
}

.mini-btn {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.template-tabs {
  flex-wrap: wrap;
  justify-content: flex-end;
}

textarea {
  width: 100%;
  min-height: 214px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.5;
}

.composer-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-item strong {
  display: block;
  font-size: 13px;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.client-preview {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.phone {
  padding: 12px;
  border: 1px solid #232b2a;
  border-radius: 28px;
  background: #1f2726;
  box-shadow: var(--shadow);
}

.phone-speaker {
  width: 58px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #596260;
}

.phone-header,
.client-card,
.client-block,
.client-progress {
  border-radius: 12px;
  background: #f8f6ef;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.phone-header span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.phone-header strong {
  font-size: 15px;
}

.phone-header svg {
  color: var(--green);
}

.client-card,
.client-block,
.client-progress {
  margin-top: 10px;
  padding: 13px;
}

.client-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8f0fa;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.mini-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ded8cb;
}

.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 240ms ease;
}

.client-progress p,
.client-block p,
.client-block li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.client-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.whatsapp-btn {
  width: 100%;
  margin-top: 10px;
  background: #22a06b;
  color: #fff;
}

.roi-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.roi-panel h3 {
  margin-bottom: 14px;
  font-family: "Source Serif 4", serif;
  font-size: 23px;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid #b9d8ca;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.intake-modal {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.intake-modal::backdrop {
  background: rgba(23, 32, 31, 0.48);
}

.intake-modal form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fffdf8;
  color: var(--ink);
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .topbar {
    flex-wrap: wrap;
  }

  .view-switcher {
    order: 3;
    width: 100%;
  }

  .view-tab {
    flex: 1;
  }

  .client-preview {
    grid-column: 1 / -1;
    grid-template-columns: minmax(292px, 360px) minmax(0, 1fr);
    position: static;
  }

  .portal-shell,
  .client-intake-layout {
    grid-template-columns: 1fr;
  }

  .portal-side {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .case-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .view-switcher {
    order: 0;
  }

  .topbar-actions,
  .case-actions {
    justify-content: space-between;
  }

  .signal {
    flex: 1;
  }

  .workspace,
  .split-grid,
  .client-preview,
  .form-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

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

  .case-rail,
  .client-preview {
    position: static;
  }

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

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

@media (max-width: 560px) {
  .brand,
  .topbar-actions,
  .case-actions,
  .composer-actions,
  .section-heading,
  .form-actions,
  .payment-strip,
  .portal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .view-switcher {
    flex-direction: column;
  }

  .view-tab {
    width: 100%;
  }

  .plate-mark {
    min-width: 0;
    width: 100%;
  }

  .metric-strip,
  .queue-stats {
    grid-template-columns: 1fr;
  }

  .progress-track {
    grid-template-columns: 1fr;
  }

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

  .intake-copy,
  .client-form,
  .portal-main {
    padding: 14px;
  }

  .intake-copy h2,
  .portal-header h2 {
    font-size: 30px;
  }

  .primary-btn,
  .secondary-btn,
  .whatsapp-btn {
    width: 100%;
  }

  .doc-item {
    grid-template-columns: 28px 1fr;
  }

  .doc-item .mini-btn {
    grid-column: 1 / -1;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
