/* ------------------------------------------------------------------------------------------------
   Coverage UI components (Web/Components/Ui), transposed from the validated mockup
   (docs/design/ui-mockup.html). BEM naming, every class prefixed with cc-, colours and radii from
   tokens.css only. Soft light-gray ground, white rounded cards, a pill top bar (no sidebar), black
   active pills, the blue gradient as the brand accent; coverage semantics stay green, amber, red.
   ------------------------------------------------------------------------------------------------ */

/* ---- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--cc-ground);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--cc-ground);
  color: var(--cc-fg);
  font-family: var(--cc-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cc-accent-fg);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

code {
  font-family: var(--cc-mono);
  font-size: .85em;
}

[hidden] {
  display: none !important;
}

.cc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cc-mono {
  font-family: var(--cc-mono);
  font-size: .85em;
}

.cc-num {
  font-variant-numeric: tabular-nums;
}

.cc-muted {
  color: var(--cc-fg-2);
}

/* A themed block: data-theme="light" or "dark" on it forces its tokens (the /_ui gallery). */
.cc-theme-scope {
  background: var(--cc-ground);
  color: var(--cc-fg);
}

/* ---- icon (Icons/CcIcon) ---- */
.cc-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -.2em;
}

/* ---- layout primitives ---- */
.cc-panel {
  min-width: 0;
  border-radius: var(--cc-r-xl);
  background: var(--cc-card);
  box-shadow: var(--cc-soft-shadow);
}

.cc-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 28px 18px;
}

.cc-panel__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.cc-panel__body {
  padding: 28px;
}

.cc-panel__head + .cc-panel__body {
  padding-top: 4px;
}

.cc-grid {
  display: grid;
  gap: 24px;
}

.cc-grid > * {
  min-width: 0;
}

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

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

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

.cc-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.cc-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---- app shell (CcAppShell) ---- */
.cc-shell {
  min-height: 100vh;
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-block: 0 56px;
}

.cc-shell__frame {
  max-width: 1360px;
  margin: 0 auto;
}

.cc-shell__top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  padding-block: 20px 12px;
  background: var(--cc-ground);
}

.cc-shell__main {
  display: block;
  padding-top: 28px;
}

.cc-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 70;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cc-ink);
  color: var(--cc-on-ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.cc-skip-link:focus {
  transform: none;
  text-decoration: none;
}

/* ---- top navigation (CcTopNav) ---- */
.cc-topnav {
  position: relative;
}

.cc-topnav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: var(--cc-card);
  box-shadow: var(--cc-soft-shadow);
}

.cc-topnav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-width: 0;
  color: var(--cc-fg);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.cc-topnav__brand:hover {
  text-decoration: none;
}

.cc-topnav__brand-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cc-ink);
}

.cc-topnav__brand-bar {
  display: block;
  width: 3.5px;
  height: 17px;
  border-radius: 2px;
  background: var(--cc-hit-edge);
}

.cc-topnav__brand-bar--partial {
  background: var(--cc-part-edge);
}

.cc-topnav__brand-bar--miss {
  background: var(--cc-miss-edge);
}

.cc-topnav__tabs {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--cc-ground);
}

.cc-topnav__tab {
  padding: 9px 17px;
  border-radius: 999px;
  color: var(--cc-fg);
  font-weight: 500;
  white-space: nowrap;
}

.cc-topnav__tab:hover {
  background: var(--cc-card);
  text-decoration: none;
}

.cc-topnav__tab--active,
.cc-topnav__tab--active:hover {
  background: var(--cc-ink);
  color: var(--cc-on-ink);
}

.cc-topnav__end {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  min-width: 0;
}

.cc-topnav__icons {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cc-ground);
}

.cc-topnav__icons .cc-round-button {
  border: 0;
  background: var(--cc-card);
}

.cc-topnav__icons .cc-round-button:hover {
  background: var(--cc-card-3);
}

.cc-topnav__menu-button {
  display: none;
}

.cc-topnav__mobile {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  left: 0;
  z-index: 41;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: var(--cc-r-xl);
  background: var(--cc-card);
  box-shadow: var(--cc-pop-shadow);
}

.cc-topnav__mobile--open {
  display: flex;
}

.cc-topnav__mobile .cc-topnav__tab {
  padding: 12px 16px;
  border-radius: 14px;
}

.cc-topnav__mobile .cc-topnav__tab:hover {
  background: var(--cc-card-2);
}

