:root {
  --bg: #fff5f9;
  --panel: #ffffff;
  --panel-strong: #fff0f6;
  --ink: #341526;
  --muted: #816575;
  --line: #f3cddd;
  --accent: #ec4899;
  --accent-strong: #db2777;
  --accent-deep: #be185d;
  --accent-soft: #fce7f3;
  --accent-soft-2: #fff7fb;
  --warning: #b45309;
  --danger: #c2415b;
  --shadow: 0 18px 42px rgba(219, 39, 119, 0.12);
}

/* 2026 CRM visual refresh */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-strong: #fafafa;
  --ink: #18212f;
  --muted: #697386;
  --line: #e5e8ee;
  --accent: #e84a8a;
  --accent-strong: #d9367b;
  --accent-deep: #b42362;
  --accent-soft: #fde8f1;
  --accent-soft-2: #fff8fb;
  --warning: #b76e00;
  --danger: #c83f54;
  --success: #16845b;
  --info: #3578d4;
  --shadow: 0 6px 20px rgba(24, 33, 47, 0.06);
}

body {
  background: var(--bg);
}

.auth-screen {
  background: #f5f6f8;
}

.auth-card {
  border-color: #dfe3ea;
  box-shadow: 0 20px 48px rgba(24, 33, 47, 0.12);
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  gap: 20px;
  color: var(--ink);
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  padding: 2px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(232, 74, 138, 0.2);
}

.brand h1 {
  color: var(--ink);
}

.nav-item,
.filter-pill {
  position: relative;
  min-height: 42px;
  color: #536071;
  font-weight: 700;
}

.nav-item:hover,
.filter-pill:hover {
  color: var(--ink);
  background: #f7f8fa;
}

.nav-item.active,
.filter-pill.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow: none;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: #7b8492;
  border-radius: 6px;
  background: #f0f2f5;
}

.nav-item.active .nav-icon {
  color: white;
  background: var(--accent);
}

.side-section {
  gap: 6px;
}

.side-section h2 {
  padding: 0 10px;
  color: #8a93a1;
  font-size: 11px;
}

.compliance {
  border-top-color: var(--line);
}

.compliance p {
  color: var(--muted);
  font-size: 12px;
}

.main {
  padding: 24px 28px 34px;
}

.topbar {
  min-height: 64px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 5px 0 0 !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.topbar h2 {
  font-size: 23px;
}

.primary-button {
  background: var(--accent);
  box-shadow: none;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button,
.file-button,
.icon-button {
  color: #344054;
  background: #ffffff;
  border-color: #d9dee7;
}

.ghost-button:hover,
.file-button:hover,
.icon-button:hover {
  background: #f7f8fa;
  border-color: #c8ced8;
}

.metric,
.toolbar,
.list-panel,
.detail-panel,
.funded-list-panel,
.funded-detail-panel,
.repayment-reminder-panel,
.funded-toolbar,
.script-preview,
.followup-box,
.calculator-card,
.library-layout > section,
.settings-grid > section,
.conversion-board,
.history-dashboard {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 88px;
  padding: 16px;
  overflow: hidden;
  background: #ffffff;
}

.metric::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--info);
}

.metric:nth-child(2)::after {
  background: var(--accent);
}

.metric:nth-child(3)::after {
  background: var(--success);
}

.metric:nth-child(4)::after {
  background: #7c5cc4;
}

.metric span {
  margin-bottom: 12px;
  color: #747e8d;
}

.metric strong {
  color: var(--ink);
  font-size: 26px;
}

.reminder-metric {
  background: #fff8f8;
}

.reminder-metric::after {
  background: var(--danger);
}

.toolbar,
.funded-toolbar {
  background: #ffffff;
}

.search-box,
select,
input,
textarea {
  background: #ffffff;
  border-color: #dfe3ea;
}

.search-box:focus-within,
select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(232, 74, 138, 0.14);
  border-color: var(--accent);
}

.panel-title {
  min-height: 54px;
  padding: 13px 16px;
  background: #ffffff;
}

.panel-title h3 {
  color: var(--ink);
  font-size: 15px;
}

