.jc-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 142, 170, 0.16), transparent 34rem),
    linear-gradient(140deg, #05080a 0%, #061118 52%, #0f0f0d 100%);
}

.jc-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  border-right: 1px solid rgba(214, 168, 79, 0.28);
  background: rgba(3, 8, 12, 0.86);
  overflow-y: auto;
}

.jc-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--fd-text-main);
  text-decoration: none;
  margin-bottom: 18px;
}

.jc-brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fd-border-gold);
  border-radius: 50%;
  color: var(--fd-gold-soft);
  background: rgba(214, 168, 79, 0.12);
  font-family: var(--fd-font-display);
}

.jc-brand strong,
.jc-brand small {
  display: block;
}

.jc-brand strong {
  color: var(--fd-gold-soft);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.jc-brand small,
.jc-kicker,
.jc-status dt,
.jc-activity small,
.jc-actions-panel p {
  color: var(--fd-text-muted);
}

.jc-nav {
  display: grid;
  gap: 6px;
}

.jc-nav button,
.jc-record {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-sm);
  color: var(--fd-text-main);
  background: transparent;
  text-align: left;
}

.jc-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.jc-nav button:hover,
.jc-nav button.is-active,
.jc-record:hover,
.jc-record.is-active {
  border-color: rgba(214, 168, 79, 0.35);
  background: rgba(214, 168, 79, 0.12);
}

.jc-status,
.jc-board,
.jc-table-panel,
.jc-editor-panel,
.jc-actions-panel article,
.jc-metric {
  border: 1px solid rgba(214, 168, 79, 0.25);
  border-radius: var(--fd-radius-md);
  background: rgba(5, 17, 24, 0.72);
  box-shadow: var(--fd-shadow-panel);
}

.jc-status {
  margin-top: 16px;
  padding: 14px;
}

.jc-status dl {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.jc-status div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.jc-status dt,
.jc-status dd {
  margin: 0;
  font-size: 0.88rem;
}

.jc-status dd {
  color: #73dc7b;
}

.jc-workspace {
  min-width: 0;
  padding: 18px;
}

.jc-topbar,
.jc-section-head,
.jc-editor-panel header,
.jc-filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jc-topbar {
  justify-content: space-between;
  padding-bottom: 18px;
}

.jc-topbar h1,
.jc-section-head h2,
.jc-editor-panel h2,
.jc-actions-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.jc-topbar h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.jc-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--fd-gold-soft);
}

.jc-search {
  flex: 1;
  max-width: 620px;
  display: grid;
  gap: 4px;
}

.jc-search span,
.jc-token span,
.jc-json-editor span,
.jc-fields label span {
  font-size: 0.75rem;
  color: var(--fd-text-muted);
  text-transform: uppercase;
}

.jc-search input,
.jc-token input,
.jc-fields input,
.jc-fields select,
.jc-json-editor textarea,
.jc-filter-row select {
  width: 100%;
  border: 1px solid rgba(216, 192, 154, 0.22);
  border-radius: var(--fd-radius-sm);
  color: var(--fd-text-main);
  background: rgba(0, 0, 0, 0.26);
}

.jc-search input,
.jc-token input,
.jc-fields input,
.jc-fields select,
.jc-filter-row select {
  min-height: 38px;
  padding: 8px 10px;
}

.jc-button,
.jc-icon-button {
  min-height: 38px;
  border: 1px solid var(--fd-border-gold);
  border-radius: var(--fd-radius-sm);
  color: #15100a;
  background: linear-gradient(180deg, var(--fd-gold-soft), var(--fd-gold));
  font-weight: 700;
}

.jc-button {
  padding: 0 14px;
}

.jc-button--ghost,
.jc-icon-button {
  color: var(--fd-gold-soft);
  background: rgba(214, 168, 79, 0.08);
}

.jc-topbar__actions,
.jc-section-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jc-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.jc-metric {
  padding: 14px;
}

.jc-metric strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 8px;
}

.jc-metric small {
  color: #73dc7b;
}

.jc-board {
  padding: 14px;
}

.jc-section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.jc-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 14px;
}

.jc-table-panel,
.jc-editor-panel {
  min-width: 0;
  padding: 12px;
}

.jc-filter-row {
  justify-content: space-between;
  margin-bottom: 10px;
}

.jc-record-list {
  display: grid;
  gap: 8px;
  max-height: 584px;
  overflow: auto;
  padding-right: 4px;
}

.jc-record {
  padding: 12px;
}

.jc-record strong,
.jc-record span {
  display: block;
}

.jc-record span {
  color: var(--fd-text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.jc-editor-panel {
  display: grid;
  gap: 12px;
}

.jc-editor-panel header {
  justify-content: space-between;
}

.jc-pill {
  border: 1px solid rgba(79, 142, 170, 0.5);
  border-radius: 999px;
  padding: 5px 10px;
  color: #8ed7f2;
  font-size: 0.78rem;
}

.jc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jc-fields label {
  display: grid;
  gap: 5px;
}

.jc-fields label.is-wide {
  grid-column: 1 / -1;
}

.jc-json-editor {
  display: grid;
  gap: 6px;
}

.jc-json-editor textarea {
  min-height: 330px;
  resize: vertical;
  padding: 12px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.jc-editor-message {
  min-height: 22px;
  margin: 0;
  color: var(--fd-gold-soft);
}

.jc-actions-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.jc-actions-panel article {
  padding: 14px;
}

.jc-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jc-quick-actions button {
  min-height: 42px;
}

.jc-activity {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.jc-activity li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(216, 192, 154, 0.12);
  padding-bottom: 8px;
}

.jc-token {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .jc-admin-shell {
    grid-template-columns: 1fr;
  }

  .jc-sidebar {
    position: static;
    height: auto;
  }

  .jc-metrics,
  .jc-actions-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jc-topbar,
  .jc-section-head,
  .jc-content-grid,
  .jc-actions-panel,
  .jc-metrics {
    grid-template-columns: 1fr;
  }

  .jc-topbar,
  .jc-section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .jc-content-grid,
  .jc-actions-panel,
  .jc-metrics {
    display: grid;
  }
}