.cc-topnav__mobile .cc-topnav__tab--active,
.cc-topnav__mobile .cc-topnav__tab--active:hover {
  background: var(--cc-ink);
}

.cc-round-button {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cc-line);
  border-radius: 50%;
  background: var(--cc-card);
  color: var(--cc-fg);
  cursor: pointer;
}

.cc-round-button:hover {
  background: var(--cc-card-2);
}

.cc-round-button .cc-icon {
  width: 19px;
  height: 19px;
}

/* ---- user menu (CcUserMenu) ---- */
.cc-user-menu {
  position: relative;
  min-width: 0;
}

.cc-user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 0 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cc-fg);
  text-align: left;
  cursor: pointer;
}

.cc-user-menu__trigger:hover {
  text-decoration: none;
}

.cc-user-menu__avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-grad-a), var(--cc-grad-b));
  color: var(--cc-on-accent);
  font-size: 14px;
  font-weight: 700;
}

.cc-user-menu__who {
  min-width: 0;
}

.cc-user-menu__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.cc-user-menu__role {
  display: block;
  color: var(--cc-fg-2);
  font-size: 12.5px;
  line-height: 1.25;
}

.cc-user-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 42;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 10px;
  border-radius: var(--cc-r-lg);
  background: var(--cc-card);
  box-shadow: var(--cc-pop-shadow);
}

.cc-user-menu__panel a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--cc-fg);
  font-weight: 500;
}

.cc-user-menu__panel a:hover {
  background: var(--cc-card-2);
  text-decoration: none;
}

/* ---- page container and header (CcPageContainer, CcHeader) ---- */
.cc-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cc-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cc-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 4px 2px 0;
}

.cc-header__text {
  flex: 1 1 380px;
  min-width: 0;
}

.cc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--cc-fg-2);
  font-size: 12.5px;
}

.cc-breadcrumb a {
  color: var(--cc-fg-2);
}

.cc-breadcrumb__sep {
  color: var(--cc-fg-4);
}

.cc-header__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.cc-header__title .cc-icon {
  width: 26px;
  height: 26px;
  color: var(--cc-fg-2);
}

.cc-header__subtitle {
  margin-top: 6px;
  color: var(--cc-fg-2);
}

.cc-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---- second-level tabs (CcPillTabs) ---- */
.cc-pill-tabs {
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--cc-card);
  scrollbar-width: none;
}

.cc-pill-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--cc-fg-2);
  font-weight: 500;
  white-space: nowrap;
}

.cc-pill-tabs__tab:hover {
  background: var(--cc-card-2);
  color: var(--cc-fg);
  text-decoration: none;
}

.cc-pill-tabs__tab--active,
.cc-pill-tabs__tab--active:hover {
  background: var(--cc-ink);
  color: var(--cc-on-ink);
}

.cc-pill-tabs__tab .cc-icon {
  width: 16px;
  height: 16px;
}

/* ---- in-page tabs (CcFolderTabs) ---- */
.cc-folder-tabs {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--cc-card-2);
  scrollbar-width: none;
}

.cc-folder-tabs__tab {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cc-fg-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.cc-folder-tabs__tab:hover {
  color: var(--cc-fg);
}

.cc-folder-tabs__tab--active,
.cc-folder-tabs__tab--active:hover {
  background: var(--cc-ink);
  color: var(--cc-on-ink);
}

/* ---- KPI card (CcKpiCard) ---- */
.cc-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 180px;
  padding: 26px 26px 24px;
  border-radius: var(--cc-r-xl);
  background: var(--cc-card);
  box-shadow: var(--cc-soft-shadow);
}

.cc-kpi__label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 54px;
  color: var(--cc-fg-2);
  font-size: 14px;
  font-weight: 500;
}

.cc-kpi__icon {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cc-card-2);
  color: var(--cc-fg);
}

.cc-kpi__icon .cc-icon {
  width: 20px;
  height: 20px;
}

.cc-kpi__icon--ink {
  background: var(--cc-ink);
  color: var(--cc-on-ink);
}

.cc-kpi__icon--gradient {
  background: linear-gradient(135deg, var(--cc-grad-a), var(--cc-grad-b));
  color: var(--cc-on-accent);
}

.cc-kpi__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
}

.cc-kpi__value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.cc-kpi__footer {
  margin-top: auto;
  padding-top: 6px;
  color: var(--cc-fg-2);
  font-size: 12.5px;
}

