.cc-admin {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.cc-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #36705b;
  border-radius: 21px;
  color: #f8fcfa;
  background: linear-gradient(116deg, #143b2f 0%, #205744 62%, #327a60 100%);
  box-shadow: 0 14px 34px #10382a1a;
}

.cc-hero::after {
  position: absolute;
  z-index: -1;
  inset: -172px -67px auto auto;
  width: 380px;
  height: 380px;
  border: 1px solid #e7f7e836;
  border-radius: 50%;
  box-shadow: 0 0 0 30px #d0f4dc12, 0 0 0 70px #d0f4dc0a;
  content: '';
  pointer-events: none;
}

.cc-eyebrow {
  color: #c6e9d5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.cc-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.035em;
  line-height: 1.07;
}

.cc-hero p { margin: 0; color: #d7ebdf; font-size: 14px; }
.cc-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.cc-shortcuts button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d6f7e451;
  border-radius: 8px;
  background: #e0f5e616;
  color: #f5fff8;
  font-size: 13px;
  font-weight: 700;
}
.cc-shortcuts button:hover { background: #e0f5e629; }

.cc-filters, .cc-panel, .cc-metric {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cc-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 19px;
}
.cc-filters label { display: grid; gap: 6px; color: var(--sub); font-size: 13px; font-weight: 700; }
.cc-filters select { min-width: 158px; max-width: 250px; min-height: 40px; }
.cc-filter-time { align-self: center; margin-left: auto; color: var(--muted); font-size: 12px; }
.cc-export { display: flex; align-items: end; gap: 8px; margin-left: auto; }
.cc-export select { min-width: 145px; }
.cc-export-download { min-width: 138px; white-space: nowrap; }
.cc-export + .cc-filter-time { margin-left: 0; }
.cc-refresh, .cc-export-download { min-height: 40px; }
:is(.cc-refresh, .cc-export-download) svg { width: 17px; height: 17px; }
.cc-feedback { margin: 0; padding: 10px 13px; border-radius: 9px; background: var(--greenWash); color: var(--greenText); font-size: 13px; }
.cc-feedback:empty { display: none; }
.cc-feedback-error { background: var(--panel2); color: var(--text); border: 1px solid #cb6f5b; }
.cc-results { display: grid; gap: 16px; min-width: 0; }
.cc-results[aria-busy="true"] { opacity: .78; }
.cc-results[hidden] { display: none; }

.cc-metrics { display: grid; grid-template-columns: 1.22fr repeat(3,minmax(0,1fr)); gap: 12px; }
.cc-metric { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 6px 10px; padding: 17px; }
.cc-metric-featured { border-color: color-mix(in srgb,var(--green) 35%,var(--border)); background: var(--greenWash); }
.cc-metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--greenText); background: var(--greenWash); }
.cc-metric-featured .cc-metric-icon { background: var(--panel); }
.cc-metric-icon svg { width: 19px; height: 19px; }
.cc-metric-label { font-size: 13px; font-weight: 750; }
.cc-metric > strong { grid-column: 1 / -1; margin-top: 3px; font-size: clamp(24px, 2.65vw, 35px); letter-spacing: -.055em; line-height: 1.12; overflow-wrap: anywhere; }
.cc-metric small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

.cc-panel { padding: 18px 20px; scroll-margin-top: 90px; }
.cc-panel-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.cc-panel-heading h2 { margin: 0; color: var(--text); font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.cc-panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.cc-status-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.cc-status-count {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel2);
  color: var(--sub);
  font-size: 12px;
}
.cc-status-count strong { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.cc-status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--cc-status-color, #798aa1); }
.cc-tone-amber { --cc-status-color: #bd7722; }
.cc-tone-blue { --cc-status-color: #4e83cd; }
.cc-tone-green { --cc-status-color: #26835e; }
.cc-tone-muted { --cc-status-color: #9a899b; }

.cc-search { display: flex; align-items: center; gap: 7px; max-width: 100%; }
.cc-search-field { position: relative; display: flex; align-items: center; min-width: 0; }
.cc-search-field svg { position: absolute; left: 9px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.cc-search-field input { width: min(230px,100%); min-height: 37px; padding-left: 29px; }
.cc-search button { min-height: 37px; }
.cc-empty { margin: 0; padding: 24px 12px; border: 1px dashed var(--border); border-radius: 11px; color: var(--muted); text-align: center; font-size: 13px; }
.cc-list-limit { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.cc-table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; }
.cc-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.cc-table th, .cc-table td { padding: 11px 12px; vertical-align: middle; }
.cc-table th { background: var(--panel2); color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.cc-table tr + tr td, .cc-table thead + tbody tr:first-child td { border-top: 1px solid var(--border); }
.cc-table td { color: var(--sub); }
.cc-table td strong { color: var(--text); font-weight: 750; }
.cc-table small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.cc-table .cc-numeric { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel2); color: var(--text); font-size: 11px; font-weight: 700; white-space: nowrap; }
.cc-selected-row { background: var(--greenWash); }
.cc-text-button { padding: 0; border: 0; background: transparent; color: var(--greenText); font: inherit; font-weight: 750; text-align: left; }
.cc-text-button:hover { text-decoration: underline; }

.cc-payment-dialog { width: min(560px, calc(100vw - 28px)); }
.cc-payment-dialog .editor-header { background: var(--greenWash); }
.cc-payment-dialog .editor-content { padding-top: 18px; }
.cc-payment-offer { margin: 0; color: var(--text); font-size: 15px; font-weight: 750; }
.cc-payment-note { margin: 6px 0 16px; color: var(--muted); font-size: 13px; }
.cc-payment-dialog select { min-height: 42px; }

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

@media (max-width: 710px) {
  .cc-hero { gap: 17px; }
  .cc-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .cc-metric { padding: 13px; }
  .cc-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cc-filter-time { display: none; }
  .cc-filters { padding: 13px; gap: 8px; }
  .cc-filters label { flex: 1 1 135px; min-width: 0; }
  .cc-filters select { width: 100%; min-width: 0; max-width: none; }
  .cc-export { width: 100%; margin-left: 0; }
  .cc-export label { flex: 1 1 auto; }
  .cc-panel { padding: 14px 12px; }
}

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