.fr-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--fr-space-5);
}

.fr-section {
  margin-top: var(--fr-space-8);
}

.fr-panel,
.fr-card {
  background: var(--fr-surface);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius-lg);
  box-shadow: var(--fr-shadow-1);
  padding: var(--fr-space-6);
  color: var(--fr-text);
}

.fr-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(37, 99, 235, 0.08)), var(--fr-surface);
}

.fr-panel + .fr-panel {
  margin-top: var(--fr-space-5);
}

.fr-grid {
  display: grid;
  gap: var(--fr-space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fr-h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
  margin: 0 0 var(--fr-space-3);
}

.fr-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f1f5f9;
  margin: 0 0 var(--fr-space-3);
}

.fr-h3 {
  font-size: 1.2rem;
  font-weight: 750;
  margin: 0 0 var(--fr-space-2);
  color: #e2e8f0;
}

.fr-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fr-text);
  margin: 0;
}

.fr-muted {
  color: var(--fr-muted);
}

.fr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fr-space-2);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.fr-btn.primary {
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.fr-btn.secondary {
  background: transparent;
  color: var(--fr-text);
  border-color: rgba(255, 255, 255, 0.18);
}

.fr-btn:hover {
  transform: translateY(-1px);
}

.fr-btn:active {
  transform: translateY(0);
}

.fr-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--fr-radius-md);
  border: 1px solid var(--fr-border);
  background: var(--fr-surface-2);
  color: var(--fr-text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  caret-color: #93c5fd;
}

.fr-input:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.fr-input::placeholder {
  color: var(--fr-muted);
}

.fr-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border-radius: var(--fr-radius-md);
  border: 1px solid var(--fr-border);
  background: var(--fr-surface-2);
  color: var(--fr-text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  caret-color: #93c5fd;
}

.fr-textarea:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.fr-textarea::placeholder {
  color: var(--fr-muted);
}

.fr-label {
  display: block;
  margin-bottom: var(--fr-space-2);
  font-weight: 700;
  color: #e2e8f0;
}

.fr-status-panel {
  display: grid;
  gap: var(--fr-space-4);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.fr-metric {
  background: var(--fr-surface-2);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius-md);
  padding: var(--fr-space-4);
  box-shadow: var(--fr-shadow-1);
}

.fr-metric strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: var(--fr-space-2);
  color: #f8fafc;
}

.fr-metric .fr-muted {
  display: block;
  font-size: 0.95rem;
}

.fr-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--fr-space-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--fr-border);
  color: var(--fr-text);
  background: rgba(255, 255, 255, 0.04);
}

.fr-pill.success {
  color: var(--fr-success);
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
}

.fr-pill.warning {
  color: var(--fr-warning);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.fr-pill.danger {
  color: var(--fr-danger);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
}

.fr-list {
  display: grid;
  gap: var(--fr-space-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.fr-item {
  background: var(--fr-surface-2);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius-md);
  padding: var(--fr-space-4);
}

.fr-actions {
  display: flex;
  gap: var(--fr-space-3);
  flex-wrap: wrap;
  align-items: center;
}

.fr-actions.fr-actions-center {
  justify-content: center;
}

.fr-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--fr-text);
}

.fr-table th,
.fr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fr-border);
  text-align: left;
}

.fr-table th {
  color: var(--fr-muted);
  font-weight: 700;
}

.fr-table code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 8px;
  color: #cbd5e1;
}

.fr-hero {
  display: grid;
  gap: var(--fr-space-5);
  padding: var(--fr-space-7) var(--fr-space-6);
  background: var(--fr-surface);
  border-radius: var(--fr-radius-lg);
  border: 1px solid var(--fr-border);
  box-shadow: var(--fr-shadow-1);
}

.fr-hero__meta {
  display: flex;
  gap: var(--fr-space-3);
  flex-wrap: wrap;
  align-items: center;
}

.fr-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--fr-space-2);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  color: #dbeafe;
  font-weight: 700;
  font-size: 0.95rem;
}

.fr-list-inline {
  display: flex;
  gap: var(--fr-space-3);
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fr-list-inline .fr-pill {
  margin: 0;
}

.fr-divider {
  height: 1px;
  background: var(--fr-border);
  margin: var(--fr-space-5) 0;
}

.fr-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fr-space-2);
}

.fr-tag-cloud .fr-pill {
  background: rgba(255, 255, 255, 0.06);
}

.fr-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.fr-ellipsis {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.fr-ellipsis-url {
  max-width: 320px;
}

.fr-ellipsis-alt {
  max-width: 260px;
}

.fr-problem-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-problem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-problem-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--fr-text);
  font-size: 0.96rem;
}

.fr-problem-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fr-warning);
  margin-top: 6px;
  flex-shrink: 0;
}

.fr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--fr-space-2);
  cursor: pointer;
  user-select: none;
}

.fr-checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--fr-border);
  background: var(--fr-surface-2);
  position: relative;
  margin-top: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fr-checkbox input[type="checkbox"]:checked {
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.fr-checkbox input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid #f8fafc;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.fr-checkbox input[type="checkbox"]:checked::after {
  opacity: 1;
}

.fr-checkbox span {
  color: var(--fr-text);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .fr-panel,
  .fr-card {
    padding: var(--fr-space-5);
  }

  .fr-hero {
    padding: var(--fr-space-6) var(--fr-space-5);
  }
}