.cc-kpi__footer b {
  color: var(--cc-fg);
  font-weight: 600;
}

.cc-kpi--accent {
  background: linear-gradient(135deg, var(--cc-grad-a), var(--cc-grad-b));
  color: var(--cc-on-accent);
}

.cc-kpi--accent .cc-kpi__label,
.cc-kpi--accent .cc-kpi__footer,
.cc-kpi--accent .cc-kpi__footer b {
  color: var(--cc-on-accent);
}

.cc-kpi--accent .cc-kpi__icon {
  background: var(--cc-on-accent);
  color: var(--cc-grad-a);
}

.cc-kpi--accent .cc-badge--chip {
  background: var(--cc-on-accent-chip-bg);
  color: var(--cc-on-accent);
}

/* ---- badge and chip (CcBadge) ---- */
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}

.cc-badge .cc-icon {
  width: 13px;
  height: 13px;
}

.cc-badge--neutral {
  background: var(--cc-neutral-bg);
  color: var(--cc-neutral-fg);
}

.cc-badge--info {
  background: var(--cc-info-bg);
  color: var(--cc-info-fg);
}

.cc-badge--success {
  background: var(--cc-ok-bg);
  color: var(--cc-ok-fg);
}

.cc-badge--warning {
  background: var(--cc-warn-bg);
  color: var(--cc-warn-fg);
}

.cc-badge--danger {
  background: var(--cc-err-bg);
  color: var(--cc-err-fg);
}

.cc-badge--chip {
  gap: 3px;
  height: 22px;
  padding: 0 8px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.cc-badge--chip.cc-badge--neutral {
  background: var(--cc-card-2);
  color: var(--cc-fg-2);
}

.cc-badge--chip.cc-badge--warning {
  background: var(--cc-orange);
  color: var(--cc-on-orange);
}

/* ---- buttons (CcButton) ---- */
.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cc-card-2);
  color: var(--cc-fg);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.cc-button:hover {
  background: var(--cc-card-3);
  text-decoration: none;
}

.cc-button .cc-icon {
  width: 16px;
  height: 16px;
}

.cc-button--primary {
  background: var(--cc-ink);
  color: var(--cc-on-ink);
}

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

.cc-button--danger {
  background: var(--cc-err-bg);
  color: var(--cc-err-fg);
}

.cc-button--danger:hover {
  background: var(--cc-err-bg);
  box-shadow: inset 0 0 0 1px var(--cc-err-fg);
}

.cc-button--solid-danger {
  background: var(--cc-danger-solid);
  color: var(--cc-on-accent);
}

.cc-button--solid-danger:hover {
  background: var(--cc-danger-solid);
  filter: brightness(.92);
}

.cc-button--small {
  height: 32px;
  padding: 0 13px;
  font-size: 12.5px;
}

/* The pill buttons of the page headers: an icon in a round, then the label. */
.cc-button--pill {
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 6px;
  background: var(--cc-card);
  font-size: 14px;
  font-weight: 500;
}

.cc-button--pill:hover {
  background: var(--cc-card-2);
}

.cc-button--pill-accent {
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 6px;
  background: linear-gradient(135deg, var(--cc-grad-a), var(--cc-grad-b));
  color: var(--cc-on-accent);
  font-size: 14px;
  font-weight: 500;
}

.cc-button--pill-accent:hover {
  background: linear-gradient(135deg, var(--cc-grad-a), var(--cc-grad-a));
}

.cc-button__round {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cc-card-2);
}

.cc-button__round .cc-icon {
  width: 18px;
  height: 18px;
}

.cc-button--pill-accent .cc-button__round {
  background: color-mix(in srgb, var(--cc-on-accent) 18%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc-on-accent) 80%, transparent);
}

.cc-panel .cc-button--pill {
  background: var(--cc-card-2);
}

.cc-panel .cc-button--pill:hover {
  background: var(--cc-card-3);
}

.cc-panel .cc-button--pill .cc-button__round {
  background: var(--cc-card);
}

.cc-button[disabled],
.cc-button[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

/* ---- banner (CcBanner) ---- */
.cc-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--cc-r-lg);
  font-size: 13.5px;
}

.cc-banner__icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.cc-banner__body {
  flex: 1;
  min-width: 0;
}

