﻿/* Shared GMRT utilities */
.gmrt-hidden { display: none !important; }
.gmrt-preline { white-space: pre-line; }
.gmrt-media-preview { max-height: 300px; object-fit: contain; }
.gmrt-video-fill { width: 100%; height: 100%; }
.gmrt-table-col-narrow { width: 80px; }
.gmrt-table-col-date { width: 200px; }
.gmrt-table-col-rating { width: 160px; }
.premium-hero-panel-checklist {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 38px rgba(3, 28, 84, 0.12);
    backdrop-filter: blur(14px);
}

.premium-hero-panel-checklist .premium-data-pill-info {
    flex: 0 0 auto;
}

.premium-hero-panel-checklist .fw-bold {
    color: #ffffff;
}

.premium-hero-panel-checklist .small {
    color: rgba(255, 255, 255, 0.76) !important;
    line-height: 1.6;
}

.premium-hero-highlight {
    margin-top: 1.1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.55;
    box-shadow: 0 18px 38px rgba(3, 28, 84, 0.12);
}

.premium-hero-image-placeholder {
    min-height: 240px;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(5, 47, 139, 0.26), rgba(21, 197, 207, 0.18));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 22px 48px rgba(3, 10, 28, 0.18);
}

.premium-hero-image-placeholder-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.premium-hero-image-placeholder-copy {
    display: grid;
    gap: 0.35rem;
}

.premium-hero-image-placeholder-copy strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.premium-hero-image-placeholder-copy span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

#selectedGroupSummary {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gmrt-guidelines-table {
    border: 1px solid #000;
    width: 100%;
    border-collapse: collapse;
}
.gmrt-guidelines-table th,
.gmrt-guidelines-table td {
    border: 1px solid #000;
    text-align: left;
}

