:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --accent: #171717;
    --accent-hover: #000000;
    --text-main: #18181b;
    --text-muted: #71717a;
    --border: rgba(0, 0, 0, 0.15);
    --gold-accent: rgb(163, 135, 95);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 11.25rem;
    /* Make room for the absolutely positioned logo */
    box-sizing: border-box;
}

.btn-back-home {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
}

.btn-back-home:hover {
    color: rgb(130, 108, 76);
}
.main-header {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.brand-logo {
    height: 102px;
    width: auto;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

.glass-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-main);
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgb(163, 135, 95);
    color: var(--text-main);
    padding: 0.85rem 1rem;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border: 2px solid rgb(130, 108, 76);
    padding: calc(0.85rem - 1px) calc(1rem - 1px);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    background: rgba(255, 255, 255, 0.95);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-check-input {
    min-width: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--accent);
    cursor: pointer;
    margin-top: 0.15rem;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500;
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(163, 135, 95, 0.35);
}

.btn-submit:hover {
    background: rgb(143, 115, 75);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(143, 115, 75, 0.45);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.success-icon {
    font-size: 4.5rem;
    color: #10b981;
    margin-bottom: 0.5rem;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-container {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

a.btn-submit {
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

.text-center {
    text-align: center;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-link {
    color: var(--gold-accent);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    display: inline-block;
}

.auth-link:hover {
    color: rgb(130, 108, 76);
    text-decoration: underline;
}

.password-help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.4;
}

.password-help-text ul {
    margin: 0.3rem 0 0 1.2rem;
    padding: 0;
}

.password-help-text li {
    margin-bottom: 0.2rem;
}


.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

/* File Upload Minimalist UI */
.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    width: 100%;
}

.btn-file-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgb(163, 135, 95);
    border-radius: 6px;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-file-add:hover {
    background-color: rgba(163, 135, 95, 0.15);
    border-color: rgb(130, 108, 76);
    transform: translateY(-1px);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(163, 135, 95, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(163, 135, 95, 0.6);
}

.file-item-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    overflow: hidden;
    min-width: 0;
}

.file-item-name {
    color: var(--text-main);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.file-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.15);
}


@media (max-width: 600px) {
    .btn-back-home {
        top: 1.5rem;
        left: 1rem;
        font-size: 0.85rem;
    }

    body {
        padding: 1rem;
        padding-top: 10.5rem;
    }

    .glass-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .form-control {
        font-size: 16px;
        padding: 0.75rem;
    }

    .checkbox-group {
        padding: 1rem;
        gap: 0.75rem;
    }

    .btn-submit {
        padding: 0.85rem 1rem;
    }
}

/* ==========================================================================
   Grading View & Apple-Inspired Score Sliders Design System
   ========================================================================== */

.grading-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.grading-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.grading-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    color: var(--text-main);
}

.submission-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.company-pill {
    background: rgba(23, 23, 23, 0.08);
    color: var(--text-main);
}

.category-pill {
    background: rgba(163, 135, 95, 0.15);
    color: rgb(130, 108, 76);
}

.subcategory-pill {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}

.submitter-info {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.submitter-info p {
    margin: 0.15rem 0;
}

/* PDF Document Viewer Section */
.pdf-viewer-section {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title-group h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.section-icon {
    color: rgb(130, 108, 76);
}

.pdf-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem;
    border-radius: 12px;
}

.pdf-tab-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-tab-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-viewer-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* PDF Preview Notice Banner */
.pdf-preview-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem;
    background: rgba(163, 135, 95, 0.08);
    border: 1px solid rgba(163, 135, 95, 0.22);
    border-radius: 10px;
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--text-main);
}

.pdf-preview-note-icon {
    color: rgb(130, 108, 76);
    flex-shrink: 0;
}

.pdf-preview-note-text {
    margin: 0;
}

.pdf-preview-note-link {
    color: rgb(130, 108, 76);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.pdf-preview-note-link:hover {
    color: rgb(100, 80, 50);
}

.pdf-frame-wrapper {
    position: relative;
    width: 100%;
    height: 640px;
    border-radius: 12px;
    overflow: hidden;
    background: #2a2a30;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #ffffff;
}

.pdf-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    z-index: 5;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pdf-loading-spinner.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-circle {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(163, 135, 95, 0.2);
    border-top-color: rgb(163, 135, 95);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem;
}

.pdf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-doc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pdf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-pdf-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pdf-action:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    transform: translateY(-1px);
}

.btn-pdf-action.btn-download-pdf {
    color: rgb(130, 108, 76);
    background: rgba(163, 135, 95, 0.12);
    border-color: rgba(163, 135, 95, 0.25);
}