.customer-row {
  padding: 15px 16px;
}

.customer-row:hover {
  background: #fafbfc;
  border-color: transparent;
}

.customer-row.active {
  background: #fff5f9;
  border-color: #f3b8d1;
  box-shadow: inset 3px 0 0 var(--accent);
}

.badge {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.badge.muted {
  color: #596474;
  background: #eef1f4;
}

.badge.warn {
  color: #9a5b00;
  background: #fff1d6;
}

.score-badge.score-high,
.score-ring.score-high {
  color: #126647;
  background: #dff5ea;
}

.conversion-board {
  padding: 0 16px 16px;
}

.conversion-board .panel-title {
  margin: 0 -16px;
}

.funnel-step {
  border-color: var(--line);
  background: #fafbfc;
}

.funnel-step::before {
  background: var(--accent);
}

.conversion-insight,
.script-item,
.brand-row,
.history-stat-item,
.backup-item,
.wechat-month-stat {
  background: #fafbfc;
  border-color: var(--line);
}

.funded-customer-item {
  background: #ffffff;
  border-color: var(--line);
}

.funded-customer-item:hover {
  border-color: #cfd5df;
  background: #fafbfc;
}

.funded-customer-item.active {
  border-color: #f0a9c8;
  background: #fff5f9;
  box-shadow: inset 3px 0 0 var(--accent);
}

.repayment-reminder-item {
  border-color: #f0c2c9;
  background: #fff7f8;
}

.wechat-bar-track {
  background: #edf0f3;
}

.wechat-bar.applied {
  background: var(--info);
}

.wechat-bar.passed {
  background: var(--success);
}

.calculator-table th {
  background: #f3f5f7;
}

.timeline-item {
  border-left-color: var(--info);
}

.toast {
  background: #202936;
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.2);
}

