:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-strong: #eef3f1;
  --text: #21313a;
  --muted: #66777d;
  --line: #d8ddd8;
  --primary: #315b6d;
  --primary-dark: #244655;
  --accent: #b88746;
  --danger: #a8483f;
  --warning: #b88746;
  --success: #3f7d67;
  --shadow: 0 18px 45px rgba(33, 49, 58, 0.08);
}

* {
  box-sizing: border-box;
}

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

.is-hidden {
  display: none !important;
}

.update-banner {
  align-items: center;
  background: #233946;
  border: 1px solid rgba(217, 176, 111, 0.5);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 18px 45px rgba(33, 49, 58, 0.18);
  color: #ffffff;
  display: flex;
  gap: 12px;
  left: 50%;
  padding: 10px 12px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

.update-banner span {
  font-size: 14px;
  font-weight: 800;
}

.update-banner .small-button {
  background: #f7f6f1;
  border-color: #d9b06f;
  color: #233946;
}

.app-toast {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(33, 49, 58, 0.18);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  max-width: 420px;
  padding: 14px 16px;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 35;
}

.app-toast.warning {
  border-left-color: var(--warning);
}

.app-toast.danger {
  border-left-color: var(--danger);
}

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

button {
  cursor: pointer;
}

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

.launch-gate {
  align-items: stretch;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 235, 255, 0.78), transparent 34%),
    radial-gradient(circle at 68% 36%, rgba(232, 246, 255, 0.82), transparent 30%),
    #f7fbff;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 400px) minmax(320px, 430px);
  gap: 32px;
  min-height: 100vh;
  padding: 48px;
}

.launch-copy {
  align-self: center;
  color: #0d1f3d;
  max-width: 680px;
}

.launch-copy .eyebrow {
  color: #0866d9;
}

.launch-copy h1 {
  font-size: 66px;
  margin-bottom: 14px;
}

.launch-copy p {
  color: #435370;
  font-size: 20px;
  line-height: 1.5;
}

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

