.psat-wrap {
    width: 100%;
    margin: 0;
}

.psat-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.psat-header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.7rem;
}

.psat-header p {
    margin: 0 0 20px;
    color: #334155;
}

.psat-form {
    display: grid;
    gap: 14px;
}

.psat-field {
    display: grid;
    gap: 6px;
}

.psat-field > span,
.psat-fieldset > legend {
    font-weight: 600;
    color: #0f172a;
}

.psat-field input[type='text'],
.psat-field textarea,
.psat-field select,
.psat-filter-form select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
    font-size: 0.96rem;
}

.psat-field textarea {
    resize: vertical;
}

.psat-required {
    color: #b91c1c;
}

.psat-fieldset {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.psat-rating-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.psat-rating-option {
    position: relative;
    min-width: 42px;
    text-align: center;
}

.psat-rating-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.psat-rating-option span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
}

.psat-rating-option input:checked + span {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.psat-inline-options {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.psat-inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.psat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.psat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.psat-btn-primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.psat-btn-primary:hover {
    background: #115e59;
    border-color: #115e59;
    color: #ffffff;
}

.psat-btn-light {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.psat-btn-light:hover {
    background: #f8fafc;
}

.psat-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.psat-alert-success {
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
}

.psat-alert-error {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.psat-honeypot {
    display: none !important;
}

.psat-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin-bottom: 16px;
}

.psat-filter-form label {
    display: grid;
    gap: 6px;
    min-width: 230px;
}

.psat-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.psat-kpi {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    background: #f8fafc;
}

.psat-kpi-label {
    display: block;
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.psat-kpi-value {
    color: #0f172a;
    font-size: 1.2rem;
}

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

.psat-panel {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
}

.psat-panel h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.05rem;
}

.psat-panel-full {
    margin-top: 14px;
}

.psat-bars {
    display: grid;
    gap: 10px;
}

.psat-bar-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 3fr) auto;
    align-items: center;
    gap: 8px;
}

.psat-bar-label {
    color: #334155;
    font-size: 0.9rem;
}

.psat-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.psat-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    border-radius: 999px;
    transition: width 700ms ease;
}

.psat-bar-value {
    color: #0f172a;
    font-size: 0.85rem;
    white-space: nowrap;
}

.psat-month-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(40px, 1fr));
    gap: 8px;
    align-items: end;
}

.psat-month-col {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.psat-month-track {
    width: 100%;
    min-height: 110px;
    background: #f1f5f9;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.psat-month-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #22d3ee, #0e7490);
    transition: height 700ms ease;
}

.psat-month-label {
    font-size: 0.75rem;
    color: #475569;
}

.psat-month-value {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 600;
}

.psat-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    color: #475569;
    background: #f8fafc;
}

.psat-help {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

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

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

    .psat-month-chart {
        grid-template-columns: repeat(6, minmax(42px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .psat-card {
        padding: 16px;
    }

    .psat-kpis {
        grid-template-columns: 1fr;
    }

    .psat-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .psat-month-chart {
        grid-template-columns: repeat(4, minmax(42px, 1fr));
    }
}