@media (max-width: 1120px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 760px) {
  body {
    background: #f5f6f8;
  }

  .sidebar {
    position: sticky;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 22px rgba(24, 33, 47, 0.08);
  }

  .brand {
    padding: 0 0 8px;
    border-bottom: 0;
  }

  .nav-item,
  .filter-pill {
    color: #536071;
    background: #f4f6f8;
  }

  .nav-item.active,
  .filter-pill.active {
    color: var(--accent-deep);
    background: var(--accent-soft);
  }

  .nav-item.active::before {
    display: none;
  }

  .main {
    padding: 10px 9px 18px;
  }

  .topbar {
    padding: 11px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .topbar h2 {
    font-size: 19px;
  }

  .metric {
    min-height: 78px;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(24, 33, 47, 0.05);
  }

  .metric strong {
    font-size: 22px;
  }

  .customer-list {
    background: #f5f6f8;
  }

  .customer-row,
  .funded-customer-item {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(24, 33, 47, 0.05);
  }

}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html[data-cloud-outer-auth="true"] [data-app-shell]:not([hidden]) {
  display: grid !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #fff1f7 52%, #fff8fb 100%);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  min-width: 320px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(244, 114, 182, 0.16), transparent 46%),
    #fff5f9;
}

.auth-card {
  width: min(430px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 12px;
}

.auth-card .brand-mark {
  margin-bottom: 4px;
}

.auth-card h1,
.auth-card p {
  margin: 0;
}

.auth-card h1 {
  font-size: 24px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-note {
  font-size: 12px;
}

.auth-card input {
  font-size: 16px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.sidebar {
  background: linear-gradient(180deg, #ec4899 0%, #be185d 100%);
  color: #fff7fb;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f9a8d4, #db2777);
  color: white;
  font-weight: 800;
  font-size: 22px;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel-title h3,
.library-layout h3,
.settings-grid h3,
.history-dashboard h3 {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
  line-height: 1.2;
}

.brand p {
  color: #ffe4f1;
  font-size: 12px;
  margin-top: 4px;
}

.side-nav,
.side-section,
.top-actions,
.action-row,
.settings-actions,
.editor-actions {
  display: flex;
  gap: 10px;
}

.side-nav,
.side-section {
  flex-direction: column;
}

.nav-item,
.filter-pill {
  width: 100%;
  border: 0;
  text-align: left;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: #ffe4f1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 18px;
  display: inline-grid;
  place-items: center;
}

.nav-item.active,
.filter-pill.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.side-section h2 {
  margin: 0 0 2px;
  font-size: 13px;
  color: #ffe4f1;
  font-weight: 700;
}

.compliance {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.compliance p {
  margin: 0;
  color: #ffe8f2;
  font-size: 13px;
  line-height: 1.55;
}

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

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

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h2 {
  font-size: 24px;
  line-height: 1.2;
}

.primary-button,
.ghost-button,
.danger-button,
.file-button,
.icon-button {
  border-radius: 8px;
  border: 1px solid transparent;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button,
.file-button,
.icon-button {
  color: var(--ink);
  background: var(--accent-soft-2);
  border-color: var(--line);
}

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

.file-button {
  position: relative;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric,
.toolbar,
.list-panel,
.detail-panel,
.funded-list-panel,
.funded-detail-panel,
.repayment-reminder-panel,
.funded-toolbar,
.script-preview,
.followup-box,
.calculator-card,
.library-layout > section,
.settings-grid > section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 13px;
  min-height: 74px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.metric strong {
  font-size: 24px;
  line-height: 1;
  color: var(--accent-deep);
}

.reminder-metric strong {
  color: #c2415b;
}

.repayment-reminder-panel {
  margin-bottom: 14px;
  padding: 14px;
}

.repayment-reminder-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.repayment-reminder-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  text-align: left;
  color: var(--ink);
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
}

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

.repayment-reminder-item .reminder-date {
  color: #be123c;
  font-weight: 800;
}

.funded-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px 120px 150px auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
}

.funded-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(460px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.funded-list-panel,
.funded-detail-panel {
  min-height: 520px;
}

.funded-customer-list {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding: 10px;
}

.funded-customer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafd;
}

.funded-customer-item:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.funded-customer-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.funded-customer-item strong,
.funded-customer-item span {
  display: block;
}

.funded-customer-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.funded-customer-item > b {
  color: var(--accent-deep);
  font-size: 16px;
}

.funded-item-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.funded-item-meta > div {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.funded-item-meta .repayment-alert {
  color: #be123c;
  font-weight: 800;
}

.funded-row-detail-button {
  min-height: 34px;
  padding: 6px 16px;
  color: white;
  background: var(--accent);
  border-color: transparent;
}

.funded-detail-content {
  padding: 18px 18px 108px;
}

.funded-detail-actions {
  display: flex;
  gap: 8px;
}

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

.funded-form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

#fundedView:not(.funded-detail-open) .funded-detail-panel {
  display: none;
}

#fundedView:not(.funded-detail-open) .funded-layout,
#fundedView.funded-detail-open .funded-layout {
  display: block;
}

#fundedView.funded-detail-open .funded-metrics,
#fundedView.funded-detail-open .repayment-reminder-panel,
#fundedView.funded-detail-open .funded-toolbar,
#fundedView.funded-detail-open .funded-list-panel {
  display: none;
}

#fundedView.funded-detail-open .funded-detail-panel {
  display: block;
  min-height: 620px;
}

.funded-floating-actions {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 85;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, calc(100vw - 348px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(24, 33, 47, 0.18);
  backdrop-filter: blur(12px);
}

.funded-floating-actions button {
  width: 100%;
  min-height: 48px;
}

.funded-form-note span {
  display: inline-block;
  margin-left: 8px;
  color: var(--info);
  font-weight: 700;
}

.funded-form-note span[data-state="saved"] {
  color: var(--success);
}

.funded-form-note span[data-state="error"] {
  color: var(--danger);
}

.funded-list-empty {
  height: 410px;
}

.toolbar {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px 130px 130px 140px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.search-box {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fffafd;
}

.search-box input,
.followup-entry input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafd;
  color: var(--ink);
}

select,
input {
  min-height: 36px;
  padding: 0 10px;
}

textarea {
  padding: 10px;
  resize: vertical;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(420px, 1.35fr);
  gap: 14px;
  align-items: start;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.calculator-card {
  margin-bottom: 14px;
}

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

.calculator-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.calculator-actions {
  padding: 0 14px 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.calculator-small-results {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.calculator-small-results strong {
  color: var(--ink);
}

.calculator-table-wrap {
  overflow: auto;
  max-height: 560px;
}

.calculator-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px;
}

.calculator-table th,
.calculator-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.calculator-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 800;
}

.calculator-table th:nth-child(-n + 3),
.calculator-table td:nth-child(-n + 3) {
  text-align: left;
}

.list-panel,
.detail-panel {
  min-height: 610px;
}

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

.panel-title h3 {
  font-size: 15px;
}

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

.customer-list {
  display: flex;
  flex-direction: column;
  max-height: 780px;
  overflow: auto;
}

.customer-row {
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  padding: 14px;
  display: grid;
  gap: 8px;
  color: inherit;
  cursor: pointer;
}

.customer-row:hover,
.customer-row.active {
  background: var(--panel-strong);
  border-color: #f0aecb;
}

.customer-main,
.customer-sub,
.customer-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-index {
  display: inline-block;
  min-width: 24px;
  margin-right: 4px;
  color: var(--muted);
  font-weight: 800;
}

.customer-sub {
  color: var(--muted);
  font-size: 12px;
}

.customer-tags {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.row-detail-button {
  display: none;
}

.list-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-list-home-button {
  display: none;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.badge.muted {
  color: #7a6571;
  background: #f6edf2;
}

.badge.warn {
  color: var(--warning);
  background: #fff1dd;
}

.score-badge.score-high,
.score-ring.score-high {
  color: #166534;
  background: #dcfce7;
}

.score-badge.score-medium,
.score-ring.score-medium {
  color: #9a3412;
  background: #ffedd5;
}

.score-badge.score-low,
.score-ring.score-low {
  color: #9f1239;
  background: #ffe4e6;
}

.metric-action {
  cursor: pointer;
}

.metric-action:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.conversion-board {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.conversion-board .panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.conversion-board .panel-title > span {
  color: var(--accent-deep);
  font-weight: 800;
}

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

.funnel-step {
  position: relative;
  min-height: 62px;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.funnel-step::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: var(--funnel-width);
  height: 5px;
  background: linear-gradient(90deg, #f9a8d4, var(--accent));
}

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

.funnel-step strong {
  font-size: 20px;
}

.conversion-insight {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafd;
}

.score-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
}

.conversion-insight strong {
  font-size: 14px;
}

.conversion-insight p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.score-rule-note {
  display: block;
  margin-top: 7px;
  color: #8a93a1;
  font-size: 11px;
  line-height: 1.5;
}

.empty-state {
  height: 610px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--ink);
  margin: 0 0 8px;
}

.detail-content {
  padding: 16px;
}

.mobile-back-button {
  display: none;
  margin-bottom: 12px;
}

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

.detail-head h3 {
  font-size: 20px;
  margin: 2px 0 6px;
}

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

.status-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-row {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

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

.full-span {
  grid-column: 1 / -1;
}

.form-save-row {
  display: flex;
  justify-content: flex-end;
}

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

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

.input-action .ghost-button {
  min-width: 58px;
}

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

label input,
label select,
label textarea {
  color: var(--ink);
  font-weight: 400;
}

.full-field {
  margin-top: 12px;
}

.script-preview,
.followup-box,
.brand-section {
  margin-top: 14px;
  box-shadow: none;
}

.script-preview p {
  margin: 0;
  padding: 14px;
  line-height: 1.65;
}

.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr) 92px;
  gap: 10px;
  align-items: center;
}

.brand-grid-head {
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.brand-rows {
  display: grid;
  gap: 10px;
  padding: 10px 14px 14px;
}

.brand-row input {
  width: 100%;
}

.brand-field {
  display: block;
}

.brand-field span {
  display: none;
}

.followup-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

.timeline {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.timeline-item {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  display: grid;
  gap: 4px;
}

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

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

.library-layout,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.library-layout > section,
.settings-grid > section {
  padding: 16px;
}

.script-library {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.script-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffafd;
  display: grid;
  gap: 10px;
}

.script-item input,
.script-item textarea,
.script-editor input,
.script-editor textarea {
  width: 100%;
}

.script-item p,
.settings-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.script-editor textarea {
  width: 100%;
  margin: 12px 0;
}

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

.settings-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

.history-dashboard {
  padding: 16px;
}

.history-filter-tools {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(160px, 220px);
  gap: 10px;
}

.history-filter-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.history-stat-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.wechat-month-stat {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 88px;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafd;
}

.wechat-month-bars {
  display: grid;
  gap: 8px;
}

.wechat-bar-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.wechat-bar-row b {
  color: var(--ink);
  text-align: right;
}

.wechat-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f6e8ef;
}

.wechat-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.wechat-bar.applied {
  background: #ec4899;
}

.wechat-bar.passed {
  background: #22c55e;
}

.wechat-month-rate {
  color: var(--accent-deep);
  font-weight: 800;
  text-align: right;
}

.history-stat-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafd;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
}

.history-stat-item strong,
.history-stat-item span {
  display: block;
}

.history-stat-item span,
.history-stat-item p {
  color: var(--muted);
  line-height: 1.55;
}

.history-stat-item p {
  grid-column: 1 / -1;
  margin: 0;
}

.history-stat-count {
  min-width: 48px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 8px 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.backup-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

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

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

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

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #4a1530;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(520px, calc(100vw - 28px));
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

  .sidebar {
    position: static;
    box-shadow: 0 10px 26px rgba(190, 24, 93, 0.16);
  }

  .side-nav,
  .side-section {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item,
  .filter-pill {
    width: auto;
  }

  .compliance {
    margin-top: 0;
    width: 100%;
  }

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

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

  .workspace-grid,
  .funded-layout,
  .calculator-layout,
  .library-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    background: #fff7fb;
  }

  .auth-screen {
    padding: 14px;
    align-items: start;
  }

  .auth-card {
    margin-top: 18px;
    padding: 22px 18px;
    gap: 11px;
    box-shadow: 0 16px 36px rgba(219, 39, 119, 0.16);
  }

  .auth-card h1 {
    font-size: 22px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 10px 9px;
    gap: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 26px rgba(190, 24, 93, 0.22);
  }

  .brand {
    grid-template-columns: 38px 1fr;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .brand h1 {
    font-size: 15px;
  }

  .brand p,
  .compliance {
    display: none;
  }

  .side-nav,
  .side-section {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar,
  .side-section::-webkit-scrollbar {
    display: none;
  }

  .nav-item,
  .filter-pill {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.1);
  }

  .side-section h2 {
    display: none;
  }

  .main {
    padding: 12px 10px 18px;
  }

  .topbar,
  .detail-head {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions,
  .action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .topbar h2 {
    font-size: 20px;
  }

  .primary-button,
  .ghost-button,
  .danger-button,
  .file-button,
  .icon-button,
  select,
  input {
    min-height: 46px;
  }

  textarea {
    min-height: 88px;
  }

  .metrics,
  .calculator-form,
  .calculator-results,
  .history-summary-grid,
  .history-filter-tools,
  .toolbar,
  .info-grid,
  .followup-entry,
  .brand-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .calculator-form {
    gap: 10px;
  }

  .calculator-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .calculator-table-wrap {
    max-height: 430px;
    -webkit-overflow-scrolling: touch;
  }

  .calculator-table {
    min-width: 820px;
  }

  .toolbar,
  .funded-toolbar,
  .detail-content {
    padding: 12px;
  }

  .workspace-grid {
    gap: 10px;
  }

  #workspaceView:not(.mobile-detail-open) .detail-panel {
    display: none;
  }

  #workspaceView.mobile-detail-open .metrics,
  #workspaceView.mobile-detail-open .conversion-board,
  #workspaceView.mobile-detail-open .toolbar,
  #workspaceView.mobile-detail-open .list-panel {
    display: none;
  }

  #workspaceView.mobile-detail-open .workspace-grid {
    display: block;
  }

  #workspaceView.mobile-detail-open .detail-panel {
    display: block;
  }

  #workspaceView.mobile-detail-open .detail-content {
    padding-bottom: 96px;
  }

  .mobile-back-button {
    display: inline-flex;
    position: fixed;
    left: 10px;
    bottom: 12px;
    z-index: 80;
    width: calc(50% - 14px);
    min-height: 48px;
    margin-bottom: 0;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.24);
  }

  #workspaceView.mobile-detail-open .form-save-row {
    position: fixed;
    right: 10px;
    bottom: 12px;
    z-index: 80;
    width: calc(50% - 14px);
  }

  #workspaceView.mobile-detail-open .form-save-row .primary-button {
    width: 100%;
    min-height: 48px;
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.24);
  }

  .list-panel,
  .detail-panel {
    min-height: auto;
  }

  .customer-list {
    max-height: none;
    gap: 10px;
    padding: 10px;
    background: #fff7fb;
  }

  .funded-toolbar,
  .funded-form {
    grid-template-columns: 1fr;
  }

  .funded-list-panel,
  .funded-detail-panel {
    min-height: auto;
  }

  .funded-customer-list {
    max-height: none;
  }

  .funded-customer-item {
    min-height: 112px;
  }

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

  .funded-detail-actions button {
    width: 100%;
  }

  .repayment-reminder-list {
    grid-template-columns: 1fr;
  }

  .customer-row {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(219, 39, 119, 0.08);
  }

  .customer-main,
  .customer-sub {
    align-items: flex-start;
  }

  .customer-main strong {
    white-space: normal;
    line-height: 1.35;
  }

  .customer-sub {
    display: grid;
    gap: 4px;
  }

  .customer-tags {
    gap: 7px;
  }

  .row-detail-button {
    display: inline-flex;
    min-height: 30px;
    padding: 0 12px;
    color: white;
    background: var(--accent);
    border-color: transparent;
  }

  .mobile-list-home-button {
    display: inline-flex;
    position: fixed;
    right: 12px;
    bottom: 16px;
    z-index: 75;
    min-height: 48px;
    padding: 0 18px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.28);
  }

  #workspaceView:not(.mobile-detail-open) .customer-list {
    padding-bottom: 82px;
  }

  .badge {
    min-height: 26px;
    padding: 0 10px;
  }

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

  .action-row .primary-button,
  .action-row .ghost-button {
    width: 100%;
  }

  .toast {
    bottom: 76px;
  }

  .followup-entry {
    gap: 8px;
  }

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

  .wechat-month-stat {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .wechat-month-rate {
    grid-column: 2;
    text-align: left;
  }

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

  .backup-actions {
    justify-content: stretch;
  }

  .backup-actions button {
    flex: 1 1 86px;
  }

  .history-stat-count {
    justify-self: start;
  }

  .brand-grid-head {
    display: none;
  }

  .brand-rows {
    padding: 8px 10px 12px;
  }

  .brand-row {
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffafd;
  }

  .brand-field span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .brand-row .remove-brand-btn {
    width: 100%;
  }

  .metric {
    min-height: 72px;
    padding: 11px;
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.08);
  }

  .metric strong {
    font-size: 21px;
  }

  .paired-fields {
    grid-template-columns: 1fr;
  }

  .input-action {
    grid-template-columns: minmax(0, 1fr) 68px;
  }
}

