:root {
    --fc-primary: #22c55e;
    --fc-primary-dark: #16a34a;
    --fc-primary-soft: #dcfce7;
    --fc-primary-light: #84cc16;
    --fc-accent-orange: #f97316;
    --fc-accent-red: #ef4444;
    --fc-accent-red-light: #fb7185;
    --fc-accent-yellow: #eab308;
    --fc-accent-blue: #3b82f6;
    --fc-accent-blue-light: #60a5fa;
    --fc-accent-purple: #8b5cf6;
    --fc-accent-purple-light: #c084fc;
    --fc-bg-light: #f6f7f5;
    --fc-surface-light: #ffffff;
    --fc-surface-soft-light: #f8faf8;
    --fc-text-light: #111827;
    --fc-text-muted-light: #6b7280;
    --fc-border-light: #e5e7eb;
    --fc-bg-dark: #0b0e11;
    --fc-surface-dark: #16191e;
    --fc-surface-soft-dark: #1c2026;
    --fc-text-dark: #f3f4f6;
    --fc-text-muted-dark: #9ca3af;
    --fc-border-dark: #262a30;
    --fc-radius-card: 20px;
    --fc-radius-btn: 12px;
    --fc-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
    --fc-shadow-card-hover: 0 18px 45px rgba(15, 23, 42, 0.11);
}

html { color-scheme: light; }
html.dark { color-scheme: dark; }
[x-cloak] { display: none !important; }

body {
    background:
        radial-gradient(circle at 75% -10%, rgba(132, 204, 22, 0.09), transparent 28rem),
        var(--fc-bg-light);
    color: var(--fc-text-light);
}

.dark body {
    background:
        radial-gradient(circle at 75% -10%, rgba(34, 197, 94, 0.08), transparent 28rem),
        var(--fc-bg-dark);
    color: var(--fc-text-dark);
}

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

.dark .fc-card {
    background: var(--fc-surface-dark);
    border-color: var(--fc-border-dark);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.fc-card-muted {
    background: var(--fc-surface-soft-light);
    border: 1px solid var(--fc-border-light);
    border-radius: calc(var(--fc-radius-card) - 4px);
}

.dark .fc-card-muted {
    background: var(--fc-surface-soft-dark);
    border-color: var(--fc-border-dark);
}

.fc-card-interactive {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fc-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--fc-shadow-card-hover);
    border-color: rgba(34, 197, 94, 0.32);
}

.fc-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--fc-border-light);
    border-radius: var(--fc-radius-btn);
    background: var(--fc-surface-light);
    color: var(--fc-text-light);
    padding: 0.72rem 0.9rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.fc-field::placeholder { color: #9ca3af; }
.fc-field:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.dark .fc-field {
    background: var(--fc-surface-soft-dark);
    border-color: var(--fc-border-dark);
    color: var(--fc-text-dark);
}

.fc-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--fc-text-muted-light);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.dark .fc-label { color: var(--fc-text-muted-dark); }

.fc-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--fc-radius-btn);
    padding: 0.68rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.fc-button:hover { transform: translateY(-1px); }
.fc-button-primary { background: var(--fc-primary-dark); color: #fff; }
.fc-button-primary:hover { background: #15803d; }
.fc-button-dark { background: #111827; color: #fff; }
.dark .fc-button-dark { background: var(--fc-primary-dark); }
.fc-button-secondary {
    border: 1px solid var(--fc-border-light);
    background: var(--fc-surface-light);
    color: #374151;
}
.dark .fc-button-secondary {
    border-color: var(--fc-border-dark);
    background: var(--fc-surface-soft-dark);
    color: #e5e7eb;
}
.fc-button-danger { border: 1px solid #fecaca; background: #fff1f2; color: #be123c; }
.dark .fc-button-danger { border-color: rgba(190, 18, 60, 0.35); background: rgba(136, 19, 55, 0.2); color: #fda4af; }

.fc-icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: none;
    border: 1px solid var(--fc-border-light);
    border-radius: var(--fc-radius-btn);
    background: var(--fc-surface-light);
    color: #4b5563;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.fc-icon-button:hover { transform: translateY(-1px); background: #f9fafb; border-color: #d1d5db; }
.dark .fc-icon-button { border-color: var(--fc-border-dark); background: var(--fc-surface-soft-dark); color: #d1d5db; }
.dark .fc-icon-button:hover { background: #242932; }

.fc-progress {
    width: 100%;
    height: 0.58rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0ec;
}
.dark .fc-progress { background: #252a31; }
.fc-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #84cc16, #22c55e);
}

.fc-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.fc-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.dark .fc-scrollbar::-webkit-scrollbar-thumb { background: #374151; }

.fc-gradient-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #7ac943 0%, #22c55e 50%, #16803e 100%);
    border-radius: var(--fc-radius-card);
    box-shadow: 0 18px 38px rgba(22, 163, 74, 0.25);
}
.fc-gradient-card::before,
.fc-gradient-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}
.fc-gradient-card::before { width: 15rem; height: 15rem; right: -7rem; top: -8rem; }
.fc-gradient-card::after { width: 10rem; height: 10rem; left: -5rem; bottom: -6rem; }

.fc-mobile-gradient {
    background: linear-gradient(155deg, #163d2c 0%, #0f251d 56%, #0b1511 100%);
}
.dark .fc-mobile-gradient { background: linear-gradient(155deg, #173b2c 0%, #101d17 55%, #090e0b 100%); }

.fc-grid-bg {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: 28px 28px;
}

.fc-ring {
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: conic-gradient(var(--ring-color, var(--fc-primary)) calc(var(--ring-value, 0) * 1%), #edf0ec 0);
}
.dark .fc-ring { background: conic-gradient(var(--ring-color, var(--fc-primary)) calc(var(--ring-value, 0) * 1%), #262b32 0); }
.fc-ring::after {
    content: '';
    width: 72%;
    height: 72%;
    border-radius: inherit;
    background: var(--fc-surface-light);
}
.dark .fc-ring::after { background: var(--fc-surface-dark); }

.fc-bottom-safe { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

@media (max-width: 767px) {
    .fc-card { border-radius: 18px; }
    .fc-mobile-edge { margin-inline: -0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
