.modern-ticker {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    overflow: hidden;
    color: #fff;
    background: #243447;
    border: 1px solid #334a62;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, .12);
}

.modern-ticker-icon {
    flex: 0 0 auto;
    padding: 0 16px;
    background: #1b2838;
    border-right: 1px solid rgba(255, 255, 255, .14);
    white-space: nowrap;
}

.modern-ticker-content {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 0;
}

.modern-ticker-track {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
    padding: 12px 0;
    white-space: nowrap;
    will-change: transform;
    animation: announcementTicker 24s linear infinite !important;
}

.modern-ticker-track::before {
    content: "";
    flex: 0 0 calc(100vw - 10rem);
    width: calc(100vw - 10rem);
}

.modern-ticker:hover .modern-ticker-track,
.modern-ticker:focus-within .modern-ticker-track {
    animation-play-state: paused;
}

.modern-ticker-content a {
    flex: 0 0 auto;
    color: #fff !important;
    line-height: 1.5;
}

.modern-ticker-content a:hover,
.modern-ticker-content a:focus {
    color: #ffe08a !important;
    text-decoration: underline !important;
}

@keyframes announcementTicker {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-100%, 0, 0);
    }
}

.announcement-banner {
    border-width: 1px 1px 1px 4px;
    border-radius: 12px;
    padding: 1rem 3rem 1rem 1rem;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
}

.announcement-banner h5 {
    padding-right: .5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.announcement-banner p {
    line-height: 1.65;
}

.announcement-popup-content {
    overflow: hidden;
    border: 0;
    border-top: 5px solid #2563eb;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.announcement-popup--important {
    border-top-color: #f59e0b;
}

.announcement-popup--urgent {
    border-top-color: #dc2626;
}

.announcement-popup-content .modal-header,
.announcement-popup-content .modal-footer {
    background: #fff;
}

.announcement-popup-content .modal-body p {
    color: #4b5563;
    overflow-wrap: anywhere;
}

.home-announcement-feed {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.home-announcement-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #edf0f3;
}

.home-announcement-kicker {
    display: block;
    margin-bottom: .15rem;
    color: #6b7280;
    font-size: .75rem;
}

.home-announcement-feed-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.12rem;
    font-weight: 700;
}

.home-announcement-feed-header h2 i {
    margin-right: .4rem;
    color: #2563eb;
}

.home-announcement-all {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .42rem .7rem;
    color: #2563eb;
    background: #eff6ff;
    font-size: .82rem;
    font-weight: 600;
}

.home-announcement-all:hover,
.home-announcement-all:focus {
    color: #1d4ed8;
    background: #dbeafe;
}

.home-announcement-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color .18s ease;
}

.home-announcement-item:last-child {
    border-bottom: 0;
}

.home-announcement-item:hover,
.home-announcement-item:focus-within {
    background: #f8fafc;
}

.home-announcement-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3f4f6;
}

.home-announcement-item--danger .home-announcement-status {
    background: #fef2f2;
}

.home-announcement-item--warning .home-announcement-status {
    background: #fffbeb;
}

.home-announcement-item--primary .home-announcement-status {
    background: #eff6ff;
}

.home-announcement-main {
    min-width: 0;
    flex: 1 1 auto;
}

.home-announcement-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    margin-bottom: .35rem;
    color: #6b7280;
    font-size: .76rem;
}

.home-announcement-meta .badge {
    padding: .3rem .48rem;
}

.home-announcement-pinned {
    color: #b45309;
}

.home-announcement-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.home-announcement-item h3 a {
    color: #1f2937;
}

.home-announcement-item h3 a:hover,
.home-announcement-item h3 a:focus {
    color: #1d4ed8;
}

.home-announcement-item p {
    display: -webkit-box;
    overflow: hidden;
    margin: .3rem 0 0;
    color: #6b7280;
    font-size: .84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-announcement-open {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    color: #2563eb;
    font-size: .82rem;
    font-weight: 600;
}

.home-promo-section {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.home-promo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f3;
}

.home-promo-heading h2 {
    margin: .18rem 0 0;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 700;
}

.home-promo-kicker {
    color: #b42318;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.home-promo-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .32rem .65rem;
    color: #4b5563;
    background: #f3f4f6;
    font-size: .78rem;
}

.home-promo-carousel {
    background: #f8fafc;
}

.home-promo-carousel .carousel-item {
    text-align: center;
}

.home-promo-link {
    position: relative;
    display: block;
}

.home-promo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    margin: 0 auto;
    object-fit: contain;
}

