.fc-app {
  --fc-bg: #f7f6f3;
  --fc-card: #ffffff;
  --fc-stroke: #d9d6cf;
  --fc-text: #1f1f1f;
  --fc-soft: #6f6a5f;
  --fc-accent: #1e6f5c;
  --fc-accent-2: #c25b2a;
  color: var(--fc-text);
}

.fc-hero {
  background: linear-gradient(145deg, #ece7de, #f9f5ec);
  border: 1px solid var(--fc-stroke);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.fc-kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-accent-2);
  font-size: 12px;
}

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

.fc-hero p {
  margin: 0;
  color: var(--fc-soft);
}

.fc-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.fc-panel {
  background: var(--fc-card);
  border: 1px solid var(--fc-stroke);
  border-radius: 14px;
  padding: 12px;
}

.fc-label {
  font-size: 13px;
  font-weight: 600;
}

.fc-input {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--fc-stroke);
  background: #fff;
  color: var(--fc-text);
}

.fc-panel-controls {
  width: 100%;
  max-width: 320px;
  height: 72vh;
  max-height: 72vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fc-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 10px;
}

.fc-toolbar-field {
  min-width: 0;
  width: 100%;
}

.fc-toolbar-actions {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
}

.fc-button {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--fc-stroke);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf9, #f1ebe0);
  color: var(--fc-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.fc-button:hover {
  background: linear-gradient(180deg, #fffaf2, #e9e1d3);
}

.fc-button:active {
  transform: translateY(1px);
}

.fc-button[aria-pressed="true"] {
  background: linear-gradient(180deg, #e8f2ee, #d8e7df);
  border-color: #aac7bb;
  color: #185744;
}

.fc-options-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.fc-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid #ebe7dd;
  border-radius: 10px;
  padding: 6px;
}

.fc-item {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 6px;
  white-space: nowrap;
}

.fc-item:hover {
  background: #faf8f2;
}

.fc-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-panel-plot {
  position: relative;
  height: 72vh;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

#fc-canvas {
  display: block;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfaf7);
  border: 1px solid #ece8df;
}

.fc-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  text-align: center;
  white-space: nowrap;
  color: #7d776a;
  font-style: italic;
  pointer-events: none;
}

.fc-legend {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 10px;
  margin-top: 10px;
}

.fc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3a372f;
}

.fc-chip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

@media (max-width: 920px) {
  .fc-grid {
    grid-template-columns: 1fr;
  }

  .fc-panel-controls {
    max-width: none;
    height: 58vh;
    max-height: 58vh;
  }

  .fc-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fc-toolbar-actions {
    margin-bottom: 10px;
  }

  .fc-list {
    flex: 0 0 auto;
    max-height: 220px;
  }

  .fc-panel-plot {
    height: 58vh;
    max-height: 58vh;
  }
}