/* Final visual layer */
body {
  background: var(--bg);
  color: var(--ink);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  gap: 20px;
  color: var(--ink);
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  padding: 10px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(232, 74, 138, 0.2);
}

.brand h1 {
  color: var(--ink);
}

.nav-item,
.filter-pill {
  position: relative;
  min-height: 42px;
  color: #536071;
  font-weight: 700;
}

.nav-item:hover,
.filter-pill:hover {
  color: var(--ink);
  background: #f7f8fa;
}

.nav-item.active,
.filter-pill.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow: none;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: #7b8492;
  border-radius: 6px;
  background: #f0f2f5;
}

.nav-item.active .nav-icon {
  color: white;
  background: var(--accent);
}

.side-section h2 {
  padding: 0 10px;
  color: #8a93a1;
  font-size: 11px;
}

.compliance {
  border-top-color: var(--line);
}

.compliance p {
  color: var(--muted);
  font-size: 12px;
}

.main {
  padding: 24px 28px 34px;
}

.topbar {
  min-height: 64px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 5px 0 0 !important;
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.topbar h2 {
  color: var(--ink);
  font-size: 23px;
}

.primary-button {
  background: var(--accent);
  box-shadow: none;
}

.ghost-button,
.file-button,
.icon-button {
  color: #344054;
  background: #ffffff;
  border-color: #d9dee7;
}

.metric,
.toolbar,
.list-panel,
.detail-panel,
.funded-list-panel,
.funded-detail-panel,
.repayment-reminder-panel,
.funded-toolbar,
.script-preview,
.followup-box,
.calculator-card,
.library-layout > section,
.settings-grid > section,
.conversion-board,
.history-dashboard {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 88px;
  padding: 16px;
  overflow: hidden;
  background: #ffffff;
}

.metric::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--info);
}