.home-promo-action {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .5rem .8rem;
    color: #fff;
    background: rgba(17, 24, 39, .82);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    font-size: .82rem;
    font-weight: 600;
}

.home-promo-link:hover .home-promo-action,
.home-promo-link:focus .home-promo-action {
    background: #111827;
}

.home-promo-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 24, 39, .72);
}

.home-promo-carousel .carousel-control-prev,
.home-promo-carousel .carousel-control-next {
    width: 11%;
    opacity: 1;
}

.home-promo-carousel .carousel-indicators {
    margin-bottom: .55rem;
}

.home-promo-carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(17, 24, 39, .42);
}

.home-promo-carousel .carousel-indicators .active {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, .28);
}

@media (max-width: 575.98px) {
    .modern-ticker {
        align-items: stretch;
    }

    .modern-ticker-icon {
        padding: 0 10px;
    }

    .modern-ticker-icon span {
        display: none;
    }

    .modern-ticker-content {
        padding: 10px 12px;
    }

    .home-announcement-feed {
        border-radius: 11px;
    }

    .home-announcement-feed-header {
        padding: .9rem 1rem;
    }

    .home-announcement-kicker,
    .home-announcement-open span {
        display: none;
    }

    .home-announcement-item {
        align-items: flex-start;
        gap: .7rem;
        padding: .9rem 1rem;
    }

    .home-announcement-status {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .home-announcement-item p {
        -webkit-line-clamp: 1;
    }

    .home-announcement-open {
        align-self: center;
    }

    .home-promo-heading {
        padding: .85rem 1rem;
    }

    .home-promo-image {
        max-height: 65vh;
    }

    .home-promo-action {
        right: .65rem;
        bottom: .65rem;
        padding: .42rem .65rem;
    }

    .home-promo-control {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-promo-carousel .carousel-item {
        transition: none;
    }
}

.parent-dashboard-header {
    padding-bottom: .5rem;
}

.parent-page-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parent-page-heading h1 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.parent-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.parent-heading-actions .btn,
.section-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.parent-hero {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}

.student-photo {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    object-fit: cover;
}

.student-identity {
    min-width: 0;
}

.student-identity h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.student-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.student-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.student-quick-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.student-quick-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.parent-view-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
}

.parent-view-switch a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 800;
    text-align: center;
}

.parent-view-switch a:hover {
    text-decoration: none;
    color: #212529;
}

.parent-view-switch a.active {
    background: #ffc107;
    color: #212529;
    box-shadow: 0 4px 10px rgba(17, 24, 39, .08);
}

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

.summary-tile {
    min-height: 118px;
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    align-items: start;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #adb5bd;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}

.tile-status {
    grid-column: 1 / -1;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 96px;
    align-items: center;
    gap: 14px;
}

.summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.summary-body {
    min-width: 0;
}

.summary-body span {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
}

.summary-body strong {
    display: block;
    color: #111827;
    font-size: 1.32rem;
    line-height: 1.08;
    margin-top: 4px;
    font-weight: 900;
    word-break: normal;
    overflow-wrap: normal;
}

.summary-body small {
    display: block;
    font-size: .8rem;
    line-height: 1.35;
    margin-top: 5px;
    word-break: normal;
    overflow-wrap: normal;
}

.tile-status {
    border-top-color: #198754;
}

.tile-status .summary-icon {
    background: #e8f5ee;
    color: #146c43;
}

.tile-grade {
    border-top-color: #0d6efd;
}

.tile-grade .summary-icon {
    background: #e7f1ff;
    color: #0b5ed7;
}

.tile-sbt {
    border-top-color: #d97706;
}

.tile-sbt .summary-icon {
    background: #fff4df;
    color: #a55a04;
}

.parent-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .04);
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.02rem;
    margin-bottom: 12px;
}

.sub-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.info-grid>div {
    border: 1px solid #edf0f3;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcfd;
    min-width: 0;
}

.info-grid span {
    display: block;
    font-size: .82rem;
    margin-bottom: 3px;
}

