body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.auth-input,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    padding: 0.9rem 1rem;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.auth-input:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #0f8a5f;
    box-shadow: 0 0 0 4px rgba(15, 138, 95, 0.14);
}

.auth-card,
.app-card {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f8a5f 0%, #168a67 100%);
    padding: 0.9rem 1.2rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 138, 95, 0.20);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.primary-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0c7b54 0%, #127a5b 100%);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    background: #f1f5f9;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    color: #334155;
    transition: background 0.15s ease;
    text-decoration: none;
}

.secondary-button:hover {
    background: #e2e8f0;
}

.dashboard-shell {
    background: linear-gradient(180deg, #f3faf7 0%, #ffffff 320px);
}

.topbar {
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f8a5f 0%, #18a56f 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(15, 138, 95, 0.16);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.nav-link-active {
    color: #0f8a5f;
    background: #ecfdf5;
}

.nav-disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    color: #94a3b8;
    background: #f8fafc;
    font-weight: 700;
}

.hero-card {
    border-radius: 28px;
    background: linear-gradient(135deg, #eef9f3 0%, #f8fcfa 100%);
    border: 1px solid #dbece2;
    padding: 2rem;
}

.section-title {
    font-size: 2.9rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #020617;
}

.section-subtitle {
    color: #475569;
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 900px;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    min-height: 172px;
}

.metric-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 30px;
    height: 30px;
}

.metric-icon-green {
    background: #dcfce7;
    color: #15803d;
}

.metric-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.metric-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.metric-label {
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.3rem;
    line-height: 1.05;
    font-weight: 900;
    color: #020617;
}

.metric-help {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.content-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.panel-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}

.panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-icon svg {
    width: 24px;
    height: 24px;
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #020617;
    line-height: 1.1;
}

.panel-link {
    color: #0f8a5f;
    font-weight: 800;
    text-decoration: none;
}

.measurement-card {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 1.35rem;
    background: #ffffff;
}

.measurement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.measurement-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.measurement-date-badge {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.measurement-date-badge svg {
    width: 22px;
    height: 22px;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 2px solid #6ee7b7;
    padding: 0.75rem 1.2rem;
    font-weight: 800;
    color: #0f8a5f;
    text-decoration: none;
    background: #ffffff;
}

.measurement-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.measurement-value-item {
    border-left: 1px solid #e2e8f0;
    padding-left: 1rem;
}

.measurement-value-item:first-child {
    border-left: 0;
    padding-left: 0;
}

.measurement-item-label {
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.measurement-item-value {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #475569;
}

.step-box {
    border-radius: 20px;
    padding: 1rem 1.1rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-box-green {
    background: #edf9f2;
}

.step-box-purple {
    background: #f5f3ff;
}

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon-green {
    background: #bbf7d0;
    color: #15803d;
}

.step-icon-purple {
    background: #e9d5ff;
    color: #7c3aed;
}

.step-small {
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.step-small-green {
    color: #15803d;
}

.step-title {
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 900;
    color: #020617;
}

.empty-box {
    border-radius: 18px;
    background: #f8fafc;
    color: #64748b;
    padding: 1rem;
}

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

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .section-title {
        font-size: 2.3rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

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

    .measurement-value-item {
        border-left: 0;
        padding-left: 0;
    }
}

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

    .measurement-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .measurement-values {
        grid-template-columns: 1fr;
    }

    .panel-title {
        font-size: 1.45rem;
    }

    .section-title {
        font-size: 2rem;
    }
}