@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap");

:root {
  color-scheme: light;
  /* CedeWise Afro-centric palette extracted from KKT/Logo/Colours.png. */
  --cw-deep-forest-green: #0f4a37;
  --cw-rich-green: #1e5a43;
  --cw-charcoal: #1f232b;
  --cw-rich-gold: #c89a2b;
  --cw-warm-gold: #d9b14b;
  --cw-white: #ffffff;
  --cw-brand-red: var(--cw-rich-gold);
  --cw-coal-black: var(--cw-charcoal);
  --cw-cool-grey: #f4f2ed;
  --cw-snow-white: var(--cw-white);
  --cw-dull-beige: #efe5cf;
  --cw-burnt-orange: var(--cw-warm-gold);
  --cw-red-20: #f7edd4;
  --cw-black-80: #343943;
  --cw-black-60: #646a73;
  --cw-black-20: #d3d6d4;
  --cw-bg: #f8f7f3;
  --cw-bg-elevated: #ffffff;
  --cw-bg-muted: var(--cw-cool-grey);
  --cw-bg-auth: #ffffff;
  --cw-ink: var(--cw-coal-black);
  --cw-ink-soft: var(--cw-black-80);
  --cw-muted: #59645e;
  --cw-border: #ded7c8;
  --cw-border-strong: #bdb294;
  --cw-panel: #ffffff;
  --cw-panel-2: var(--cw-cool-grey);
  --cw-panel-warm: var(--cw-dull-beige);
  --cw-panel-glass: rgba(255, 255, 255, 0.94);
  --cw-panel-glass-border: rgba(222, 215, 200, 0.95);
  --cw-contrast: var(--cw-deep-forest-green);
  --cw-contrast-deep: #08251c;
  --cw-contrast-soft: rgba(255, 255, 255, 0.74);
  --cw-contrast-muted: rgba(255, 255, 255, 0.86);
  --cw-contrast-border: rgba(255, 255, 255, 0.18);
  --cw-contrast-active: var(--cw-rich-green);
  --cw-on-contrast: var(--cw-snow-white);
  --cw-primary: var(--cw-deep-forest-green);
  --cw-primary-hover: var(--cw-rich-green);
  --cw-accent: var(--cw-rich-gold);
  --cw-accent-dark: #9f781f;
  --cw-accent-wash: rgba(200, 154, 43, 0.12);
  --cw-accent-panel-wash: rgba(200, 154, 43, 0.24);
  --cw-accent-soft: rgba(200, 154, 43, 0.14);
  --cw-accent-border: rgba(200, 154, 43, 0.48);
  --cw-success: var(--cw-rich-green);
  --cw-success-wash: rgba(30, 90, 67, 0.08);
  --cw-success-bg: #e7f1ec;
  --cw-success-border: rgba(30, 90, 67, 0.24);
  --cw-warning: var(--cw-warm-gold);
  --cw-warning-bg: #fff6dc;
  --cw-danger: #9f3a26;
  --cw-danger-bg: #fae6dc;
  --cw-danger-bg-subtle: #fff7f2;
  --cw-danger-border: rgba(159, 58, 38, 0.28);
  --cw-focus-ring: rgba(200, 154, 43, 0.28);
  --cw-font-heading: "Proxima Nova", "Inter", Helvetica, Arial, sans-serif;
  --cw-font-body: "Inter", Helvetica, Arial, sans-serif;
  --cw-radius-sm: 6px;
  --cw-radius-md: 8px;
  --cw-content-max: 1180px;
  --cw-gutter: clamp(22px, 3vw, 34px);
  --cw-shadow: 0 18px 45px rgba(31, 35, 43, 0.12);
  --cw-shadow-floating: 0 14px 34px rgba(31, 35, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cw-bg);
  font-size: 16px;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--cw-ink);
  background: var(--cw-bg);
  font-family: var(--cw-font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
strong {
  font-family: var(--cw-font-heading);
  letter-spacing: 0;
}

a {
  color: var(--cw-accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--cw-accent);
  color: var(--cw-on-contrast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cw-focus-ring);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.cw-app-body {
  background:
    radial-gradient(circle at top right, rgba(30, 90, 67, 0.10), transparent 28rem),
    linear-gradient(180deg, var(--cw-bg-elevated) 0, var(--cw-bg) 22rem);
}

.cw-auth-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 9% 12%, rgba(200, 154, 43, 0.18), transparent 26rem),
    radial-gradient(circle at 92% 80%, rgba(15, 74, 55, 0.10), transparent 32rem),
    linear-gradient(135deg, var(--cw-bg-auth) 0, var(--cw-bg) 100%);
  background-attachment: fixed;
}

.cw-auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1080px, 100%);
  min-width: 0;
  min-height: 660px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
  box-shadow: var(--cw-shadow);
}

.cw-auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 42px;
  border-right: 1px solid rgba(15, 74, 55, 0.14);
  color: var(--cw-ink);
  background:
    radial-gradient(circle at 10% 0, rgba(217, 177, 75, 0.24), transparent 22rem),
    radial-gradient(circle at 100% 100%, rgba(15, 74, 55, 0.14), transparent 25rem),
    linear-gradient(150deg, #f8f5ec 0%, #eef4ee 58%, #e6efe9 100%);
}

.cw-auth-aside h1 {
  max-width: 420px;
  margin: 56px 0 16px;
  font-size: 2.35rem;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.cw-auth-aside p {
  max-width: 420px;
  margin: 0;
  color: var(--cw-muted);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.cw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.cw-brand strong,
.cw-brand small {
  display: block;
}

.cw-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cw-brand small {
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: var(--cw-accent);
  box-shadow: none;
  font-size: 0;
  overflow: visible;
}

.cw-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cw-brand-wordmark {
  display: block;
  width: min(148px, 100%);
  height: auto;
}

.cw-auth-logo-lockup {
  width: min(420px, 100%);
  min-width: 0;
  background: transparent;
}

.cw-auth-logo {
  display: block;
  width: 100%;
  height: auto;
}

.cw-auth-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cw-muted);
}

.cw-auth-steps li {
  padding: 12px 0;
  border-top: 1px solid rgba(15, 74, 55, 0.16);
}

.cw-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 52px;
}

.cw-auth-footer {
  display: grid;
  gap: 4px;
  width: min(1080px, 100%);
  min-width: 0;
  text-align: center;
}

