.cc-console {
  --cc-ink: #13233e;
  --cc-muted: #667893;
  --cc-line: #d9e3ef;
  --cc-surface: #ffffff;
  --cc-soft: #f5f8fc;
  --cc-primary: #274b7a;
  --cc-primary-strong: #18385f;
  --cc-action-start: #315f94;
  --cc-action-end: #18385f;
  --cc-action-text: #ffffff;
  --cc-gold: #c68a35;
  --cc-success: #16865d;
  --cc-danger: #c7424b;
  --cc-warning: #bf7425;
  --cc-info: #3979b8;
  color: var(--cc-ink);
  display: grid;
  gap: 16px;
  min-width: 0;
}

[data-theme="dark"] .cc-console,
[data-style="dark"] .cc-console,
[data-theme-effective="dark"] .cc-console,
.kt-theme-dark .cc-console,
[data-bs-theme="dark"] .cc-console,
.dark .cc-console {
  --cc-ink: #edf4ff;
  --cc-muted: #9dafc9;
  --cc-line: rgba(157, 175, 201, 0.2);
  --cc-surface: #152136;
  --cc-soft: #101a2b;
  --cc-primary: #7ea9dd;
  --cc-primary-strong: #9ec4ef;
  --cc-action-start: #356fa8;
  --cc-action-end: #214a77;
  --cc-action-text: #ffffff;
  --cc-gold: #e3ad5d;
  --cc-success: #55c995;
  --cc-danger: #f07a81;
  --cc-warning: #efac62;
  --cc-info: #7db7eb;
}

.cc-hero {
  align-items: center;
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--cc-gold) 18%, transparent), transparent 34%),
    linear-gradient(135deg, var(--cc-surface), color-mix(in srgb, var(--cc-primary) 5%, var(--cc-surface)));
  border: 1px solid var(--cc-line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(28, 52, 86, 0.08);
  display: flex;
  justify-content: space-between;
  min-height: 112px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}

.cc-hero::after {
  background: linear-gradient(180deg, var(--cc-gold), transparent);
  content: "";
  inset-block: 18px;
  inset-inline-start: 0;
  position: absolute;
  width: 3px;
}

.cc-hero__identity,
.cc-hero__command,
.cc-filter-panel__heading,
.cc-filter-panel__footer,
.cc-row__identity,
.cc-row__actions,
.cc-meta,
.cc-chips {
  align-items: center;
  display: flex;
}

.cc-hero__identity {
  gap: 15px;
  min-width: 0;
}

.cc-hero__icon {
  align-items: center;
  background: linear-gradient(145deg, var(--cc-primary), var(--cc-primary-strong));
  border: 4px solid color-mix(in srgb, var(--cc-primary) 12%, var(--cc-surface));
  border-radius: 17px;
  box-shadow: 0 12px 25px color-mix(in srgb, var(--cc-primary) 22%, transparent);
  color: #fff;
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
}

.cc-hero__icon i {
  font-size: 25px;
}

.cc-eyebrow,
.cc-row__kicker,
.cc-hero h1,
.cc-hero p,
.cc-count small,
.cc-count strong,
.cc-row h2,
.cc-row p,
.cc-empty p,
.cc-empty strong,
.cc-empty small,
.cc-modal h2,
.cc-modal p,
.cc-modal small {
  margin: 0;
}

