:root {
  --bg-dark: #090703;
  --bg-dark-soft: #151006;
  --panel-dark: rgba(18, 13, 4, 0.94);
  --panel-dark-soft: rgba(28, 20, 6, 0.92);
  --gold: #efb925;
  --gold-deep: #bd8609;
  --gold-soft: #f6d36f;
  --sand: #f4ead2;
  --paper: rgba(22, 16, 6, 0.92);
  --paper-solid: #171106;
  --ink: #f7f0de;
  --muted: #c5b389;
  --line: rgba(239, 185, 37, 0.18);
  --success: #1f6a42;
  --danger: #9f2f2f;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(239, 185, 37, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(239, 185, 37, 0.14), transparent 26%),
    linear-gradient(135deg, #050402 0%, #151006 48%, #261a07 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.brand-side {
  padding: 48px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  color: #fffaf2;
  background:
    radial-gradient(circle at top, rgba(239, 185, 37, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(9, 7, 3, 0.98), rgba(9, 7, 3, 0.9)),
    linear-gradient(145deg, #2b1d06, #090703);
  border-right: 1px solid rgba(239, 185, 37, 0.14);
}

.brand-block {
  display: grid;
  gap: 18px;
}

.brand-logo {
  width: min(148px, 38vw);
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.9rem);
  max-width: 11ch;
}

.hero-copy,
.story-copy {
  margin: 0;
  color: rgba(255, 250, 242, 0.82);
  line-height: 1.6;
}

.story-card,
.auth-card,
.panel,
.stat-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.story-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(239, 185, 37, 0.14);
}

.story-card.muted {
  background: rgba(239, 185, 37, 0.08);
}

.story-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--gold);
}

.story-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: rgba(255, 250, 242, 0.84);
}

.workspace {
  padding: 40px;
  display: grid;
  place-items: center;
}

.auth-card,
.app-view {
  width: min(100%, 1040px);
}

.auth-card {
  padding: 34px;
  background: var(--paper);
}

.cover-auth {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(17, 12, 4, 0.98), rgba(29, 21, 7, 0.98));
  border: 1px solid rgba(239, 185, 37, 0.28);
}

.cover-frame {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  gap: 24px;
  padding: 22px;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    linear-gradient(135deg, rgba(14, 10, 3, 0.98), rgba(33, 24, 7, 0.94));
  border: 1px solid rgba(239, 185, 37, 0.12);
  box-shadow: inset 0 0 0 2px rgba(239, 185, 37, 0.12);
}

.cover-intro {
  min-height: 100%;
  padding: 30px;
  border-radius: var(--radius-xl);
  display: grid;
  align-content: center;
  justify-items: start;
  background:
    radial-gradient(circle at top, rgba(239, 185, 37, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(8, 6, 3, 0.98), rgba(20, 14, 5, 0.94));
  color: #fffaf2;
  position: relative;
  overflow: hidden;
}

.cover-intro::before,
.cover-intro::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(235, 179, 28, 0.28);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}

.cover-intro::after {
  inset: 26px;
  border-color: rgba(255, 250, 242, 0.09);
}

.cover-seal {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
}

.cover-logo {
  width: 108px;
  height: 108px;
  display: block;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.cover-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
}

.cover-text,
.cover-caption {
  max-width: 44ch;
  margin: 0;
  color: rgba(255, 250, 242, 0.82);
  line-height: 1.7;
}

.cover-rule {
  width: 140px;
  height: 2px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, rgba(235, 179, 28, 0.95), rgba(235, 179, 28, 0.15));
}

.cover-form-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 14, 5, 0.96), rgba(29, 21, 7, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.14);
  box-shadow: inset 0 0 0 1px rgba(239, 185, 37, 0.08);
}

.tab-row {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(239, 185, 37, 0.08);
}

.tab-button {
  border: none;
  background: transparent;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(192, 136, 8, 0.22);
}

.workspace-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(239, 185, 37, 0.08);
  border: 1px solid rgba(239, 185, 37, 0.12);
  width: fit-content;
}

.workspace-tabs-tight {
  margin-bottom: 4px;
}

.workspace-tab {
  width: auto;
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
}

.workspace-tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fffaf2;
  border-color: rgba(239, 185, 37, 0.32);
  box-shadow: 0 10px 24px rgba(192, 136, 8, 0.2);
}

.dashboard-section {
  display: grid;
  gap: 22px;
}

.message-thread-shell {
  display: grid;
  gap: 18px;
}

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

.conversation-item {
  display: flex;
}

.conversation-self {
  justify-content: flex-end;
}

.conversation-other {
  justify-content: flex-start;
}

.conversation-card {
  width: min(100%, 760px);
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 22, 7, 0.98), rgba(21, 15, 5, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.08);
}

