@font-face {
  font-family: "Cairo";
  src: url("../app-assets/fonts/Cairo/Cairo-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cx-primary: #344d70;
  --cx-primary-strong: #263d5e;
  --cx-primary-soft: #eaf0f7;
  --cx-accent: #ff9f34;
  --cx-accent-soft: #fff1df;
  --cx-canvas: #f3f6fa;
  --cx-canvas-deep: #eaf0f6;
  --cx-surface: #ffffff;
  --cx-surface-soft: #f8fafc;
  --cx-surface-raised: #ffffff;
  --cx-text: #111b2e;
  --cx-muted: #66758b;
  --cx-subtle: #8795a9;
  --cx-border: #dbe3ee;
  --cx-border-strong: #c9d5e3;
  --cx-success: #16a765;
  --cx-success-soft: #e8f8ef;
  --cx-danger: #c94b52;
  --cx-danger-soft: #fff0f0;
  --cx-warning: #bf7624;
  --cx-warning-soft: #fff5e8;
  --cx-shadow-sm: 0 8px 22px rgba(32, 52, 78, 0.07);
  --cx-shadow-md: 0 20px 50px rgba(32, 52, 78, 0.1);
  --cx-shadow-lg: 0 28px 72px rgba(28, 45, 69, 0.14);
  --cx-radius-sm: 12px;
  --cx-radius: 18px;
  --cx-radius-lg: 26px;
  --cx-sidebar-size: 282px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --cx-primary: #8da8cb;
  --cx-primary-strong: #d8e5f6;
  --cx-primary-soft: #192d46;
  --cx-accent: #ffad52;
  --cx-accent-soft: #382818;
  --cx-canvas: #081225;
  --cx-canvas-deep: #0b1729;
  --cx-surface: #102033;
  --cx-surface-soft: #13263d;
  --cx-surface-raised: #172a44;
  --cx-text: #f8fafc;
  --cx-muted: #c3cfde;
  --cx-subtle: #9aa9bd;
  --cx-border: rgba(148, 163, 184, 0.2);
  --cx-border-strong: rgba(170, 188, 211, 0.3);
  --cx-success: #5bd99a;
  --cx-success-soft: #12382f;
  --cx-danger: #ff989d;
  --cx-danger-soft: #3d232c;
  --cx-warning: #f7bd76;
  --cx-warning-soft: #3d2e1b;
  --cx-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.17);
  --cx-shadow-md: 0 22px 54px rgba(0, 0, 0, 0.24);
  --cx-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cx-canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-wrap: anywhere;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 159, 52, 0.045), transparent 25rem),
    var(--cx-canvas);
  color: var(--cx-text);
  font-family: "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cx-accent) 38%, transparent);
  outline-offset: 3px;
}

.cx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cx-shell {
  display: grid;
  grid-template-columns: var(--cx-sidebar-size) minmax(0, 1fr);
  direction: rtl;
  min-height: 100vh;
}

.cx-sidebar {
  z-index: 40;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 16px 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--cx-surface) 94%, var(--cx-primary-soft));
  border-inline-start: 1px solid var(--cx-border);
  box-shadow: -12px 0 40px rgba(35, 54, 80, 0.035);
}

html[data-theme="dark"] .cx-sidebar {
  background: #0d1a2d;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
}

.cx-brand {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  margin-bottom: 16px;
  gap: 12px;
  border-bottom: 1px solid var(--cx-border);
}

.cx-brand__mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--cx-primary-strong);
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 9px 22px rgba(52, 77, 112, 0.2);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

html[data-theme="dark"] .cx-brand__mark {
  color: #14243a;
  background: var(--cx-primary);
}

.cx-brand > span:last-child,
.cx-sidebar-note span,
.cx-users-parent > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.cx-brand strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cx-brand small,
.cx-sidebar-note small,
.cx-users-parent small {
  color: var(--cx-subtle);
  font-size: 11.5px;
  font-weight: 650;
}

.cx-nav {
  display: grid;
  gap: 20px;
}

.cx-nav section {
  display: grid;
  gap: 5px;
}

.cx-nav h2 {
  padding-inline: 12px;
  margin-bottom: 3px;
  color: var(--cx-subtle);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cx-nav a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 9px 12px;
  gap: 11px;
  color: var(--cx-muted);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cx-nav a:hover {
  color: var(--cx-text);
  background: var(--cx-surface-soft);
  transform: translateX(-2px);
}

.cx-nav a > i {
  width: 21px;
  color: var(--cx-subtle);
  font-size: 20px;
  text-align: center;
}

.cx-users-cluster {
  position: relative;
  isolation: isolate;
  padding-block: 4px;
}

.cx-users-parent {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  gap: 10px;
  text-align: start;
  background: var(--cx-primary-soft);
  border: 1px solid color-mix(in srgb, var(--cx-primary) 22%, var(--cx-border));
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cx-users-parent:hover {
  border-color: color-mix(in srgb, var(--cx-primary) 42%, var(--cx-border));
  box-shadow: var(--cx-shadow-sm);
}

.cx-users-parent__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--cx-primary-strong);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 11px;
  font-size: 19px;
}