.cc-banner__title {
  display: block;
  font-weight: 600;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-banner--neutral {
  background: var(--cc-neutral-bg);
  color: var(--cc-neutral-fg);
}

.cc-banner--info {
  background: var(--cc-info-bg);
  color: var(--cc-info-fg);
}

.cc-banner--success {
  background: var(--cc-ok-bg);
  color: var(--cc-ok-fg);
}

.cc-banner--warning {
  background: var(--cc-warn-bg);
  color: var(--cc-warn-fg);
}

.cc-banner--danger {
  background: var(--cc-err-bg);
  color: var(--cc-err-fg);
}

/* ---- empty state and error boundary (CcEmptyState, CcErrorBoundary) ---- */
.cc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 16px;
  color: var(--cc-fg-2);
  text-align: center;
}

.cc-empty-state__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-grad-a), var(--cc-grad-b));
  color: var(--cc-on-accent);
}

.cc-empty-state__icon .cc-icon {
  width: 30px;
  height: 30px;
}

.cc-empty-state__title {
  color: var(--cc-fg);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.cc-empty-state__description {
  max-width: 440px;
}

.cc-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.cc-error-boundary .cc-empty-state__icon {
  background: var(--cc-err-bg);
  color: var(--cc-err-fg);
}

/* ---- loading spinner (CcLoadingSpinner) ---- */
.cc-spinner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cc-fg-2);
}

.cc-spinner__ring {
  width: 22px;
  height: 22px;
  border: 3px solid var(--cc-gauge-off);
  border-top-color: var(--cc-accent);
  border-radius: 50%;
  animation: cc-spin .8s linear infinite;
}

.cc-spinner--small .cc-spinner__ring {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.cc-spinner--large {
  flex-direction: column;
  padding: 40px 16px;
}

.cc-spinner--large .cc-spinner__ring {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes cc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- fields (CcTextField, CcSelectField) ---- */
.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: left;
}

.cc-field__label {
  font-size: 13px;
  font-weight: 600;
}

.cc-field__help {
  color: var(--cc-fg-2);
  font-size: 12.5px;
}

.cc-field__error {
  color: var(--cc-err-fg);
  font-size: 12.5px;
  font-weight: 500;
}

.cc-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cc-card-2);
  color: var(--cc-fg);
  font: inherit;
}

.cc-input:focus {
  border-color: var(--cc-accent);
  outline: none;
  background: var(--cc-card);
}

.cc-input:focus-visible {
  box-shadow: 0 0 0 3px var(--cc-accent-soft);
}

.cc-input[readonly] {
  color: var(--cc-fg-2);
  cursor: not-allowed;
}

.cc-input[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.cc-input--invalid,
.cc-input--invalid:focus {
  border-color: var(--cc-err-solid);
}

.cc-input::placeholder {
  color: var(--cc-fg-3);
}

.cc-select {
  position: relative;
  min-width: 0;
}

.cc-select__control {
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.cc-select__control option {
  background: var(--cc-card);
  color: var(--cc-fg);
}

.cc-select__chevron {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cc-card);
  pointer-events: none;
  transform: translateY(-50%);
}

.cc-select__chevron .cc-icon {
  width: 16px;
  height: 16px;
}

/* The pill select of the page headers and toolbars. */
.cc-select--pill .cc-select__control {
  height: 48px;
  padding: 0 52px 0 20px;
  background: var(--cc-card);
  font-weight: 500;
}

.cc-select--pill .cc-select__chevron {
  width: 36px;
  height: 36px;
  background: var(--cc-card-2);
}

.cc-select--lead .cc-select__control {
  padding-left: 40px;
}

.cc-select__lead {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  place-items: center;
  color: var(--cc-fg-2);
  pointer-events: none;
  transform: translateY(-50%);
}

.cc-select__lead .cc-icon {
  width: 17px;
  height: 17px;
}

.cc-panel .cc-select--pill .cc-select__control {
  background: var(--cc-card-2);
}

.cc-panel .cc-select--pill .cc-select__chevron {
  background: var(--cc-card);
}

/* ---- search bar (CcSearchBar) ---- */
.cc-search {
  position: relative;
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  min-width: 0;
  max-width: 300px;
}

.cc-search__icon {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--cc-fg-2);
  pointer-events: none;
}

.cc-search__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cc-card);
  color: var(--cc-fg);
  font: inherit;
}

.cc-search__input:focus {
  border-color: var(--cc-accent);
  outline: none;
}