.cw-auth-footer span,
.cw-auth-footer small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cw-auth-footer span {
  color: var(--cw-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-auth-footer small {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.cw-auth-header {
  margin-bottom: 28px;
}

.cw-auth-header p,
.cw-kicker,
.cw-topbar-label {
  margin: 0 0 8px;
  color: var(--cw-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-auth-header h2,
.cw-empty-dashboard h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.cw-auth-header span {
  display: block;
  margin-top: 10px;
  color: var(--cw-muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.cw-form {
  display: grid;
  gap: 18px;
}

.cw-field {
  display: grid;
  gap: 8px;
}

.cw-field label {
  color: var(--cw-ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.cw-field input:not([type="checkbox"]):not([type="radio"]),
.cw-field select,
.cw-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink);
  outline: none;
}

.cw-field textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.cw-field input:not([type="checkbox"]):not([type="radio"]):focus,
.cw-field select:focus,
.cw-field textarea:focus {
  border-color: var(--cw-accent);
  box-shadow: 0 0 0 3px var(--cw-focus-ring);
}

.cw-field span {
  color: var(--cw-danger);
  font-size: 0.78rem;
}

.cw-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 72px);
}

.cw-password-row input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cw-password-row button {
  border: 1px solid var(--cw-border);
  border-left: 0;
  border-radius: 0 var(--cw-radius-sm) var(--cw-radius-sm) 0;
  background: var(--cw-panel-2);
  color: var(--cw-ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.cw-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.cw-auth-actions a {
  color: var(--cw-primary);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.cw-auth-actions a:hover,
.cw-auth-actions a:focus-visible {
  text-decoration: underline;
}

.cw-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cw-muted);
  font-size: 0.9rem;
}

.cw-primary-button,
.cw-resend button,
.cw-link-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--cw-radius-sm);
  font-weight: 800;
  cursor: pointer;
}

.cw-primary-button {
  width: 100%;
  background: var(--cw-primary);
  color: var(--cw-on-contrast);
  transition: background 180ms ease, transform 180ms ease;
}

.cw-primary-button:hover,
.cw-primary-button:focus-visible {
  background: var(--cw-primary-hover);
  transform: translateY(-1px);
}

.cw-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  line-height: 1.45;
}

.cw-alert--danger {
  border-color: var(--cw-danger-border);
  background: var(--cw-danger-bg);
  color: var(--cw-danger);
}

.cw-alert--info,
.cw-alert--dev {
  border-color: var(--cw-border-strong);
  background: var(--cw-panel-warm);
  color: var(--cw-ink-soft);
}

.cw-otp-state {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel-warm);
  color: var(--cw-ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.cw-resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--cw-muted);
  font-size: 0.88rem;
}

.cw-resend button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--cw-border);
  background: var(--cw-panel);
  color: var(--cw-ink);
}

.cw-resend p {
  flex-basis: 100%;
  margin: 0;
  color: var(--cw-muted);
}

.cw-dev-access {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cw-auth-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: calc(100vw - 32px);
}

.cw-auth-floating .cw-dev-access {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
}

.cw-auth-floating .cw-dev-access__toggle {
  align-items: center;
  min-height: 64px;
}

.cw-quantum-status {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cw-quantum-status__toggle,
.cw-quantum-status__panel {
  border: 1px solid var(--cw-panel-glass-border);
  background: var(--cw-panel-glass);
  color: var(--cw-ink);
  box-shadow: var(--cw-shadow-floating);
  backdrop-filter: blur(14px);
}

.cw-quantum-status__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  width: 230px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: var(--cw-radius-md);
  text-align: left;
}

.cw-quantum-status__toggle span,
.cw-quantum-status__toggle strong,
.cw-quantum-status__toggle small {
  display: block;
  min-width: 0;
}

.cw-quantum-status__toggle strong,
.cw-quantum-status__toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-quantum-status__toggle small {
  margin-top: 3px;
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cw-quantum-status__metric {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-contrast);
  color: var(--cw-on-contrast);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-quantum-status__toggle.is-ready .cw-quantum-status__metric {
  background: var(--cw-success-bg);
  color: var(--cw-success);
}

.cw-quantum-status__toggle.is-failed .cw-quantum-status__metric {
  background: var(--cw-danger-bg);
  color: var(--cw-danger);
}

.cw-quantum-status__toggle.is-ready small {
  color: var(--cw-success);
}

.cw-quantum-status__toggle.is-failed small {
  color: var(--cw-danger);
}

.cw-quantum-status__panel {
  display: none;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border-radius: var(--cw-radius-md);
}

.cw-quantum-status__panel.is-open {
  display: grid;
  gap: 14px;
}

.cw-quantum-status__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cw-quantum-status__header p {
  margin: 0 0 4px;
  color: var(--cw-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-quantum-status__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cw-quantum-status__close {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-quantum-status__status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--cw-danger-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-danger-bg-subtle);
}

.cw-quantum-status__status span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cw-contrast);
  color: var(--cw-on-contrast);
  font-size: 0.75rem;
  font-weight: 800;
}