html[data-theme="dark"] .cx-users-parent__icon {
  color: var(--cx-primary);
}

.cx-users-parent strong {
  font-size: 14px;
  font-weight: 850;
}

.cx-users-parent > i {
  color: var(--cx-muted);
  font-size: 17px;
  transition: transform 180ms ease;
}

.cx-users-cluster.is-closed .cx-users-parent > i {
  transform: rotate(180deg);
}

.cx-users-states {
  position: relative;
  display: grid;
  padding: 9px 9px 1px 4px;
  gap: 3px;
}

.cx-users-states::before {
  position: absolute;
  inset-block: 10px 5px;
  inset-inline-start: 25px;
  width: 1px;
  content: "";
  background: var(--cx-border);
}

.cx-users-cluster.is-closed .cx-users-states {
  display: none;
}

.cx-users-states button {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 41px;
  padding: 6px 10px 6px 9px;
  gap: 8px;
  overflow: hidden;
  text-align: start;
  color: var(--cx-muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.cx-users-states button:hover {
  color: var(--cx-text);
  background: color-mix(in srgb, var(--cx-primary-soft) 58%, transparent);
}

.cx-users-states button.is-active {
  color: var(--cx-primary-strong);
  background: color-mix(in srgb, var(--cx-primary-soft) 84%, var(--cx-surface));
}

html[data-theme="dark"] .cx-users-states button.is-active {
  color: var(--cx-text);
}

.cx-users-states button.is-active::after {
  position: absolute;
  inset-block: 9px;
  inset-inline-end: 0;
  width: 3px;
  content: "";
  background: var(--cx-accent);
  border-radius: 6px;
}

.cx-users-states button > span {
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--cx-primary);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 8px;
  font-size: 14px;
}

.cx-users-states button > span.is-success {
  color: var(--cx-success);
}

.cx-users-states button > span.is-muted {
  color: var(--cx-subtle);
}

.cx-users-states button > span.is-danger {
  color: var(--cx-danger);
}

.cx-users-states strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-users-states small {
  min-width: 26px;
  color: var(--cx-subtle);
  font-size: 10.5px;
  font-weight: 800;
  text-align: end;
}

.cx-sidebar-note {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  margin-top: auto;
  gap: 10px;
  color: var(--cx-muted);
  background: var(--cx-surface-soft);
  border: 1px solid var(--cx-border);
  border-radius: 15px;
}

.cx-sidebar-note > i {
  color: var(--cx-accent);
  font-size: 21px;
}

.cx-sidebar-note strong {
  color: var(--cx-text);
  font-size: 12px;
  font-weight: 800;
}

.cx-workspace {
  grid-column: 2;
  min-width: 0;
}

.cx-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 3vw, 42px);
  gap: 18px;
  background: color-mix(in srgb, var(--cx-surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--cx-border) 75%, transparent);
  box-shadow: 0 8px 24px rgba(28, 46, 70, 0.035);
  backdrop-filter: blur(16px);
}

.cx-topbar__title {
  display: grid;
  margin-inline-end: auto;
}

.cx-topbar__title small {
  color: var(--cx-subtle);
  font-size: 11px;
  font-weight: 700;
}

.cx-topbar__title strong {
  color: var(--cx-text);
  font-size: 15px;
  font-weight: 850;
}

.cx-topbar__actions,
.cx-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cx-concept-label {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 11px;
  color: var(--cx-warning);
  background: var(--cx-warning-soft);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}

.cx-icon-button {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cx-primary-strong);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 13px;
  box-shadow: 0 5px 15px rgba(31, 50, 76, 0.04);
  cursor: pointer;
  font-size: 19px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

html[data-theme="dark"] .cx-icon-button {
  color: var(--cx-primary);
}

.cx-icon-button:hover {
  background: var(--cx-primary-soft);
  border-color: color-mix(in srgb, var(--cx-primary) 30%, var(--cx-border));
  transform: translateY(-1px);
}

.cx-mobile-menu {
  display: none;
}

.cx-admin {
  display: flex;
  align-items: center;
  padding-inline-start: 3px;
  gap: 9px;
}

.cx-admin > b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--cx-primary-strong);
  border-radius: 12px;
  font-size: 12px;
}

.cx-admin > span {
  display: grid;
  min-width: 0;
}

.cx-admin strong {
  font-size: 12.5px;
  font-weight: 800;
}

.cx-admin small {
  color: var(--cx-subtle);
  font-size: 10.5px;
  font-weight: 650;
}

