body.d360-student-dashboard-page {
    background: #eef2f7;
    color: #172033;
}

body.d360-student-dashboard-page #secondary,
body.d360-student-dashboard-page .widget-area,
body.d360-student-dashboard-page .sidebar,
body.d360-student-dashboard-page #comments,
body.d360-student-dashboard-page .comments-area,
body.d360-student-dashboard-page .wp-block-comments,
body.d360-student-dashboard-page .wp-block-post-comments-form {
    display: none !important;
}

body.d360-student-dashboard-page .site-content,
body.d360-student-dashboard-page .content-area,
body.d360-student-dashboard-page #primary,
body.d360-student-dashboard-page .site-main,
body.d360-student-dashboard-page .entry-content {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.d360-student-dashboard-page .entry-header,
body.d360-student-dashboard-page .entry-title {
    display: none !important;
}

body.d360-student-dashboard-page .entry-content {
    padding: 0 !important;
}

.d360-student-shell,
.d360-student-shell * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.d360-student-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 64px;
    color: #172033;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.d360-student-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 170px;
    padding: 30px 34px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    box-shadow: 0 20px 48px rgba(23, 32, 51, .18);
}

.d360-student-heading {
    min-width: 0;
}

.d360-student-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 6px;
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 800;
}

.d360-student-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.d360-student-heading p {
    margin: 9px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
}

.d360-student-account {
    display: grid;
    grid-template-columns: 50px minmax(120px, auto) 40px;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.d360-student-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fbbf24;
    color: #422006;
    font-size: 21px;
    font-weight: 900;
}

.d360-student-account strong,
.d360-student-account span {
    display: block;
}

.d360-student-account strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.d360-student-account > div > span {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 12px;
}

.d360-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease;
}

.d360-icon-action:hover,
.d360-icon-action:focus {
    border-color: #fca5a5;
    background: rgba(239, 68, 68, .18);
    color: #fff;
}

.d360-student-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 36px;
}

.d360-student-stat {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .06);
}

.d360-student-stat > .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 7px;
    font-size: 22px;
}

.d360-student-stat.is-blue > .dashicons {
    background: #dbeafe;
    color: #1d4ed8;
}

.d360-student-stat.is-green > .dashicons {
    background: #dcfce7;
    color: #15803d;
}

.d360-student-stat.is-amber > .dashicons {
    background: #fef3c7;
    color: #b45309;
}

.d360-student-stat.is-slate > .dashicons {
    background: #e2e8f0;
    color: #334155;
}

.d360-student-stat small,
.d360-student-stat strong {
    display: block;
}

.d360-student-stat small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.d360-student-stat strong {
    margin-top: 3px;
    color: #172033;
    font-size: 25px;
    line-height: 1.2;
}

.d360-grade-update-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 18px 0 22px;
    padding: 18px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .06);
}

.d360-grade-update-card.is-locked {
    border-color: #fecaca;
    background: #fffafa;
}

.d360-grade-update-copy {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.d360-grade-update-copy > .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 7px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 22px;
}

.d360-grade-update-copy strong,
.d360-grade-update-copy p,
.d360-grade-update-copy small {
    display: block;
}

.d360-grade-update-copy strong {
    color: #172033;
    font-size: 15px;
}