.metric:nth-child(2)::after {
  background: var(--accent);
}

.metric:nth-child(3)::after {
  background: var(--success);
}

.metric:nth-child(4)::after {
  background: #7c5cc4;
}

.metric span {
  margin-bottom: 12px;
  color: #747e8d;
}

.metric strong {
  color: var(--ink);
  font-size: 26px;
}

.reminder-metric {
  background: #fff8f8;
}

.reminder-metric::after {
  background: var(--danger);
}

.search-box,
select,
input,
textarea {
  background: #ffffff;
  border-color: #dfe3ea;
}

.panel-title {
  min-height: 54px;
  padding: 13px 16px;
  background: #ffffff;
}

.customer-row.active,
.funded-customer-item.active {
  background: #fff5f9;
  border-color: #f3b8d1;
  box-shadow: inset 3px 0 0 var(--accent);
}

.customer-row:hover,
.funded-customer-item:hover {
  background: #fafbfc;
}

.conversion-board {
  padding: 0 16px 16px;
}

.conversion-board .panel-title {
  margin: 0 -16px;
}

.funnel-step,
.conversion-insight,
.script-item,
.brand-row,
.history-stat-item,
.backup-item,
.wechat-month-stat {
  background: #fafbfc;
  border-color: var(--line);
}

.funnel-step::before {
  background: var(--accent);
}