.cx-main {
  min-height: calc(100vh - 72px);
  padding: clamp(22px, 3.2vw, 42px);
}

.cx-container {
  width: min(100%, 1310px);
  margin-inline: auto;
}

.cx-eyebrow,
.cx-kicker {
  color: var(--cx-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cx-eyebrow > i {
  width: 20px;
  height: 2px;
  background: var(--cx-accent);
  border-radius: 4px;
}

.cx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cx-button:hover {
  transform: translateY(-1px);
}

.cx-button i {
  font-size: 18px;
}

.cx-button--primary {
  color: #fff;
  background: var(--cx-primary-strong);
  box-shadow: 0 9px 22px rgba(52, 77, 112, 0.22);
}

html[data-theme="dark"] .cx-button--primary {
  color: #14243a;
  background: #bfd1e9;
}

.cx-button--primary:hover {
  box-shadow: 0 12px 28px rgba(52, 77, 112, 0.27);
}

.cx-button--quiet {
  color: var(--cx-primary-strong);
  background: var(--cx-surface);
  border-color: var(--cx-border);
}

html[data-theme="dark"] .cx-button--quiet {
  color: var(--cx-text);
}

.cx-button--quiet:hover {
  background: var(--cx-primary-soft);
  border-color: color-mix(in srgb, var(--cx-primary) 34%, var(--cx-border));
}

.cx-avatar {
  position: relative;
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--cx-primary-strong);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cx-primary-soft) 76%, #fff), var(--cx-surface-soft));
  border: 1px solid var(--cx-border);
  border-radius: 20px;
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--cx-surface) 64%, transparent);
  font-size: 17px;
  font-weight: 900;
}

html[data-theme="dark"] .cx-avatar {
  color: var(--cx-text);
}

.cx-avatar > i {
  position: absolute;
  inset-inline-start: -2px;
  inset-block-end: 4px;
  width: 13px;
  height: 13px;
  background: var(--cx-success);
  border: 3px solid var(--cx-surface);
  border-radius: 50%;
}

.cx-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 5px 10px;
  gap: 7px;
  color: var(--cx-muted);
  background: var(--cx-surface-soft);
  border: 1px solid var(--cx-border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cx-status > i {
  width: 7px;
  height: 7px;
  background: var(--cx-subtle);
  border-radius: 50%;
}

.cx-status--success {
  color: var(--cx-success);
  background: var(--cx-success-soft);
  border-color: color-mix(in srgb, var(--cx-success) 22%, transparent);
}

.cx-status--success > i {
  background: var(--cx-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-success) 13%, transparent);
}

.cx-empty-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px 20px;
  margin-top: 20px;
  gap: 16px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--cx-primary-soft) 30%, transparent) 8px 9px),
    var(--cx-surface-soft);
  border: 1px dashed var(--cx-border-strong);
  border-radius: 18px;
}

.cx-empty-preview__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--cx-primary);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 16px;
  font-size: 24px;
}

.cx-empty-preview h2 {
  margin-block: 1px 2px;
  font-size: 16px;
  font-weight: 850;
}

.cx-empty-preview p {
  color: var(--cx-muted);
  font-size: 12.5px;
}

.cx-backdrop {
  display: none;
}

/* Concept A — Customer Command Center */
.ca-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 248px;
  padding: clamp(28px, 4vw, 48px);
  gap: clamp(28px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 159, 52, 0.14), transparent 18rem),
    linear-gradient(135deg, var(--cx-surface) 0%, color-mix(in srgb, var(--cx-primary-soft) 65%, var(--cx-surface)) 100%);
  border: 1px solid var(--cx-border);
  border-radius: 30px;
  box-shadow: var(--cx-shadow-md);
}

.ca-hero::after {
  position: absolute;
  inset-inline-end: -58px;
  inset-block-start: -64px;
  width: 180px;
  height: 180px;
  content: "";
  border: 34px solid color-mix(in srgb, var(--cx-accent) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.ca-hero__copy {
  z-index: 1;
  align-self: center;
}

.ca-hero h1 {
  max-width: 710px;
  margin-block: 10px 9px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 930;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.ca-hero__copy > p {
  max-width: 690px;
  color: var(--cx-muted);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.9;
}

.ca-hero__meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 19px;
  gap: 10px;
}

.ca-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cx-muted);
  font-size: 11.5px;
  font-weight: 750;
}

.ca-hero__meta i {
  color: var(--cx-accent);
  font-size: 16px;
}

.ca-pulse {
  z-index: 1;
  align-self: stretch;
  padding: 20px;
  color: #fff;
  background: #2b4567;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(28, 47, 74, 0.21);
}

html[data-theme="dark"] .ca-pulse {
  background: #172d49;
}

.ca-pulse header,
.ca-pulse footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ca-pulse header span {
  font-size: 12.5px;
  font-weight: 800;
}