.cc-search__input:focus-visible {
  box-shadow: 0 0 0 3px var(--cc-accent-soft);
}

.cc-search__input::placeholder {
  color: var(--cc-fg-3);
}

.cc-panel .cc-search__input {
  border-color: var(--cc-line-2);
}

.cc-header .cc-search__input {
  height: 48px;
}

/* ---- toasts (CcToast) ---- */
.cc-toasts {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-r-lg);
  background: var(--cc-card);
  box-shadow: var(--cc-pop-shadow);
  animation: cc-toast-pop .2s ease;
}

.cc-toast__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cc-info-bg);
  color: var(--cc-info-fg);
}

.cc-toast__icon .cc-icon {
  width: 17px;
  height: 17px;
}

.cc-toast--neutral .cc-toast__icon {
  background: var(--cc-neutral-bg);
  color: var(--cc-neutral-fg);
}

.cc-toast--success .cc-toast__icon {
  background: var(--cc-ok-bg);
  color: var(--cc-ok-fg);
}

.cc-toast--warning .cc-toast__icon {
  background: var(--cc-warn-bg);
  color: var(--cc-warn-fg);
}

.cc-toast--danger .cc-toast__icon {
  background: var(--cc-err-bg);
  color: var(--cc-err-fg);
}

.cc-toast__body {
  flex: 1;
  min-width: 0;
}

.cc-toast__title {
  display: block;
  font-weight: 600;
}

.cc-toast__message {
  font-size: 13px;
  color: var(--cc-fg-2);
}

.cc-toast__close {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cc-fg-3);
  cursor: pointer;
}

.cc-toast__close:hover {
  background: var(--cc-card-3);
  color: var(--cc-fg);
}

.cc-toast__close .cc-icon {
  width: 15px;
  height: 15px;
}

@keyframes cc-toast-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- motion ---- */
@media (prefers-reduced-motion: reduce) {
  .cc-spinner__ring {
    animation-duration: 2.4s;
  }

  .cc-toast {
    animation: none;
  }
}

/* ---- responsive ---- */
@media (min-width: 900px) {
  .cc-shell {
    padding-right: max(28px, env(safe-area-inset-right, 0px));
    padding-left: max(28px, env(safe-area-inset-left, 0px));
  }
}

@media (min-width: 1100px) {
  .cc-shell {
    padding-right: max(40px, env(safe-area-inset-right, 0px));
    padding-left: max(40px, env(safe-area-inset-left, 0px));
  }
}

@media (max-width: 1180px) {
  .cc-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .cc-topnav__bar {
    display: flex;
  }

  .cc-topnav__tabs {
    display: none;
  }

  .cc-topnav__end {
    margin-left: auto;
  }

  .cc-topnav__menu-button {
    display: grid;
  }
}

@media (min-width: 1041px) {
  .cc-topnav__mobile {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .cc-grid--3,
  .cc-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cc-shell__top {
    padding-block: 10px 6px;
  }

  .cc-topnav__bar {
    gap: 8px;
    min-height: 60px;
    padding: 8px 8px 8px 10px;
  }

  .cc-user-menu__who {
    display: none;
  }

  .cc-user-menu__trigger {
    padding-left: 0;
  }

  .cc-round-button,
  .cc-user-menu__avatar {
    width: 40px;
    height: 40px;
  }

  .cc-topnav__brand {
    gap: 9px;
    font-size: 17px;
  }

  .cc-topnav__brand-mark {
    width: 38px;
    height: 38px;
  }

  .cc-header__title {
    font-size: 23px;
  }

  .cc-kpi__value {
    font-size: 28px;
  }

  .cc-panel__head {
    padding: 18px 16px 12px;
  }

  .cc-panel__body {
    padding: 16px;
  }

  .cc-search {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .cc-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc-grid {
    gap: 16px;
  }

  .cc-page {
    gap: 22px;
  }

  .cc-shell__main {
    padding-top: 16px;
  }

  .cc-kpi {
    min-height: 150px;
    padding: 20px;
  }
}

/* ---- top bar: the brand and the switcher of organization (M3.19) ---- */
.cc-topnav__start {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  min-width: 0;
}

.cc-topnav__org {
  width: 250px;
}

.cc-topnav__org .cc-select__control {
  height: 44px;
  padding-right: 46px;
  background: var(--cc-ground);
}

.cc-topnav__org .cc-select__chevron {
  width: 32px;
  height: 32px;
  background: var(--cc-card);
}

.cc-topnav__mobile .cc-topnav__org {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.cc-user-menu__signout button {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cc-fg);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.cc-user-menu__signout button:hover {
  background: var(--cc-card-2);
}

/* .cc-round-button comes after .cc-topnav__menu-button and gives it a display: the bar hides it again on a desktop. */
@media (min-width: 1041px) {
  .cc-topnav__end .cc-topnav__menu-button {
    display: none;
  }
}

@media (max-width: 1040px) {
  .cc-topnav__bar .cc-topnav__org {
    display: none;
  }
}

/* ---- dialog (CcDialog, M3.37) ---- */
.cc-dialog__scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--cc-scrim);
}

.cc-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  padding: 24px;
  overflow: auto;
  border-radius: 24px;
  background: var(--cc-card);
  box-shadow: var(--cc-pop-shadow);
}

