.ch-tiers-page {
  max-width: 56rem;
}

.ch-tiers-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
}

.ch-tiers-project-picker {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.ch-tiers-project-picker select {
  min-width: 14rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 6px;
  font: inherit;
}


.ch-body .bms-chrome {
  padding-bottom: 0;
}

/* Prefer shared .bms-subnav; keep aliases for any leftover class names.
   Sales toolkit style: text tabs + hairline dividers + underline (no cyan pill). */
.ch-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--fg-line, #d8dfdf);
}

.ch-subnav-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #7f7f7f);
  font: inherit;
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.ch-subnav-tab + .ch-subnav-tab {
  border-left: 1px solid var(--fg-line, #d8dfdf);
}

.ch-subnav-tab:hover {
  color: var(--fg-teal-dark, #176579);
  background: transparent;
}

.ch-subnav-tab.is-active {
  color: var(--fg-teal-dark, #176579);
  background: transparent;
  border-bottom-color: var(--fg-teal, #22849c);
  box-shadow: none;
  font-weight: 600;
}

/* Nested second-level under Internal Channels (removed) */
.ch-subnav-nested {
  display: none;
}

.ch-main {
  padding: var(--bms-main-pad-top, 0.5rem) var(--bms-pad-x, clamp(1.25rem, 4vw, 2.75rem)) var(--bms-main-pad-bottom, 2.5rem);
  max-width: 1100px;
  box-sizing: border-box;
}

/* External Channels is registry-first — use the full content width. */
.ch-body[data-channels-section="external"] .ch-main {
  max-width: none;
  width: 100%;
}

.ch-section-title,
.ch-form-title {
  margin: 0 0 0.85rem;
  font-family: var(--display, "Red Hat Display", sans-serif);
  font-size: var(--bms-section-title, 1.15rem);
  font-weight: 700;
  color: var(--ink, #555555);
}

.ch-panel {
  background: #fff;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  padding: var(--bms-card-pad, 1.15rem 1.2rem 1.25rem);
  box-shadow: var(--fg-shadow, 0 10px 28px rgba(34, 132, 156, 0.1));
}

.ch-empty {
  margin: 0;
  padding: 1.25rem 1.1rem;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 70%, #fff);
  border: 1px dashed var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  color: var(--muted, #7f7f7f);
}

.ch-panel-note {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted, #7f7f7f);
  line-height: 1.45;
}

/* —— External Channels hub (list + CTA) —— */

/* Single column — do not leave a 0.95fr / 1.25fr track from the old
   registry + finance side-by-side layout (that pinned the registry ~350px). */
.ch-workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

.ch-registry-panel,
.ch-submissions-panel {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.ch-form-panel .btn {
  margin-top: 0.15rem;
}

/* —— Formal Registration Form —— */

.ch-form-main {
  max-width: 52rem;
}

.ch-form {
  background: #fff;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  padding: var(--bms-card-pad, 1.15rem 1.2rem 1.25rem);
  box-shadow: var(--fg-shadow, 0 10px 28px rgba(34, 132, 156, 0.1));
}

.ch-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  padding: 0 0 1.15rem;
  margin: 0 0 1.15rem;
  border-bottom: 1px solid var(--fg-line, #d8dfdf);
}

.ch-form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0.35rem;
}

.ch-form-section-title {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--display, "Red Hat Display", sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink, #555555);
}

.ch-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink, #555555);
  min-width: 0;
}

.ch-field-wide {
  grid-column: 1 / -1;
}

.ch-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ch-field input:not([type="checkbox"]):not([type="radio"]),
.ch-field select,
.ch-field textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 0 0.7rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  background: #fff;
  color: var(--ink, #555555);
  line-height: 1.2;
}

.ch-field input:not([type="checkbox"]):not([type="radio"]),
.ch-field select:not([multiple]) {
  height: var(--bms-control-h, 2.5rem);
}

.ch-field select[multiple],
.ch-field textarea {
  height: auto;
  padding: 0.55rem 0.7rem;
  min-height: 6rem;
}

.ch-field input:not([type="checkbox"]):not([type="radio"]):focus,
.ch-field select:focus,
.ch-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--fg-teal, #22849c) 45%, transparent);
  border-color: var(--fg-teal, #22849c);
}

.ch-field-hint {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted, #7f7f7f);
  line-height: 1.4;
}

.ch-help-pre {
  white-space: pre-wrap;
  margin: 0 0 0.45rem;
}

.ch-checkbox-fieldset {
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  padding: 0.75rem 0.85rem;
  margin: 0;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 55%, #fff);
}

.ch-checkbox-fieldset legend {
  padding: 0 0.25rem;
}

.ch-checkbox-fieldset.is-collapsible {
  padding-top: 0.55rem;
}

.ch-collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}

.ch-collapse-toggle:hover {
  color: var(--fg-teal-dark, #176579);
}

.ch-collapse-toggle:focus-visible {
  outline: 2px solid var(--fg-teal, #2a9bb0);
  outline-offset: 2px;
  border-radius: 4px;
}

.ch-collapse-chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-top: -0.15rem;
}

.ch-checkbox-fieldset.is-collapsed .ch-collapse-chevron {
  transform: rotate(-45deg);
  margin-top: 0.05rem;
}

.ch-collapse-title {
  min-width: 0;
}

.ch-collapse-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-teal-dark, #176579);
  background: color-mix(in srgb, var(--fg-teal, #2a9bb0) 14%, #fff);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.ch-collapse-body {
  margin-top: 0.45rem;
}

.ch-checkbox-fieldset.is-collapsed .ch-collapse-body {
  display: none;
}

.ch-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

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

@media (max-width: 560px) {
  .ch-checkbox-grid,
  .ch-checkbox-grid-dense {
    grid-template-columns: 1fr;
  }
}

.ch-checkbox,
.ch-checkbox-standalone {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--ink, #555555);
  cursor: pointer;
  line-height: 1.35;
}

.ch-checkbox-standalone {
  grid-column: 1 / -1;
}

.ch-checkbox input,
.ch-checkbox-standalone input {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  padding: 0;
  border: initial;
  border-radius: 0;
  background: initial;
  accent-color: var(--fg-teal, #22849c);
}

.ch-checkbox span,
.ch-checkbox-standalone span {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
}

.ch-territory-countries {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
}

.ch-territory-group {
  border: 1px solid color-mix(in srgb, var(--fg-line, #d8dfdf) 85%, transparent);
  border-radius: var(--fg-radius, 8px);
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 55%, #fff);
  overflow: hidden;
}

.ch-territory-group-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--fg-ink, #1a2b2e);
  user-select: none;
}

.ch-territory-group-summary::-webkit-details-marker {
  display: none;
}

.ch-territory-group-summary:hover {
  background: color-mix(in srgb, var(--fg-teal, #22849c) 6%, transparent);
}

.ch-territory-group-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

.ch-territory-group[open] > .ch-territory-group-summary .ch-territory-group-chevron {
  transform: rotate(45deg);
}

.ch-territory-group-body {
  display: grid;
  gap: 0.55rem;
  padding: 0 0.65rem 0.75rem;
}

.ch-territory-group-body .ch-country-panel {
  margin: 0;
  background: #fff;
}

.ch-territory-group.is-flat .ch-country-panel-flat {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.ch-territory-group-summary .ch-collapse-count {
  margin-left: auto;
}

.ch-signature {
  display: grid;
  gap: 0.45rem;
}

.ch-signature canvas {
  width: 100%;
  max-width: 40rem;
  height: 180px;
  border: 1px dashed color-mix(in srgb, var(--fg-teal, #22849c) 35%, var(--fg-line, #d8dfdf));
  border-radius: var(--fg-radius, 8px);
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 70%, #fff);
  touch-action: none;
  cursor: crosshair;
}

.ch-signature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.ch-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.ch-form-error {
  margin: 0;
  color: var(--fg-danger, #c5494d);
  font-size: 0.88rem;
  font-weight: 600;
}

.ch-submission-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ch-submission-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 60%, #fff);
}

.ch-submission-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink, #555555);
}

.ch-submission-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-teal-dark, #176579);
}

.ch-submission-meta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted, #7f7f7f);
  line-height: 1.35;
}

.ch-submission-empty {
  margin: 0;
  padding: 0.85rem 0.75rem;
  color: var(--muted, #7f7f7f);
  font-style: italic;
  font-size: 0.9rem;
}

.ch-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--fg-ink, #555555) 35%, transparent);
}

.ch-confirm[hidden] {
  display: none;
}

.ch-confirm-card {
  width: min(26rem, 100%);
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--fg-radius, 8px);
  border: 1px solid var(--fg-line, #d8dfdf);
  box-shadow: var(--fg-shadow, 0 10px 28px rgba(34, 132, 156, 0.18));
  display: grid;
  gap: 0.75rem;
}

.ch-confirm-card p {
  margin: 0;
  color: var(--muted, #7f7f7f);
  line-height: 1.45;
}

.req-mark {
  color: var(--fg-danger, #c5494d);
}

/* —— Company checklist / reps / PDF dropzones —— */

.ch-doc-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.ch-doc-item,
.ch-rep-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 55%, #fff);
}

.ch-rep-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.ch-rep-card legend {
  padding: 0 0.2rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fg-teal-dark, #176579);
}

.ch-rep-card .ch-field-wide {
  grid-column: 1 / -1;
}

.ch-reps-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.ch-rep-count-field {
  max-width: 12rem;
  margin-top: 0.35rem;
}

.ch-file-field {
  display: grid;
  gap: 0.4rem;
}

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

.ch-file-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 5.5rem;
  padding: 0.85rem 1rem;
  border: 1.5px dashed color-mix(in srgb, var(--fg-teal, #22849c) 40%, var(--fg-line, #d8dfdf));
  border-radius: var(--fg-radius, 8px);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.ch-file-dropzone:hover,
.ch-file-dropzone:focus-visible {
  border-color: var(--fg-teal, #22849c);
  outline: none;
}

.ch-file-dropzone.is-dragover {
  border-color: var(--fg-teal, #22849c);
  background: color-mix(in srgb, var(--fg-teal, #22849c) 8%, #fff);
}

.ch-file-dropzone.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, var(--fg-teal, #22849c) 55%, var(--fg-line, #d8dfdf));
}

.ch-file-dropzone.has-error {
  border-color: var(--fg-danger, #c5494d);
}

.ch-file-dropzone-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted, #7f7f7f);
}

.ch-file-dropzone-filename {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-teal-dark, #176579);
  word-break: break-all;
}

.ch-file-remove {
  justify-self: start;
}

@media (max-width: 560px) {
  .ch-form-section,
  .ch-rep-card {
    grid-template-columns: 1fr;
  }
}

/* —— Hub list + Finance drawer —— */

.ch-cases-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.ch-demo-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #7f7f7f);
}

.ch-demo-role select {
  height: 2rem;
  font: inherit;
  font-weight: 500;
  padding: 0 0.5rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius, 8px);
  background: #fff;
  color: var(--ink, #555555);
}

.ch-submission-item {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ch-submission-item:hover,
.ch-submission-item:focus-visible {
  border-color: var(--fg-teal, #22849c);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg-teal, #22849c) 20%, transparent);
  outline: none;
}

.ch-submission-badges {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ch-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 70%, #fff);
  color: var(--muted, #7f7f7f);
  border: 1px solid var(--fg-line, #d8dfdf);
}

.ch-chip-ok {
  color: #1f6b4a;
  border-color: color-mix(in srgb, #1f6b4a 35%, var(--fg-line, #d8dfdf));
  background: color-mix(in srgb, #1f6b4a 10%, #fff);
}

.ch-chip-no {
  color: var(--fg-danger, #c5494d);
  border-color: color-mix(in srgb, var(--fg-danger, #c5494d) 35%, var(--fg-line, #d8dfdf));
  background: color-mix(in srgb, var(--fg-danger, #c5494d) 8%, #fff);
}

.ch-chip-na {
  color: var(--ink, #555555);
}

.ch-chip-pending {
  color: #8a6a1a;
  border-color: color-mix(in srgb, #8a6a1a 35%, var(--fg-line, #d8dfdf));
  background: color-mix(in srgb, #8a6a1a 10%, #fff);
}

.ch-chip-muted {
  color: var(--muted, #7f7f7f);
  border-color: var(--fg-line, #d8dfdf);
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 70%, #fff);
  font-weight: 600;
}

.ch-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
}

.ch-reg-action-alert {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.25rem;
}

.ch-reg-action-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fg-danger, #c5494d);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 600;
}

.ch-reg-action-list li {
  margin: 0;
}

.ch-finance-row.is-info-only {
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 35%, #fff);
}

.ch-finance-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ch-finance-modal[hidden] {
  display: none;
}

.ch-finance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--fg-ink, #555555) 42%, transparent);
  cursor: pointer;
}

.ch-finance-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  background: #f5f8fa;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(34, 52, 64, 0.22);
  overflow: hidden;
}

.ch-finance-modal-header,
.ch-finance-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--fg-line, #d8dfdf);
}

.ch-finance-modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--fg-line, #d8dfdf);
  flex-direction: column;
  align-items: stretch;
}

.ch-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

/* .btn uses display:inline-flex, which overrides the UA [hidden] rule */
.ch-drawer-actions .btn[hidden],
.ch-drawer-actions .btn.is-hidden {
  display: none !important;
}

.ch-finance-modal-body {
  padding: 1rem 1.25rem 1.35rem;
  overflow: auto;
  flex: 1 1 auto;
}

.ch-finance-lead {
  color: var(--muted, #7f7f7f);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}

.ch-finance-card {
  background: #fff;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
}

.ch-finance-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  color: var(--fg-teal, #22849c);
}

.ch-finance-card h4 {
  margin: 0.75rem 0 0.45rem;
  font-size: 0.92rem;
  color: var(--fg-teal-dark, #176579);
}

.ch-finance-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem 1rem;
  font-size: 0.92rem;
}

.ch-finance-meta-grid dt {
  color: var(--muted, #7f7f7f);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ch-finance-meta-grid dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  word-break: break-word;
}

.ch-finance-list {
  display: grid;
  gap: 0.55rem;
}

.ch-finance-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 8px;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 55%, #fff);
}

@media (min-width: 720px) {
  .ch-finance-row {
    grid-template-columns: minmax(0, 1.5fr) auto;
    align-items: center;
  }
}

.ch-finance-meta strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink, #555555);
}

.ch-finance-value {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink, #555555);
  word-break: break-word;
  line-height: 1.35;
}

.ch-finance-value a {
  color: var(--fg-teal-dark, #176579);
  font-weight: 600;
}

.ch-finance-rep-block {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--fg-line, #d8dfdf);
}

.ch-finance-rep-block:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.ch-finance-extra {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line, #d7dee3);
}

.ch-finance-extra h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.ch-finance-extra-list {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.ch-finance-extra-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line, #d7dee3);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  font-size: 0.88rem;
}

.ch-finance-upload {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.ch-finance-upload-label,
.ch-finance-upload-file {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-primary, #1f6f78);
}

.ch-finance-upload input[type="text"],
.ch-finance-upload input[type="file"] {
  font-weight: 400;
  color: var(--ink, #1a1a1a);
}

.ch-yn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ch-yn-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  color: var(--ink, #1a1a1a);
  user-select: none;
  white-space: nowrap;
}

.ch-yn-option.is-pass:has(input:checked) {
  border-color: #1f7a4d;
  background: color-mix(in srgb, #1f7a4d 12%, #fff);
  color: #1f7a4d;
}

.ch-yn-option.is-fail:has(input:checked) {
  border-color: #a12b2b;
  background: color-mix(in srgb, #a12b2b 12%, #fff);
  color: #a12b2b;
}

.ch-yn-option:hover,
.ch-yn-option:focus-within {
  border-color: var(--fg-teal, #22849c);
}

.ch-yn-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.ch-drawer-open {
  overflow: hidden;
}

.ch-registry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.ch-registry-head .ch-section-title {
  margin-bottom: 0.35rem;
}

.ch-registry-head .ch-panel-note {
  margin-bottom: 0;
}

.ch-registry-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.ch-finance-main {
  max-width: 52rem;
}

.ch-registry-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 80%, #fff);
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius-sm, 8px);
}

.ch-registry-label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #7f7f7f);
}

.ch-registry-search,
.ch-registry-filter {
  display: block;
  min-width: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink, #555);
}

.ch-registry-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: end;
}

@media (min-width: 520px) {
  .ch-registry-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
}

.ch-registry-search input[type="search"],
.ch-registry-filter select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius-sm, 8px);
  font: inherit;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink, #555);
  background: #fff;
}

.ch-registry-search input[type="search"]:focus,
.ch-registry-filter select:focus {
  outline: 2px solid color-mix(in srgb, var(--fg-teal, #22849c) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--fg-teal, #22849c);
}

.ch-registry-clear {
  justify-self: start;
  min-height: 2.4rem;
  align-self: end;
}

.ch-registry-table-wrap {
  margin: 0 -0.15rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: var(--fg-radius-sm, 8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ch-registry-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: inherit;
  font-size: 0.88rem;
}

.ch-registry-table .ch-col-channel { width: 34%; }
.ch-registry-table .ch-col-status { width: 24%; }
.ch-registry-table .ch-col-agreement { width: 24%; }
.ch-registry-table .ch-col-owner { width: 18%; }

.ch-registry-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 88%, #fff);
  border-bottom: 1px solid var(--fg-line, #d8dfdf);
  text-align: left;
  vertical-align: middle;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #7f7f7f);
}

.ch-registry-table tbody td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--fg-line, #d8dfdf);
  text-align: left;
  vertical-align: top;
  color: var(--ink, #555);
  word-break: break-word;
}

.ch-registry-table tbody tr:last-child td {
  border-bottom: 0;
}

.ch-registry-table tbody tr:hover td {
  background: color-mix(in srgb, var(--fg-teal, #22849c) 5%, #fff);
}

.ch-reg-name {
  font-weight: 600;
  color: var(--fg-teal-dark, #176579);
  text-decoration: none;
}

.ch-reg-name:hover {
  text-decoration: underline;
}

.ch-reg-id {
  margin-top: 0.15rem;
}

.ch-reg-updated {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted, #7f7f7f);
}

.ch-reg-mobile-meta {
  display: none;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.ch-th-sort {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0;
  min-height: 0;
  line-height: 1.2;
}

.ch-th-sort:hover,
.ch-th-sort:focus-visible {
  color: var(--fg-teal-dark, #176579);
  outline: none;
}

.ch-th-sort-ind {
  display: inline-block;
  min-width: 0.7rem;
  font-size: 0.65rem;
  color: var(--fg-teal, #22849c);
}

.ch-th-sort[aria-sort="ascending"] .ch-th-sort-ind::after {
  content: "↑";
}

.ch-th-sort[aria-sort="descending"] .ch-th-sort-ind::after {
  content: "↓";
}

.ch-registry-no-match {
  margin: 0;
  padding: 0.9rem 0.85rem;
}

@media (max-width: 720px) {
  .ch-registry-table {
    min-width: 0;
  }

  .ch-registry-table .ch-col-owner,
  .ch-registry-table th.ch-col-owner,
  .ch-registry-table td.ch-col-owner {
    display: none;
  }

  .ch-registry-table .ch-col-channel { width: 40%; }
  .ch-registry-table .ch-col-status { width: 30%; }
  .ch-registry-table .ch-col-agreement { width: 30%; }

  .ch-reg-mobile-meta {
    display: block;
  }
}

.ch-muted {
  font-size: 0.8rem;
  color: var(--muted, #7f7f7f);
}
.ch-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
}
.ch-detail-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #7f7f7f);
}
.ch-detail-grid dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: var(--ink, #555);
  line-height: 1.35;
  word-break: break-word;
}
.ch-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 0.35rem 0 0.25rem;
}
.ch-profile-grid .ch-detail-span {
  grid-column: 1 / -1;
}
.ch-profile-subtitle {
  margin-top: 1.5rem;
}
.ch-rep-view-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.65rem;
}
.ch-rep-view-card {
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 10px;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 65%, #fff);
  padding: 0.85rem 1rem 0.35rem;
}
.ch-rep-view-head {
  font-family: var(--display, "Red Hat Display", sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg-teal-dark, #176579);
  margin-bottom: 0.15rem;
}
.ch-rep-view-card .ch-detail-grid {
  margin-top: 0.55rem;
}
.ch-doc-view-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.ch-doc-view-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 8px;
  background: #fff;
}
.ch-doc-view-label {
  font-weight: 600;
  color: var(--ink, #555);
}
.ch-doc-link {
  font-weight: 600;
  color: var(--fg-teal-dark, #176579);
  text-decoration: none;
  white-space: nowrap;
}
.ch-doc-link:hover {
  text-decoration: underline;
}
.ch-territory-view-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.ch-territory-view-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 8px;
  background: #fff;
}
.ch-territory-view-list strong {
  color: var(--fg-teal-dark, #176579);
}
.ch-territory-view-list span {
  color: var(--ink, #555);
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .ch-profile-grid {
    grid-template-columns: 1fr;
  }
  .ch-doc-view-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ch-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}
.ch-inline-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}
.ch-inline-form label.ch-field-wide {
  flex: 1 1 100%;
}
.ch-inline-form input[type="file"] {
  min-width: 0;
}
.ch-inline-form input,
.ch-inline-form select {
  min-width: 9rem;
  padding: 0.4rem 0.5rem;
}

.ch-agree-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.85rem 1rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fg-line, #d8dfdf);
  border-radius: 10px;
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 70%, #fff);
}

.ch-agree-stat {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.ch-agree-stat-label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #7f7f7f);
}

.ch-agree-stat-value {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink, #2d3434);
  line-height: 1.3;
}

.ch-agree-stat-value.is-expired {
  color: var(--fg-danger, #c5494d);
}

.ch-agree-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.ch-agree-hint {
  margin-top: 0;
}

.ch-agree-form {
  display: block;
  margin-top: 0.35rem;
}

.ch-agree-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.ch-agree-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  min-width: 0;
}

.ch-agree-form-grid label.ch-field-wide {
  grid-column: 1 / -1;
}

.ch-agree-form-grid input,
.ch-agree-form-grid select {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.55rem;
}

.ch-agree-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.9rem;
}

@media (max-width: 640px) {
  .ch-agree-form-grid {
    grid-template-columns: 1fr;
  }
}

.ch-sale-commission {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink, #2d3434);
}

.ch-sale-commission strong {
  font-weight: 700;
  margin-left: 0.2rem;
}

.ch-sales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.ch-sales-table th,
.ch-sales-table td {
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--fg-line, #d8dfdf);
}

.ch-sales-table thead th {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #7f7f7f);
  background: color-mix(in srgb, var(--fg-paper, #f8faf9) 75%, #fff);
  white-space: nowrap;
}

.ch-sales-table tbody tr:last-child td {
  border-bottom: 0;
}

.ch-sales-project {
  font-weight: 650;
  color: var(--ink, #2d3434);
  margin-bottom: 0.3rem;
}

.ch-sales-stage-chip {
  font-size: 0.68rem;
}

.ch-sales-paid-when {
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

@media (max-width: 720px) {
  .ch-sales-fulfillment-panel .ch-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ch-sales-table {
    min-width: 40rem;
  }
}

.ch-form-status.is-error {
  color: #b42318;
}
.ch-table-wrap {
  overflow-x: auto;
}