.ca-pulse header small {
  padding: 3px 7px;
  color: #ffd3a0;
  background: rgba(255, 159, 52, 0.14);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.ca-pulse__value {
  display: flex;
  align-items: baseline;
  margin-block: 18px 15px;
  gap: 8px;
}

.ca-pulse__value strong {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.ca-pulse__value span {
  color: #cbd8e8;
  font-size: 12px;
}

.ca-pulse__bar {
  display: grid;
  grid-template-columns: 75fr 17fr 8fr;
  height: 8px;
  gap: 3px;
}

.ca-pulse__bar i {
  background: #7cb79d;
  border-radius: 4px;
}

.ca-pulse__bar i.is-waiting {
  background: #f2bc72;
}

.ca-pulse__bar i.is-blocked {
  background: #d77878;
}

.ca-pulse footer {
  margin-top: 11px;
  color: #cbd8e8;
  font-size: 9.5px;
  font-weight: 700;
}

.ca-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  margin-top: 24px;
  gap: 20px;
}

.ca-command__main,
.ca-command__rail {
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow-sm);
}

.ca-command__main {
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
}

.ca-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 18px;
  gap: 22px;
  border-bottom: 1px solid var(--cx-border);
}

.ca-section-head h2,
.ca-command__rail h2,
.cb-resource-head h2,
.cc-ledger__head h2 {
  margin-block: 2px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.ca-section-head p,
.cb-resource-head p,
.cc-ledger__head p {
  color: var(--cx-muted);
  font-size: 12.5px;
}

.ca-customer-card {
  position: relative;
  padding: 22px;
  margin-top: 18px;
  overflow: hidden;
  background:
    linear-gradient(120deg, var(--cx-surface) 0%, color-mix(in srgb, var(--cx-primary-soft) 40%, var(--cx-surface)) 100%);
  border: 1px solid var(--cx-border);
  border-radius: 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ca-customer-card::before {
  position: absolute;
  inset-block: 20px;
  inset-inline-start: 0;
  width: 3px;
  content: "";
  background: var(--cx-accent);
  border-radius: 0 6px 6px 0;
}

.ca-customer-card:hover {
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-md);
  transform: translateY(-2px);
}

.ca-customer-card__identity {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ca-customer-card__identity h3,
.cb-customer h3,
.cc-ledger-entry h3 {
  margin-block: 1px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ca-customer-card__identity p,
.cb-customer__head p,
.cc-ledger-entry__person p {
  color: var(--cx-muted);
  font-size: 12.5px;
}

.ca-customer-card__intel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 18px;
  margin-block: 18px;
  background: color-mix(in srgb, var(--cx-surface) 72%, transparent);
  border-block: 1px solid var(--cx-border);
}

.ca-customer-card__intel > div {
  display: grid;
  padding-inline: 18px;
  gap: 2px;
}

.ca-customer-card__intel > div + div {
  border-inline-start: 1px solid var(--cx-border);
}

.ca-customer-card__intel span {
  color: var(--cx-subtle);
  font-size: 11px;
  font-weight: 700;
}

.ca-customer-card__intel strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.ca-customer-card__intel strong i {
  color: var(--cx-accent);
}

.ca-customer-card__intel small {
  min-width: 0;
  overflow: hidden;
  color: var(--cx-muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.ca-customer-card__actions,
.ca-customer-card__actions > div,
.cb-customer footer,
.cc-ledger-entry footer,
.cc-ledger-entry footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-customer-card__actions {
  justify-content: space-between;
}

.ca-customer-card__actions button,
.cb-customer footer button,
.cc-ledger-entry footer button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
  gap: 6px;
  color: var(--cx-primary-strong);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

html[data-theme="dark"] .ca-customer-card__actions button,
html[data-theme="dark"] .cb-customer footer button,
html[data-theme="dark"] .cc-ledger-entry footer button {
  color: var(--cx-text);
}

.ca-customer-card__actions button:hover,
.cb-customer footer button:hover,
.cc-ledger-entry footer button:hover {
  background: var(--cx-primary-soft);
  transform: translateY(-1px);
}

.ca-customer-card__actions button.is-warning,
.cb-customer footer button.is-warning,
.cc-ledger-entry footer button.is-warning {
  color: var(--cx-warning);
  background: var(--cx-warning-soft);
  border-color: transparent;
}

.ca-customer-card__actions button.is-danger {
  width: 38px;
  padding: 0;
  justify-content: center;
  color: var(--cx-danger);
  background: var(--cx-danger-soft);
  border-color: transparent;
}

.ca-command__rail {
  position: sticky;
  top: 94px;
  padding: 20px 16px;
  border-radius: 22px;
}

.ca-command__rail header {
  padding: 2px 6px 13px;
}

.ca-filter-runway {
  position: relative;
  display: grid;
  gap: 4px;
}

.ca-filter-runway::before {
  position: absolute;
  inset-block: 16px;
  inset-inline-end: 13px;
  width: 1px;
  content: "";
  background: var(--cx-border);
}

.ca-filter-runway button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 7px 17px 7px 10px;
  color: var(--cx-muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.ca-filter-runway button::before {
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-inline-end: -7px;
  content: "";
  background: var(--cx-border-strong);
  border: 2px solid var(--cx-surface);
  border-radius: 50%;
}

.ca-filter-runway button.is-active {
  color: var(--cx-primary-strong);
  background: var(--cx-primary-soft);
}

.ca-filter-runway button.is-active::before {
  background: var(--cx-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-accent) 13%, transparent);
}

.ca-filter-runway strong {
  padding: 2px 7px;
  color: var(--cx-subtle);
  background: color-mix(in srgb, var(--cx-surface) 76%, transparent);
  border-radius: 7px;
  font-size: 10.5px;
}

.ca-rail-note {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  margin-top: 15px;
  gap: 8px;
  color: var(--cx-muted);
  background: var(--cx-surface-soft);
  border-radius: 12px;
}

.ca-rail-note i {
  color: var(--cx-accent);
  font-size: 18px;
}

.ca-rail-note p {
  font-size: 10.5px;
  line-height: 1.7;
}

/* Concept B — Compact Resource Cards */
.cx-concept-b .cx-main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cx-primary-soft) 45%, transparent) 0 280px, transparent 280px);
}