.btn-pdf-action.btn-download-pdf:hover {
    background: rgba(163, 135, 95, 0.22);
    color: rgb(100, 80, 50);
}

.btn-pdf-action.btn-open-new-tab {
    color: rgb(130, 108, 76);
    background: rgba(163, 135, 95, 0.12);
    border-color: rgba(163, 135, 95, 0.25);
}

.btn-pdf-action.btn-open-new-tab:hover {
    background: rgba(163, 135, 95, 0.22);
    color: rgb(100, 80, 50);
}

.btn-pdf-action.btn-open-new-tab svg {
    transition: transform 0.2s ease;
}

.btn-pdf-action.btn-open-new-tab:hover svg {
    transform: translate(1px, -1px);
}

.btn-fullscreen-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-fullscreen-toggle svg {
    transition: transform 0.2s ease;
}

.btn-fullscreen-toggle:hover svg {
    transform: scale(1.1);
}


/* Full Window View for Submission PDF Preview Section */
.pdf-viewer-section.is-full-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 999999 !important;
    background: #18181b !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.85rem 1.5rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    overflow: hidden !important;
}

.pdf-viewer-section.is-full-window .section-header {
    margin-bottom: 0;
    flex-shrink: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pdf-viewer-section.is-full-window .section-title-group h2 {
    color: #ffffff;
    font-size: 1.15rem;
}

.pdf-viewer-section.is-full-window .section-icon {
    stroke: #ffffff;
}

.pdf-viewer-section.is-full-window .pdf-doc-label {
    color: rgba(255, 255, 255, 0.7);
}

.pdf-viewer-section.is-full-window .pdf-doc-label svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.pdf-viewer-section.is-full-window .pdf-viewer-container {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pdf-viewer-section.is-full-window .pdf-frame-wrapper {
    flex: 1;
    height: 100% !important;
    min-height: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000000;
}

.pdf-viewer-section.is-full-window .pdf-toolbar {
    flex-shrink: 0;
    padding: 0.2rem 0;
}

.pdf-viewer-section.is-full-window .btn-pdf-action {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.pdf-viewer-section.is-full-window .btn-pdf-action:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.pdf-viewer-section.is-full-window .pdf-preview-note {
    background: rgba(163, 135, 95, 0.16);
    border-color: rgba(163, 135, 95, 0.35);
    color: #f4f4f5;
}

.pdf-viewer-section.is-full-window .pdf-preview-note-icon {
    color: rgb(212, 185, 145);
}

.pdf-viewer-section.is-full-window .pdf-preview-note-link {
    color: rgb(212, 185, 145);
}

.pdf-viewer-section.is-full-window .pdf-preview-note-link:hover {
    color: #ffffff;
}

.pdf-viewer-section.is-full-window .btn-pdf-action.btn-open-new-tab {
    background: rgba(163, 135, 95, 0.28);
    color: #f5eedf;
    border-color: rgba(163, 135, 95, 0.45);
}

.pdf-viewer-section.is-full-window .btn-pdf-action.btn-open-new-tab:hover {
    background: rgba(163, 135, 95, 0.45);
    color: #ffffff;
}

.pdf-viewer-section.is-full-window .pdf-tabs {
    background: rgba(255, 255, 255, 0.1);
}

.pdf-viewer-section.is-full-window .pdf-tab-btn {
    color: rgba(255, 255, 255, 0.65);
}

.pdf-viewer-section.is-full-window .pdf-tab-btn.active {
    background: #ffffff;
    color: #18181b;
}

html.pdf-full-window-active,
body.pdf-full-window-active {
    overflow: hidden !important;
}

.is-hidden {
    display: none !important;
}

.pdf-placeholder-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    color: var(--text-muted);
}

.placeholder-icon {
    color: rgba(0, 0, 0, 0.25);
    margin-bottom: 0.75rem;
}

.pdf-placeholder-empty h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.pdf-placeholder-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Grading Form & Apple-Inspired Sliders */
.grading-form-section {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.sliders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sliders-row.top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sliders-row.bottom-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.sliders-row.bottom-row .apple-slider-card {
    width: calc((100% - 3rem) / 3);
    min-width: 0;
}

@media (max-width: 850px) {
    .sliders-row.top-row {
        grid-template-columns: 1fr;
    }

    .sliders-row.bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sliders-row.bottom-row .apple-slider-card {
        width: 100%;
    }
}

.apple-slider-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apple-slider-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.slider-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.slider-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

.apple-score-badge {
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(163, 135, 95, 0.14);
    color: rgb(130, 108, 76);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 2px rgba(163, 135, 95, 0.1);
}

.apple-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
}

/* Hide native number input visually while keeping it accessible to screen readers & form submission */
.score-input.slider-ready {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Apple Range Input Styling */
.apple-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--gold-accent, rgb(163, 135, 95)) 0%,
        var(--gold-accent, rgb(163, 135, 95)) var(--slider-fill, 0%),
        rgba(0, 0, 0, 0.08) var(--slider-fill, 0%),
        rgba(0, 0, 0, 0.08) 100%
    );
    outline: none;
    cursor: pointer;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.apple-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
}