.d360-grade-update-copy p {
    margin: 3px 0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.d360-grade-update-copy small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.d360-grade-update-details {
    position: relative;
}

.d360-grade-update-details summary::-webkit-details-marker {
    display: none;
}

.d360-grade-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.d360-grade-toggle:hover,
.d360-grade-toggle:focus {
    background: #1d4ed8;
    color: #fff;
}

.d360-grade-toggle.is-disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.d360-grade-update-form {
    position: absolute;
    right: 0;
    z-index: 20;
    width: min(430px, calc(100vw - 40px));
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(23, 32, 51, .18);
}

.d360-grade-warning {
    margin-bottom: 13px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 7px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.d360-grade-update-form label span {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.d360-grade-update-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font-size: 14px;
}

.d360-grade-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.d360-grade-form-foot span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.d360-grade-form-foot button {
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    background: #15803d;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.d360-grade-limit-message {
    grid-column: 1 / -1;
    padding: 11px 12px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 800;
}

.d360-student-exams {
    width: 100%;
}

.d360-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.d360-section-heading span {
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}

.d360-section-heading h2 {
    margin: 3px 0 0;
    color: #172033;
    font-size: 26px;
    line-height: 1.25;
}

.d360-section-heading p {
    margin: 0 0 3px;
    color: #64748b;
    font-size: 13px;
}

.d360-student-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.d360-student-exam-card {
    display: flex;
    min-height: 242px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #dbe2ea;
    border-top: 4px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 32, 51, .07);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.d360-student-exam-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px rgba(23, 32, 51, .11);
}

.d360-student-exam-card.is-finished {
    border-top-color: #16a34a;
}

.d360-student-exam-card.is-active {
    border-top-color: #d97706;
}

.d360-exam-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.d360-exam-status,
.d360-exam-grade {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
}

.d360-exam-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.is-finished .d360-exam-status {
    background: #dcfce7;
    color: #15803d;
}

.is-active .d360-exam-status {
    background: #fef3c7;
    color: #a16207;
}

.d360-exam-grade {
    background: #f1f5f9;
    color: #475569;
}

.d360-student-exam-card h3 {
    margin: 20px 0 14px;
    color: #172033;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
}

.d360-exam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 13px;
}

.d360-exam-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.d360-exam-meta .dashicons {
    width: 17px;
    height: 17px;
    font-size: 17px;
}

.d360-exam-action {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 13px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .16s ease;
}

.d360-exam-action .dashicons:last-child {
    justify-self: end;
}

.d360-exam-action:hover,
.d360-exam-action:focus {
    background: #1d4ed8;
    color: #fff;
}

.is-finished .d360-exam-action {
    background: #15803d;
}

.is-finished .d360-exam-action:hover,
.is-finished .d360-exam-action:focus {
    background: #166534;
}

.is-active .d360-exam-action {
    background: #b45309;
}

.is-active .d360-exam-action:hover,
.is-active .d360-exam-action:focus {
    background: #92400e;
}

.d360-student-empty {
    padding: 48px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.d360-student-empty > .dashicons {
    width: 42px;
    height: 42px;
    color: #64748b;
    font-size: 42px;
}

.d360-student-empty h3 {
    margin: 14px 0 6px;
    color: #172033;
    font-size: 20px;
}

.d360-student-empty p {
    margin: 0;
    color: #64748b;
}

.d360-panel-alert {
    width: min(720px, calc(100% - 40px));
    margin: 40px auto;
    padding: 16px;
    border-radius: 8px;
}

.d360-student-shell > .d360-panel-alert {
    width: 100%;
    margin: 18px 0;
}

.d360-panel-alert.is-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.d360-panel-alert.is-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.d360-panel-alert.is-info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

@media (max-width: 900px) {
    .d360-student-header {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .d360-student-account {
        width: 100%;
    }

    .d360-student-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .d360-student-shell {
        width: min(100% - 24px, 1180px);
        padding: 18px 0 40px;
    }

    .d360-student-header {
        min-height: 0;
        padding: 22px 18px;
    }

    .d360-student-heading h1 {
        font-size: 27px;
    }

    .d360-student-heading p {
        font-size: 14px;
    }

    .d360-student-account {
        grid-template-columns: 44px minmax(0, 1fr) 40px;
        min-width: 0;
    }

    .d360-student-avatar {
        width: 44px;
        height: 44px;
    }

    .d360-student-stats {
        gap: 10px;
        margin: 14px 0 30px;
    }

    .d360-grade-update-card {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 14px 0 18px;
        padding: 14px;
    }

    .d360-grade-update-details,
    .d360-grade-toggle {
        width: 100%;
    }

    .d360-grade-update-form {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }

    .d360-grade-form-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .d360-student-stat {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 84px;
        gap: 10px;
        padding: 13px;
    }

    .d360-student-stat > .dashicons {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .d360-student-stat strong {
        font-size: 21px;
    }

    .d360-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .d360-student-exam-grid {
        grid-template-columns: 1fr;
    }

    .d360-student-exam-card {
        min-height: 225px;
        padding: 18px;
    }
}

@media (max-width: 390px) {
    .d360-student-stats {
        grid-template-columns: 1fr;
    }
}