.cb-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 184px;
  padding: 30px clamp(28px, 4vw, 48px);
  gap: 24px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 27px;
  box-shadow: var(--cx-shadow-md);
}

.cb-hero h1 {
  margin-block: 8px 7px;
  font-size: clamp(28px, 2.6vw, 39px);
  font-weight: 930;
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.cb-hero p {
  color: var(--cx-muted);
  font-size: 14px;
}

.cb-filter-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px;
  margin: -24px auto 0;
  width: min(92%, 920px);
  gap: 5px;
  background: color-mix(in srgb, var(--cx-surface) 92%, transparent);
  border: 1px solid var(--cx-border);
  border-radius: 17px;
  box-shadow: var(--cx-shadow-md);
  backdrop-filter: blur(12px);
}

.cb-filter-dock button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 53px;
  padding: 8px 10px;
  gap: 8px;
  color: var(--cx-muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  text-align: start;
  font-size: 12px;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease;
}

.cb-filter-dock button:hover,
.cb-filter-dock button.is-active {
  color: var(--cx-primary-strong);
  background: var(--cx-primary-soft);
}

html[data-theme="dark"] .cb-filter-dock button:hover,
html[data-theme="dark"] .cb-filter-dock button.is-active {
  color: var(--cx-text);
}

.cb-filter-dock button i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--cx-primary);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 9px;
  font-size: 16px;
}

.cb-filter-dock button b {
  min-width: 29px;
  color: var(--cx-subtle);
  font-size: 11px;
  text-align: end;
}

.cb-resource-section {
  padding: 24px;
  margin-top: 26px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 25px;
  box-shadow: var(--cx-shadow-sm);
}

.cb-resource-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  gap: 20px;
}

.cb-search {
  display: flex;
  align-items: center;
  min-width: min(250px, 29vw);
  height: 44px;
  padding-inline: 12px;
  gap: 8px;
  background: var(--cx-surface-soft);
  border: 1px solid var(--cx-border);
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cb-search:focus-within {
  border-color: color-mix(in srgb, var(--cx-primary) 50%, var(--cx-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-primary) 10%, transparent);
}

.cb-search i {
  color: var(--cx-subtle);
  font-size: 18px;
}

.cb-search input {
  width: 100%;
  min-width: 0;
  color: var(--cx-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12.5px;
  font-weight: 650;
}

.cb-search input::placeholder {
  color: var(--cx-subtle);
}

.cb-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: stretch;
  gap: 16px;
}

.cb-customer,
.cb-empty-card {
  min-width: 0;
  border-radius: 21px;
}

.cb-customer {
  padding: 20px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--cx-accent) 9%, transparent), transparent 12rem),
    var(--cx-surface-soft);
  border: 1px solid var(--cx-border);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cb-customer:hover {
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-md);
  transform: translateY(-3px);
}

.cb-customer__head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
}

.cb-customer__head > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--cx-muted);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 19px;
}

.cb-customer__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 15px 16px;
  margin-block: 17px 13px;
  gap: 12px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 14px;
}

.cb-customer__contact span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--cx-muted);
}

.cb-customer__contact i {
  color: var(--cx-primary);
  font-size: 17px;
}