.launch-feature {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(209, 224, 242, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(13, 31, 61, 0.08);
  display: grid;
  gap: 12px;
  min-height: 108px;
  padding: 20px;
}

.launch-feature span,
.launch-trust span {
  color: #59677f;
  display: block;
  font-size: 13px;
}

.launch-feature strong {
  color: #0d1f3d;
  display: block;
  font-size: 16px;
}

.launch-trust {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.launch-trust strong {
  background: #dcecff;
  border-radius: 999px;
  color: #0866d9;
  padding: 14px 16px;
}

.phone-preview {
  align-self: center;
  display: grid;
  justify-items: center;
}

.phone-frame {
  background: #111827;
  border: 5px solid #222b37;
  border-radius: 44px;
  box-shadow: 0 28px 70px rgba(13, 31, 61, 0.28);
  padding: 12px;
  position: relative;
  width: min(100%, 360px);
}

.phone-speaker {
  background: #060910;
  border-radius: 999px;
  height: 28px;
  left: 50%;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  width: 108px;
  z-index: 2;
}

.phone-screen {
  background: #ffffff;
  border-radius: 34px;
  color: #0d1f3d;
  display: grid;
  gap: 12px;
  min-height: 650px;
  overflow: hidden;
  padding: 64px 20px 20px;
}

.phone-topbar,
.phone-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.phone-pill {
  background: #e7f2ed;
  border-radius: 999px;
  color: var(--success);
  justify-self: center;
  padding: 8px 18px;
}

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

.phone-metrics div,
.phone-card {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.phone-metrics span,
.phone-card span,
.phone-card small,
.phone-metrics small,
.phone-list small {
  color: #5d6a82;
}

.phone-metrics strong,
.phone-card strong {
  color: var(--success);
  font-size: 18px;
}

.danger-text {
  color: #d32727 !important;
}

.phone-list {
  display: grid;
}

.phone-list div {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 0;
}

.phone-list span {
  background: #dff4e9;
  border-radius: 999px;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  place-items: center;
  width: 38px;
}

.phone-list .late-avatar {
  background: #ffe7e5;
  color: #d32727;
}

.phone-list strong,
.phone-list small {
  display: block;
}

.phone-list em {
  background: #e8f2ff;
  border-radius: 999px;
  color: #0866d9;
  font-size: 12px;
  font-style: normal;
  padding: 6px 8px;
}

.phone-list em.late {
  background: #ffe7e5;
  color: #d32727;
}

.phone-button {
  background: #0875f5;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  min-height: 44px;
}

.launch-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 224, 242, 0.78);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(13, 31, 61, 0.1);
  display: grid;
  gap: 18px;
  padding: 26px;
}

.launch-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.plan-label {
  color: var(--primary) !important;
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.plan-price {
  color: var(--text);
  display: block;
  font-size: 36px;
  line-height: 1;
}

.plan-note {
  margin-bottom: 0;
}

.sales-note {
  font-size: 13px;
  margin: -4px 0 0;
  text-align: center;
}

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

.plan-list li {
  color: var(--text);
  list-style: none;
  padding-left: 22px;
  position: relative;
}

.plan-list li::before {
  background: var(--success);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 2px;
  position: absolute;
  top: 9px;
  width: 8px;
}

.legal-links {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.legal-links a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.auth-gate,
.billing-gate {
  align-items: center;
  background: #233946;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 780px;
  padding: 24px;
  width: 100%;
}

.checkout-card p {
  color: var(--muted);
  line-height: 1.45;
}

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

.checkout-option {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.checkout-option.featured {
  background: #eef3f1;
  border-color: rgba(49, 91, 109, 0.32);
}

.checkout-option span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-option strong {
  font-size: 28px;
}

.checkout-option p {
  margin: 0;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.verify-button {
  justify-self: stretch;
}

.checkout-selected {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(184, 135, 70, 0.35);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.checkout-selected span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-selected strong,
.checkout-selected p {
  display: block;
  margin: 0;
}

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

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

.back-button {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-weight: 800;
  justify-self: start;
  padding: 0;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-weight: 800;
  justify-self: center;
  min-height: auto;
  padding: 0;
}

.modal-backdrop {
  align-items: center;
  background: rgba(33, 49, 58, 0.62);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.modal-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 440px;
  padding: 22px;
  width: 100%;
}

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

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-status {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  min-height: 18px;
}

.legal-page {
  background: var(--bg);
}

.legal-document {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  line-height: 1.6;
  margin: 36px auto;
  max-width: 860px;
  padding: 32px;
}

.legal-document h1 {
  margin-bottom: 18px;
}

.legal-document h2 {
  margin-top: 24px;
}

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

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

.sidebar {
  background: #233946;
  color: #f6f3ea;
  padding: 24px 18px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 28px;
}

.sidebar-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-left: auto;
  width: 36px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 214, 165, 0.8);
  border-radius: 999px;
  background: #f7f6f1;
  color: #233946;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #c1ced0;
  font-size: 13px;
  margin-top: 3px;
}

.sidebar-collapsed .brand {
  justify-content: center;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-item {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  margin-left: 0;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cfe0da;
  padding: 12px 14px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

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

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

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

h1 {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 0;
}

.runtime-status {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.runtime-status.ready {
  color: var(--success);
  font-weight: 700;
}

h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.top-actions,
.modal-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.icon-button,
.small-button,
.file-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button {
  background: var(--primary);
  color: #ffffff;
}

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

.ghost-button,
.small-button,
.file-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.file-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.file-button input {
  display: none;
}

.small-button {
  transition: transform 140ms ease, filter 140ms ease;
}

.small-button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.action-client {
  background: #e8f1ff;
  border-color: #bad3f7;
  color: #255d9f;
}

.action-installments {
  background: #fff4dc;
  border-color: #f1cd86;
  color: #875508;
}

.action-history {
  background: #f0ebff;
  border-color: #cbbcf6;
  color: #5b3ca0;
}

.action-whatsapp {
  background: #e1f8ed;
  border-color: #9cdcbc;
  color: #176b3a;
}

.action-payment {
  background: #dff7e8;
  border-color: #89d6a8;
  color: #126236;
}

.action-reopen {
  background: #ffe9e7;
  border-color: #f1aaa4;
  color: #9a2f28;
}

.action-delete {
  background: #fff1f0;
  border-color: #edb4ae;
  color: #9a2f28;
}

.icon-button {
  width: 40px;
  padding: 0;
  background: var(--surface-strong);
  color: var(--text);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.metric,
.panel,
.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

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

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

.metric.danger strong {
  color: var(--danger);
}

.metric.success strong {
  color: var(--success);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-header p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-open {
  background: #e8f0f3;
  color: #315b6d;
}

.status-late {
  background: #fff0ed;
  color: var(--danger);
}

.status-paid {
  background: #e7f2ed;
  color: var(--success);
}

.alert-list,
.client-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  border-left: 4px solid var(--warning);
  background: #fff8ed;
  border-radius: 8px;
  padding: 12px;
}

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

.alert-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.charges-panel {
  max-width: 980px;
}

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

.charge-summary-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.charge-summary-card span,
.charge-meta span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.charge-summary-card strong {
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.charge-list {
  display: grid;
  gap: 12px;
}

.charge-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.charge-card.late {
  background: #fff8f6;
  border-left-color: var(--danger);
}

.charge-card.today {
  background: #fffaf0;
  border-left-color: var(--accent);
}

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

.charge-card h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 4px;
}

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

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

.charge-meta strong {
  display: block;
  margin-top: 4px;
}

.charge-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0;
}

.advanced-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.advanced-toolbar .ghost-button {
  align-self: end;
}

.client-form-panel {
  margin-bottom: 16px;
}

.client-feedback,
.client-notice {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.client-feedback {
  color: var(--success);
  margin: 10px 0 0;
  min-height: 18px;
}

.client-notice {
  background: #e7f2ed;
  border: 1px solid #9ec9ba;
  color: var(--success);
  margin: 0 0 12px;
  padding: 12px;
}

.search-box {
  flex: 1;
}

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

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.client-card {
  padding: 16px;
}

.client-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.client-card h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.client-meta,
.installment-summary,
.history-meta {
  color: var(--muted);
  font-size: 14px;
}

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

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

.client-section {
  background: var(--surface-strong);
  border-radius: 8px;
  padding: 12px;
}

.client-section h4 {
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  gap: 7px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.client-stat {
  background: var(--surface-strong);
  border-radius: 8px;
  padding: 10px;
}

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

.client-stat span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.installments {
  border-top: 1px solid var(--line);
  display: none;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.installments.open {
  display: grid;
}

.client-history {
  border-top: 1px solid var(--line);
  display: none;
  margin-top: 14px;
  padding-top: 14px;
}

.client-history.open {
  display: block;
}

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

.history-item {
  background: var(--surface-strong);
  border-radius: 8px;
  padding: 10px;
}

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

.installment-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.message-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

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

.empty-state {
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

@media (max-width: 980px) {
  .launch-gate {
    background: #f7fbff;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .launch-copy h1 {
    font-size: 42px;
  }

  .sales-preview {
    max-width: none;
  }

  .phone-frame {
    max-width: 360px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px;
  }

  .brand {
    margin-bottom: 12px;
  }

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

  .nav-item {
    text-align: center;
  }

  .metrics-grid,
  .content-grid,
  .message-layout,
  .advanced-toolbar,
  .client-sections,
  .checkout-options,
  .charge-summary,
  .charge-meta {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar-collapsed .brand-text,
  .sidebar-collapsed .nav-item {
    display: block;
  }
}

@media (max-width: 680px) {
  .update-banner {
    bottom: 12px;
    left: 14px;
    right: 14px;
    transform: none;
  }

  .app-toast {
    left: 14px;
    max-width: none;
    right: 14px;
    top: 12px;
  }

  .launch-gate {
    padding: 18px 14px;
  }

  .launch-copy p {
    font-size: 17px;
  }

  .preview-metrics,
  .auth-actions {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 18px 14px;
  }

  .topbar,
  .toolbar,
  .client-card-header,
  .charge-card-header,
  .checkout-selected,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics-grid,
  .client-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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