:root {
  --fc-font-sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --fc-bg: #f5f7fb;
  --fc-surface: #ffffff;
  --fc-surface-alt: #eef2fb;
  --fc-text: #172033;
  --fc-text-muted: #536076;
  --fc-border: #d7ddea;
  --fc-primary: #155eef;
  --fc-primary-soft: rgba(21, 94, 239, 0.12);
  --fc-success-soft: rgba(9, 132, 92, 0.12);
  --fc-radius: 16px;
  --fc-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #ffffff 0%, var(--fc-bg) 58%);
  color: var(--fc-text);
  font-family: var(--fc-font-sans);
}

.fc-shell__main {
  min-height: 100vh;
}

a {
  color: var(--fc-primary);
}

.fc-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.fc-sidebar {
  padding: 32px 24px;
  background: linear-gradient(180deg, #13213f 0%, #1b2f57 100%);
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fc-sidebar__brand h1 {
  margin: 4px 0 0;
  font-size: 1.6rem;
}

.fc-sidebar__meta {
  margin-top: auto;
  font-size: 0.95rem;
  color: rgba(248, 251, 255, 0.76);
}

.fc-sidebar__meta a {
  color: #fff;
}

.fc-kicker,
.fc-topbar__label,
.fc-stat-card__label,
.fc-list__meta,
.fc-page-copy,
.fc-auth__copy,
.fc-section-heading p {
  color: var(--fc-text-muted);
}

.fc-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fc-sidebar .fc-kicker {
  color: rgba(248, 251, 255, 0.72);
}

.fc-nav {
  display: grid;
  gap: 8px;
}

.fc-nav__link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(248, 251, 255, 0.92);
  background: transparent;
}

.fc-nav__link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.fc-nav__link.is-disabled {
  color: rgba(248, 251, 255, 0.46);
}

.fc-app__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--fc-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.fc-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-topbar__actions form {
  margin: 0;
}

.fc-app__content {
  padding: 32px;
}

.fc-page-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.fc-page-title {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.fc-page-copy {
  max-width: 70ch;
  margin: 0;
}

.fc-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-grid {
  display: grid;
  gap: 20px;
}

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

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

.fc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.fc-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  padding: 24px;
}

.fc-stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 251, 0.95)),
    var(--fc-surface);
}

.fc-stat-card__label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fc-stat-card__value {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

.fc-stat-card__meta {
  margin: 10px 0 0;
  color: var(--fc-text-muted);
  font-size: 0.92rem;
}

.fc-section-heading {
  margin-bottom: 16px;
}

.fc-section-heading--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.fc-section-heading h2 {
  margin: 0 0 6px;
}

.fc-section-heading p {
  margin: 0;
}

.fc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fc-list__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--fc-border);
}

.fc-list__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.fc-table-wrap {
  overflow-x: auto;
}

.fc-table {
  width: 100%;
  border-collapse: collapse;
}

.fc-table th,
.fc-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--fc-border);
  text-align: left;
  vertical-align: top;
}

.fc-table th {
  color: var(--fc-text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fc-list__right {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.fc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.fc-empty {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--fc-surface-alt);
  color: var(--fc-text-muted);
}

.fc-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--fc-text-muted);
  font-size: 0.95rem;
}

.fc-key-value {
  display: grid;
  gap: 14px;
  margin: 0;
}

.fc-key-value div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--fc-border);
}

.fc-key-value div:first-child {
  padding-top: 0;
  border-top: 0;
}

.fc-key-value dt {
  color: var(--fc-text-muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fc-key-value dd {
  margin: 0;
}

.fc-code {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.fc-break {
  overflow-wrap: anywhere;
}

.fc-link-button,
.fc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--fc-border);
  border-radius: 999px;
  background: var(--fc-surface);
  color: var(--fc-text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.fc-button {
  border-color: var(--fc-primary);
  background: var(--fc-primary);
  color: #fff;
}

.fc-toolbar {
  margin-bottom: 20px;
}

.fc-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.fc-filter-form {
  display: grid;
  gap: 16px;
}

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

.fc-filter-field {
  display: grid;
  gap: 8px;
}

.fc-filter-field span {
  color: var(--fc-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fc-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fc-input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  background: var(--fc-surface);
  color: var(--fc-text);
  font: inherit;
}

.fc-insights {
  display: grid;
  gap: 14px;
}

.fc-insight {
  padding: 16px 18px;
  border: 1px solid var(--fc-border);
  border-radius: 14px;
  background: var(--fc-surface-alt);
}

.fc-insight--scale {
  border-color: rgba(9, 132, 92, 0.24);
  background: rgba(9, 132, 92, 0.08);
}

.fc-insight--fix {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.fc-insight--watch {
  border-color: rgba(21, 94, 239, 0.22);
  background: rgba(21, 94, 239, 0.08);
}

.fc-insight h3 {
  margin: 6px 0 8px;
}

.fc-insight p {
  margin: 0;
}

.fc-insight__tone {
  margin: 0;
  color: var(--fc-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fc-shell--auth {
  display: grid;
  place-items: center;
  padding: 32px;
}

.fc-auth {
  width: min(100%, 460px);
}

.fc-auth__card {
  padding: 32px;
  border: 1px solid var(--fc-border);
  border-radius: calc(var(--fc-radius) + 4px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--fc-shadow);
}

.fc-auth__card h1 {
  margin: 8px 0 8px;
}

.fc-auth__copy {
  margin: 0 0 20px;
}

.fc-auth__form {
  display: grid;
  gap: 16px;
}

.fc-auth__field {
  display: grid;
  gap: 8px;
}

.fc-auth__field input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  font: inherit;
}

@media (max-width: 1100px) {
  .fc-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 800px) {
  .fc-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .fc-sidebar {
    gap: 20px;
  }

  .fc-topbar,
  .fc-app__content {
    padding: 20px;
  }

  .fc-page-header {
    flex-direction: column;
  }

  .fc-section-heading--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .fc-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .fc-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fc-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