.cb-customer__contact b {
  min-width: 0;
  overflow: hidden;
  color: var(--cx-text);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.cb-customer__status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cb-customer__signal {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  margin-block: 14px;
  gap: 9px;
}

.cb-customer__signal > div {
  display: grid;
  padding: 10px 12px;
  gap: 1px;
  background: color-mix(in srgb, var(--cx-surface) 80%, transparent);
  border-radius: 11px;
}

.cb-customer__signal small {
  color: var(--cx-subtle);
  font-size: 10.5px;
  font-weight: 700;
}

.cb-customer__signal strong {
  font-size: 12.5px;
  font-weight: 850;
}

.cb-customer__signal strong i {
  color: var(--cx-accent);
}

.cb-customer footer {
  padding-top: 14px;
  border-top: 1px solid var(--cx-border);
}

.cb-empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 314px;
  padding: 29px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 9px, color-mix(in srgb, var(--cx-primary-soft) 26%, transparent) 9px 10px),
    color-mix(in srgb, var(--cx-surface-soft) 85%, transparent);
  border: 1px dashed var(--cx-border-strong);
}

.cb-empty-card > span {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--cx-primary);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 17px;
  font-size: 25px;
}

.cb-empty-card h3 {
  margin-block: 3px;
  font-size: 17px;
  font-weight: 880;
}

.cb-empty-card p {
  max-width: 340px;
  margin-bottom: 18px;
  color: var(--cx-muted);
  font-size: 12.5px;
}

.cb-footnote {
  display: flex;
  align-items: center;
  padding: 13px 17px;
  margin-top: 14px;
  gap: 10px;
  color: var(--cx-muted);
  font-size: 11.5px;
}

.cb-footnote i {
  color: var(--cx-success);
  font-size: 20px;
}

.cb-footnote strong {
  color: var(--cx-text);
}

/* Concept C — Operations Ledger Premium */
.cx-concept-c .cx-main {
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), color-mix(in srgb, var(--cx-border) 45%, transparent) calc(100% - 1px)),
    var(--cx-canvas);
  background-size: 118px 100%;
}

.cc-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 150px;
  align-items: center;
  min-height: 218px;
  padding: 34px clamp(26px, 3.5vw, 46px);
  gap: clamp(22px, 3vw, 42px);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 9px 28px 28px 9px;
  box-shadow: var(--cx-shadow-md);
}

.cc-hero__edition {
  display: grid;
  align-content: center;
  min-height: 126px;
  padding-inline-end: 25px;
  border-inline-end: 1px solid var(--cx-border);
}

.cc-hero__edition > span {
  color: var(--cx-primary-strong);
  font-size: 52px;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1;
}

html[data-theme="dark"] .cc-hero__edition > span {
  color: var(--cx-primary);
}

.cc-hero__edition small {
  max-width: 125px;
  margin-top: 9px;
  color: var(--cx-subtle);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.55;
}

.cc-hero h1 {
  max-width: 680px;
  margin-block: 9px 7px;
  font-size: clamp(29px, 2.8vw, 42px);
  font-weight: 930;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.cc-hero__copy > p {
  max-width: 670px;
  color: var(--cx-muted);
  font-size: 14px;
}

.cc-hero__stamp {
  display: grid;
  justify-items: center;
  padding: 16px 12px;
  color: var(--cx-primary-strong);
  background: var(--cx-primary-soft);
  border: 1px solid color-mix(in srgb, var(--cx-primary) 24%, var(--cx-border));
  border-radius: 50%;
  aspect-ratio: 1;
}

html[data-theme="dark"] .cc-hero__stamp {
  color: var(--cx-text);
}

.cc-hero__stamp span {
  align-self: end;
  font-size: 9px;
  font-weight: 800;
}

.cc-hero__stamp strong {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.cc-hero__stamp small {
  color: var(--cx-subtle);
  font-size: 8px;
  font-weight: 750;
}

.cc-filter-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 20px;
  overflow: hidden;
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 17px;
  box-shadow: var(--cx-shadow-sm);
}

.cc-filter-ribbon button {
  position: relative;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 11px 16px;
  column-gap: 9px;
  text-align: start;
  color: var(--cx-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cc-filter-ribbon button + button {
  border-inline-start: 1px solid var(--cx-border);
}

.cc-filter-ribbon button::after {
  position: absolute;
  inset-inline: 18px;
  inset-block-end: 0;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 5px 5px 0 0;
}

.cc-filter-ribbon button:hover,
.cc-filter-ribbon button.is-active {
  color: var(--cx-primary-strong);
  background: color-mix(in srgb, var(--cx-primary-soft) 50%, transparent);
}

html[data-theme="dark"] .cc-filter-ribbon button:hover,
html[data-theme="dark"] .cc-filter-ribbon button.is-active {
  color: var(--cx-text);
}

.cc-filter-ribbon button.is-active::after {
  background: var(--cx-accent);
}

.cc-filter-ribbon button > span {
  grid-row: 1 / span 2;
  color: var(--cx-accent);
  font-size: 12px;
  font-weight: 900;
}

.cc-filter-ribbon strong {
  font-size: 12px;
  font-weight: 850;
}

.cc-filter-ribbon small {
  color: var(--cx-subtle);
  font-size: 10.5px;
}

.cc-ledger {
  padding: 24px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 23px 8px 23px 8px;
  box-shadow: var(--cx-shadow-sm);
}

.cc-ledger__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  gap: 20px;
  border-bottom: 1px solid var(--cx-border);
}

.cc-ledger-entry {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-width: 0;
  padding-block: 21px;
  gap: 16px;
}

.cc-ledger-entry__sequence {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  min-height: 218px;
  color: var(--cx-primary-strong);
}

html[data-theme="dark"] .cc-ledger-entry__sequence {
  color: var(--cx-primary);
}

.cc-ledger-entry__sequence span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--cx-primary-soft);
  border: 1px solid var(--cx-border);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.cc-ledger-entry__sequence i {
  width: 1px;
  margin-block: 8px;
  background: linear-gradient(var(--cx-border-strong), var(--cx-accent));
}

.cc-ledger-entry__sequence small {
  font-size: 9.5px;
  font-weight: 850;
}

.cc-ledger-entry__body {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--cx-primary-soft) 32%, var(--cx-surface)) 0%, var(--cx-surface) 72%);
  border: 1px solid var(--cx-border);
  border-radius: 18px 5px 18px 5px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cc-ledger-entry__body:hover {
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-md);
  transform: translateX(-2px);
}