.apple-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
}

.apple-range-input:active::-webkit-slider-thumb,
.apple-range-input:hover::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 5px 12px rgba(163, 135, 95, 0.35), 0 0 0 1px rgba(163, 135, 95, 0.3);
}

.apple-range-input:active::-moz-range-thumb,
.apple-range-input:hover::-moz-range-thumb {
    transform: scale(1.15);
    box-shadow: 0 5px 12px rgba(163, 135, 95, 0.35), 0 0 0 1px rgba(163, 135, 95, 0.3);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Apple Total Score Summary Card */
.apple-total-score-card {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.95) 0%, rgba(35, 35, 35, 0.98) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.25);
}

.total-score-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.total-score-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.total-score-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.total-score-display {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.total-score-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: rgb(215, 185, 140);
    line-height: 1;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.total-score-max {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.justification-group {
    margin-bottom: 2rem;
}

.justification-input {
    border-radius: 12px;
    resize: vertical;
    min-height: 110px;
}

.btn-save-grading {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .grading-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
    }

    .pdf-viewer-section, .grading-form-section {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .pdf-frame-wrapper {
        height: 420px;
    }

    .pdf-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .pdf-toolbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .pdf-viewer-section.is-full-window {
        padding: 0.75rem 0.75rem !important;
    }

    .apple-total-score-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .total-score-number {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Reviewer Dashboard & Navigation Design System
   ========================================================================== */

.grading-nav-bar {
    margin-bottom: -0.75rem;
}

.btn-back-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-back-dashboard:hover {
    color: rgb(130, 108, 76);
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-2px);
}

.dashboard-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: var(--text-main);
}

.dashboard-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}

.btn-dashboard-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dashboard-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-card-pending .stat-value {
    color: rgb(163, 135, 95);
}

.stat-card-rated .stat-value {
    color: #10b981;
}

/* Empty State */
.dashboard-empty-state {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    color: rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
}

.dashboard-empty-state h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-main);
}

.dashboard-empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Category Blocks */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-block {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-pillar-pill {
    background: rgba(163, 135, 95, 0.15);
    color: rgb(130, 108, 76);
}

.category-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.category-progress-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.category-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.status-group-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.indicator-pending {
    background-color: rgb(163, 135, 95);
    box-shadow: 0 0 0 3px rgba(163, 135, 95, 0.2);
}

.indicator-rated {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-group-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.submission-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.submission-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.company-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    line-height: 1.3;
}

.badge-status-done {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    color: #0f5132;
    white-space: nowrap;
}

.submission-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.submission-card-meta p {
    margin: 0;
}

.subsubs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.subsub-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}

.submission-card-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--accent);
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    background: rgb(143, 115, 75);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(143, 115, 75, 0.3);
}

.btn-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-action-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.status-group-empty {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.status-group-empty p {
    margin: 0;
}

/* Staff Dashboard specific styles */
.company-heading-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(163, 135, 95, 0.2);
    color: rgb(130, 108, 76);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.score-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    color: #065f46;
    font-weight: 700;
    white-space: nowrap;
}

.score-val {
    font-size: 1rem;
    color: #047857;
}

.score-max {
    font-size: 0.75rem;
    color: #065f46;
    opacity: 0.75;
}

.score-pill-empty {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    border: 1px dashed rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.staff-submission-card.unrated-card {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-block {
        padding: 1.25rem;
    }

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

/* ==========================================================================
   Staff Submission & Evaluations Detailed View
   ========================================================================== */

.staff-submission-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.staff-submission-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.staff-submission-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.header-pretitle {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(130, 108, 76);
}

.submission-main-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    line-height: 1.2;
}

.staff-submission-header-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-score-card,
.summary-stats-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.summary-score-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.summary-score-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.summary-score-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.summary-score-max {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-score-empty {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.summary-stats-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Submission Overview Details Grid */
.submission-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.overview-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.overview-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(163, 135, 95, 0.15);
    color: rgb(130, 108, 76);
}

.section-count-badge {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.overview-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.92rem;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-main);
    text-align: right;
    word-break: break-word;
}

.detail-value.font-semibold {
    font-weight: 600;
}

.detail-link {
    color: rgb(130, 108, 76);
    text-decoration: none;
    font-weight: 500;
}

.detail-link:hover {
    text-decoration: underline;
}

.code-badge {
    font-family: monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #0f5132;
}

.subsubs-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.comments-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comments-content p {
    margin: 0;
}

/* Files Section */
.files-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.file-item-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.file-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    flex-shrink: 0;
}