.conversation-self .conversation-card {
  background: linear-gradient(145deg, rgba(239, 185, 37, 0.14), rgba(66, 46, 9, 0.96));
  border-color: rgba(239, 185, 37, 0.18);
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.conversation-meta strong {
  color: #fffaf2;
}

.conversation-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.conversation-card p {
  margin: 0;
  line-height: 1.6;
}

.conversation-delivery {
  margin-top: 10px !important;
  color: #f1b5b5;
  font-size: 0.88rem;
}

.section-heading {
  margin-bottom: 22px;
}

.cover-form-panel .section-heading h3 {
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.subtle {
  margin: 10px 0 0;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 18px;
}

.stack-form.compact {
  gap: 14px;
}

.auth-helper-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -6px;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-helper-copy {
  margin: -4px 0 0;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select,
button {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  background: rgba(255, 248, 233, 0.96);
  color: #1a1409;
}

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

button {
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: #fffaf2;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 12px 24px rgba(192, 136, 8, 0.2);
}

.secondary-button {
  width: auto;
  padding-inline: 22px;
  background: linear-gradient(135deg, #151006 0%, #090703 100%);
  box-shadow: none;
  border: 1px solid rgba(239, 185, 37, 0.18);
}

.text-action-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  width: auto;
  box-shadow: none;
}

.text-action-button:hover {
  color: #f7d367;
}

.message {
  margin: 0;
  min-height: 1.25rem;
  color: var(--muted);
  font-weight: 700;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--danger);
}

.app-view,
.dashboard {
  display: grid;
  gap: 22px;
}

.hidden {
  display: none !important;
}

.app-view {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(10, 8, 3, 0.96), rgba(24, 17, 6, 0.94));
  border: 1px solid rgba(239, 185, 37, 0.14);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-status {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(239, 185, 37, 0.12);
  border: 1px solid rgba(239, 185, 37, 0.16);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.88rem;
}

.server-status.offline {
  background: rgba(159, 47, 47, 0.16);
  border-color: rgba(159, 47, 47, 0.3);
  color: #f1b5b5;
}

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

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

.stat-card {
  padding: 24px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(31, 22, 7, 0.98), rgba(20, 14, 5, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.12);
}

.stat-card span {
  color: var(--gold-soft);
  font-weight: 700;
}

.stat-card strong {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.stat-card.highlight {
  background: linear-gradient(145deg, rgba(239, 185, 37, 0.16), rgba(66, 46, 9, 0.96));
  color: #fffaf2;
  border-color: rgba(239, 185, 37, 0.22);
}

.stat-card.highlight span {
  color: rgba(255, 250, 242, 0.75);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(20, 14, 5, 0.96), rgba(15, 11, 4, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.12);
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.panel-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.year-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.year-filter-row label {
  min-width: 220px;
  max-width: 260px;
}

.year-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.year-range-copy {
  margin: 0;
}

.detail-year-row {
  margin-bottom: 0;
}

.detail-stats {
  margin-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inset-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.plan-list,
.summary-list,
.client-list,
.transaction-list {
  display: grid;
  gap: 12px;
}

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

.detail-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 22, 7, 0.98), rgba(21, 15, 5, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.08);
  display: grid;
  gap: 8px;
}

.detail-card span {
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-card strong {
  font-size: 1rem;
  line-height: 1.4;
}

.plan-item,
.summary-row,
.client-card,
.transaction-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 22, 7, 0.98), rgba(21, 15, 5, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.08);
}

.transaction-item,
.client-card {
  align-items: flex-start;
}

.transaction-main {
  flex: 1;
  min-width: 0;
}

.client-card-summary,
.client-card-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.transaction-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 130px;
}

.transaction-item p,
.client-card p {
  margin: 0;
}

.pay-date-history {
  display: grid;
  gap: 14px;
}

.pay-date-card {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(31, 22, 7, 0.98), rgba(21, 15, 5, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.08);
  box-shadow: var(--shadow-md);
}

.pay-date-card[open] {
  border-color: rgba(239, 185, 37, 0.24);
}

.pay-date-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.pay-date-summary::-webkit-details-marker {
  display: none;
}

.pay-date-summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(239, 185, 37, 0.12);
  border: 1px solid rgba(239, 185, 37, 0.16);
  color: var(--gold-soft);
  font-size: 1.1rem;
  font-weight: 700;
}

.pay-date-card[open] .pay-date-summary::after {
  content: "−";
}

.pay-date-heading {
  display: grid;
  gap: 8px;
  align-content: start;
}

.pay-date-heading h4 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.pay-date-eyebrow {
  margin-top: 2px;
}