.cc-eyebrow,
.cc-row__kicker {
  color: var(--cc-gold);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.cc-hero h1 {
  color: var(--cc-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.25;
}

.cc-hero p {
  color: var(--cc-muted);
  font-size: 13px;
  margin-top: 4px;
}

.cc-hero__command {
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.cc-count {
  border-inline-end: 1px solid var(--cc-line);
  display: grid;
  min-width: 92px;
  padding-inline-end: 16px;
}

.cc-count small {
  color: var(--cc-muted);
  font-size: 10px;
  font-weight: 700;
}

.cc-count strong {
  color: var(--cc-ink);
  font-size: 23px;
  line-height: 1.1;
}

.cc-button,
.cc-icon-button,
.cc-action,
.cc-tab {
  align-items: center;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  color: var(--cc-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cc-button,
.cc-tab {
  border-radius: 12px;
}

.cc-icon-button,
.cc-action {
  border-radius: 11px;
  flex: 0 0 40px;
  height: 40px;
  padding: 0;
}

.cc-button:hover,
.cc-icon-button:hover,
.cc-action:hover,
.cc-tab:hover {
  border-color: color-mix(in srgb, var(--cc-primary) 48%, var(--cc-line));
  box-shadow: 0 8px 18px rgba(24, 56, 95, 0.1);
  color: var(--cc-primary-strong);
  transform: translateY(-1px);
}

.cc-button--primary,
.cc-button--primary:hover,
.cc-button--primary:focus,
.cc-button--primary:focus-visible,
.cc-button--primary:active {
  background: linear-gradient(135deg, var(--cc-action-start), var(--cc-action-end));
  border-color: transparent;
  color: var(--cc-action-text);
  text-shadow: 0 1px 1px rgba(7, 23, 43, 0.22);
}

.cc-button--primary:hover,
.cc-button--primary:focus-visible {
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--cc-action-end) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--cc-action-text);
}

.cc-button--primary:active {
  box-shadow: inset 0 2px 5px rgba(7, 23, 43, 0.2);
  transform: translateY(0);
}

.cc-button--primary i,
.cc-button--primary span {
  color: inherit;
}

.cc-button--primary:disabled {
  color: rgba(255, 255, 255, 0.82);
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.cc-button--danger,
.cc-action--danger {
  color: var(--cc-danger);
}

.cc-tabs {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 7px;
  scrollbar-width: thin;
}

.cc-tabs:has(> .cc-tab:only-child) {
  background: color-mix(in srgb, var(--cc-surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--cc-primary) 18%, var(--cc-line));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--cc-primary) 7%, transparent);
  justify-self: start;
  padding: 5px;
  width: fit-content;
}

.cc-tabs:has(> .cc-tab:only-child) .cc-tab {
  background: linear-gradient(145deg, color-mix(in srgb, var(--cc-primary) 7%, var(--cc-surface)), var(--cc-surface));
  border-color: color-mix(in srgb, var(--cc-primary) 14%, var(--cc-line));
  min-height: 40px;
  padding-inline: 14px;
}

.cc-tab {
  color: var(--cc-muted);
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

.cc-tab > i {
  align-items: center;
  background: color-mix(in srgb, var(--cc-primary) 7%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 12%, var(--cc-line));
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.cc-tab b {
  background: var(--cc-soft);
  border-radius: 999px;
  color: var(--cc-ink);
  font-size: 10px;
  min-width: 22px;
  padding: 3px 7px;
}

.cc-tab.is-active {
  background: color-mix(in srgb, var(--cc-primary) 10%, var(--cc-surface));
  border-color: color-mix(in srgb, var(--cc-primary) 38%, var(--cc-line));
  color: var(--cc-primary-strong);
}

.cc-tab--success.is-active { color: var(--cc-success); }
.cc-tab--danger.is-active { color: var(--cc-danger); }
.cc-tab--warning.is-active { color: var(--cc-warning); }
.cc-tab--info.is-active { color: var(--cc-info); }

.cc-filter-panel {
  animation: cc-filter-panel-enter 190ms ease-out both;
  background:
    radial-gradient(circle at 92% -18%, color-mix(in srgb, var(--cc-primary) 11%, transparent), transparent 32%),
    linear-gradient(145deg, var(--cc-surface), color-mix(in srgb, var(--cc-primary) 2.5%, var(--cc-surface)));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 16%, var(--cc-line));
  border-radius: 20px;
  box-shadow:
    0 22px 55px rgba(20, 41, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 18px;
  position: relative;
  z-index: 4;
}

@keyframes cc-filter-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cc-filter-panel::before {
  background: linear-gradient(90deg, transparent, var(--cc-gold), var(--cc-primary), transparent);
  border-radius: 999px;
  content: "";
  height: 2px;
  inset-inline: 24px;
  opacity: 0.72;
  position: absolute;
  top: 0;
}

.cc-filter-panel[hidden],
.cc-modal[hidden] {
  display: none !important;
}

.cc-filter-panel__heading {
  gap: 12px;
  margin-bottom: 18px;
}

.cc-filter-panel__heading > span {
  align-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cc-primary) 13%, var(--cc-surface)), var(--cc-soft));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 17%, var(--cc-line));
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: var(--cc-primary-strong);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

.cc-filter-panel__heading > span i {
  font-size: 19px;
}

.cc-filter-panel__heading > div {
  display: grid;
  flex: 1;
  gap: 2px;
}

.cc-filter-panel__heading strong {
  color: var(--cc-ink);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.cc-filter-panel__heading small {
  color: var(--cc-muted);
  font-size: 11px;
  font-weight: 650;
}

.cc-filter-panel__heading .cc-icon-button {
  background: color-mix(in srgb, var(--cc-surface) 86%, transparent);
  border-color: color-mix(in srgb, var(--cc-primary) 18%, var(--cc-line));
  color: var(--cc-muted);
}

.cc-filter-panel__heading .cc-icon-button:hover,
.cc-filter-panel__heading .cc-icon-button:focus-visible {
  background: color-mix(in srgb, var(--cc-primary) 8%, var(--cc-surface));
  color: var(--cc-primary-strong);
}

.cc-filter-grid {
  display: grid;
  gap: 14px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.cc-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
}

.cc-field > span {
  color: var(--cc-muted);
  font-size: 10.5px;
  font-weight: 800;
  padding-inline: 2px;
}

.cc-field > span::before {
  background: var(--cc-gold);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 4px;
  margin-inline-end: 6px;
  opacity: 0.72;
  vertical-align: middle;
  width: 4px;
}

.cc-field input,
.cc-field select {
  appearance: none;
  background: color-mix(in srgb, var(--cc-soft) 82%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 10%, var(--cc-line));
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: var(--cc-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  height: 46px;
  min-width: 0;
  outline: none;
  padding-inline: 14px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.cc-field input:hover,
.cc-field select:hover {
  background: var(--cc-surface);
  border-color: color-mix(in srgb, var(--cc-primary) 28%, var(--cc-line));
}

.cc-field input:focus,
.cc-field select:focus {
  border-color: var(--cc-primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--cc-primary) 11%, transparent),
    0 10px 22px color-mix(in srgb, var(--cc-primary) 8%, transparent);
}

.cc-field input[type="date"] {
  color-scheme: light;
}

[data-theme="dark"] .cc-field input[type="date"],
[data-bs-theme="dark"] .cc-field input[type="date"],
.dark .cc-field input[type="date"] {
  color-scheme: dark;
}

[data-theme="dark"] .cc-filter-panel,
[data-bs-theme="dark"] .cc-filter-panel,
.dark .cc-filter-panel {
  box-shadow:
    0 24px 60px rgba(2, 8, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.cc-select.is-enhanced > select {
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  inline-size: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.cc-select__trigger {
  align-items: center;
  appearance: none;
  background: color-mix(in srgb, var(--cc-soft) 82%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 10%, var(--cc-line));
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: var(--cc-ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  height: 46px;
  min-width: 0;
  padding: 6px 8px;
  text-align: start;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.cc-select__trigger:hover {
  background: var(--cc-surface);
  border-color: color-mix(in srgb, var(--cc-primary) 28%, var(--cc-line));
  transform: translateY(-1px);
}

.cc-select.is-open {
  z-index: 50;
}

.cc-select.is-open .cc-select__trigger,
.cc-select__trigger:focus-visible {
  background: var(--cc-surface);
  border-color: var(--cc-primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--cc-primary) 11%, transparent),
    0 12px 26px color-mix(in srgb, var(--cc-primary) 12%, transparent);
  outline: none;
}

.cc-select__leading,
.cc-select__chevron {
  align-items: center;
  background: color-mix(in srgb, var(--cc-primary) 7%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 13%, var(--cc-line));
  border-radius: 9px;
  color: var(--cc-primary);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.cc-select__leading i {
  font-size: 15px;
}

.cc-select__chevron {
  color: var(--cc-muted);
  transition: background-color 160ms ease, color 160ms ease, transform 180ms ease;
}

.cc-select.is-open .cc-select__chevron {
  background: var(--cc-primary);
  border-color: transparent;
  color: var(--cc-action-text);
  transform: rotate(180deg);
}

.cc-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-select:not(.has-value) .cc-select__value {
  color: var(--cc-muted);
  font-weight: 700;
}

.cc-select__menu {
  animation: cc-select-enter 150ms ease-out both;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--cc-surface) 96%, var(--cc-soft));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 21%, var(--cc-line));
  border-radius: 15px;
  box-shadow:
    0 24px 56px color-mix(in srgb, var(--cc-action-end) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 5px;
  inset-block-start: calc(100% + 7px);
  inset-inline: 0;
  max-height: 280px;
  min-width: max(100%, 220px);
  overflow-y: auto;
  padding: 7px;
  position: absolute;
  transform-origin: top center;
  z-index: 60;
}

.cc-select__menu[hidden] {
  display: none;
}

.cc-select.opens-up .cc-select__menu {
  inset-block: auto calc(100% + 7px);
  transform-origin: bottom center;
}

.cc-select__option {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--cc-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  text-align: start;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  width: 100%;
}

.cc-select__option:hover,
.cc-select__option:focus-visible {
  background: color-mix(in srgb, var(--cc-primary) 7%, var(--cc-surface));
  border-color: color-mix(in srgb, var(--cc-primary) 14%, var(--cc-line));
  color: var(--cc-primary-strong);
  outline: none;
  transform: translateX(calc(var(--cc-select-shift, 1) * -2px));
}

[dir="ltr"] .cc-select__option:hover,
[dir="ltr"] .cc-select__option:focus-visible {
  --cc-select-shift: -1;
}

.cc-select__option.is-selected {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cc-primary) 12%, var(--cc-surface)), color-mix(in srgb, var(--cc-gold) 5%, var(--cc-surface)));
  border-color: color-mix(in srgb, var(--cc-primary) 24%, var(--cc-line));
  color: var(--cc-primary-strong);
  font-weight: 850;
}

.cc-select__option-mark {
  align-items: center;
  background: color-mix(in srgb, var(--cc-primary) 9%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 16%, var(--cc-line));
  border-radius: 8px;
  color: var(--cc-primary);
  display: inline-flex;
  flex: 0 0 27px;
  height: 27px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease;
}

.cc-select__option.is-selected .cc-select__option-mark {
  opacity: 1;
  transform: scale(1);
}

.cc-select__option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cc-select.is-disabled .cc-select__trigger {
  cursor: not-allowed;
  opacity: 0.62;
}

@keyframes cc-select-enter {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cc-filter-panel__footer {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cc-primary) 4%, var(--cc-surface)), var(--cc-surface));
  border-top: 1px solid var(--cc-line);
  gap: 8px;
  border-radius: 0 0 19px 19px;
  margin: 18px -18px -18px;
  padding: 15px 18px;
}

.cc-filter-panel__footer .cc-button {
  border-radius: 13px;
  font-size: 12px;
  font-weight: 850;
  min-height: 44px;
  min-width: 142px;
  padding-inline: 18px;
}

.cc-filter-panel__footer .cc-button--primary {
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--cc-action-end) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cc-filter-panel__footer .cc-button:not(.cc-button--primary) {
  background: color-mix(in srgb, var(--cc-primary) 3%, var(--cc-surface));
  border-color: color-mix(in srgb, var(--cc-primary) 25%, var(--cc-line));
  color: var(--cc-primary);
}

.cc-filter-panel__footer .cc-button i {
  font-size: 18px;
}

.cc-results-shell {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(28, 52, 86, 0.07);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.cc-results-shell__bar {
  align-items: center;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cc-primary) 3%, var(--cc-surface)), var(--cc-surface));
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 16px;
}