.cc-dialog h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.cc-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* ---- switch (CcSwitch, M3.37) ---- */
.cc-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: var(--cc-line-2);
  cursor: pointer;
}

.cc-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cc-thumb);
  box-shadow: 0 1px 3px rgb(0 0 0 / .18);
  content: "";
  transition: left .15s;
}

.cc-switch--on {
  background: var(--cc-accent);
}

.cc-switch--on::after {
  left: 23px;
}

.cc-switch:disabled {
  cursor: default;
  opacity: .6;
}

/* ---- lists and the rows of the settings (M3.37) ---- */
.cc-list {
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
}

.cc-list__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 16px;
  border-bottom: 1px solid var(--cc-line);
}

.cc-list__row:last-child {
  border-bottom: 0;
}

.cc-list__grow {
  flex: 1;
  min-width: 0;
}

.cc-setting {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 10px 32px;
  align-items: center;
  padding: 17px 16px;
  border-bottom: 1px solid var(--cc-line);
}

.cc-setting:last-child {
  border-bottom: 0;
}

.cc-setting__key {
  color: var(--cc-fg);
  font-weight: 600;
}

.cc-setting__control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cc-setting__area {
  width: 100%;
}

.cc-setting__field {
  position: relative;
  width: 100%;
}

.cc-setting__field .cc-input {
  padding-right: 52px;
}

.cc-setting__field--two .cc-input {
  padding-right: 92px;
}

.cc-setting__btn {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--cc-card);
  color: var(--cc-fg-2);
  cursor: pointer;
}

.cc-setting__btn:hover {
  background: var(--cc-card-3);
  color: var(--cc-fg);
}

.cc-setting__btn--save,
.cc-setting__btn--save:hover {
  right: 6px;
  background: var(--cc-accent);
  color: var(--cc-on-accent);
}

.cc-setting__field--two .cc-setting__btn--save {
  right: 44px;
}

.cc-setting__btn--lock,
.cc-setting__btn--lock:hover {
  background: transparent;
  color: var(--cc-fg-3);
  cursor: default;
}

.cc-setting__btn .cc-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .cc-setting {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- tables (CcTable, M3.41a) ---- */
.cc-table-wrap {
  overflow-x: auto;
}

.cc-panel > .cc-table-wrap {
  padding: 0 18px 18px;
}

.cc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.cc-table th {
  padding: 13px 16px;
  background: var(--cc-card-2);
  color: var(--cc-fg-2);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.cc-table th:first-child {
  border-radius: 12px 0 0 12px;
}

.cc-table th:last-child {
  border-radius: 0 12px 12px 0;
}

.cc-table td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--cc-line);
  vertical-align: middle;
}

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

.cc-table tbody tr:hover td {
  background: color-mix(in srgb, var(--cc-card-2) 55%, transparent);
}

.cc-table .cc-r {
  text-align: right;
}

.cc-nowrap {
  white-space: nowrap;
}

.cc-dim {
  color: var(--cc-fg-3);
}

.cc-small {
  font-size: 12.5px;
}

.cc-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cc-cell > div {
  min-width: 0;
}

.cc-orgmark {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--cc-accent-soft);
  color: var(--cc-accent-fg);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .cc-panel > .cc-table-wrap {
    padding: 0 6px 8px;
  }
}

/* Panel tools and the line chart of the history (M3.22): the series differ by colour, dash and a direct label. */
.cc-panel__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cc-chart {
  position: relative;
  padding: 0 18px 12px;
  overflow-x: auto;
}