.file-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
    overflow: hidden;
}

.file-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.file-item-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-file-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-file-download:hover {
    background: rgb(143, 115, 75);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(143, 115, 75, 0.25);
}

.btn-file-open {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-file-open:hover {
    background: rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

.files-empty-state {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Evaluations Master-Detail Section */
.evaluations-section {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.evaluations-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    flex-wrap: wrap;
    gap: 1rem;
}

.evaluations-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.evaluations-header-title h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.evaluations-master-detail {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.75rem;
    align-items: start;
}

/* Left Column: Nav list of evaluators */
.evaluations-selector-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.selector-column-header {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.evaluations-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eval-nav-item {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.eval-nav-item:hover {
    background: #ffffff;
    border-color: rgba(163, 135, 95, 0.4);
    transform: translateX(3px);
}

.eval-nav-item.is-active {
    background: #ffffff;
    border: 2px solid rgb(163, 135, 95);
    box-shadow: 0 6px 18px rgba(163, 135, 95, 0.2);
    transform: translateX(4px);
}

.eval-nav-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.eval-nav-reviewer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.reviewer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(163, 135, 95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.reviewer-names {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reviewer-display-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.reviewer-username {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.eval-nav-score {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.score-badge-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #047857;
}

.score-badge-max {
    font-size: 0.72rem;
    color: #065f46;
    font-weight: 600;
}

.eval-nav-item-bottom {
    display: flex;
    justify-content: flex-end;
}

.eval-view-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(130, 108, 76);
}

/* Pending Reviewers List */
.pending-reviewers-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.pending-reviewers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pending-reviewer-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.avatar-pending {
    background: #9ca3af;
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
}

.badge-pending {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

/* Right Column: Interactive Evaluation Detail Pane */
.evaluation-detail-pane {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.eval-detail-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.eval-detail-card.fade-in-active {
    animation: fadeInSlide 0.25s ease-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0.6;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eval-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    flex-wrap: wrap;
    gap: 1rem;
}

.eval-reviewer-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.avatar-large {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(163, 135, 95, 0.25);
}

.reviewer-profile-info {
    display: flex;
    flex-direction: column;
}

.reviewer-detail-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.reviewer-detail-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.eval-total-score-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 0.75rem 1.5rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.total-score-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #065f46;
}

.total-score-card-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-large {
    font-size: 2rem;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}

.score-max-large {
    font-size: 0.95rem;
    font-weight: 600;
    color: #065f46;
    opacity: 0.8;
}

/* Criteria Scores Grid */
.criteria-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.criteria-card {
    background: rgba(249, 250, 251, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.criteria-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.criteria-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

.criteria-score-val {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgb(130, 108, 76);
}

.criteria-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(163, 135, 95), rgb(130, 108, 76));
    border-radius: 999px;
    transition: width 0.4s ease-out;
}

/* Justification Section */
.eval-justification-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.justification-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(130, 108, 76);
}

.justification-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.justification-body {
    background: rgba(249, 250, 251, 0.8);
    border-left: 4px solid rgb(163, 135, 95);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
}

.justification-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-main);
    white-space: pre-wrap;
}

/* Empty Evaluations Card */
.evaluations-empty-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    color: rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.evaluations-empty-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.evaluations-empty-card p {
    margin: 0;
    font-size: 0.92rem;
}

.empty-pending-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.empty-pending-wrap h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.pending-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pending-reviewer-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Responsive adjustments for staff submission view */
@media (max-width: 900px) {
    .evaluations-master-detail {
        grid-template-columns: 1fr;
    }

    .submission-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .staff-submission-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .staff-submission-header-summary {
        width: 100%;
        justify-content: space-between;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .detail-value {
        text-align: left;
    }
}

/* ==========================================================================
   Staff Dashboard Header Action Button
   ========================================================================== */

.btn-dashboard-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-dashboard-action:hover {
    background: rgb(143, 115, 75);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(143, 115, 75, 0.3);
}

.btn-dashboard-action.btn-dashboard-switch {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-dashboard-action.btn-dashboard-switch:hover {
    background: rgba(255, 255, 255, 0.95);
    color: rgb(143, 115, 75);
    border-color: rgba(143, 115, 75, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(143, 115, 75, 0.18);
}

/* ==========================================================================
   Create Reviewer View Styles (Glassmorphism & Gold Accent System)
   ========================================================================== */

.create-reviewer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    box-sizing: border-box;
}

.create-reviewer-nav-bar,
.create-reviewer-container .grading-nav-bar {
    margin-bottom: 0;
}

.create-reviewer-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 1.75rem 2.25rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

#create-reviewer-form {
    width: 100%;
}

.create-reviewer-grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.reviewer-info-card {
    position: sticky;
    top: 2rem;
    z-index: 10;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.card-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.card-section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.45;
}

/* Form Groups & Inputs in Reviewer Form */
.reviewer-info-card .form-group {
    margin-bottom: 1.25rem;
}

.reviewer-info-card .form-label {
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.reviewer-info-card .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.reviewer-info-card .form-control:focus {
    outline: none;
    border-color: rgb(163, 135, 95);
    background: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: 0 0 0 3px rgba(163, 135, 95, 0.18);
}

.reviewer-info-card .form-control::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

/* Username Preview */
.username-preview-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    margin: 1.25rem 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.preview-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.preview-username-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgb(130, 108, 76);
    background: rgba(163, 135, 95, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(163, 135, 95, 0.25);
    letter-spacing: 0.02em;
}

.preview-hint {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Notice Box */
.reviewer-notice-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(163, 135, 95, 0.08);
    border: 1px solid rgba(163, 135, 95, 0.22);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 0.83rem;
    line-height: 1.45;
}

.reviewer-notice-box .notice-icon {
    color: rgb(130, 108, 76);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.reviewer-notice-box p {
    margin: 0;
}

/* Summary Mini-Stats */
.reviewer-assignment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.summary-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.stat-mini-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.stat-mini-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-val-gold {
    color: rgb(130, 108, 76);
}

/* Submit Action Button */
.submit-action-wrap {
    margin-top: 0.5rem;
}

.btn-submit-reviewer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.btn-submit-reviewer:hover {
    background: rgb(143, 115, 75);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(143, 115, 75, 0.35);
}

.btn-submit-reviewer:active {
    transform: translateY(0);
}

/* Right Assignment Column */
.assignment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.assignment-header-row .card-section-subtitle {
    margin-bottom: 0;
}

.assignment-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-quick-action {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-action:hover {
    background: #ffffff;
    border-color: rgba(163, 135, 95, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.badge-total-counter {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #047857;
}

/* Pillars List & Sections */
.assignment-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pillar-assignment-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pillar-assignment-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pillar-section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pillar-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.categories-assignment-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Category Item Card */
.category-assignment-item {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.category-assignment-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(163, 135, 95, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.category-assignment-item.is-active {
    border-color: rgba(163, 135, 95, 0.55);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(163, 135, 95, 0.09);
}

.category-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-check-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.category-title-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    margin: 0;
    user-select: none;
    line-height: 1.35;
}

.category-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-selected-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.btn-toggle-subs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-subs:hover {
    background: #ffffff;
    border-color: rgba(163, 135, 95, 0.4);
}

.btn-toggle-subs.active {
    background: rgba(163, 135, 95, 0.12);
    border-color: rgba(163, 135, 95, 0.3);
    color: rgb(130, 108, 76);
}

.btn-toggle-subs .chevron-icon {
    transition: transform 0.2s ease;
}

.btn-toggle-subs.active .chevron-icon {
    transform: rotate(180deg);
}

/* Category Submissions Container (Accordion) */
.category-submissions-container {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(248, 250, 252, 0.75);
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: max-height 0.3s ease;
}

.category-submissions-container.collapsed {
    display: none;
}

.submissions-list-header {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.submissions-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.submission-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.submission-checkbox-item:hover {
    border-color: rgba(163, 135, 95, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.submission-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.sub-company-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    word-break: break-word;
}

.sub-applicant {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.empty-subs-msg,
.empty-category-notice {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

@media (max-width: 980px) {
    .create-reviewer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reviewer-info-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .create-reviewer-header {
        padding: 1.5rem 1.25rem;
    }

    .glass-panel {
        padding: 1.5rem 1.25rem;
    }

    .category-header-row {
        padding: 0.85rem 1rem;
    }

    .submissions-checkboxes-grid {
        grid-template-columns: 1fr;
    }
}