.info-grid strong {
    display: block;
    color: #212529;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.recommendation-list,
.family-list,
.activity-list,
.advisor-list,
.notice-list {
    display: grid;
    gap: 10px;
}

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

.parent-shortcut-grid a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #fbfcfd;
    color: #212529;
}

.parent-shortcut-grid a:hover {
    text-decoration: none;
    background: #f1f5f9;
    border-color: #dbe4ee;
}

.parent-shortcut-grid i {
    grid-row: span 2;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #856404;
}

.parent-shortcut-grid span {
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.parent-shortcut-grid small {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.parent-compact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.parent-compact-list>div {
    border: 1px solid #edf0f3;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcfd;
    min-width: 0;
}

.parent-compact-list span {
    display: block;
    font-size: .82rem;
    margin-bottom: 3px;
}

.parent-compact-list strong {
    display: block;
    color: #212529;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.recommendation-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fbfcfd;
}

.family-item,
.advisor-item,
.activity-item,
.notice-item {
    border: 1px solid #edf0f3;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fbfcfd;
    min-width: 0;
}

.advisor-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.advisor-photo {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.family-item strong,
.advisor-item strong,
.activity-item strong,
.notice-item strong {
    display: block;
    overflow-wrap: anywhere;
}

.advisor-item span,
.advisor-item small {
    display: block;
    font-size: .86rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.advisor-item span {
    color: #856404;
    font-weight: 800;
}

.family-item span,
.activity-item span,
.notice-item span,
.activity-item time,
.notice-item time {
    display: block;
    font-size: .86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.family-role {
    color: #856404;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.behavior-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #fff8df 0%, #fffdf5 100%);
    border: 1px solid #ffe08a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.behavior-score-main span {
    display: block;
    color: #8a6500;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
}

.behavior-score-main strong {
    display: block;
    margin-top: 4px;
    color: #8a5a00;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 900;
}

.behavior-score-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.behavior-score-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.2;
}

.behavior-score-stats .is-add {
    color: #166534;
    background: #dcfce7;
}

.behavior-score-stats .is-deduct {
    color: #991b1b;
    background: #fee2e2;
}

.activity-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-left-width: 4px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .04);
}

.activity-item.is-add {
    border-left-color: #22c55e;
}

.activity-item.is-deduct {
    border-left-color: #ef4444;
}

.activity-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.activity-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.activity-title-wrap {
    min-width: 0;
}

.activity-action {
    display: inline-flex;
    margin-bottom: 3px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.2;
}

.activity-head strong {
    display: block;
    color: #111827;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.activity-side {
    display: grid;
    gap: 5px;
    justify-items: end;
    text-align: right;
}

.activity-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
}

.activity-points.is-add {
    color: #166534;
    background: #dcfce7;
}

.activity-points.is-deduct {
    color: #991b1b;
    background: #fee2e2;
}

.activity-head time {
    color: #64748b;
    font-size: .82rem;
    line-height: 1.25;
    white-space: nowrap;
}

.activity-description {
    color: #475569;
    font-size: .88rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.activity-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.activity-footer>span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.activity-evidence {
    padding: 0 !important;
    background: transparent !important;
}

.activity-evidence .btn {
    min-height: 30px;
    border-radius: 999px;
    font-weight: 800;
}

.section-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.grade-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.grade-summary span {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: .9rem;
}

.reg-result-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 62%);
}