/* Hero Section */
.gmrt-hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 22px 0 18px;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin-bottom: -10px;
    }

    .gmrt-hero-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
        position: relative;
        z-index: 1;
    }

    .gmrt-hero-logo {
        max-width: min(320px, 80vw);
        width: 100%;
        height: auto;
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
    }

    .gmrt-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        opacity: 0.3;
    }

    .gmrt-hero h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 6px;
        position: relative;
        z-index: 1;
    }

    .gmrt-hero p {
        font-size: 0.98rem;
        max-width: 700px;
        margin: 0 auto;
        opacity: 0.95;
        position: relative;
        z-index: 1;
    }

    /* Content wrapper */
    .gmrt-content {
        position: relative;
        z-index: 2;
        padding-top: 40px;
    }

    /* Group sidebar card */
    .group-sidebar {
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border: 1px solid rgba(5, 47, 139, 0.12);
        border-radius: 22px;
        box-shadow: 0 18px 50px rgba(15,23,42,0.10);
        overflow: hidden;
    }

    .group-sidebar-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 18px 20px;
        font-weight: 700;
        font-size: 1.05rem;
        letter-spacing: 0.01em;
        border-bottom: 1px solid rgba(255,255,255,0.14);
    }

    .group-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .group-search {
        padding: 0 14px 14px;
    }

    .group-browser-panel {
        padding: 0;
        border: 1px solid rgba(5, 47, 139, 0.18);
        border-radius: 28px;
        overflow: hidden;
        background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
        box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10);
    }

    .group-browser-header {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
        align-items: center;
        gap: 1rem 1.25rem;
        padding: 1.2rem 1.25rem;
        background: linear-gradient(135deg, #041f5a 0%, #052f8b 48%, #0f6bb8 100%);
        color: #ffffff;
        overflow: hidden;
    }

    .group-browser-header::after {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
            radial-gradient(circle at bottom left, rgba(21, 197, 207, 0.16), transparent 30%);
        pointer-events: none;
    }

    .group-browser-header-copy {
        min-width: 0;
        flex: 1 1 360px;
        position: relative;
        z-index: 1;
    }

    .group-browser-header-copy h2 {
        color: #ffffff;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .group-browser-header-copy p {
        color: rgba(255, 255, 255, 0.82) !important;
    }

    .group-browser-header .premium-badge {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 14px 26px rgba(3, 10, 28, 0.12);
    }

    .group-browser-active {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.7rem 0.95rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 600;
    }

    .group-browser-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
        gap: 1rem;
        align-items: start;
        padding: 1.1rem;
    }

    .group-browser-groups {
        min-width: 0;
    }

    .group-browser-search {
        width: 100%;
        max-width: none;
        padding: 1rem 1rem 0.35rem;
        border: 1px solid rgba(5, 47, 139, 0.10);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.96));
        border-radius: 22px;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
        position: sticky;
        top: 1rem;
        align-self: start;
    }

    .group-browser-search .premium-inline-note {
        color: #0f172a;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.05), rgba(21, 197, 207, 0.06));
        border: 1px solid rgba(5, 47, 139, 0.10);
        border-radius: 16px;
        padding: 0.8rem 0.95rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .group-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.9rem;
        width: 100%;
        min-height: 76px;
        border: 1px solid rgba(5, 47, 139, 0.10);
        border-radius: 20px;
        padding: 14px 16px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        cursor: pointer;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
        text-align: left;
        white-space: normal;
        color: #11243f;
        font-weight: 600;
    }

    .group-item:hover {
        background: linear-gradient(180deg, #ffffff 0%, rgba(5, 47, 139, 0.05) 100%);
        transform: translateY(-2px);
        border-color: rgba(5, 47, 139, 0.22);
        box-shadow: 0 16px 34px rgba(5, 47, 139, 0.12);
    }

    .group-item.active {
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.98) 0%, rgba(15, 107, 184, 0.94) 100%);
        border-color: #052f8b;
        font-weight: 800;
        color: #ffffff;
        box-shadow: 0 18px 38px rgba(5, 47, 139, 0.18);
    }

    .group-item-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.10), rgba(21, 197, 207, 0.12));
        border: 1px solid rgba(5, 47, 139, 0.12);
        color: #052f8b;
    }

    .group-item-icon i {
        font-size: 1.05rem;
    }

    .group-item-copy {
        display: grid;
        gap: 0.15rem;
        min-width: 0;
    }

    .group-item-title {
        font-size: 1rem;
        line-height: 1.25;
        letter-spacing: -0.01em;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .group-item-subtitle {
        font-size: 0.82rem;
        line-height: 1.35;
        color: rgba(17, 36, 63, 0.70);
        font-weight: 600;
    }

    .group-item-chevron {
        color: rgba(5, 47, 139, 0.55);
        font-size: 0.95rem;
        transition: transform 0.22s ease, color 0.22s ease;
    }

    .group-item:hover .group-item-chevron,
    .group-item.active .group-item-chevron {
        transform: translateX(2px);
        color: inherit;
    }

    .group-item.active .group-item-icon {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }

    .group-item.active .group-item-subtitle {
        color: rgba(255, 255, 255, 0.82);
    }

    .group-item.active .group-item-chevron {
        color: #ffffff;
    }

    /* Main content area */
    .gmrt-main-content {
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        border: 1px solid rgba(226,232,240,0.95);
        border-radius: 24px;
        box-shadow: 0 16px 44px rgba(15,23,42,0.08);
        padding: 30px;
        margin-bottom: 30px;
    }

    .gmrt-main-content h2 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 10px;
    }

    .selected-group-info {
        display: inline-block;
        background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
        color: #667eea;
        padding: 8px 20px;
        border-radius: 20px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    /* Search box */
    .gmrt-search {
        position: relative;
    }

    .gmrt-search input {
        border-radius: 25px;
        padding: 12px 20px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
    }

    .gmrt-search input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    }

    .gmrt-search .btn {
        border-radius: 0 25px 25px 0;
        padding: 12px 20px;
    }

    .gmrt-search .btn-outline-secondary {
        border-color: #e9ecef;
        background: white;
    }

    .gmrt-search .btn-outline-secondary:hover {
        background: #667eea;
        border-color: #667eea;
        color: white;
    }

    /* Project cards */
    .project-card {
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        border: 1px solid rgba(226,232,240,0.95);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 14px 34px rgba(15,23,42,0.09);
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .project-card:hover {
        transform: translateY(-8px);
        border-color: rgba(5, 47, 139, 0.18);
        box-shadow: 0 22px 44px rgba(5, 47, 139, 0.14);
    }

    .project-card-image {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        min-height: 214px;
        height: auto;
        background: linear-gradient(135deg, #e8f0ff 0%, #f6fbff 100%);
    }

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transition: transform 0.3s ease;
    }

    .project-card:hover .project-card-image img {
        transform: scale(1.06);
    }

    .project-card-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        background: linear-gradient(180deg, rgba(3, 10, 28, 0.02) 0%, rgba(3, 10, 28, 0.46) 100%);
        z-index: 1;
    }

    .project-card-overlay-left,
    .project-card-overlay-right {
        display: flex;
        gap: 0.45rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .project-card-overlay-right {
        justify-content: flex-end;
        margin-left: auto;
    }

    .project-card-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.42rem 0.72rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--premium-primary-dark);
        font-size: 0.75rem;
        font-weight: 800;
        box-shadow: 0 10px 20px rgba(3, 10, 28, 0.12);
    }

    .project-card-chip-primary {
        background: rgba(255, 255, 255, 0.98);
        color: #052f8b;
    }

    .project-card-chip-soft {
        background: rgba(5, 47, 139, 0.86);
        color: #fff;
    }

    .project-card-chip-rating {
        background: rgba(17, 35, 68, 0.86);
    }

    .play-button {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        transform: none;
        width: 58px;
        height: 58px;
        background: linear-gradient(135deg, #052f8b 0%, #15c5cf 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 14px 28px rgba(5, 47, 139, 0.35);
        z-index: 2;
    }

    .play-button:hover {
        transform: scale(1.08);
        box-shadow: 0 18px 34px rgba(5, 47, 139, 0.46);
    }

    .play-button i {
        font-size: 1.5rem;
        color: white;
        margin-left: 3px;
    }

    .project-card-body {
        padding: 1rem 1.05rem 1.05rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
    }

    .project-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .project-card-header-main {
        min-width: 0;
        display: grid;
        gap: 0.45rem;
    }

    .project-card-featured {
        border-color: rgba(21, 197, 207, 0.38);
        box-shadow: 0 22px 46px rgba(5, 47, 139, 0.16);
    }

    .project-card-featured .project-card-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.02) 0%, rgba(21, 197, 207, 0.08) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .project-card-flag {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        width: fit-content;
        padding: 0.36rem 0.72rem;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.08), rgba(21, 197, 207, 0.16));
        color: var(--premium-primary-dark);
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .project-number {
        display: inline-block;
        width: fit-content;
        background: linear-gradient(135deg, #052f8b 0%, #15c5cf 100%);
        color: white;
        padding: 0.38rem 0.78rem;
        border-radius: 999px;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        box-shadow: 0 10px 20px rgba(5, 47, 139, 0.18);
    }

    .project-title {
        font-size: 1.02rem;
        font-weight: 800;
        color: #10243f;
        text-decoration: none;
        display: block;
        transition: color 0.3s ease, transform 0.3s ease;
        line-height: 1.45;
        letter-spacing: -0.02em;
    }

    .project-title:hover {
        color: #052f8b;
    }

    .project-card-rating {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 0.75rem;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.06), rgba(21, 197, 207, 0.12));
        color: var(--premium-primary-dark);
        box-shadow: inset 0 0 0 1px rgba(5, 47, 139, 0.06);
    }

    .project-card-rating i {
        color: #f0a500;
    }

    .project-card-rating strong {
        font-size: 0.95rem;
        font-weight: 900;
    }

    .project-card-summary {
        display: flex;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 0.85rem 0.9rem;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.04), rgba(21, 197, 207, 0.08));
        color: #334155;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .project-card-summary i {
        color: #052f8b;
        margin-top: 0.18rem;
        flex: 0 0 auto;
    }

    .project-card-meta-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .project-card-meta-item {
        padding: 0.72rem 0.8rem;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(5, 47, 139, 0.08);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    }

    .project-card-meta-item span {
        display: block;
        margin-bottom: 0.2rem;
        color: var(--premium-muted);
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .project-card-meta-item strong {
        color: var(--premium-text);
        font-size: 1rem;
        font-weight: 900;
    }

    .project-card-participants {
        padding: 0.9rem;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.04), rgba(21, 197, 207, 0.07));
        border: 1px solid rgba(5, 47, 139, 0.08);
    }

    .project-card-participants-label {
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--premium-primary-dark);
        margin-bottom: 0.35rem;
    }

    .project-card-participants-text {
        color: #475569;
        line-height: 1.55;
        font-size: 0.92rem;
    }

    .project-card-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-top: auto;
        padding-top: 0.1rem;
    }

    .project-card-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-height: 44px;
        padding: 0.55rem 0.95rem;
        border-radius: 999px;
        font-weight: 800;
        box-shadow: 0 14px 30px rgba(5, 47, 139, 0.16);
    }

    .project-card-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(5, 47, 139, 0.22);
    }

    .premium-gmrt-empty-state {
        padding: 2.3rem 1.3rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .premium-gmrt-empty-state .empty-icon {
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.08), rgba(21, 197, 207, 0.16));
        color: #052f8b;
    }

    .premium-gmrt-empty-state .btn {
        min-width: 170px;
    }

    .project-participants {
        font-size: 0.85rem;
        color: #6c757d;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid #e9ecef;
    }

    /* Pagination */
    .pagination {
        justify-content: center;
        margin-top: 30px;
    }

    .pagination .page-link {
        border-radius: 8px;
        margin: 0 3px;
        border: 1px solid #e9ecef;
        color: #667eea;
        transition: all 0.3s ease;
    }

    .pagination .page-link:hover {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
    }

    /* Status messages */
    .status-message {
        text-align: center;
        padding: 40px;
        color: #6c757d;
        font-size: 1.1rem;
    }

    /* GMRT view log page */
    .science-project-view-log-hero {
        padding-bottom: 1.1rem;
    }

    .science-project-view-log-page {
        padding-bottom: 2rem;
    }

    .science-project-view-log-page .premium-shell-body {
        display: grid;
        gap: 1rem;
    }

    .science-project-view-log-page .premium-shell-header .premium-badge {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 14px 26px rgba(3, 10, 28, 0.12);
    }

    .gmrt-guidelines-page .premium-shell-header .premium-badge {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 14px 26px rgba(3, 10, 28, 0.12);
    }

    .gmrt-guidelines-page .premium-shell-body .premium-shell {
        border-color: rgba(5, 47, 139, 0.08);
        background: #ffffff;
    }

    .gmrt-guidelines-page .premium-shell-body .premium-shell .premium-shell-body {
        color: #31445e;
    }

    .gmrt-guidelines-page .premium-shell-body h3,
    .gmrt-guidelines-page .premium-shell-body h4,
    .gmrt-guidelines-page .premium-shell-body h5 {
        color: #10243f;
    }

    .gmrt-guidelines-page .premium-shell-body ul,
    .gmrt-guidelines-page .premium-shell-body ol,
    .gmrt-guidelines-page .premium-shell-body p,
    .gmrt-guidelines-page .premium-shell-body td,
    .gmrt-guidelines-page .premium-shell-body th {
        color: #31445e;
    }

    .gmrt-guidelines-page .gmrt-guidelines-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
        border-radius: 18px;
        border: 1px solid rgba(5, 47, 139, 0.10);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    }

    .gmrt-guidelines-page .gmrt-guidelines-table th,
    .gmrt-guidelines-page .gmrt-guidelines-table td {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid rgba(5, 47, 139, 0.08);
        vertical-align: top;
    }

    .gmrt-guidelines-page .gmrt-guidelines-table th {
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.98), rgba(18, 72, 179, 0.98));
        color: #ffffff;
        font-weight: 800;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .gmrt-guidelines-page .gmrt-guidelines-table tr:last-child td {
        border-bottom: 0;
    }

    .gmrt-guidelines-page .gmrt-guidelines-table td:first-child,
    .gmrt-guidelines-page .gmrt-guidelines-table th:first-child {
        width: 88px;
        white-space: nowrap;
    }

    .gmrt-view-log-table-card {
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid rgba(5, 47, 139, 0.10);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    .gmrt-view-log-table-wrap {
        overflow: auto;
    }

    .gmrt-view-log-table {
        min-width: 100%;
    }

    .gmrt-view-log-table thead th {
        padding: 1rem 1.1rem;
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.98), rgba(18, 72, 179, 0.98));
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        white-space: nowrap;
        border-bottom: 0;
    }

    .gmrt-view-log-table tbody td {
        padding: 1rem 1.1rem;
        border-color: rgba(5, 47, 139, 0.06);
        vertical-align: middle;
    }

    .gmrt-view-log-table tbody tr {
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .gmrt-view-log-table tbody tr:hover {
        background: rgba(21, 197, 207, 0.05);
        transform: translateY(-1px);
    }

    .gmrt-view-log-title {
        font-weight: 800;
        color: #10243f;
        line-height: 1.45;
    }

    .gmrt-view-log-rating {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 88px;
        padding: 0.48rem 0.75rem;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.08), rgba(21, 197, 207, 0.14));
        border: 1px solid rgba(5, 47, 139, 0.10);
        color: #052f8b;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .gmrt-view-log-pagination .page-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-inline: 0.95rem;
        border-radius: 14px;
        border: 1px solid rgba(5, 47, 139, 0.10);
        color: #052f8b;
        font-weight: 800;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .gmrt-view-log-pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #052f8b 0%, #15c5cf 100%);
        border-color: transparent;
        color: #ffffff;
    }

    .gmrt-view-log-pagination .page-item.disabled .page-link {
        color: #8a98ad;
        background: #f7f9fc;
        box-shadow: none;
    }

    /* GMRT video / project page */
    .gmrt-video-page {
        background:
            radial-gradient(circle at top left, rgba(21, 197, 207, 0.10), transparent 28%),
            linear-gradient(180deg, #f6f9ff 0%, #f9fbff 48%, #eef4ff 100%);
    }

    .gmrt-video-hero {
        padding: 2.4rem 0 1.6rem;
    }

    .gmrt-video-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
        gap: 1.2rem;
        align-items: stretch;
    }

    .gmrt-video-hero-copy,
    .gmrt-video-preview-card,
    .gmrt-video-panel {
        border-radius: 28px;
        border: 1px solid rgba(5, 47, 139, 0.10);
        box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
        overflow: hidden;
    }

    .gmrt-video-hero-copy {
        padding: 1.5rem 1.45rem;
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(4, 31, 90, 0.98) 0%, rgba(5, 47, 139, 0.96) 48%, rgba(15, 107, 184, 0.92) 100%);
        position: relative;
    }

    .gmrt-video-hero-copy::after {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
            radial-gradient(circle at bottom left, rgba(21, 197, 207, 0.20), transparent 30%);
        pointer-events: none;
    }

    .gmrt-video-hero-copy > * {
        position: relative;
        z-index: 1;
    }

    .gmrt-video-hero-copy h1 {
        margin: 0.95rem 0 0.65rem;
        color: #ffffff;
        font-size: clamp(2rem, 3vw, 3.1rem);
        line-height: 1.08;
        letter-spacing: -0.04em;
        font-weight: 900;
        max-width: 12ch;
    }

    .gmrt-video-hero-copy p {
        margin: 0;
        max-width: 60ch;
        color: rgba(255, 255, 255, 0.88);
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .gmrt-video-hero-actions {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .gmrt-video-hero-actions .btn {
        min-height: 44px;
        font-weight: 800;
    }

    .gmrt-video-participants.hero-participants {
        margin-top: 1rem;
        padding: 0.95rem 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .gmrt-video-participants.hero-participants span {
        display: block;
        margin-bottom: 0.28rem;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .gmrt-video-participants.hero-participants strong {
        color: #ffffff;
        font-size: 0.98rem;
        line-height: 1.6;
        font-weight: 800;
    }

    .gmrt-video-hero-meta {
        margin-top: 1.1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .gmrt-video-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.62rem 0.85rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #ffffff;
        font-weight: 700;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .gmrt-video-stat-row {
        margin-top: 1.15rem;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .gmrt-video-stat {
        padding: 0.9rem 0.95rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.11);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(12px);
    }

    .gmrt-video-stat span {
        display: block;
        margin-bottom: 0.35rem;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .gmrt-video-stat strong {
        color: #ffffff;
        font-size: 1.4rem;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .gmrt-video-preview-card {
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        min-height: 100%;
    }

    .gmrt-video-preview-image {
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        display: block;
    }

    .gmrt-video-preview-placeholder {
        min-height: 100%;
        border-radius: 28px;
    }

    .gmrt-video-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        gap: 1rem;
        align-items: start;
    }

    .gmrt-video-panel {
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        padding: 1.15rem;
    }

    .gmrt-video-action-summary {
        padding: 1rem 1.05rem;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.04), rgba(21, 197, 207, 0.08));
        border: 1px solid rgba(5, 47, 139, 0.08);
    }

    .gmrt-video-action-summary p {
        color: #31445e;
        line-height: 1.65;
        font-weight: 600;
    }

    .gmrt-video-mini-stats {
        margin-top: 0.9rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .gmrt-video-mini-stats div {
        padding: 0.85rem 0.95rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(5, 47, 139, 0.08);
    }

    .gmrt-video-mini-stats span {
        display: block;
        margin-bottom: 0.25rem;
        color: #6b7a90;
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .gmrt-video-mini-stats strong {
        color: #10243f;
        font-size: 0.95rem;
        font-weight: 900;
    }

    .gmrt-section-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .gmrt-section-header h2,
    .gmrt-section-header .h4 {
        color: #10243f;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .gmrt-video-frame {
        border-radius: 22px;
        overflow: hidden;
        background: #0b1222;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .gmrt-video-element {
        background: #0b1222;
        object-fit: cover;
    }

    .gmrt-video-empty-state {
        padding: 2.2rem 1.35rem;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(5, 47, 139, 0.04), rgba(21, 197, 207, 0.08));
        border: 1px dashed rgba(5, 47, 139, 0.18);
        text-align: center;
        color: #31445e;
    }

    .gmrt-video-empty-state i {
        display: inline-grid;
        place-items: center;
        width: 72px;
        height: 72px;
        margin-bottom: 0.8rem;
        border-radius: 22px;
        background: linear-gradient(135deg, rgba(5, 47, 139, 0.10), rgba(21, 197, 207, 0.20));
        color: #052f8b;
        font-size: 2rem;
    }

    .gmrt-video-details-panel {
        display: grid;
        gap: 1rem;
    }

    .gmrt-video-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .gmrt-video-fact,
    .gmrt-video-content-card,
    .gmrt-video-info-block,
    .gmrt-rating-question {
        border-radius: 22px;
        border: 1px solid rgba(5, 47, 139, 0.10);
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    }

    .gmrt-video-fact {
        padding: 0.95rem 1rem;
    }

    .gmrt-video-fact span,
    .gmrt-video-info-block span,
    .gmrt-rating-question-head .small {
        display: block;
        margin-bottom: 0.35rem;
        color: #6b7a90;
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .gmrt-video-fact strong,
    .gmrt-video-info-block strong {
        color: #10243f;
        font-size: 0.98rem;
        line-height: 1.55;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .gmrt-video-info-stack {
        display: grid;
        gap: 0.75rem;
    }

    .gmrt-video-info-block {
        padding: 0.95rem 1rem;
    }

    .gmrt-video-story-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .gmrt-video-content-card {
        padding: 1rem 1.05rem;
    }

    .gmrt-video-content-card h3 {
        margin-bottom: 0.7rem;
        color: #052f8b;
        font-weight: 900;
    }

    .gmrt-rating-form {
        display: grid;
        gap: 0.95rem;
    }

    .gmrt-rating-question {
        padding: 1rem 1.05rem;
    }

    .gmrt-rating-question-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .gmrt-rating-pill-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .gmrt-rating-pill {
        min-width: 44px;
        border-radius: 999px;
        font-weight: 800;
        box-shadow: none;
    }

    .btn-check:checked + .gmrt-rating-pill {
        background: linear-gradient(135deg, #052f8b 0%, #15c5cf 100%);
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 14px 28px rgba(5, 47, 139, 0.20);
    }

    .gmrt-rating-panel .alert {
        border-radius: 18px;
    }

    .gmrt-rating-panel .btn-lg {
        min-height: 48px;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .gmrt-hero h1 {
            font-size: 2rem;
        }

        .gmrt-hero p {
            font-size: 1rem;
        }

        .group-list {
            gap: 8px;
            padding: 12px;
        }

        .group-item {
            min-width: 0;
            padding: 11px 12px;
            min-height: 68px;
            font-size: 0.92rem;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 0.75rem;
        }

        .group-item-chevron {
            display: none;
        }

        .group-item-icon {
            width: 42px;
            height: 42px;
            border-radius: 14px;
        }

        .group-item-title {
            font-size: 0.96rem;
        }

        .group-item-subtitle {
            font-size: 0.78rem;
        }

        .group-sidebar {
            position: static;
            margin-bottom: 16px;
        }

        .group-browser-layout {
            padding: 0.9rem;
        }

        .group-browser-search {
            position: static;
            border-radius: 18px;
        }

        .group-browser-header {
            grid-template-columns: 1fr;
            padding: 1rem;
        }

        .project-card-image {
            min-height: 180px;
        }

        .project-card-overlay {
            padding: 0.75rem;
            flex-direction: column;
            align-items: flex-start;
        }

        .project-card-body {
            padding: 0.85rem;
            gap: 0.72rem;
        }

        .project-card-header {
            flex-direction: column;
        }

        .project-card-rating {
            width: fit-content;
        }

        .project-card-meta-grid {
            grid-template-columns: 1fr;
        }

        .premium-gmrt-empty-state {
            padding: 1.8rem 1rem;
        }

        .premium-gmrt-empty-state .btn {
            width: 100%;
            min-width: 0;
        }

        .gmrt-video-hero {
            padding-top: 1.2rem;
        }

        .gmrt-video-hero-grid,
        .gmrt-video-layout,
        .gmrt-video-story-grid {
            grid-template-columns: 1fr;
        }

        .gmrt-video-hero-copy,
        .gmrt-video-preview-card,
        .gmrt-video-panel {
            border-radius: 24px;
        }

        .gmrt-video-hero-copy {
            padding: 1.25rem 1.1rem;
        }

        .gmrt-video-hero-actions,
        .gmrt-video-hero-meta {
            gap: 0.5rem;
        }

        .gmrt-video-hero-copy h1 {
            max-width: none;
        }

        .gmrt-video-mini-stats {
            grid-template-columns: 1fr;
        }

        .gmrt-video-stat-row,
        .gmrt-video-detail-grid {
            grid-template-columns: 1fr;
        }

        .gmrt-section-header {
            flex-direction: column;
        }

        .gmrt-rating-question-head {
            flex-direction: column;
        }
    }

    @media (max-width: 576px) {
        .premium-section-block {
            padding-top: 0.9rem;
            padding-bottom: 1.6rem;
        }

        .premium-hero-highlight {
            margin-top: 0.9rem;
            padding: 0.85rem 0.95rem;
        }

        .premium-hero-image-placeholder {
            min-height: 200px;
            padding: 1rem;
        }

        .premium-hero-image-placeholder-icon {
            width: 64px;
            height: 64px;
            font-size: 1.65rem;
            border-radius: 18px;
        }

        .group-list {
            grid-template-columns: 1fr;
            gap: 6px;
            padding: 10px;
        }

        .group-item {
            grid-template-columns: auto minmax(0, 1fr);
            gap: 0.7rem;
            min-height: 64px;
            padding: 10px 12px;
            font-size: 0.92rem;
            white-space: normal;
        }

        .group-item-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
        }

        .group-item-subtitle {
            display: -webkit-box;
            line-clamp: 1;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .group-sidebar-header {
            padding: 12px 13px;
            font-size: 1rem;
        }

        .gmrt-main-content {
            padding: 14px;
        }

        .project-card-image {
            min-height: 170px;
        }

        .project-card-overlay {
            padding: 0.65rem;
            gap: 0.35rem;
        }

        .project-card-chip {
            padding: 0.3rem 0.55rem;
            font-size: 0.68rem;
            gap: 0.28rem;
        }

        .project-card-overlay-left,
        .project-card-overlay-right {
            width: 100%;
        }

        .project-card-overlay-right {
            justify-content: flex-start;
        }
    }

    /* Alert styling */
    .alert-danger {
        border-radius: 15px;
        border: none;
        background: linear-gradient(135deg, rgba(245,87,108,0.1) 0%, rgba(240,147,251,0.1) 100%);
        border-left: 4px solid #f5576c;
        color: #721c24;
    }

    /* Video Player Section */
    .video-player-section {
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        border: 1px solid rgba(226,232,240,0.95);
        border-radius: 22px;
        box-shadow: 0 16px 44px rgba(15,23,42,0.08);
        padding: 30px;
        margin-bottom: 30px;
        display: none;
    }

    .video-player-section.active {
        display: block;
    }

    .video-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e9ecef;
    }

    .video-header h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2d3748;
        margin: 0;
    }

    .video-controls {
        display: flex;
        gap: 10px;
    }

    .video-controls .btn {
        border-radius: 8px;
        padding: 8px 16px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .btn-maximize {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
    }

    .btn-maximize:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102,126,234,0.4);
        color: white;
    }

    .btn-close-video {
        background: #6c757d;
        border: none;
        color: white;
    }

    .btn-close-video:hover {
        background: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(108,117,125,0.4);
    }

    .video-container {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
        margin-bottom: 20px;
    }

    .video-container video {
        width: 100%;
        height: auto;
        display: block;
    }

    .video-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }

    .info-item {
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        padding: 15px;
        border-radius: 14px;
        border: 1px solid rgba(102,126,234,0.14);
        box-shadow: 0 8px 22px rgba(15,23,42,0.05);
    }

    .info-item strong {
        display: block;
        color: #667eea;
        font-size: 0.85rem;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-item span {
        color: #2d3748;
        font-size: 1rem;
    }

    .video-stats {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
        padding: 15px;
        background: linear-gradient(135deg, rgba(102,126,234,0.10) 0%, rgba(118,75,162,0.08) 100%);
        border-radius: 14px;
        border: 1px solid rgba(102,126,234,0.12);
    }

    .video-stat {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .video-stat i {
        font-size: 1.2rem;
        color: #667eea;
    }

    .video-stat span {
        font-weight: 600;
        color: #2d3748;
    }

    .video-description {
        margin-bottom: 20px;
    }

    .video-description h4 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 12px;
    }

    .video-description p {
        color: #6c757d;
        line-height: 1.6;
        white-space: pre-line;
    }

    /* Fullscreen styles */
    .video-player-section:fullscreen {
        padding: 0;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-player-section:fullscreen .video-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .video-player-section:fullscreen .video-header,
    .video-player-section:fullscreen .video-info,
    .video-player-section:fullscreen .video-stats,
    .video-player-section:fullscreen .video-description {
        display: none;
    }

    .video-player-section:-webkit-full-screen {
        padding: 0;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-player-section:-webkit-full-screen .video-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .video-player-section:-webkit-full-screen .video-header,
    .video-player-section:-webkit-full-screen .video-info,
    .video-player-section:-webkit-full-screen .video-stats,
    .video-player-section:-webkit-full-screen .video-description {
        display: none;
    }