.cc-chart__box {
  position: relative;
  min-width: 540px;
}

.cc-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.cc-chart__grid {
  stroke: var(--cc-chart-grid);
}

.cc-chart__axis {
  fill: var(--cc-chart-text);
  font-size: 12px;
}

.cc-chart__label {
  fill: var(--cc-fg-2);
  font-size: 12px;
  font-weight: 600;
}

.cc-chart__flags {
  margin: 0;
  padding: 0 28px 12px;
  border: 0;
}

.cc-flag-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cc-card-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.cc-flag-check input {
  margin: 0;
  accent-color: var(--cc-accent);
}

.cc-flag-check svg {
  display: block;
}

/* Paged lists of the repository pages (M3.24): pager foot, commit cell and change of coverage. */
.cc-panel--table {
  padding-top: 18px;
}

.cc-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 28px 24px;
}

.cc-ellip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-strong {
  font-weight: 600;
}

.cc-commit-cell {
  max-width: 420px;
}

.cc-delta--up {
  color: var(--cc-ok-fg);
  font-weight: 600;
}

.cc-delta--down {
  color: var(--cc-err-fg);
  font-weight: 600;
}

/* The thumbnail of a row (M3.30): the icon of a pull request, a repository or a delivery. */
.cc-thumb {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--cc-card-2);
  color: var(--cc-fg-2);
}

.cc-thumb .cc-icon {
  width: 18px;
  height: 18px;
}

/* The summary of a commit (M3.25): key and value lines, plain lists. */
.cc-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 13.5px;
}

.cc-kv dt {
  color: var(--cc-fg-2);
}

.cc-kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.cc-plain-list {
  margin: 4px 0 0;
  padding-left: 18px;
}

/* The sparkline of the home page (M3.20): the area and the line of the 30-day trend. */
.cc-spark {
  display: block;
}

.cc-spark__area {
  fill: var(--cc-accent-soft);
}

.cc-spark__line {
  stroke: var(--cc-accent);
}

.cc-spark__dot {
  fill: var(--cc-accent);
}

/* A coverage as a bar of hits, partials and misses, its value as text (mockup covbar). */
.cc-covbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.cc-covbar__track {
  display: flex;
  flex: 1;
  gap: 2px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cc-card-2);
}

.cc-covbar__h {
  background: var(--cc-hit-edge);
}

.cc-covbar__p {
  background: var(--cc-part-edge);
}

.cc-covbar__m {
  background: var(--cc-miss-edge);
}

/* The operations of the instance (M3.40): gauge of the GitHub quota, small statistics, thumbnails by state. */
.cc-grid--main {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.cc-panel__sub {
  margin-top: 2px;
  color: var(--cc-fg-2);
  font-size: 13px;
}

.cc-gauge {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.cc-gauge__value {
  fill: var(--cc-fg);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.cc-gauge__caption {
  fill: var(--cc-fg-2);
  font-size: 12.5px;
}

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

.cc-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--cc-r-lg);
  background: var(--cc-card-2);
}

.cc-mini__label {
  color: var(--cc-fg-2);
  font-size: 13px;
}

.cc-mini__value {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.cc-quota-list {
  margin-top: 16px;
}

.cc-thumb--ok {
  background: var(--cc-ok-bg);
  color: var(--cc-ok-fg);
}

.cc-thumb--warn {
  background: var(--cc-warn-bg);
  color: var(--cc-warn-fg);
}

@media (max-width: 900px) {
  .cc-grid--main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Code block, from the mockup: the YAML of a repository, a badge snippet. */
.cc-code {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: var(--cc-r-md);
  background: var(--cc-code-bg);
  color: var(--cc-fg);
  font-family: var(--cc-mono);
  font-size: 12.5px;
  line-height: 1.65;
}

/* The copy button of a code block, from the mockup. */
.cc-copy {
  position: relative;
}

.cc-copy .cc-code {
  padding-right: 104px;
}

.cc-copy .cc-button {
  position: absolute;
  top: 9px;
  right: 9px;
  background: var(--cc-card);
}

/* Steps of the first-start wizard, from the mockup. */
.cc-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: cc-step;
}

.cc-stepper__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-r-xl);
  color: var(--cc-fg-3);
  font-size: 13px;
}