.reg-result-hero h3 {
    margin: 2px 0 4px;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.reg-gpa-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.reg-gpa-pair>div,
.reg-summary-card,
.reg-type-summary>div {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.reg-gpa-pair span,
.reg-summary-card span,
.reg-type-summary span {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
}

.reg-gpa-pair strong {
    display: block;
    color: #0d6efd;
    font-size: 1.7rem;
    line-height: 1.05;
    font-weight: 900;
}

.reg-term-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.reg-term-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    color: #334155;
    font-weight: 800;
    font-size: .88rem;
    white-space: nowrap;
}

.reg-term-tab:hover {
    text-decoration: none;
    background: #f8fafc;
    color: #0f172a;
}

.reg-term-tab.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.reg-term-tab.is-disabled {
    color: #94a3b8;
    background: #f8fafc;
    border-style: dashed;
}

.parent-reg-summary-grid,
.reg-type-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.reg-summary-card strong,
.reg-type-summary strong {
    display: block;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.15;
    margin-top: 4px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.reg-summary-card small,
.reg-type-summary small {
    display: block;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.reg-grade-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 36px;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.02rem;
    line-height: 1;
}

.reg-grade-pill.tone-success {
    color: #166534;
    background: #dcfce7;
}

.reg-grade-pill.tone-warning {
    color: #9a3412;
    background: #ffedd5;
}

.reg-grade-pill.tone-danger {
    color: #991b1b;
    background: #fee2e2;
}

.reg-grade-pill.tone-muted {
    color: #475569;
    background: #e2e8f0;
}

.reg-summary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.reg-summary-subject {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.reg-summary-subject.tone-success,
.reg-detail-item.tone-success {
    border-left-color: #22c55e;
}

.reg-summary-subject.tone-warning,
.reg-detail-item.tone-warning {
    border-left-color: #f59e0b;
}

.reg-summary-subject.tone-danger,
.reg-detail-item.tone-danger {
    border-left-color: #ef4444;
}

.reg-summary-subject.tone-muted,
.reg-detail-item.tone-muted {
    border-left-color: #94a3b8;
}

.reg-summary-subject-main {
    min-width: 0;
}

.reg-summary-subject-main strong {
    display: block;
    color: #111827;
    font-size: .98rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.reg-summary-subject-main span {
    display: block;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.35;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.reg-summary-subject-grade {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.reg-summary-subject-grade>span:first-child {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.2;
}

.reg-subject-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.reg-subject-kicker code {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-size: .78rem;
    line-height: 1;
}

.reg-detail-list {
    display: grid;
    gap: 12px;
}

.reg-detail-item {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    min-width: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.reg-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.reg-subject-title {
    min-width: 0;
}

.reg-subject-title strong {
    display: block;
    color: #111827;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.reg-subject-title span {
    display: block;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.35;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.reg-grade-block {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.reg-grade-block>span:first-child {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
}

.reg-score-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 8px;
}

.reg-score-cell {
    min-width: 0;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #f8fafc;
    padding: 9px 8px;
    text-align: center;
}

.reg-score-cell span {
    display: block;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.2;
}

.reg-score-cell strong {
    display: inline-block;
    color: #111827;
    font-size: 1rem;
    line-height: 1.15;
    margin-top: 4px;
    font-weight: 900;
}

.reg-score-cell small {
    color: #64748b;
    font-size: .76rem;
}

.reg-score-cell.is-total {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.reg-score-cell.is-total strong {
    color: #0d6efd;
}

.empty-state {
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
}

@media (max-width: 767.98px) {
    .parent-mobile-table thead {
        display: none;
    }

    .parent-mobile-table,
    .parent-mobile-table tbody,
    .parent-mobile-table tr,
    .parent-mobile-table td {
        display: block;
        width: 100%;
    }

    .parent-mobile-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .parent-mobile-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        text-align: right !important;
        border-top: 1px solid #f1f3f5;
        padding: 9px 12px;
    }

    .parent-mobile-table td:first-child {
        border-top: 0;
    }

    .parent-mobile-table td::before {
        content: attr(data-label);
        flex: 0 0 94px;
        text-align: left;
        font-weight: 700;
    }

    .reg-detail-head {
        grid-template-columns: 1fr;
    }

    .reg-grade-block {
        justify-items: start;
        text-align: left;
    }

    .reg-summary-subject {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .reg-summary-subject-grade {
        justify-items: end;
        text-align: right;
    }

    .reg-score-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reg-score-cell.is-total {
        grid-column: 1 / -1;
    }

    .reg-result-hero {
        padding: 14px;
    }

    .reg-gpa-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reg-summary-list {
        grid-template-columns: 1fr;
    }

    .reg-summary-subject,
    .reg-detail-item {
        padding: 12px;
    }

    .reg-score-cell {
        text-align: left;
    }

    .reg-score-cell strong {
        display: block;
    }

    .behavior-score {
        padding: 14px;
    }

    .activity-head {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .activity-side {
        grid-template-columns: auto auto;
        justify-content: start;
        justify-items: start;
        align-items: center;
        text-align: left;
    }

    .activity-head time {
        white-space: normal;
    }

    .activity-footer>span {
        border-radius: 8px;
    }
}

@media (max-width: 420px) {
    .parent-hero {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .student-photo {
        width: 72px;
        height: 72px;
    }

    .parent-shortcut-grid,
    .parent-compact-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .parent-summary-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .summary-tile {
        min-height: 104px;
        padding: 14px;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
    }

    .tile-status {
        grid-column: auto;
    }

    .summary-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }

    .summary-body strong {
        font-size: 1.42rem;
    }
}

@media (min-width: 768px) {
    .parent-page-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .parent-heading-actions {
        grid-template-columns: repeat(3, auto);
        justify-content: end;
    }

    .parent-hero {
        grid-template-columns: 86px minmax(0, 1fr) auto;
    }

    .student-quick-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
        min-width: 170px;
    }

    .parent-view-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
    }

    .parent-shortcut-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .reg-result-hero {
        grid-template-columns: minmax(0, 1fr) 280px;
        align-items: center;
    }

    .parent-reg-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reg-type-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .info-wide {
        grid-column: 1 / -1;
    }

    .section-actions {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .activity-item {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (min-width: 1100px) {
    .parent-summary-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }

    .reg-detail-item {
        padding: 16px;
    }
}

/* Central Notification / งานที่ต้องดำเนินการ */
.central-task-item {
    display: grid !important;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.central-task-icon {
    width: 2.75rem;
    min-width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.todo-list > li .central-task-title {
    display: block;
    margin-left: 0;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.central-task-content {
    min-width: 0;
}

.todo-list > li .central-task-description {
    max-width: 100%;
    margin-left: 0;
    padding: .3em .5em;
    font-size: 85%;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.central-task-action {
    min-width: 0;
}

.central-notification-card {
    border-radius: 12px !important;
    overflow: hidden;
}

.central-notification-header {
    padding: 1.25rem 1.5rem .75rem !important;
}

.central-notification-body {
    padding: .75rem 1.5rem 1.25rem !important;
}

.central-notification-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.central-notification-titlewrap {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
}

.central-notification-titlewrap > i {
    flex: 0 0 auto;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, .16);
    font-size: 1.1rem;
}

.central-notification-heading .card-title {
    float: none;
    font-size: 1.28rem;
    line-height: 1.25;
}

.central-notification-heading p {
    font-size: .9rem;
    line-height: 1.45;
    margin-top: .14rem;
}

.central-notification-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .45rem .7rem;
}

.central-notification-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.central-notification-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .85rem 1rem;
    border: 1px solid #edf0f4;
    border-left-width: 4px;
    border-radius: 8px;
}

.central-notification-warning { border-left-color: #ffc107; }
.central-notification-danger { border-left-color: #dc3545; }
.central-notification-info { border-left-color: #17a2b8; }
.central-notification-success { border-left-color: #28a745; }

.central-notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
}

.central-notification-content {
    min-width: 0;
}

.central-notification-meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .25rem;
    font-size: .78rem;
}

.central-notification-content h6 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.central-notification-content p {
    margin: .2rem 0 0;
    font-size: .88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.central-notification-action {
    white-space: nowrap;
}

.central-notification-empty {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .95rem 1rem;
    border: 1px dashed #cfd8dc;
    border-radius: 8px;
    background: #fbfcfd;
}

@media (max-width: 575.98px) {
    .central-task-item {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        gap: .65rem;
        align-items: start;
    }

    .central-task-icon {
        width: 2.25rem;
        min-width: 2.25rem;
    }

    .central-task-action {
        grid-column: 2;
    }

    .central-notification-header {
        padding: 1rem 1.15rem .55rem !important;
    }

    .central-notification-body {
        padding: .7rem 1.15rem 1.1rem !important;
    }

    .central-notification-titlebar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .central-notification-heading .card-title {
        font-size: 1.1rem;
    }

    .central-notification-heading p {
        font-size: .82rem;
    }

    .central-notification-item {
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: flex-start;
        padding: .8rem .85rem;
    }

    .central-notification-icon {
        width: 36px;
        height: 36px;
    }

    .central-notification-action {
        grid-column: 2;
        white-space: normal;
    }

    .central-notification-action .btn {
        width: 100%;
    }
}