.cc-ledger-entry__body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cc-ledger-entry__person {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.cc-ledger-entry__trail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 16px;
  margin-block: 17px;
  border-block: 1px solid var(--cx-border);
}

.cc-ledger-entry__trail > div {
  display: grid;
  min-width: 0;
  padding-inline: 17px;
  gap: 2px;
}

.cc-ledger-entry__trail > div + div {
  border-inline-start: 1px solid var(--cx-border);
}

.cc-ledger-entry__trail span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cx-subtle);
  font-size: 10.5px;
  font-weight: 750;
}

.cc-ledger-entry__trail span i {
  color: var(--cx-accent);
  font-size: 15px;
}

.cc-ledger-entry__trail strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.cc-ledger-entry__trail small {
  min-width: 0;
  overflow: hidden;
  color: var(--cx-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
}

.cc-ledger-entry footer {
  justify-content: space-between;
}

.cc-ledger-entry__note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 750;
}

.cc-ledger-entry__note i {
  color: var(--cx-success);
  font-size: 17px;
}

.cc-ledger-empty {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px;
  gap: 16px;
  background: var(--cx-surface-soft);
  border: 1px dashed var(--cx-border-strong);
  border-radius: 15px 5px 15px 5px;
}

.cc-ledger-empty__sequence {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cx-subtle);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.cc-ledger-empty h3 {
  font-size: 15px;
  font-weight: 850;
}

.cc-ledger-empty p {
  color: var(--cx-muted);
  font-size: 11.5px;
}