.cc-stepper__step::before {
  counter-increment: cc-step;
  content: counter(cc-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cc-card);
  font-weight: 600;
}

.cc-stepper__step--done {
  border-color: var(--cc-ok-fg);
  color: var(--cc-fg);
}

.cc-stepper__step--done::before {
  background: var(--cc-ok-bg);
  color: var(--cc-ok-fg);
}

/* The uploads and sessions of a commit (M3.26): a log column whose paths wrap, and a disclosure for the others. */
.cc-uploads__log {
  min-width: 220px;
  max-width: 420px;
}

.cc-uploads__paths,
.cc-uploads__messages {
  padding-left: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.cc-disclosure > summary {
  margin-top: 4px;
  color: var(--cc-accent);
  font-size: 13px;
  cursor: pointer;
}

/* The file tree of a commit (M3.27): one indentation step per level (inline), folders as toggle buttons, a sortable header. */
.cc-files__name {
  overflow-wrap: anywhere;
}

.cc-files__toggle,
.cc-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cc-files__toggle[aria-expanded="true"] .cc-icon {
  color: var(--cc-accent);
}

/* The range form of the free comparison (M3.33). */
.cc-compare-form {
  max-width: 520px;
}

/* The diff table of a comparison (M3.31): the signs stay in the text, the colour only repeats them. */
.cc-code__add {
  color: var(--cc-ok-fg);
}

.cc-code__del {
  color: var(--cc-err-fg);
}

.cc-code__head {
  color: var(--cc-info-fg);
}

/* The annotated source (M3.29): the totals strip, the legend of the patch, one plain table of lines with a margin
   coloured by state, and the colours of highlight.js under its cc-hl- prefix, on the tokens of both themes. */
.cc-panel__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 18px 0;
}

.cc-mini__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.cc-mini__dot--hit {
  background: var(--cc-hit-edge);
}

.cc-mini__dot--partial {
  background: var(--cc-part-edge);
}

.cc-mini__dot--miss {
  background: var(--cc-miss-edge);
}

.cc-legend {
  display: flex;
  gap: 18px;
  padding: 14px 28px 0;
  color: var(--cc-fg-2);
  font-size: 13px;
}

.cc-legend__patch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--cc-patch);
  box-shadow: inset 0 0 0 1.5px var(--cc-accent);
  vertical-align: -2px;
}

.cc-source {
  margin: 14px 12px 12px;
  overflow-x: auto;
  border-radius: var(--cc-r-md);
  background: var(--cc-code-bg);
  font-family: var(--cc-mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.cc-source table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.cc-source td {
  padding: 0;
  border: 0;
  white-space: pre;
}

.cc-source tr:focus {
  outline: 2px solid var(--cc-accent);
  outline-offset: -2px;
}

.cc-source__ln,
.cc-source__hits {
  width: 1%;
  color: var(--cc-fg-3);
  text-align: right;
  user-select: none;
}

.cc-source__ln {
  padding: 0 10px 0 14px;
}

.cc-source__hits {
  padding: 0 10px;
  font-size: 11.5px;
}

.cc-source__code {
  padding: 0 16px 0 12px;
  border-left: 3px solid transparent;
}

.cc-source tr[data-state="hit"] .cc-source__code {
  border-left-color: var(--cc-hit-edge);
  background: var(--cc-hit);
}

.cc-source tr[data-state="miss"] .cc-source__code {
  border-left-color: var(--cc-miss-edge);
  background: var(--cc-miss);
}

.cc-source tr[data-state="partial"] .cc-source__code {
  border-left-color: var(--cc-part-edge);
  background: var(--cc-part);
}

.cc-source tr.cc-source__patch .cc-source__ln {
  background: var(--cc-patch);
  color: var(--cc-accent-fg);
  font-weight: 600;
}

.cc-hl-keyword,
.cc-hl-built_in,
.cc-hl-literal,
.cc-hl-meta {
  color: var(--cc-tk-k);
}

.cc-hl-type,
.cc-hl-title,
.cc-hl-class,
.cc-hl-attr,
.cc-hl-tag,
.cc-hl-name {
  color: var(--cc-tk-t);
}

.cc-hl-string,
.cc-hl-number,
.cc-hl-regexp,
.cc-hl-symbol {
  color: var(--cc-tk-s);
}

.cc-hl-comment,
.cc-hl-doctag,
.cc-hl-quote {
  color: var(--cc-fg-3);
  font-style: italic;
}