.cc-results-shell__bar strong {
  align-items: center;
  color: var(--cc-ink);
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
}

.cc-results-shell__bar strong::before {
  background: linear-gradient(180deg, var(--cc-gold), var(--cc-primary));
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc-gold) 9%, transparent);
  content: "";
  height: 18px;
  width: 3px;
}

.cc-results-shell__bar span {
  background: color-mix(in srgb, var(--cc-primary) 4%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-primary) 9%, var(--cc-line));
  border-radius: 999px;
  color: var(--cc-muted);
  font-size: 11px;
  padding: 5px 9px;
}

.cc-resource-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.cc-row {
  align-items: center;
  border-bottom: 1px solid var(--cc-line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(235px, 1.4fr) minmax(360px, 2fr) auto;
  min-height: 104px;
  padding: 15px 17px;
  position: relative;
}

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

.cc-row:hover {
  background: color-mix(in srgb, var(--cc-primary) 3%, var(--cc-surface));
}

.cc-row::before {
  background: var(--cc-primary);
  border-radius: 999px;
  content: "";
  inset-block: 25%;
  inset-inline-start: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 160ms ease;
  width: 3px;
}

.cc-row:hover::before {
  opacity: 1;
}

.cc-row__identity {
  gap: 12px;
  min-width: 0;
}

.cc-avatar,
.cc-image {
  align-items: center;
  background: linear-gradient(145deg, var(--cc-soft), color-mix(in srgb, var(--cc-primary) 8%, var(--cc-soft)));
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  color: var(--cc-primary);
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
  overflow: hidden;
}

.cc-avatar i {
  font-size: 23px;
}

.cc-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cc-row__copy {
  min-width: 0;
}

.cc-row h2 {
  color: var(--cc-ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-row p {
  color: var(--cc-muted);
  font-size: 11px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-row__facts {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.cc-fact {
  border-inline-start: 1px solid var(--cc-line);
  display: grid;
  min-width: 0;
  padding-inline-start: 12px;
}

.cc-fact small {
  color: var(--cc-muted);
  font-size: 9px;
  font-weight: 700;
}

.cc-fact strong {
  color: var(--cc-ink);
  font-size: 12px;
  margin-top: 3px;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cc-row__actions {
  gap: 6px;
  justify-content: flex-end;
}

.cc-action {
  color: var(--cc-primary);
}

.cc-status {
  align-items: center;
  background: var(--cc-soft);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  color: var(--cc-muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  line-height: 1;
  padding: 7px 10px;
  width: max-content;
}

.cc-status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.cc-status--active,
.cc-status--finished,
.cc-status--available,
.cc-status--visible { color: var(--cc-success); }
.cc-status--inactive,
.cc-status--cancelled,
.cc-status--expired,
.cc-status--unavailable,
.cc-status--hidden { color: var(--cc-danger); }
.cc-status--current { color: var(--cc-info); }
.cc-status--new { color: var(--cc-warning); }

.cc-chips {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.cc-chip {
  align-items: center;
  background: var(--cc-soft);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  color: var(--cc-muted);
  display: inline-flex;
  font-size: 9px;
  gap: 5px;
  padding: 4px 7px;
}

.cc-swatch {
  border: 1px solid color-mix(in srgb, #000 15%, transparent);
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.cc-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  justify-content: center;
  padding: 42px 20px;
  text-align: center;
}

.cc-empty__icon {
  align-items: center;
  background: var(--cc-soft);
  border: 1px solid var(--cc-line);
  border-radius: 22px;
  color: var(--cc-primary);
  display: inline-flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 15px;
  transform: rotate(-4deg);
  width: 72px;
}

.cc-empty__icon i {
  font-size: 31px;
}

.cc-empty small {
  color: var(--cc-gold);
  font-size: 10px;
  font-weight: 800;
}

.cc-empty strong {
  color: var(--cc-ink);
  font-size: 20px;
  margin-top: 3px;
}

.cc-empty p {
  color: var(--cc-muted);
  font-size: 12px;
  margin: 7px 0 15px;
  max-width: 480px;
}

.cc-pagination {
  border-top: 1px solid var(--cc-line);
  display: flex;
  justify-content: center;
  padding: 14px;
}

.cc-pagination .pagination {
  margin: 0;
}

.cc-console.is-loading .cc-results-shell::after {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cc-primary) 14%, transparent), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
  animation: cc-shimmer 1s infinite;
  z-index: 3;
}

.cc-error {
  background: color-mix(in srgb, var(--cc-danger) 9%, var(--cc-surface));
  border: 1px solid color-mix(in srgb, var(--cc-danger) 30%, var(--cc-line));
  border-radius: 12px;
  color: var(--cc-danger);
  font-size: 12px;
  padding: 10px 13px;
}

.cc-modal {
  inset: 0;
  position: fixed;
  z-index: 1095;
}

.cc-modal__backdrop {
  background: rgba(8, 18, 33, 0.62);
  inset: 0;
  position: absolute;
}

.cc-modal__dialog {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(8, 18, 33, 0.28);
  display: grid;
  gap: 15px;
  inset-inline-start: 50%;
  max-width: calc(100vw - 32px);
  padding: 23px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 430px;
}

[dir="rtl"] .cc-modal__dialog {
  transform: translate(50%, -50%);
}

.cc-modal__icon {
  align-items: center;
  background: color-mix(in srgb, var(--cc-danger) 10%, var(--cc-surface));
  border-radius: 16px;
  color: var(--cc-danger);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.cc-modal__icon i {
  font-size: 24px;
}

.cc-modal small { color: var(--cc-danger); font-size: 10px; font-weight: 800; }
.cc-modal h2 { color: var(--cc-ink); font-size: 19px; margin-top: 3px; }
.cc-modal p { color: var(--cc-muted); font-size: 12px; margin-top: 7px; }
.cc-modal__actions { display: flex; gap: 8px; }
.cc-modal-open { overflow: hidden; }

@keyframes cc-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1100px) {
  .cc-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-row { grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.5fr); }
  .cc-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 767px) {
  .cc-console { gap: 12px; }
  .cc-hero { align-items: flex-start; flex-direction: column; border-radius: 18px; padding: 17px; }
  .cc-hero__command { justify-content: flex-start; width: 100%; }
  .cc-count { margin-inline-end: auto; }
  .cc-filter-grid { grid-template-columns: 1fr; }
  .cc-filter-panel { border-radius: 18px; padding: 15px; }
  .cc-filter-panel__heading { align-items: flex-start; }
  .cc-filter-panel__footer { align-items: stretch; flex-direction: column; }
  .cc-filter-panel__footer { border-radius: 0 0 17px 17px; margin: 16px -15px -15px; padding: 14px 15px; }
  .cc-filter-panel__footer .cc-button { width: 100%; }
  .cc-row {
    align-items: stretch;
    gap: 13px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 15px;
  }
  .cc-row__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-row__actions { grid-column: auto; justify-content: flex-start; }
  .cc-action { flex: 1 1 40px; }
  .cc-results-shell { border-radius: 17px; overflow: hidden; }
  .cc-results-shell__bar { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (max-width: 420px) {
  .cc-hero__identity { align-items: flex-start; }
  .cc-hero__icon { flex-basis: 46px; height: 46px; }
  .cc-button span { display: none; }
  .cc-filter-panel__footer .cc-button span { display: inline; }
  .cc-row__facts { grid-template-columns: 1fr; }
  .cc-fact { border-inline-start: 0; border-top: 1px solid var(--cc-line); padding: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-console *,
  .cc-console *::before,
  .cc-console *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