.cw-quantum-status__status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-quantum-status__status em {
  color: var(--cw-danger);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.cw-quantum-status__status.is-ready {
  border-color: var(--cw-success-border);
  background: var(--cw-success-bg);
}

.cw-quantum-status__status.is-ready em {
  color: var(--cw-success);
}

.cw-quantum-status__dependencies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cw-quantum-status__dependencies span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-quantum-status__dependencies strong {
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-quantum-status__dependencies em {
  overflow: hidden;
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-dev-access__toggle,
.cw-dev-access__panel {
  border: 1px solid var(--cw-panel-glass-border);
  background: var(--cw-panel-glass);
  color: var(--cw-ink);
  box-shadow: var(--cw-shadow-floating);
  backdrop-filter: blur(14px);
}

.cw-dev-access__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  width: 230px;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: var(--cw-radius-md);
  text-align: left;
}

.cw-dev-access__toggle strong,
.cw-dev-access__toggle small {
  display: block;
}

.cw-dev-access__toggle small {
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.cw-dev-access__metric {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-contrast);
  color: var(--cw-on-contrast);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-dev-access__failure {
  grid-column: 1 / -1;
  color: var(--cw-danger);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.cw-dev-access__panel {
  display: none;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: var(--cw-radius-md);
}

.cw-dev-access__panel.is-open {
  display: grid;
  gap: 14px;
}

.cw-dev-access__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cw-dev-access__header p {
  margin: 0 0 4px;
  color: var(--cw-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-dev-access__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cw-dev-access__close {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-dev-access__status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--cw-danger-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-danger-bg-subtle);
}

.cw-dev-access__status span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cw-contrast);
  color: var(--cw-on-contrast);
  font-size: 0.75rem;
  font-weight: 800;
}

.cw-dev-access__status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-dev-access__status em {
  color: var(--cw-danger);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.cw-dev-access__status.is-ready {
  border-color: var(--cw-success-border);
  background: var(--cw-success-bg);
}

.cw-dev-access__status.is-ready em,
.cw-dev-access__toggle.is-ready .cw-dev-access__failure {
  color: var(--cw-success);
}

.cw-dev-access__dependencies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cw-dev-access__dependencies span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-dev-access__dependencies strong {
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-dev-access__dependencies em {
  overflow: hidden;
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-dev-access__accounts {
  display: grid;
  gap: 8px;
}

.cw-dev-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: inherit;
  text-align: left;
}

.cw-dev-account:hover,
.cw-dev-account:focus-visible {
  border-color: var(--cw-accent-border);
  outline: 3px solid var(--cw-focus-ring);
  outline-offset: 2px;
}

.cw-dev-account strong,
.cw-dev-account small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-dev-account small {
  margin-top: 3px;
  color: var(--cw-muted);
  font-size: 0.75rem;
}

.cw-dev-account em {
  align-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cw-panel-2);
  color: var(--cw-ink-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.cw-dev-access__empty {
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.86rem;
}

.cw-app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

.cw-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 9px 12px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--cw-shadow-floating);
}

.cw-skip-link:focus {
  transform: translateY(0);
}

.cw-sidebar {
  padding: 26px 18px;
  border-right: 1px solid var(--cw-border);
  background:
    radial-gradient(circle at 0 0, rgba(217, 177, 75, 0.16), transparent 20rem),
    linear-gradient(180deg, #f7f3e9 0%, #edf4ee 100%);
  color: var(--cw-ink);
}

.cw-brand--app {
  width: 100%;
  margin-bottom: 34px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cw-ink);
  box-shadow: none;
}

.cw-brand--app:hover,
.cw-brand--app:focus-visible {
  color: var(--cw-ink);
  text-decoration: none;
}

.cw-brand--app small {
  color: var(--cw-muted);
  opacity: 1;
}

.cw-nav {
  display: grid;
  gap: 6px;
}

.cw-nav-heading {
  display: block;
  margin: 12px 0 2px;
  padding: 0 12px;
  color: var(--cw-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--cw-radius-sm);
  color: var(--cw-ink-soft);
  text-decoration: none;
  font-weight: 700;
}

.cw-nav a.is-active {
  background: var(--cw-contrast-active);
  color: var(--cw-on-contrast);
}

.cw-nav-module {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.cw-nav-module span {
  padding: 3px 6px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-accent-wash);
  color: var(--cw-accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.cw-nav-module strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-nav a[aria-disabled="true"] {
  cursor: default;
  opacity: 0.52;
}

.cw-main {
  min-width: 0;
  background: transparent;
}

.cw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 var(--cw-gutter);
  border-bottom: 1px solid var(--cw-border);
  background: var(--cw-panel-glass);
  backdrop-filter: blur(12px);
}

.cw-topbar strong,
.cw-topbar-label {
  display: block;
}

.cw-topbar > div,
.cw-topbar strong {
  min-width: 0;
}

.cw-topbar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-link-button {
  padding: 0 14px;
  border: 1px solid var(--cw-border-strong);
  background: transparent;
  color: var(--cw-ink);
}

.cw-commandbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(150px, 0.42fr) minmax(180px, 0.5fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px var(--cw-gutter);
  border-bottom: 1px solid var(--cw-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.cw-commandbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.cw-commandbar span,
.cw-commandbar label > span {
  color: var(--cw-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-commandbar input,
.cw-commandbar select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink);
  outline: none;
}

.cw-commandbar input:focus,
.cw-commandbar select:focus {
  border-color: var(--cw-accent);
  box-shadow: 0 0 0 3px var(--cw-focus-ring);
}

.cw-commandbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.cw-commandbar__actions a,
.cw-inline-actions button,
.cw-operations-details button,
.cw-quote-details button,
.cw-module-process-actions button,
.cw-module-card__link,
.cw-operations-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cw-commandbar__actions a:hover,
.cw-commandbar__actions a:focus-visible,
.cw-inline-actions button:hover,
.cw-inline-actions button:focus-visible,
.cw-operations-details button:hover,
.cw-operations-details button:focus-visible,
.cw-quote-details button:hover,
.cw-quote-details button:focus-visible,
.cw-module-process-actions button:hover,
.cw-module-process-actions button:focus-visible,
.cw-module-card__link:hover,
.cw-module-card__link:focus-visible,
.cw-operations-action-link:hover,
.cw-operations-action-link:focus-visible {
  border-color: var(--cw-accent);
  background: var(--cw-accent-soft);
  color: var(--cw-primary);
}

.cw-commandbar__result {
  min-width: 62px;
  align-self: center;
  justify-self: end;
  text-align: right;
}

.cw-page-filter-hidden {
  display: none !important;
}

.cw-search-empty {
  padding: 12px;
  border: 1px dashed var(--cw-border-strong);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
  color: var(--cw-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.cw-density-compact .cw-content {
  padding-block: 18px;
}

.cw-density-compact .cw-workbench,
.cw-density-compact .cw-admin-settings,
.cw-density-compact .cw-profile-workspace,
.cw-density-compact .cw-module-index,
.cw-density-compact .cw-module-workspace {
  gap: 14px;
}

.cw-density-compact .cw-workbench-panel,
.cw-density-compact .cw-admin-panel,
.cw-density-compact .cw-profile-panel,
.cw-density-compact .cw-module-card {
  padding: 12px;
}

.cw-density-compact .cw-field input:not([type="checkbox"]):not([type="radio"]),
.cw-density-compact .cw-field select,
.cw-density-compact .cw-field textarea {
  min-height: 40px;
}

.cw-density-compact .cw-workbench-table th,
.cw-density-compact .cw-workbench-table td {
  padding: 8px 10px;
}

.cw-content {
  width: min(100%, var(--cw-content-max));
  margin-inline: auto;
  padding: var(--cw-gutter);
}

.cw-empty-dashboard {
  display: grid;
  gap: 24px;
}

.cw-empty-dashboard > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: end;
}

.cw-empty-dashboard > div:first-child .cw-kicker,
.cw-empty-dashboard > div:first-child h1 {
  grid-column: 1;
}

.cw-empty-dashboard > div:first-child span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding: 7px 12px;
  border: 1px solid var(--cw-border-strong);
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cw-dashboard-access-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-dashboard-access-profile div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cw-dashboard-access-profile strong {
  color: var(--cw-ink);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.cw-dashboard-access-profile span {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-dashboard-access-profile a {
  align-self: center;
  justify-self: end;
  color: var(--cw-primary);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.cw-dashboard-access-profile a:hover,
.cw-dashboard-access-profile a:focus-visible {
  text-decoration: underline;
}

.cw-empty-panel {
  padding: 30px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel-warm);
}

.cw-empty-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.cw-empty-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--cw-muted);
  line-height: 1.6;
}

.cw-platform-alignment {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-spec-alignment {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-spec-alignment__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.cw-spec-alignment__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cw-spec-alignment__header > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cw-contrast);
  color: var(--cw-on-contrast);
  font-size: 0.86rem;
  font-weight: 800;
}

.cw-spec-metrics,
.cw-spec-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.cw-spec-metrics div,
.cw-spec-category {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-spec-metrics strong,
.cw-spec-category span,
.cw-spec-category em {
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-spec-metrics span,
.cw-spec-category strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-spec-category em {
  color: var(--cw-accent);
  font-style: normal;
}

.cw-spreadsheet-workflow {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--cw-border);
}

.cw-spreadsheet-workflow__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.cw-spreadsheet-workflow__header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.cw-spreadsheet-workflow__header > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--cw-border-strong);
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-spreadsheet-metrics,
.cw-spreadsheet-layout {
  display: grid;
  gap: 12px;
}

.cw-spreadsheet-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-spreadsheet-metrics div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-spreadsheet-metrics strong,
.cw-spreadsheet-row span,
.cw-spreadsheet-row small {
  color: var(--cw-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-spreadsheet-metrics span {
  color: var(--cw-ink-soft);
  font-weight: 800;
}

.cw-spreadsheet-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.cw-spreadsheet-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.cw-spreadsheet-list h4 {
  margin: 0;
  color: var(--cw-ink-soft);
  font-size: 0.95rem;
}

.cw-spreadsheet-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-spreadsheet-row span {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--cw-panel-warm);
}

.cw-spreadsheet-row strong,
.cw-spreadsheet-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-spreadsheet-row strong {
  color: var(--cw-ink-soft);
}

.cw-spreadsheet-row p {
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cw-spreadsheet-row--correction {
  border-color: var(--cw-danger-border);
  background: var(--cw-danger-bg-subtle);
}

.cw-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 190px);
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel-warm);
}

.cw-import-form .cw-primary-button {
  width: 100%;
}

.cw-import-preview {
  display: grid;
  gap: 20px;
}

.cw-import-preview__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.cw-import-preview__header h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.cw-import-preview__header span {
  display: block;
  margin-top: 8px;
  color: var(--cw-muted);
  font-weight: 700;
}

.cw-import-preview__header .cw-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cw-import-warning-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.cw-import-warning-list li {
  margin-top: 4px;
}

.cw-import-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-import-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.cw-import-panel__header h2 {
  margin: 0;
  font-size: 1.16rem;
}

.cw-import-panel__header span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.cw-import-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.cw-import-definition-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cw-import-definition-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-import-definition-grid dt {
  color: var(--cw-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-import-definition-grid dd {
  min-width: 0;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--cw-ink-soft);
  font-weight: 800;
}

.cw-import-location-list {
  display: grid;
  gap: 14px;
}

.cw-import-location {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-import-location header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cw-import-location header p {
  margin: 0 0 5px;
  color: var(--cw-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-import-location header h3 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cw-import-location header > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-size: 0.76rem;
  font-weight: 800;
}

.cw-import-location__totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cw-import-location__totals span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
  color: var(--cw-ink-soft);
  font-weight: 800;
}

.cw-import-location__totals strong {
  color: var(--cw-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.cw-import-table-wrap {
  overflow-x: auto;
}

.cw-import-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.cw-import-table th,
.cw-import-table td {
  padding: 10px;
  border-bottom: 1px solid var(--cw-border);
  text-align: left;
  vertical-align: top;
}

.cw-import-table th {
  color: var(--cw-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-import-table td {
  color: var(--cw-ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.cw-import-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cw-import-mapping-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.cw-import-mapping-list article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-import-mapping-list span,
.cw-import-mapping-list small {
  color: var(--cw-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-import-mapping-list strong {
  color: var(--cw-ink-soft);
}

.cw-import-mapping-list p {
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cw-platform-alignment__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.cw-platform-alignment__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cw-platform-alignment__header > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cw-accent);
  color: var(--cw-on-contrast);
  font-size: 0.86rem;
  font-weight: 800;
}

.cw-platform-summary,
.cw-platform-checks,
.cw-platform-boundaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cw-platform-summary div,
.cw-platform-check,
.cw-platform-boundary,
.cw-platform-manifest {
  min-width: 0;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-platform-summary div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.cw-platform-summary strong,
.cw-platform-check strong,
.cw-platform-check small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-platform-summary strong {
  color: var(--cw-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.cw-platform-summary span {
  color: var(--cw-ink-soft);
  font-weight: 800;
}

.cw-platform-manifest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.cw-platform-manifest span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cw-platform-manifest strong,
.cw-platform-boundary span {
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-platform-manifest a,
.cw-platform-manifest em {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-platform-boundaries {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-platform-checks {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

.cw-platform-check,
.cw-platform-boundary {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 172px;
  padding: 14px;
}

.cw-platform-check__status {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-red-20);
  color: var(--cw-ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.cw-platform-check small,
.cw-platform-boundary small {
  color: var(--cw-muted);
  font-size: 0.76rem;
}

.cw-platform-check p,
.cw-platform-boundary p {
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cw-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cw-dashboard-grid div,
.cw-dashboard-grid a {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
  color: inherit;
  text-decoration: none;
}

.cw-dashboard-grid span {
  color: var(--cw-muted);
  font-size: 0.88rem;
}

.cw-module-index,
.cw-module-workspace {
  display: grid;
  gap: 22px;
}

.cw-module-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.cw-module-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cw-module-header span {
  display: block;
  max-width: 850px;
  margin-top: 9px;
  color: var(--cw-muted);
  line-height: 1.55;
}

.cw-module-header > strong,
.cw-module-panel__header > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--cw-border-strong);
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.cw-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.cw-module-card,
.cw-module-panel,
.cw-module-summary > div,
.cw-module-row {
  min-width: 0;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-module-card {
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 16px;
}

.cw-module-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.cw-module-card header span,
.cw-module-row span {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.cw-module-card h2 {
  min-width: 0;
  margin: 0;
  color: var(--cw-ink-soft);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cw-module-card p,
.cw-module-row p {
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.cw-module-card__case {
  padding-top: 2px;
  border-top: 1px solid var(--cw-border);
}

.cw-module-card__readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--cw-success-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-success-bg);
}

.cw-module-card__readiness strong,
.cw-module-card__readiness span {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-success);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-module-card__metrics,
.cw-module-card__actions {
  display: grid;
  gap: 7px;
}

.cw-module-card__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-module-card__metrics span,
.cw-module-card__actions span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-module-card__metrics strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cw-ink-soft);
  font-size: 0.94rem;
}

.cw-module-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.cw-module-card dl div {
  min-width: 0;
}

.cw-module-card dt,
.cw-module-summary strong,
.cw-module-row small {
  color: var(--cw-muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-module-card dd {
  min-width: 0;
  margin: 3px 0 0;
  color: var(--cw-ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-module-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-primary);
  color: var(--cw-on-contrast);
  font-weight: 800;
  text-decoration: none;
}

.cw-module-card__link:hover,
.cw-module-card__link:focus-visible {
  background: var(--cw-primary-hover);
  color: var(--cw-on-contrast);
  text-decoration: none;
}

.cw-module-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cw-module-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.cw-module-summary a,
.cw-module-summary span {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-module-runtime-message {
  padding: 12px 14px;
  border: 1px solid var(--cw-success-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-module-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cw-module-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.cw-module-panel__header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.cw-module-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cw-module-list--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cw-module-row {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 13px;
}

.cw-module-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--cw-ink-soft);
  font-size: 0.95rem;
}

.cw-module-readiness__body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 12px;
}

.cw-module-readiness__body > div,
.cw-module-metrics article,
.cw-module-flow article,
.cw-module-actions article,
.cw-module-control-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-bg-muted);
}

.cw-module-readiness__body strong,
.cw-module-control-grid h3 {
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-module-readiness__body p,
.cw-module-flow p,
.cw-module-actions p,
.cw-module-control-grid p {
  margin: 6px 0 0;
  color: var(--cw-ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cw-module-metrics,
.cw-module-flow,
.cw-module-actions,
.cw-module-control-grid {
  display: grid;
  gap: 10px;
}

.cw-module-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-module-flow {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cw-module-actions {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cw-module-control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-module-control-grid > div {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cw-module-control-grid h3 {
  margin: 0;
}

.cw-module-metrics article,
.cw-module-flow article,
.cw-module-actions article,
.cw-module-control-grid article {
  display: grid;
  gap: 7px;
  align-content: start;
}

.cw-module-metrics span,
.cw-module-flow span,
.cw-module-actions span,
.cw-module-control-grid span {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-panel);
  color: var(--cw-accent-dark);
  font-size: 0.73rem;
  font-weight: 800;
}

.cw-module-metrics strong,
.cw-module-flow strong,
.cw-module-actions strong,
.cw-module-control-grid strong {
  min-width: 0;
  color: var(--cw-ink-soft);
  overflow-wrap: anywhere;
}

.cw-module-metrics strong {
  font-size: 1.45rem;
}

.cw-module-flow small,
.cw-module-actions small,
.cw-module-control-grid small,
.cw-module-actions code,
.cw-module-control-grid a,
.cw-module-control-grid code {
  min-width: 0;
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-module-actions form {
  margin: 4px 0 0;
}

.cw-module-actions button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-primary);
  color: var(--cw-on-contrast);
  font-size: 0.82rem;
  font-weight: 800;
}

.cw-module-actions button:hover,
.cw-module-actions button:focus-visible {
  background: var(--cw-primary-hover);
}

.cw-module-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.cw-module-process-step {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-bg-muted);
}

.cw-module-process-step header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.cw-module-process-step header span,
.cw-module-process-step header em {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-panel);
  color: var(--cw-accent-dark);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.cw-module-process-step header strong {
  min-width: 0;
  color: var(--cw-ink-soft);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.cw-module-process-step dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.cw-module-process-step dl div {
  min-width: 0;
}

.cw-module-process-step dt {
  color: var(--cw-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-module-process-step dd {
  min-width: 0;
  margin: 3px 0 0;
  color: var(--cw-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-module-process-step code {
  color: inherit;
  font-size: 0.74rem;
  white-space: normal;
}

.cw-module-process-step p,
.cw-module-process-step small {
  min-width: 0;
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cw-module-process-step small {
  font-weight: 800;
}

.cw-module-process-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.cw-module-process-actions a,
.cw-module-process-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-primary);
  color: var(--cw-on-contrast);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.cw-module-process-actions a {
  border: 1px solid var(--cw-border-strong);
  background: var(--cw-panel);
  color: var(--cw-ink-soft);
}

.cw-module-process-actions a:hover,
.cw-module-process-actions a:focus-visible,
.cw-module-process-actions button:hover,
.cw-module-process-actions button:focus-visible {
  border-color: var(--cw-accent);
  background: var(--cw-primary-hover);
  color: var(--cw-on-contrast);
}

.cw-module-process-actions form {
  margin: 0;
}

.cw-module-process-step--ready header em,
.cw-module-process-step--routed header em,
.cw-module-process-step--operational header em {
  background: var(--cw-success-bg);
  color: var(--cw-success);
}

.cw-module-process-step--waiting header em,
.cw-module-process-step--not-started header em {
  background: var(--cw-warning-bg);
  color: var(--cw-accent-dark);
}

.cw-module-card__actions strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cw-ink-soft);
  font-size: 0.78rem;
}

.cw-admin-settings {
  display: grid;
  gap: 22px;
}

.cw-admin-settings__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.cw-admin-settings__header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.cw-admin-settings__header > span,
.cw-admin-settings__actions > span {
  padding: 7px 12px;
  border: 1px solid var(--cw-border-strong);
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.cw-admin-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
}

.cw-admin-panel__header,
.cw-admin-provider__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cw-admin-panel__header h2,
.cw-admin-provider__title h3 {
  margin: 0;
  font-size: 1.2rem;
}

.cw-admin-grid,
.cw-secret-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cw-admin-provider {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--cw-border);
}

.cw-admin-provider__note {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--cw-success-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-size: 0.82rem;
  font-weight: 700;
}

.cw-admin-toggle-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.cw-account-access-list {
  display: grid;
  gap: 14px;
}

.cw-company-admin-list {
  display: grid;
  gap: 10px;
}

.cw-company-admin-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.2fr) minmax(160px, 0.8fr) minmax(130px, 0.6fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel-2);
}

.cw-company-admin-row--new {
  margin-top: 14px;
  background: var(--cw-bg-muted);
}

.cw-account-access-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel-2);
}

.cw-account-access-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.cw-account-access-item dl {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  color: var(--cw-ink-soft);
  font-size: 0.86rem;
}

.cw-account-access-item dt {
  color: var(--cw-muted);
  font-weight: 800;
}

.cw-account-access-item dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cw-account-access-item small,
.cw-muted {
  color: var(--cw-muted);
}

.cw-account-access-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

.cw-account-access-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cw-user-access {
  gap: 18px;
}

.cw-user-access__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cw-user-access__stats article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel-2);
}

.cw-user-access__stats span,
.cw-user-access-item__meta span {
  color: var(--cw-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-user-access__stats strong {
  color: var(--cw-primary);
  font-size: 1.45rem;
  line-height: 1;
}

.cw-user-access-filter__grid,
.cw-user-access-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cw-user-access-list {
  display: grid;
  gap: 14px;
}

.cw-user-access-item {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel-2);
}

.cw-user-access-item > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cw-border);
}

.cw-user-access-item h3 {
  margin: 0;
  font-size: 1rem;
}

.cw-user-access-item header span {
  overflow-wrap: anywhere;
}

.cw-user-access-item__meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.cw-user-access-item__meta strong {
  color: var(--cw-primary);
}

.cw-user-access-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-field input[readonly] {
  background: var(--cw-panel-2);
  color: var(--cw-muted);
}

.cw-field small {
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-engagement-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: calc(100vw - 32px);
}

.cw-engagement-dock__toggle,
.cw-engagement-dock__panel {
  border: 1px solid var(--cw-panel-glass-border);
  background: var(--cw-panel-glass);
  color: var(--cw-ink);
  box-shadow: var(--cw-shadow-floating);
  backdrop-filter: blur(14px);
}

.cw-engagement-dock__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 238px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--cw-radius-md);
  text-align: left;
}

.cw-engagement-dock__toggle span,
.cw-engagement-dock__toggle strong,
.cw-engagement-dock__toggle small {
  display: block;
  min-width: 0;
}

.cw-engagement-dock__toggle strong,
.cw-engagement-dock__toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-engagement-dock__toggle small {
  margin-top: 3px;
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cw-engagement-dock__toggle em,
.cw-engagement-dock__summary span,
.cw-engagement-dock__item em,
.cw-engagement-dock__operation em {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cw-panel-warm);
  color: var(--cw-ink-soft);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.cw-engagement-dock__panel {
  width: min(390px, calc(100vw - 32px));
  padding: 16px;
  border-radius: var(--cw-radius-md);
}

.cw-engagement-dock__panel:not([hidden]) {
  display: grid;
  gap: 14px;
}

.cw-engagement-dock__panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cw-engagement-dock__panel header div,
.cw-engagement-dock__panel header h2,
.cw-engagement-dock__panel header p {
  min-width: 0;
}

.cw-engagement-dock__panel header p {
  margin: 0 0 4px;
  color: var(--cw-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-engagement-dock__panel header h2 {
  margin: 0;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.cw-engagement-dock__close {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-engagement-dock__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-engagement-dock__summary p {
  min-width: 0;
  margin: 0;
  color: var(--cw-muted);
  font-size: 0.83rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cw-engagement-dock__items,
.cw-engagement-dock__operations {
  display: grid;
  gap: 8px;
}

.cw-engagement-dock__item,
.cw-engagement-dock__operation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-engagement-dock__item span,
.cw-engagement-dock__operation span {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-engagement-dock__item strong,
.cw-engagement-dock__operation strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cw-ink-soft);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-engagement-dock__item em,
.cw-engagement-dock__operation em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.cw-engagement-dock__item p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--cw-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cw-engagement-dock__register {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-primary);
  color: var(--cw-on-contrast);
  font-weight: 800;
}

.cw-engagement-dock.is-ready .cw-engagement-dock__toggle em,
.cw-engagement-dock.is-ready .cw-engagement-dock__summary span,
.cw-engagement-dock__item.is-ready em,
.cw-engagement-dock__item.is-registered em,
.cw-engagement-dock__item.is-aligned em,
.cw-engagement-dock__item.is-protected em,
.cw-engagement-dock__operation.is-ready em {
  background: var(--cw-success-bg);
  color: var(--cw-success);
}

.cw-engagement-dock.is-degraded .cw-engagement-dock__toggle em,
.cw-engagement-dock.is-degraded .cw-engagement-dock__summary span,
.cw-engagement-dock__item.is-failed em,
.cw-engagement-dock__item.is-degraded em,
.cw-engagement-dock__operation.is-failed em {
  background: var(--cw-danger-bg);
  color: var(--cw-danger);
}

.cw-engagement-dock.is-pending .cw-engagement-dock__toggle em,
.cw-engagement-dock.is-pending .cw-engagement-dock__summary span,
.cw-engagement-dock__item.is-pending em,
.cw-engagement-dock__operation.is-pending em {
  background: var(--cw-warning-bg);
  color: var(--cw-accent-dark);
}

.cw-alert--success {
  border-color: var(--cw-success-border);
  background: var(--cw-success-bg);
  color: var(--cw-success);
}

.cw-workbench {
  display: grid;
  gap: 20px;
}

.cw-workbench__header,
.cw-workbench-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cw-workbench__header h1,
.cw-workbench-panel h2 {
  margin: 0;
  color: var(--cw-ink);
  font-family: var(--cw-font-heading);
}

.cw-workbench__header h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
}

.cw-workbench__header span,
.cw-workbench-panel > header > span {
  color: var(--cw-muted);
  font-size: 0.86rem;
}

.cw-workbench__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-workbench__actions a,
.cw-inline-actions button,
.cw-quote-details summary {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.cw-inline-actions button {
  width: 100%;
}

.cw-inline-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cw-workbench__actions a:hover,
.cw-inline-actions button:hover:not(:disabled),
.cw-quote-details summary:hover {
  border-color: var(--cw-accent);
  color: var(--cw-primary);
}

.cw-workbench-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cw-workbench-kpis div,
.cw-workbench-panel {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
  box-shadow: 0 10px 26px rgba(31, 35, 43, 0.05);
}

.cw-workbench-kpis div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 14px;
  align-content: center;
}

.cw-workbench-kpis strong {
  color: var(--cw-primary);
  font-size: 1.35rem;
  line-height: 1.1;
}

.cw-workbench-kpis span {
  color: var(--cw-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-workbench-kpis small {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.cw-operations-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cw-operations-nav a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

  .cw-operations-nav a:hover,
  .cw-operations-nav a.is-active {
    border-color: var(--cw-accent);
    background: var(--cw-accent-soft);
    color: var(--cw-primary);
  }

  .cw-process-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .cw-process-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "step title"
      "step status";
    align-items: center;
    gap: 3px 10px;
    min-height: 70px;
    padding: 12px;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    background: var(--cw-panel);
    color: var(--cw-ink-soft);
    text-decoration: none;
  }

  .cw-process-step span {
    grid-area: step;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cw-bg-muted);
    color: var(--cw-primary);
    font-size: 0.78rem;
    font-weight: 900;
  }

  .cw-process-step strong {
    grid-area: title;
    min-width: 0;
    overflow: hidden;
    color: var(--cw-ink);
    font-size: 0.94rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cw-process-step small {
    grid-area: status;
    color: var(--cw-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cw-process-step:hover,
  .cw-process-step.is-active {
    border-color: var(--cw-accent);
    background: var(--cw-accent-soft);
  }

  .cw-operations-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .cw-operations-lane {
    display: grid;
    gap: 7px;
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    background: var(--cw-bg-muted);
    color: var(--cw-ink-soft);
    text-decoration: none;
  }

  .cw-operations-lane span,
  .cw-operations-lane small {
    color: var(--cw-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cw-operations-lane strong {
    color: var(--cw-ink);
    font-size: 1rem;
    line-height: 1.2;
  }

  .cw-operations-lane:hover {
    border-color: var(--cw-accent);
    background: var(--cw-accent-soft);
  }

  .cw-operations-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    background: var(--cw-panel);
    color: var(--cw-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .cw-operations-action-link:hover {
    border-color: var(--cw-accent);
    background: var(--cw-accent-soft);
  }

  .cw-operations-note {
    margin: 0;
    color: var(--cw-muted);
  font-size: 0.88rem;
}

.cw-operations-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cw-operations-card-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-operations-card-grid span,
.cw-operations-card-grid small {
  color: var(--cw-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-operations-card-grid strong {
  color: var(--cw-ink);
  font-size: 1rem;
  line-height: 1.2;
}

.cw-operations-card-grid p {
  margin: 0;
  color: var(--cw-ink-soft);
  font-size: 0.84rem;
}

.cw-operations-card-grid a {
  color: var(--cw-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.cw-operations-table {
  min-width: 1080px;
}

.cw-operations-table code {
  color: var(--cw-primary);
  font-size: 0.74rem;
  white-space: nowrap;
}

.cw-operations-details {
  position: relative;
}

.cw-operations-details summary {
  min-height: 34px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-primary);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
}

.cw-operations-details summary::-webkit-details-marker {
  display: none;
}

.cw-operations-details[open] summary {
  border-color: var(--cw-accent);
  background: var(--cw-accent-soft);
}

.cw-operations-details form {
  display: grid;
  gap: 10px;
  min-width: 230px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-operations-details form + form {
  margin-top: 10px;
}

.cw-operations-details button {
  min-height: 34px;
  border: 0;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-muted-cell {
  color: var(--cw-muted);
  font-size: 0.74rem;
}

.cw-workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.cw-workbench-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.cw-workbench-panel--wide {
  min-width: 0;
}

.cw-workbench-form,
.cw-workbench-filter {
  display: grid;
  gap: 16px;
}

.cw-workbench-form__band {
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-form-grid {
  display: grid;
  gap: 12px;
}

.cw-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-field--span-2 {
  grid-column: span 2;
}

.cw-field select,
.cw-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink);
  outline: none;
}

.cw-field textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.cw-field select:focus,
.cw-field textarea:focus {
  border-color: var(--cw-accent);
  box-shadow: 0 0 0 3px var(--cw-focus-ring);
}

.cw-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  color: var(--cw-ink-soft);
  font-weight: 800;
}

.cw-checkbox input[type="hidden"] {
  display: none;
}

.cw-checkbox input[type="checkbox"],
.cw-checkbox input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--cw-primary);
}

.cw-checkbox span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cw-required-marker {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-accent-wash);
  color: var(--cw-accent-dark);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.cw-taxonomy-list {
  display: grid;
  gap: 10px;
}

.cw-taxonomy-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-taxonomy-list strong {
  color: var(--cw-ink-soft);
}

.cw-taxonomy-list span {
  color: var(--cw-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cw-workbench-table-wrap {
  overflow-x: auto;
}

.cw-workbench-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.cw-workbench-table tbody tr {
  transition: background 140ms ease;
}

.cw-workbench-table tbody tr:hover {
  background: var(--cw-accent-wash);
}

.cw-workbench-table th,
.cw-workbench-table td {
  padding: 12px;
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-ink-soft);
  font-size: 0.86rem;
  vertical-align: top;
}

.cw-workbench-table th {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.cw-workbench-table td strong,
.cw-workbench-table td span {
  display: block;
}

.cw-workbench-table td span,
.cw-workbench-table small {
  color: var(--cw-muted);
  font-size: 0.78rem;
}

.cw-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-size: 0.74rem;
  font-weight: 800;
}

.cw-status-pill--warning {
  background: var(--cw-warning-bg);
  color: var(--cw-accent-dark);
}

.cw-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-inline-actions--stack {
  display: grid;
  min-width: 220px;
}

.cw-quote-details summary {
  display: inline-flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.cw-quote-details form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-meter {
  width: 100%;
  min-width: 120px;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--cw-border);
}

.cw-meter span {
  display: block;
  height: 100%;
  background: var(--cw-primary);
}

.cw-workbench-filter {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(120px, 0.5fr);
  align-items: end;
}

.cw-workbench-filter .cw-primary-button {
  width: auto;
}

.cw-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cw-heatmap-grid article {
  display: grid;
  gap: 4px;
  min-height: 108px;
  align-content: end;
  padding: 12px;
  border: 1px solid rgba(15, 74, 55, calc(0.16 + var(--cw-heat) * 0.004));
  border-radius: var(--cw-radius-sm);
  background: linear-gradient(
    180deg,
    rgba(30, 90, 67, calc(0.08 + var(--cw-heat) * 0.003)),
    rgba(200, 154, 43, calc(0.06 + var(--cw-heat) * 0.002))
  );
}

.cw-heatmap-grid strong {
  color: var(--cw-ink);
}

.cw-heatmap-grid span {
  color: var(--cw-primary);
  font-weight: 800;
}

.cw-heatmap-grid small {
  color: var(--cw-muted);
  font-size: 0.76rem;
}

.cw-workbench-empty {
  padding: 18px;
  color: var(--cw-muted);
  text-align: center;
}

.cw-alert:empty {
  display: none;
}

.cw-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cw-profile-chip {
  display: grid;
  min-width: 170px;
  max-width: 260px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink);
  text-decoration: none;
}

.cw-profile-chip:hover,
.cw-profile-chip:focus-visible {
  border-color: var(--cw-accent);
  background: var(--cw-accent-soft);
}

.cw-profile-chip span,
.cw-profile-chip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-profile-chip span {
  font-size: 0.84rem;
  font-weight: 800;
}

.cw-admin-settings__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-profile-chip small {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.cw-cookie-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.cw-cookie-link:hover,
.cw-cookie-link:focus-visible {
  border-color: var(--cw-accent);
  background: var(--cw-accent-soft);
}

.cw-cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(720px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid var(--cw-panel-glass-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel-glass);
  box-shadow: var(--cw-shadow-floating);
  backdrop-filter: blur(14px);
}

.cw-cookie-banner strong,
.cw-cookie-banner span {
  display: block;
  min-width: 0;
}

.cw-cookie-banner strong {
  margin-bottom: 4px;
  color: var(--cw-ink);
}

.cw-cookie-banner span {
  color: var(--cw-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cw-cookie-banner__actions,
.cw-cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cw-cookie-banner__actions form,
.cw-cookie-preferences__form {
  margin: 0;
}

.cw-cookie-preferences {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.cw-cookie-preferences header {
  display: grid;
  gap: 6px;
}

.cw-cookie-preferences h1 {
  margin: 0;
}

.cw-cookie-preferences header span,
.cw-cookie-preferences > small {
  color: var(--cw-muted);
  line-height: 1.55;
}

.cw-cookie-preferences__status {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--cw-success-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-size: 0.82rem;
  font-weight: 800;
}

.cw-cookie-preferences__status[hidden] {
  display: none;
}

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

.cw-cookie-preferences__grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-cookie-preferences__grid strong,
.cw-cookie-preferences__grid span {
  display: block;
}

.cw-cookie-preferences__grid span {
  margin-top: 4px;
  color: var(--cw-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cw-cookie-preferences__grid em {
  align-self: start;
  padding: 4px 8px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.cw-cookie-preferences__form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-primary-button--fit {
  width: fit-content;
  min-width: 160px;
  padding-inline: 18px;
}

.cw-profile-workspace {
  display: grid;
  gap: 20px;
}

.cw-profile-unavailable {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 22px;
  border: 1px solid var(--cw-accent-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-warning-bg);
  box-shadow: 0 10px 26px rgba(31, 35, 43, 0.05);
}

.cw-profile-unavailable h1 {
  margin: 0;
  color: var(--cw-ink);
  font-size: 1.5rem;
  line-height: 1.2;
}

.cw-profile-unavailable span,
.cw-profile-unavailable small {
  color: var(--cw-muted);
  line-height: 1.5;
}

.cw-profile-unavailable small {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-profile-hero,
.cw-profile-panel {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
  box-shadow: 0 10px 26px rgba(31, 35, 43, 0.05);
}

.cw-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.cw-profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: var(--cw-contrast);
  color: var(--cw-on-contrast);
  font-size: 1.35rem;
  font-weight: 900;
}

.cw-profile-hero h1,
.cw-profile-panel h2,
.cw-dashboard-experience h2,
.cw-dashboard-visual h3,
.cw-dashboard-insights h3,
.cw-dashboard-chat h3 {
  margin: 0;
  line-height: 1.15;
}

.cw-profile-hero span:not(.cw-profile-avatar):not(.cw-status-pill),
.cw-profile-panel > header > span,
.cw-dashboard-experience__header span,
.cw-dashboard-visual header span,
.cw-dashboard-insights header span,
.cw-dashboard-chat header span {
  color: var(--cw-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.cw-profile-hero__meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cw-profile-hero__meta small {
  color: var(--cw-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.cw-profile-grid--activity {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.cw-profile-panel,
.cw-profile-stack {
  display: grid;
  gap: 16px;
}

.cw-profile-panel {
  padding: 18px;
}

.cw-profile-panel > header,
.cw-dashboard-experience__header,
.cw-dashboard-visual header,
.cw-dashboard-insights header,
.cw-dashboard-chat header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cw-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cw-profile-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-profile-summary strong {
  color: var(--cw-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.cw-profile-summary span,
.cw-profile-session-table td span,
.cw-profile-events strong,
.cw-dashboard-metric-card strong,
.cw-dashboard-insight-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cw-profile-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--cw-border-strong);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
  color: var(--cw-muted);
}

.cw-profile-session-table {
  min-width: 960px;
}

.cw-profile-session-table small {
  display: block;
  margin-top: 5px;
  color: var(--cw-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.cw-profile-session-table td > span[title] {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-profile-session-table form {
  margin: 0;
}

.cw-profile-events {
  display: grid;
  gap: 10px;
}

.cw-profile-events article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-profile-events span {
  color: var(--cw-accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-profile-events small {
  color: var(--cw-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cw-dashboard-experience {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-panel);
  box-shadow: 0 10px 26px rgba(31, 35, 43, 0.05);
}

.cw-dashboard-controls {
  display: grid;
  gap: 12px;
}

.cw-dashboard-tabs,
.cw-dashboard-chat__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-dashboard-tabs button,
.cw-dashboard-chat__prompts button,
.cw-dashboard-chat__form button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.cw-dashboard-tabs button:hover,
.cw-dashboard-tabs button.is-active,
.cw-dashboard-chat__prompts button:hover,
.cw-dashboard-chat__form button:hover {
  border-color: var(--cw-accent);
  background: var(--cw-accent-soft);
  color: var(--cw-primary);
}

.cw-dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(120px, 0.45fr);
  gap: 10px;
  align-items: end;
}

.cw-dashboard-filter-grid .cw-primary-button {
  width: auto;
}

.cw-dashboard-status {
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
  color: var(--cw-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.cw-dashboard-status.is-error {
  border-color: var(--cw-danger-border);
  background: var(--cw-danger-bg);
  color: var(--cw-danger);
}

.cw-dashboard-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cw-dashboard-metric-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-dashboard-metric-card span {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-dashboard-metric-card strong {
  color: var(--cw-primary);
  font-size: 1.45rem;
  line-height: 1.05;
}

.cw-dashboard-metric-card small {
  color: var(--cw-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.cw-dashboard-visual-grid,
.cw-dashboard-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cw-dashboard-visual,
.cw-dashboard-insights,
.cw-dashboard-chat {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-md);
  background: var(--cw-bg-elevated);
}

.cw-dashboard-canvas {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.cw-dashboard-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-dashboard-insight-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.cw-dashboard-insight-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-left: 4px solid var(--cw-accent);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-dashboard-insight-list article.is-high {
  border-left-color: var(--cw-danger);
}

.cw-dashboard-insight-list span {
  color: var(--cw-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-dashboard-insight-list p {
  margin: 0;
  color: var(--cw-ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cw-dashboard-chat {
  align-content: start;
}

.cw-dashboard-chat__log {
  display: grid;
  gap: 10px;
  min-height: 230px;
  max-height: 430px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-bg-muted);
}

.cw-dashboard-chat__message {
  display: grid;
  gap: 4px;
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
}

.cw-dashboard-chat__message.is-user {
  justify-self: end;
  border-color: var(--cw-accent-border);
  background: var(--cw-accent-soft);
}

.cw-dashboard-chat__message span {
  color: var(--cw-muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-dashboard-chat__message p {
  margin: 0;
  color: var(--cw-ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.cw-dashboard-chat__form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-panel);
  color: var(--cw-ink);
}

.cw-dashboard-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--cw-border-strong);
  border-radius: var(--cw-radius-sm);
  color: var(--cw-muted);
  font-size: 0.86rem;
}

@media (max-width: 1100px) {
  .cw-dashboard-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cw-profile-hero,
  .cw-profile-grid,
  .cw-profile-grid--activity,
  .cw-profile-summary,
  .cw-dashboard-access-profile,
  .cw-dashboard-filter-grid,
  .cw-dashboard-visual-grid,
  .cw-dashboard-intelligence-grid,
  .cw-dashboard-live-metrics {
    grid-template-columns: 1fr;
  }

  .cw-profile-hero__meta {
    justify-items: start;
  }

  .cw-profile-panel > header,
  .cw-dashboard-experience__header,
  .cw-dashboard-visual header,
  .cw-dashboard-insights header,
  .cw-dashboard-chat header {
    flex-direction: column;
  }

  .cw-primary-button--fit,
  .cw-dashboard-filter-grid .cw-primary-button {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .cw-auth-shell,
  .cw-app-shell,
  .cw-commandbar,
  .cw-dashboard-grid,
  .cw-module-summary,
  .cw-module-list,
  .cw-module-readiness__body,
  .cw-module-metrics,
  .cw-module-card__metrics,
  .cw-module-process-step dl,
  .cw-module-process-actions,
  .cw-module-control-grid,
  .cw-platform-summary,
  .cw-platform-boundaries,
  .cw-platform-manifest,
  .cw-import-form,
  .cw-import-definition-grid,
  .cw-import-definition-grid--compact,
  .cw-import-location__totals,
  .cw-import-summary-grid,
  .cw-admin-grid,
  .cw-secret-grid,
  .cw-company-admin-row,
  .cw-user-access__stats,
  .cw-user-access-filter__grid,
  .cw-user-access-form-grid {
    grid-template-columns: 1fr;
  }

  .cw-commandbar {
    align-items: stretch;
  }

  .cw-commandbar__actions,
  .cw-commandbar__result {
    justify-content: flex-start;
    justify-self: start;
  }

  .cw-user-access-item > header {
    display: grid;
  }

  .cw-user-access-item__meta {
    justify-items: start;
    text-align: left;
  }

  .cw-workbench-layout,
  .cw-workbench-kpis,
    .cw-form-grid--three,
    .cw-workbench-filter,
    .cw-heatmap-grid,
    .cw-process-strip,
    .cw-operations-lanes,
    .cw-operations-card-grid {
      grid-template-columns: 1fr;
    }

  .cw-field--span-2 {
    grid-column: auto;
  }

  .cw-auth-shell {
    min-height: auto;
  }

  .cw-auth-aside,
  .cw-auth-card {
    padding: 28px;
  }

  .cw-auth-aside h1 {
    margin-top: 40px;
    font-size: 2rem;
  }

  .cw-sidebar {
    border-right: 0;
  }

  .cw-brand--app {
    width: min(320px, 100%);
    margin-bottom: 22px;
  }

  .cw-platform-alignment__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cw-spec-alignment__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cw-spreadsheet-workflow__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cw-workbench__header,
  .cw-workbench-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cw-import-preview__header,
  .cw-import-panel__header,
  .cw-import-location header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cw-spreadsheet-metrics,
  .cw-spreadsheet-layout {
    grid-template-columns: 1fr;
  }

  .cw-admin-settings__header,
  .cw-admin-panel__header,
  .cw-admin-provider__title,
  .cw-module-header,
  .cw-module-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cw-empty-dashboard > div:first-child {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cw-empty-dashboard > div:first-child span {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .cw-dashboard-access-profile a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .cw-auth-body {
    padding: 12px;
  }

  .cw-auth-card,
  .cw-auth-aside,
  .cw-content {
    padding: 22px;
  }

  .cw-auth-logo-lockup {
    width: min(320px, 100%);
  }

  .cw-brand-wordmark {
    width: min(136px, 100%);
  }

  .cw-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px;
  }

  .cw-commandbar {
    padding: 14px 22px;
  }

  .cw-commandbar__actions a {
    flex: 1 1 92px;
  }

  .cw-auth-floating {
    position: static;
    justify-items: stretch;
    margin-top: 22px;
    max-width: none;
  }

  .cw-dev-access,
  .cw-quantum-status {
    justify-items: stretch;
  }

  .cw-dev-access__toggle,
  .cw-dev-access__panel,
  .cw-quantum-status__toggle,
  .cw-quantum-status__panel,
  .cw-engagement-dock__toggle,
  .cw-engagement-dock__panel {
    width: 100%;
  }

  .cw-engagement-dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-items: stretch;
    max-width: none;
  }

  .cw-engagement-dock__summary {
    grid-template-columns: 1fr;
  }
}