.wechat-bar-track {
  background: #edf0f3;
}

.wechat-bar.applied {
  background: var(--info);
}

.wechat-bar.passed {
  background: var(--success);
}

.calculator-table th {
  background: #f3f5f7;
}

.timeline-item {
  border-left-color: var(--info);
}

.toast {
  background: #202936;
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.2);
}

@media (max-width: 1120px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body {
    background: #f5f6f8;
  }

  .sidebar {
    position: sticky;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 22px rgba(24, 33, 47, 0.08);
  }

  .brand {
    display: block;
    padding: 8px 2px;
    border-bottom: 0;
  }

  .nav-item,
  .filter-pill {
    color: #536071;
    background: #f4f6f8;
  }

  .nav-item.active,
  .filter-pill.active {
    color: var(--accent-deep);
    background: var(--accent-soft);
  }

  .nav-item.active::before {
    display: none;
  }

  .main {
    padding: 10px 9px 18px;
  }

  .topbar {
    padding: 11px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .topbar h2 {
    font-size: 19px;
  }

  .metric {
    min-height: 78px;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(24, 33, 47, 0.05);
  }

  .metric strong {
    font-size: 22px;
  }

  .customer-list {
    background: #f5f6f8;
  }

  .customer-row,
  .funded-customer-item {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(24, 33, 47, 0.05);
  }
}

@media (max-width: 1120px) {
  .funded-floating-actions {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 760px) {
  #fundedView.funded-detail-open .funded-detail-panel {
    min-height: auto;
  }

  .funded-detail-content {
    padding: 14px 12px 104px;
  }

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

  .funded-floating-actions {
    gap: 8px;
    padding: 8px;
  }

  .funded-floating-actions button {
    min-height: 50px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .funded-item-meta {
    align-items: center;
  }

  .funded-row-detail-button {
    min-width: 76px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}