.pay-date-count {
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.pay-date-card[open] .pay-date-summary::after {
  content: "-";
}

.pay-date-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 185, 37, 0.08);
  border: 1px solid rgba(239, 185, 37, 0.14);
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.pay-date-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-right: 54px;
}

.pay-date-total {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(239, 185, 37, 0.08);
  border: 1px solid rgba(239, 185, 37, 0.12);
}

.pay-date-total span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.pay-date-total strong {
  font-size: 1.05rem;
}

.pay-date-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}

.pay-date-section {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 10, 3, 0.96), rgba(20, 14, 5, 0.94));
  border: 1px solid rgba(239, 185, 37, 0.08);
}

.pay-date-section .panel-heading {
  margin-bottom: 14px;
}

.pay-date-lines {
  display: grid;
  gap: 12px;
}

.pay-line-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31, 22, 7, 0.98), rgba(21, 15, 5, 0.96));
  border: 1px solid rgba(239, 185, 37, 0.08);
}

.pay-line-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.pay-line-main p {
  margin: 0;
}

.pay-line-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 130px;
}

.pay-date-empty {
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.amount-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.income-pill {
  background: rgba(239, 185, 37, 0.14);
  color: var(--gold-soft);
}

.expense-pill {
  background: rgba(239, 185, 37, 0.1);
  color: #f3d58a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.status-pill.active {
  background: rgba(31, 106, 66, 0.2);
  color: #9fe0ba;
  border: 1px solid rgba(31, 106, 66, 0.38);
}

.status-pill.pending {
  background: rgba(239, 185, 37, 0.14);
  color: var(--gold-soft);
  border: 1px solid rgba(239, 185, 37, 0.18);
}

.small-button {
  width: auto;
  min-width: 118px;
  padding: 11px 16px;
}

.danger-button {
  background: linear-gradient(135deg, #6b1f1f 0%, #9f2f2f 100%);
  box-shadow: none;
}

.editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-actions button {
  width: auto;
}

@media (max-width: 1100px) {
  .page-shell,
  .split-grid,
  .stats-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .cover-frame {
    grid-template-columns: 1fr;
  }

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

  .pay-date-summary,
  .pay-date-body {
    grid-template-columns: 1fr;
  }

  .pay-date-totals {
    padding-right: 54px;
  }
}

@media (max-width: 760px) {
  body {
    min-height: 100dvh;
  }

  .page-shell {
    min-height: auto;
  }

  .brand-side,
  .workspace {
    padding: calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .brand-side {
    align-content: start;
    gap: 18px;
  }

  .brand-block {
    gap: 14px;
  }

  .brand-logo {
    width: 108px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3.35rem);
  }

  .story-card,
  .panel,
  .auth-card,
  .stat-card {
    border-radius: 24px;
  }

  .story-card,
  .panel {
    padding: 20px;
  }

  .workspace {
    place-items: stretch;
    padding-top: 8px;
  }

  .auth-card,
  .app-view {
    width: 100%;
  }

  .cover-auth {
    padding: 14px;
  }

  .cover-frame {
    gap: 16px;
    padding: 14px;
  }

  .cover-intro,
  .cover-form-panel {
    padding: 20px;
  }

  .cover-seal,
  .cover-logo {
    width: 84px;
    height: 84px;
  }

  .tab-row {
    width: 100%;
  }

  .topbar,
  .detail-heading,
  .year-filter-row,
  .year-filter-actions,
  .plan-item,
  .summary-row,
  .client-card,
  .transaction-item,
  .pay-line-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-card-summary,
  .client-card-actions,
  .transaction-side,
  .pay-line-actions {
    justify-items: start;
  }

  .year-filter-row label {
    width: 100%;
    max-width: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    top: calc(8px + env(safe-area-inset-top));
    z-index: 20;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(15, 11, 4, 0.92);
    border: 1px solid rgba(239, 185, 37, 0.12);
    backdrop-filter: blur(12px);
  }

  .workspace-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .workspace-tabs::-webkit-scrollbar {
    display: none;
  }

  .workspace-tab {
    flex: 0 0 auto;
    min-width: 132px;
    white-space: nowrap;
  }

  .stats-grid,
  .admin-grid,
  .plan-list,
  .summary-list,
  .dashboard-section {
    gap: 16px;
  }

  .year-filter-actions,
  .editor-actions,
  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .secondary-button,
  .topbar-actions button,
  .year-filter-actions .secondary-button {
    width: 100%;
  }

  .conversation-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .pay-date-summary {
    padding: 18px;
  }

  .pay-date-summary::after {
    top: 18px;
    right: 18px;
  }

  .pay-date-totals {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .pay-date-body {
    padding: 0 18px 18px;
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions button {
    width: 100%;
  }
}