@media (max-width: 1180px) {
  :root {
    --cx-sidebar-size: 262px;
  }

  .ca-command {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .cb-card-grid {
    grid-template-columns: 1fr;
  }

  .cb-empty-card {
    min-height: 220px;
  }

  .cc-hero {
    grid-template-columns: 145px minmax(0, 1fr) 125px;
  }
}

@media (max-width: 1020px) {
  .ca-hero {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .ca-command {
    grid-template-columns: 1fr;
  }

  .ca-command__rail {
    position: static;
  }

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

  .ca-filter-runway::before,
  .ca-filter-runway button::before {
    display: none;
  }

  .ca-filter-runway button {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cc-filter-ribbon button:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid var(--cx-border);
  }

  .cc-filter-ribbon button:nth-child(4) {
    border-top: 1px solid var(--cx-border);
  }
}

@media (max-width: 800px) {
  .cx-shell {
    display: block;
  }

  .cx-sidebar {
    position: fixed;
    inset-block: 0;
    right: 0;
    left: auto;
    width: min(86vw, 294px);
    min-height: 100dvh;
    transform: translateX(110%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cx-shell.is-sidebar-open .cx-sidebar {
    transform: translateX(0);
  }

  .cx-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(8, 18, 37, 0.42);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .cx-shell.is-sidebar-open .cx-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .cx-workspace {
    width: 100%;
  }

  .cx-mobile-menu {
    display: inline-grid;
  }

  .cx-topbar {
    min-height: 66px;
    padding: 9px 13px;
  }

  .cx-topbar__title {
    margin-inline-end: 0;
  }

  .cx-topbar__title small,
  .cx-concept-label,
  .cx-admin > span {
    display: none;
  }

  .cx-topbar__actions {
    margin-inline-start: auto;
  }

  .cx-admin > b {
    width: 39px;
    height: 39px;
  }

  .cx-main {
    padding: 15px;
  }

  .ca-hero,
  .cc-hero {
    grid-template-columns: 1fr;
  }

  .ca-hero {
    min-height: 0;
    padding: 25px 21px;
    border-radius: 22px;
  }

  .ca-hero h1,
  .cb-hero h1,
  .cc-hero h1 {
    font-size: 27px;
  }

  .ca-hero__copy > p,
  .cb-hero p,
  .cc-hero__copy > p {
    font-size: 13px;
  }

  .ca-pulse {
    padding: 17px;
  }

  .ca-pulse__value strong {
    font-size: 38px;
  }

  .ca-section-head,
  .cb-resource-head,
  .cc-ledger__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ca-section-head .cx-toolbar,
  .cb-resource-head .cx-toolbar,
  .cc-ledger__head .cx-toolbar {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ca-command__main,
  .cb-resource-section,
  .cc-ledger {
    padding: 17px;
    border-radius: 19px;
  }

  .ca-customer-card {
    padding: 17px;
  }

  .ca-section-head .cx-toolbar,
  .cc-ledger__head .cx-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .ca-section-head .cx-toolbar .cx-button,
  .cc-ledger__head .cx-toolbar .cx-button {
    width: 100%;
  }

  .ca-section-head .cx-toolbar .cx-button--primary,
  .cc-ledger__head .cx-toolbar .cx-button--primary {
    grid-column: 1 / -1;
  }

  .ca-customer-card__identity {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ca-customer-card__identity > .cx-status {
    grid-column: 1 / -1;
  }

  .ca-customer-card__intel,
  .cc-ledger-entry__trail {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ca-customer-card__intel > div,
  .cc-ledger-entry__trail > div {
    padding: 10px 2px;
  }

  .ca-customer-card__intel > div + div,
  .cc-ledger-entry__trail > div + div {
    border-inline-start: 0;
    border-top: 1px solid var(--cx-border);
  }

  .ca-customer-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ca-customer-card__actions > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ca-customer-card__actions button.is-danger {
    width: 100%;
  }

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

  .cx-empty-preview {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 16px;
  }

  .cx-empty-preview .cx-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cb-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 25px 21px 38px;
    border-radius: 22px;
  }

  .cb-filter-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 22px);
  }

  .cb-resource-head .cx-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-search {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .cb-customer__contact {
    grid-template-columns: 1fr;
  }

  .cb-customer__signal {
    grid-template-columns: 1fr;
  }

  .cb-customer footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-customer footer button:last-child {
    grid-column: 1 / -1;
  }

  .cc-hero {
    min-height: 0;
    padding: 25px 21px;
    border-radius: 20px 8px 20px 8px;
  }

  .cc-hero__edition {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 0;
    padding: 0 0 13px;
    column-gap: 12px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--cx-border);
  }

  .cc-hero__edition > span {
    font-size: 35px;
  }

  .cc-hero__edition small {
    margin: 0;
  }

  .cc-hero__stamp {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 55px;
    padding: 10px 14px;
    gap: 9px;
    border-radius: 14px;
    aspect-ratio: auto;
  }

  .cc-hero__stamp strong {
    font-size: 24px;
  }

  .cc-filter-ribbon {
    grid-template-columns: 1fr;
  }

  .cc-filter-ribbon button + button {
    border-inline-start: 0;
    border-top: 1px solid var(--cx-border);
  }

  .cc-ledger-entry {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 9px;
  }

  .cc-ledger-entry__sequence span,
  .cc-ledger-empty__sequence {
    width: 36px;
    height: 36px;
  }

  .cc-ledger-entry__body {
    padding: 15px;
  }

  .cc-ledger-entry__body > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cc-ledger-entry__person {
    align-items: flex-start;
  }

  .cc-ledger-entry__person .cx-avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .cc-ledger-entry footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cc-ledger-entry footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-ledger-entry footer button:last-child {
    grid-column: 1 / -1;
  }

  .cc-ledger-empty {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .cc-ledger-empty .cx-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .cx-main {
    padding-inline: 11px;
  }

  .cx-toolbar .cx-button {
    min-width: max-content;
  }

  .ca-hero h1,
  .cb-hero h1,
  .cc-hero h1 {
    font-size: 24px;
  }

  .ca-filter-runway,
  .cb-filter-dock {
    grid-template-columns: 1fr;
  }

  .cb-filter-dock {
    width: calc(100% - 14px);
  }

  .cb-customer__head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cb-customer__head > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cc-ledger-entry {
    grid-template-columns: 1fr;
  }

  .cc-ledger-entry__sequence {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
