/* BRANDING */
    :root {
        --primary-color: #204164;
        --primary-hover: #162e4a;
        --accent-color: #f39c12;
        --bg-color: #eef2f6;
        --text-dark: #2d3748;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: var(--bg-color);
        margin: 0;
        padding: 0;
        color: var(--text-dark);
    }

    /* HEADER (Restored to Original Prominence) */
    .top-header {
        background: white;
        text-align: center;
        padding: 0;
        border-bottom: 5px solid var(--primary-color);
    }

    .logo-img {
        width: 100%;
        max-width: 900px;
        height: auto;
        display: block;
        margin: 0 auto;
        /* Prevent layout shift */
        min-height: 50px;
    }

   .nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center; /* Centers the content block, not the items */
}
    /* Hide scrollbar for Chrome/Safari/Edge */
    .nav-bar::-webkit-scrollbar {
        display: none;
    }

.nav-scroll-container {
    max-width: 900px; /* Matches your logo/content width */
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Items start from the left */
    align-items: stretch;
    overflow-x: auto; /* Enable horizontal scroll on mobile */
    overflow-y: hidden;
    white-space: nowrap; /* Prevents text from wrapping to new lines */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    scrollbar-width: none; /* Hides scrollbar for Firefox */
    padding: 0 10px;
}

/* Hide scrollbar for Chrome/Safari/Edge */
.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.nav-item, .nav-home-link {
    padding: 14px 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: #4a5568;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent; /* Placeholder for active state */
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevents buttons from squishing on mobile */
}

.nav-home-link {
    border-right: 1px solid #edf2f7;
    margin-right: 10px;
}

/* Hover State */
.nav-item:hover {
    color: var(--primary-color);
    background-color: #f7fafc;
}

/* Active Tab (The Blue Underline) */
.nav-item.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

/* Mobile Tweak: Hide text for Home on very small screens */
@media (max-width: 480px) {
    .home-text { display: none; }
    .nav-home-link { padding: 14px 15px; }
    .nav-item { padding: 14px 15px; font-size: 0.9em; }
}

    .content-wrapper {
        max-width: 900px;
        margin: 10px auto 20px auto;
        padding: 0 10px;
        min-height: 600px;
    }

    /* TAB SECTIONS (Hidden by default) */
    .tab-section {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .tab-section.active {
        display: block;
    }

    /* CARDS */
    .card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        padding: 30px;
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
    }

    .card-title {
        font-size: 1.5em;
        color: var(--primary-color);
        margin-top: 0;
        margin-bottom: 20px;
        border-bottom: 2px solid #edf2f7;
        padding-bottom: 10px;
    }

    /* OVERVIEW GRID */
    .overview-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* MATERIALS LAYOUT */
    .materials-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        /* Agenda 2/3, Reports 1/3 */
        gap: 30px;
    }

    .report-link {
    display: flex;
    align-items: flex-start; /* Keeps the icon at the top if text wraps */
    gap: 12px;
    padding: 15px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.2s ease;

    /* THE WRAPPING FIXES */
    white-space: normal;      /* Allow multiple lines */
    overflow-wrap: anywhere;  /* Break long words if necessary */
    line-height: 1.4;
    width: 100%;             /* Ensure it fills the column */
    box-sizing: border-box;  /* Include padding in width calculation */
}

    /* HOVER STATE */
    .report-link:hover {
        background: #ebf8ff;
        border-color: #bee3f8;
        transform: translateX(5px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* ICON SPECIFIC STYLING (Optional but recommended) */
    .report-link span {
    flex-shrink: 0;
    font-size: 1.2em;
    margin-top: -2px; /* Slight adjustment to align with top of text */
}

    .report-link span:first-child {
    flex-shrink: 0;
    font-size: 1.2em;
    margin-top: -2px; /* Optical alignment with top of text */
}

    .form-label {
        display: block;
        font-size: 0.95em;
        font-weight: 700;
        color: #4a5568;
        /* Slate Grey for better readability */
        margin-bottom: 10px;
        letter-spacing: 0.02em;
    }

    .form-control {
        width: 100%;
        padding: 14px 16px;
        /* Larger hit area for touch screens */
        font-size: 16px;
        /* Prevents automatic zoom on iOS */
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        /* Softer corners */
        background-color: #f8fafc;
        /* Very subtle grey background */
        color: #2d3748;
        transition: all 0.3s ease;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
        box-sizing: border-box;
    }

    textarea.form-control {
        resize: vertical;
        /* Allows vertical resizing only */
        min-height: 100px;
        /* Optional: Sets a reasonable default height */
    }

    /* Input Focus State - The "Glow" */
    .form-control:focus {
        border-color: var(--primary-color);
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(32, 65, 100, 0.1);
        /* Soft primary glow */
        outline: none;
    }

    .form-control::placeholder {
        color: #a0aec0;
    }

    /* BUTTONS */
    .btn-primary {
        width: 100%;
        background: var(--primary-color);
        color: white;
        border: 2px solid transparent;
        box-sizing: border-box; 
        padding: 16px;
        font-size: 1em;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        transition: all 0.2s ease;
        box-shadow: 0 4px 6px rgba(32, 65, 100, 0.2);
        margin-top: 20px;
    }

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        /* Slight lift effect */
        box-shadow: 0 6px 12px rgba(32, 65, 100, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(32, 65, 100, 0.2);
    }

    .btn-primary:disabled {
        background: #cbd5e0;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* SECONDARY / GO BACK BUTTONS */
    .btn-secondary {
        background-color: #ffffff;
        color: #4a5568;
        border: 2px solid #cbd5e0;
        box-sizing: border-box; 
        padding: 12px 20px;
        font-size: 0.95em;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s ease;
        width: 100%;
        margin-top: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .btn-secondary:hover {
        background-color: #f7fafc;
        border-color: #a0aec0;
        color: #2d3748;
        transform: translateY(-1px);
    }

    .btn-secondary:active {
        transform: translateY(0);
        background-color: #edf2f7;
    }

    /* DRAWER CANCEL BUTTON */
    .btn-drawer-cancel {
        background-color: #ffffff;
        border: 2px solid #e2e8f0;
        color: #718096;
        padding: 16px 24px;
        /* Matches the height of the Save button */
        font-size: 1em;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s ease;
        /* Reset any conflicting styles from other buttons */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: auto;
        width: auto;
    }

    .btn-drawer-cancel:hover {
        border-color: #cbd5e0;
        color: #2d3748;
        background-color: #f8fafc;
        transform: translateY(-2px);
    }

    /* VERIFY BUTTON (Orange) */
    .btn-verify {
        width: 100%;
        background: var(--accent-color);
        color: white;
        border: none;
        padding: 14px;
        font-size: 0.95em;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        margin-top: 15px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-verify:hover {
        background: #d68910;
        /* Darker shade of orange */
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

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

    /* RESET BUTTON (Small text button if they get it wrong) */
    .btn-postal-reset {
        background: none;
        border: none;
        color: #718096;
        text-decoration: underline;
        cursor: pointer;
        font-size: 0.9em;
        margin-top: 10px;
        width: 100%;
    }

    .btn-postal-reset:hover {
        color: #2d3748;
    }

    /* NEUTRAL / GO BACK BUTTON (For Modals) */
    .btn-neutral {
        background-color: #ffffff;
        color: #4a5568;
        /* Slate grey text */
        border: 2px solid #cbd5e0;
        /* Light grey border */
        padding: 16px;
        font-size: 1em;
        font-weight: 700;
        /* Bold like the primary buttons */
        border-radius: 8px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

        /* Ensure it fills its flex container */
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-neutral:hover {
        background-color: #f7fafc;
        border-color: #a0aec0;
        /* Darker border on hover */
        color: #2d3748;
        transform: translateY(-2px);
    }

    .btn-neutral:active {
        background-color: #edf2f7;
        transform: translateY(0);
    }

    /* DANGER / CANCEL BUTTON */
    .btn-danger {
        background-color: #fff5f5;
        color: #c53030;
        border: 2px solid #fc8181;
        padding: 10px 20px;
        font-size: 0.9em;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    /* HOVER STATE: Turns solid red */
    .btn-danger:hover {
        background-color: #c53030;
        color: white;
        border-color: #c53030;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(197, 48, 48, 0.2);
    }

    .btn-danger:active {
        transform: translateY(0);
        background-color: #9b2c2c;
    }

    /* ACTION BUTTON LAYOUT */
    .action-row {
        display: flex;
        flex-direction: column-reverse;
        gap: 15px;
        margin-top: 30px;
    }

    @media (min-width: 768px) {
        .action-row {
            flex-direction: row;
        }
        .action-row>button {
            flex: 1;
        }
        .hero-actions-section {
            display: flex;
            flex-direction: column;
            min-width: 160px;
            align-self: stretch;
            justify-content: space-between;
            gap: 0;
        }
    }

    /* "GHOST" EDIT BUTTON */
    .btn-outline {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        /* Brand Border */
        padding: 16px;
        font-size: 1em;
        font-weight: 800;
        border-radius: 8px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: none;
    }

    .btn-outline:hover {
        background-color: #ebf8ff;
        border-color: var(--primary-hover);
        color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    /* RADIO BUTTON GROUPS */
    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    .radio-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-weight: 600;
        color: #4a5568;
    }

    .radio-group input[type="radio"] {
        accent-color: var(--primary-color);
        width: 18px;
        height: 18px;
        margin: 0;
        cursor: pointer;
    }

    .form-group[data-name="fullName"] {
        margin-bottom: 35px !important;
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hidden-question {
        opacity: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        pointer-events: none;
    }

    /* Error/Success Boxes */
    .verify-box {
        background: #fffaf0;
        border: 1px solid #ffe0b2;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .verify-box.error-state {
        background: #fff5f5;
        border-color: #fc8181;
        border-left: 5px solid #e53e3e;
    }

    .postal-error-text {
        color: #c53030;
        font-weight: 600;
        margin-top: 10px;
        display: none;
    }

    .error-box {
        background: #fff5f5;
        border: 1px solid #fed7d7;
        border-left: 5px solid #e53e3e;
        padding: 20px;
        border-radius: 6px;
        margin-bottom: 20px;
        display: none;
    }

    .success-box {
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        color: #2e7d32;
        padding: 15px;
        border-radius: 6px;
        margin-bottom: 25px;
        text-align: center;
        font-weight: bold;
        display: none;
    }

    /* TOAST (Bottom) */
    #custom-toast {
        visibility: hidden;
        min-width: 300px;
        background-color: #323232;
        color: #fff;
        text-align: center;
        border-radius: 50px;
        padding: 16px 24px;
        position: fixed;
        z-index: 5000;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s, bottom 0.3s;
    }

    #custom-toast.show {
        visibility: visible;
        opacity: 1;
        bottom: 50px;
    }

    /* MODAL */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 3000;
        display: none;
        justify-content: center;
        align-items: center;
    }

    .modal-card {
        background: white;
        width: 90%;
        max-width: 450px;
        padding: 30px;
        border-radius: 10px;
        text-align: center;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @media (max-width: 768px) {
        .overview-grid,
        .materials-grid {
            grid-template-columns: 1fr;
        }

        .nav-item {
            padding: 15px 10px;
            font-size: 14px;
        }

        .nav-bar {
            justify-content: flex-start;
            padding: 0;
        }

        .nav-item {
            padding: 12px 15px;
            font-size: 14px;
        }

        .nav-home-link {
            padding: 0 15px;
            border-right: 1px solid #eee;
            background: #fcfcfc;
            position: sticky;
            left: 0;
            z-index: 10;
        }

        .edit-drawer-overlay {
            padding: 0;
            align-items: flex-end;
        }

        .edit-drawer {
            width: 100%;
            max-width: 100%;
            height: 100%;
            max-height: 100vh;
            border-radius: 0;
            display: flex;
            flex-direction: column;
        }

        .drawer-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 80px;
        }

        .drawer-footer {
            padding: 15px;
            background: #fff;
            border-top: 1px solid #eee;
        }

        .drawer-tab {
            padding: 12px 5px;
            font-size: 0.9em;
        }

        .top-header {
            padding: 5px 0;
            border-bottom-width: 3px;
        }

        .row-2,
        .row-3,
        .overview-grid,
        .materials-grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .card {
            padding: 20px 15px;
            margin-bottom: 15px;
        }

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

        h2.card-title {
            font-size: 1.3em;
        }

        #map-container {
            min-height: 250px;
            width: 100%;
        }

        .profile-value {
            text-align: left;
            margin-top: 4px;
            display: block;
        }

        .profile-row {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    /* EXPLAINER ICON (?) */
    .info-icon {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 22px;
        height: 22px;
        background-color: #cbd5e0;
        color: white;
        border-radius: 50%;
        font-size: 14px;
        font-weight: bold;
        margin-left: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        vertical-align: middle;
    }

    .info-icon:hover {
        background-color: var(--primary-color);
        transform: scale(1.1);
    }

    .close-modal-btn {
        margin-top: 20px;
        background-color: #718096;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
    }

    .close-modal-btn:hover {
        background-color: #4a5568;
    }

    /* PROFILE REVIEW CARD */
    .profile-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 25px;
        margin-bottom: 25px;
    }

    .profile-row {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #edf2f7;
    }

    .profile-label {
        font-weight: 600;
        color: #718096;
    }

    .profile-value {
        font-weight: 700;
        color: #2d3748;
        text-align: right;
    }

    /* CHIP INPUT STYLES (School Selector) */
    .chip-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
        min-height: 45px;
    }

    .chip-container:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(32, 65, 100, 0.1);
    }

    .chip {
        background: #e2e8f0;
        color: #2d3748;
        padding: 5px 10px;
        border-radius: 16px;
        font-size: 0.9em;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .chip-remove {
        cursor: pointer;
        font-weight: bold;
        color: #718096;
        font-size: 1.1em;
        line-height: 1;
    }

    .chip-remove:hover { color: #e53e3e; }

    .chip-input {
        border: none;
        outline: none;
        flex-grow: 1;
        padding: 5px;
        font-size: 1em;
        min-width: 150px;
    }

    /* AUTOCOMPLETE DROPDOWN */
    .autocomplete-list {
        position: absolute;
        z-index: 1000;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-top: none;
        max-height: 200px;
        overflow-y: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        display: none;
    }

    .autocomplete-item {
        padding: 10px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f7fafc;
    }

    .autocomplete-item:hover {
        background-color: #ebf8ff;
        color: var(--primary-color);
    }

    /* CHUNKED REVIEW LAYOUT */
    .review-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }

    .review-chunk {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        transition: transform 0.2s ease;
    }

    .review-chunk:hover {
        border-color: #cbd5e0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .chunk-header {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.1em;
        margin-bottom: 15px;
        border-bottom: 2px solid #f7fafc;
        padding-bottom: 10px;
    }

    .chunk-icon {
        background: #ebf8ff;
        color: var(--primary-color);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.1em;
    }

    .chunk-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
        font-size: 0.95em;
        line-height: 1.4;
    }

    .chunk-label {
        color: #718096;
        font-weight: 500;
        min-width: 100px;
    }

    .chunk-value {
        color: #2d3748;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
    }

    @media (min-width: 768px) {
        .review-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .full-width-chunk {
            grid-column: span 2;
        }
    }

    /* EDIT MODAL (Centered Floating Window) */
    .edit-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 4000;
        display: none;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .edit-drawer {
        background: #fff;
        width: 100%;
        max-width: 700px;
        max-height: 90vh;
        height: auto;
        border-radius: 12px;
        padding: 0;
        display: flex;
        flex-direction: column;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        animation: modalFadeIn 0.2s ease-out;
        overflow: hidden;
    }

    .drawer-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        background: #fff;
        display: flex;
        gap: 15px;
        justify-content: flex-end;
        align-items: center;
    }

    .drawer-footer button { margin-top: 0 !important; }

    @keyframes modalFadeIn {
        from { opacity: 0; transform: scale(0.98); }
        to { opacity: 1; transform: scale(1); }
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    #btn-add-assignment .material-icons-outlined {
        text-transform: none !important;
        font-size: 22px;
        margin-right: 8px;
    }

    .drawer-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        border-radius: 15px 15px 0 0;
    }

    .drawer-body {
        padding: 25px;
        overflow-y: auto;
        flex-grow: 1;
        padding-bottom: 100px !important;
    }

    /* ASSIGNMENT CARD (Inside Edit Mode) */
    .assignment-edit-card {
        background: #fff;
        border: 1px solid #cbd5e0;
        border-left: 5px solid var(--accent-color);
        padding: 15px;
        border-radius: 6px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .assignment-edit-details { font-weight: 600; color: #2d3748; }
    .assignment-edit-sub { font-size: 0.85em; color: #718096; }
    .remove-icon { color: #e53e3e; cursor: pointer; font-size: 1.2em; padding: 5px; }
    .remove-icon:hover { background: #fff5f5; border-radius: 4px; }

    .assignment-adder {
        background: #f8fafc;
        border: 2px dashed #cbd5e0;
        border-radius: 12px;
        padding: 20px;
        margin-top: 25px;
        margin-bottom: 20px;
        transition: border-color 0.3s ease;
    }

    .assignment-adder:focus-within { border-color: var(--accent-color); }

    #btn-add-assignment {
        background-color: #f39c12 !important;
        color: white !important;
        border: none;
        border-radius: 6px;
        height: 50px;
        width: 100%;
        font-weight: 800;
        letter-spacing: 1px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 0px #d68910;
        transition: all 0.1s ease;
        margin-top: 10px;
    }

    #btn-add-assignment:hover {
        background-color: #e67e22 !important;
        transform: translateY(2px);
        box-shadow: 0 2px 0px #d68910;
    }

    #btn-add-assignment:active {
        transform: translateY(4px);
        box-shadow: 0 0px 0px #d68910;
    }

    /* DRAWER TABS */
    .drawer-tabs {
        display: flex;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
        margin: 0;
        padding: 0;
    }

    .drawer-tab {
        flex: 1;
        padding: 15px;
        text-align: center;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        font-weight: 600;
        color: #718096;
        cursor: pointer;
        transition: all 0.2s;
    }

    .drawer-tab:hover { background: #edf2f7; color: var(--primary-color); }
    .drawer-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: #fff; }

    .drawer-panel { display: none; padding: 20px; animation: fadeIn 0.3s; }
    .drawer-panel.active { display: block; }

    .drawer-panel .form-group { margin-bottom: 15px; }
    .drawer-panel .form-label { font-size: 0.85em; margin-bottom: 4px; }
    .drawer-panel .form-control { padding: 8px 10px; font-size: 0.95em; }

    .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

    /* PACIFIER / LOADING TEXT */
    #pacifier-message {
        margin-top: 15px;
        font-size: 0.9em;
        color: #718096;
        font-style: italic;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        min-height: 20px;
        text-align: center;
    }
    #pacifier-message.visible { opacity: 1; }

    .loader {
        border: 5px solid #f3f3f3;
        border-top: 5px solid var(--accent-color);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px auto;
    }

    .mini-loader {
        border: 3px solid #e2e8f0;
        border-top: 3px solid var(--accent-color);
        border-radius: 50%;
        width: 16px;
        height: 16px;
        animation: spin 1s linear infinite;
        display: inline-block;
        vertical-align: text-bottom;
        margin-right: 8px;
    }

    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    select.form-control {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: 16px;
        background-position: right 15px center;
        padding-right: 40px;
    }

    .autocomplete-wrapper { position: relative; }

    .autocomplete-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border: 1px solid #cbd5e0;
        border-top: none;
        border-radius: 0 0 8px 8px;
        background-color: #fff;
        z-index: 50;
        max-height: 300px;
        overflow-y: auto;
        display: none;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .autocomplete-item {
        padding: 8px 12px;
        cursor: pointer;
        border-bottom: 1px solid #f7fafc;
        color: #2d3748;
        font-size: 0.9em;
        transition: background 0.1s;
    }

    .autocomplete-item:hover { background-color: #ebf8ff; color: var(--primary-color); }

    .special-option {
        font-size: 0.85em;
        color: #718096;
        background-color: #f7fafc;
        border-top: 1px solid #e2e8f0;
        font-style: italic;
        padding: 12px;
        text-align: center;
    }

    .special-option:hover { background-color: #e2e8f0; color: #2d3748; }

    .tags-input-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        width: 100%;
        min-height: 36.82px;
        padding: 3px 10px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        background-color: #f8fafc;
        color: #2d3748;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

    .tags-input-container:focus-within {
        border-color: var(--primary-color);
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(32, 65, 100, 0.1);
    }

    #position-input {
        border: none;
        outline: none;
        background: transparent;
        flex-grow: 1;
        min-width: 150px;
        font-size: 16px;
        color: #2d3748;
        height: 100%;
        padding: 0;
        margin: 0;
    }

    .role-tag {
        background-color: #ebf8ff;
        color: #2c5282;
        font-size: 0.85em;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        gap: 6px;
        border: 1px solid #bee3f8;
    }

    .role-tag-remove {
        cursor: pointer;
        font-weight: bold;
        font-size: 1.1em;
        line-height: 1;
        color: #2c5282;
    }

    .role-tag-remove:hover { color: #c53030; }

    #position-input {
        border: none;
        outline: none;
        flex-grow: 1;
        min-width: 120px;
        font-size: 0.95em;
        padding: 4px;
    }

    .nav-home-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 700;
        padding: 0 15px;
        margin-right: 10px;
        border-right: 1px solid #e2e8f0;
        transition: background 0.2s;
    }

    .nav-home-link:hover { background-color: #f8fafc; }
    .home-text { margin-left: 5px; }

    @media (max-width: 600px) {
        .home-text { display: none; }
        .nav-home-link { padding: 0 10px; margin-right: 5px; }
    }

    #qr-modal { z-index: 5500 !important; }

    .modal-title {
        font-size: 1.6em;
        font-weight: 800;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

    .modal-icon-wrapper {
        font-size: 3.5em;
        margin-bottom: 10px;
        line-height: 1;
    }

    .modal-theme-warning .modal-title { color: #c05621; }
    .modal-theme-warning .modal-icon-wrapper { color: #ed8936; }
    .modal-theme-warning .close-modal-btn { background-color: #c05621; }
    .modal-theme-warning .close-modal-btn:hover { background-color: #9c4221; }

    .day-highlight-flash {
        animation: flashCell 2s ease-out;
        border: 2px solid var(--accent-color) !important;
        background-color: #fffaf0 !important;
        position: relative;
        z-index: 10;
    }

    @keyframes flashCell {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
        20% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
        100% { transform: scale(1); }
    }

    #no-assignments-modal { z-index: 4500; }
    #no-assignments-modal .modal-card {
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-top: 5px solid var(--primary-color);
        max-width: 500px;
    }

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

    #pending-assignment-modal { z-index: 4600; }
    #pending-assignment-modal .modal-card { border-top: 5px solid var(--accent-color); max-width: 500px; }

    /* CONTROLS BAR (Search + View Toggles) */
    .controls-card {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
    }

    .search-wrapper { flex-grow: 1; position: relative; min-width: 300px; }

    .view-toggle { display: flex; background: #e2e8f0; border-radius: 8px; padding: 4px; gap: 4px; }
    .view-btn { background: transparent; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; color: #64748b; transition: all 0.2s; }
    .view-btn.active { background: white; color: var(--primary-color); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }

    .event-list-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 15px;
        transition: all 0.2s ease;
        text-decoration: none;
        color: inherit;
        background: #fff;
    }

    .event-list-item:hover {
        border-color: var(--primary-color);
        transform: translateX(5px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        background-color: #f8fafc;
    }

    .event-date-badge {
        background: #ebf8ff;
        color: var(--primary-color);
        padding: 10px;
        border-radius: 8px;
        font-weight: 700;
        text-align: center;
        min-width: 70px;
        margin-right: 20px;
        line-height: 1.2;
    }

    .event-title { font-size: 1.2em; font-weight: 700; color: #2d3748; margin-bottom: 5px; }
    .event-meta { font-size: 0.95em; color: #718096; display: flex; gap: 15px; }

    .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-weight: 700; font-size: 1.2em; color: var(--primary-color); }
    .cal-nav-btn { background: white; border: 1px solid #e2e8f0; padding: 5px 15px; border-radius: 6px; cursor: pointer; }
    .cal-nav-btn:hover { background: #f7fafc; border-color: #cbd5e0; }
    .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
    .cal-day-header { background: #f8fafc; padding: 10px; text-align: center; font-weight: 700; color: #64748b; font-size: 0.9em; min-width: 0; overflow: hidden; }
    .cal-day { background: white; min-height: 100px; padding: 8px; position: relative; transition: background 0.2s; min-width: 0; overflow: hidden; }
    .cal-day:hover { background: #fafbfc; }
    .cal-day.empty { background: #fcfcfc; }
    .cal-day.today { background: #fffaf0; }
    .day-number { font-weight: 600; color: #2d3748; margin-bottom: 5px; display: block; }
    .cal-event { display: block; background: #ebf8ff; color: var(--primary-color); padding: 4px 6px; border-radius: 4px; font-size: 0.75em; margin-bottom: 4px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--primary-color); font-weight: 600; }
    .cal-event:hover { background: var(--primary-color); color: white; }
    .day-highlight-active { background-color: #e6fffa !important; border: 2px solid #319795 !important; box-shadow: 0 0 15px rgba(49, 151, 149, 0.3); position: relative; z-index: 10; transition: all 0.5s ease; }

    .hidden { display: none !important; }

    @media (max-width: 768px) {
        .controls-card { flex-direction: column; align-items: stretch; }
        .calendar-grid { display: flex; flex-direction: column; gap: 10px; background: transparent; border: none; }
        .cal-day-header { display: none; }
        .cal-day { border: 1px solid #e2e8f0; border-radius: 8px; min-height: auto; }
        .cal-day.empty { display: none; }
        .calendar-header { flex-direction: column; gap: 15px; }
        .cal-nav-btn { font-size: 0.9em; padding: 8px 12px; }
    }

    .pending-compare-box { border-radius: 8px; padding: 15px; text-align: left; margin-bottom: 0; position: relative; }
    .warning-box { background-color: #fffaf0; border: 2px dashed #f6ad55; }
    .existing-box { background-color: #f7fafc; border: 1px solid #e2e8f0; }

    .compare-label { font-size: 0.75em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
    .warning-box .compare-label { color: #c05621; }
    .existing-box .compare-label { color: #718096; }

    .compare-content { font-size: 1em; color: #2d3748; }
    .scrollable-list { max-height: 100px; overflow-y: auto; }
    .compare-divider { font-size: 0.8em; font-weight: 700; color: #cbd5e0; text-align: center; margin: 5px 0; text-transform: uppercase; }

    .modal-action-row { display: flex; gap: 15px; margin-top: 25px; justify-content: stretch; }
    .modal-action-row button { flex: 1; margin: 0 !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95em; padding: 14px; }
    .btn-add-save { background-color: var(--accent-color); border-color: var(--accent-color); }
    .btn-add-save:hover { background-color: #d68910; }

    @keyframes shake {
        0% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        50% { transform: translateX(5px); }
        75% { transform: translateX(-5px); }
        100% { transform: translateX(0); }
    }

    #info-modal { z-index: 4800 !important; }

    .edit-icon { color: var(--primary-color); cursor: pointer; font-size: 1.2em; padding: 5px; margin-right: 5px; }
    .edit-icon:hover { background: #ebf8ff; border-radius: 4px; }

    .subtle-back-link {
        display: flex;
        width: fit-content;
        align-items: center;
        gap: 6px;
        color: #718096;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9em;
        padding: 5px 10px 5px 0;
        transition: all 0.2s ease;
        cursor: pointer;
        margin-bottom: 10px;
        margin-top: -20px !important;
    }
    .subtle-back-link:hover { color: var(--primary-color); transform: translateX(-3px); }

    .pref-save-option { margin-top: -15px !important; margin-bottom: 25px !important; padding-left: 5px; }
    .pref-save-option .form-label { display: none; }
    .pref-save-option .radio-group { background: transparent !important; border: none !important; padding: 0 !important; }
    .pref-save-option label { font-weight: normal !important; font-size: 0.9em !important; color: var(--primary-color) !important; font-style: italic; cursor: pointer; }
    .pref-save-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-color); margin-right: 8px; }

    .segmented-control { display: flex; background: #e2e8f0; border-radius: 8px; padding: 4px; width: fit-content; gap: 4px; margin-bottom: 15px; }
    .segmented-control input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
    .segmented-control label { padding: 10px 30px; font-size: 0.95em; font-weight: 700; color: #64748b; cursor: pointer; border-radius: 6px; transition: all 0.2s ease; user-select: none; text-align: center; min-width: 60px; }
    .segmented-control label:hover { color: #2d3748; background: rgba(255, 255, 255, 0.5); }
    .segmented-control input[type="radio"]:checked+label { background-color: #ffffff; color: var(--primary-color); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transform: scale(1.02); }

    .options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 5px; }
    .option-chip input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
    .option-chip { display: flex; align-items: center; justify-content: center; padding: 12px 15px; background: #fff; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; font-weight: 600; color: #4a5568; text-align: center; user-select: none; }
    .option-chip:hover { border-color: #cbd5e0; background: #f8fafc; }
    .option-chip:has(input:checked) { border-color: var(--primary-color); background-color: #ebf8ff; color: var(--primary-color); box-shadow: 0 2px 5px rgba(32, 65, 100, 0.1); }

    .other-text-input { grid-column: 1 / -1; margin-top: 5px !important; }

    .pref-save-option { margin-top: 15px !important; margin-bottom: 30px !important; padding: 15px; background: #fffaf0; border: 1px dashed var(--accent-color); border-radius: 8px; display: flex; align-items: center; gap: 10px; }
    .pref-save-option label { font-weight: 600 !important; font-size: 0.9em !important; color: #c05621 !important; font-style: normal !important; display: flex; align-items: center; gap: 8px; cursor: pointer; width: 100%; }
    .pref-save-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-color); cursor: pointer; }

    .ticket-card { background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); border: 1px solid #e2e8f0; max-width: 450px; margin: 0 auto 30px auto; overflow: hidden; text-align: left; }
    .ticket-header { background: #f0fff4; color: #22543d; padding: 20px; text-align: center; border-bottom: 1px solid #c6f6d5; }
    .ticket-body { padding: 25px; }
    .ticket-row { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: #4a5568; font-size: 0.95em; line-height: 1.4; }
    .ticket-icon { font-size: 1.2em; width: 24px; text-align: center; flex-shrink: 0; }
    .ticket-divider { border-top: 2px dashed #cbd5e0; margin: 20px -25px; position: relative; }
    .ticket-divider::before, .ticket-divider::after { content: ''; position: absolute; top: -10px; width: 20px; height: 20px; background: var(--bg-color); border-radius: 50%; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); }
    .ticket-divider::before { left: -10px; }
    .ticket-divider::after { right: -10px; }
    .ticket-footer { text-align: center; padding-bottom: 10px; }
    .ticket-code { font-family: 'Courier New', monospace; font-size: 2.2em; font-weight: 800; color: #2d3748; letter-spacing: 3px; background: #edf2f7; display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px dashed #cbd5e0; }

    .cal-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: white; border: 1px solid #cbd5e0; border-radius: 20px; text-decoration: none; color: #4a5568; font-size: 0.85em; font-weight: 600; transition: all 0.2s; }
    .cal-pill:hover { border-color: var(--primary-color); color: var(--primary-color); background: #ebf8ff; }

    .pref-summary-card { background: #f0fff4; border: 1px solid #c6f6d5; border-radius: 8px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; cursor: pointer; transition: all 0.2s ease; animation: fadeIn 0.3s ease; gap: 20px; }
    .pref-summary-card:hover { background: #e6fffa; border-color: #b2f5ea; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
    .pref-summary-content { display: flex; align-items: center; gap: 15px; }
    .pref-summary-icon { font-size: 1.5em; }
    .pref-summary-text { display: flex; flex-direction: column; }
    .pref-summary-label { font-size: 0.95em; text-transform: uppercase; color: #2f855a; font-weight: 800; letter-spacing: 0.05em; }
    .pref-summary-value { font-weight: 700; color: #2d3748; font-size: 1em; }
    .pref-edit-btn { color: #718096; font-size: 0.9em; font-weight: 600; text-decoration: underline; flex-shrink: 0; }
    .pref-hidden-state { display: none !important; }

    #custom-form .form-group { margin-bottom: 30px; }
    .pref-summary-card { margin-bottom: 30px; }
    .drawer-panel .form-group { margin-bottom: 15px; }

    .history-container { padding: 10px; }
    .timeline-year-group { margin-bottom: 25px; position: relative; padding-left: 20px; border-left: 3px solid #e2e8f0; }
    .timeline-year-label { font-size: 1.2em; font-weight: 800; color: var(--primary-color); background: #fff; padding: 5px 10px; margin-left: -28px; margin-bottom: 10px; display: inline-block; border-radius: 6px; border: 1px solid #e2e8f0; }
    .history-card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); transition: transform 0.2s; }
    .history-card:hover { transform: translateX(5px); border-color: #cbd5e0; }
    .history-details { flex-grow: 1; }
    .history-school { font-weight: 700; color: #2d3748; font-size: 1.05em; }
    .history-pos { color: #718096; font-size: 0.9em; margin-top: 2px; }
    .history-delete-btn { color: #e53e3e; background: #fff5f5; border: 1px solid #fed7d7; border-radius: 6px; padding: 6px 12px; font-size: 0.85em; cursor: pointer; font-weight: 600; }
    .history-delete-btn:hover { background: #c53030; color: white; border-color: #c53030; }
    .history-add-panel { background: #f8fafc; border: 2px dashed #cbd5e0; padding: 20px; border-radius: 10px; margin-bottom: 30px; }

    .current-assignments-panel { background: #e6fffa; border: 1px solid #38b2ac; border-radius: 8px; padding: 20px; margin-bottom: 30px; }
    .current-assignments-header { color: #234e52; margin: 0 0 10px 0; font-size: 1.1em; display: flex; align-items: center; gap: 8px; }
    .current-card { background: white; padding: 15px; border-radius: 6px; border: 1px solid #b2f5ea; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; transition: transform 0.2s; }
    .current-card:hover { transform: translateX(3px); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }

    #hist-tag-input, #position-input { border: none; outline: none; background: transparent; flex-grow: 1; min-width: 150px; font-size: 16px !important; font-family: inherit; color: #2d3748; padding: 6px 0; margin: 0; line-height: 1.5; }
    .tags-input-container { min-height: 48px; display: flex; align-items: center; padding: 4px 10px; }

    .profile-avatar-container { position: relative; width: 150px; height: 150px; margin: 0 auto 80px auto !important; }
    .profile-avatar { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); background-color: #e2e8f0; z-index: 1; }
    .photo-controls-pill { margin-top: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 30px; padding: 5px 8px; display: flex; gap: 5px; align-items: center; justify-content: center; }
    .avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #e2e8f0; border-radius: 50%; color: #a0aec0; font-size: 4em; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
    .avatar-controls { position: absolute; bottom: -65px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 10; width: max-content; }
    .avatar-btn.edit-mode { background-color: #ffffff; color: var(--primary-color); }
    .avatar-btn.edit-mode:hover { background-color: #f7fafc; }

    #photo-editor-modal canvas { background-color: #333; border-radius: 8px; cursor: move; touch-action: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); max-width: 100%; }
    .editor-controls { margin-top: 20px; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    input[type=range].editor-slider { width: 100%; margin: 10px 0; accent-color: var(--primary-color); }
    .editor-instructions { font-size: 0.85em; color: #718096; margin-bottom: 10px; }

    .avatar-btn { width: 42px; height: 42px; border-radius: 50%; background: #ffffff; border: 1px solid #e2e8f0; font-size: 1.3em; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; }
    .avatar-btn:hover { background: #f7fafc; border-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }

    #avatar-upload-input { display: none; }
    #camera-modal video { width: 100%; border-radius: 8px; background: #000; }
    #camera-modal canvas { display: none; }

    .profile-hero { background: white; border-radius: 16px; padding: 30px; margin-bottom: 30px; border: 1px solid #edf2f7; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; gap: 20px; }

    @media (min-width: 768px) {
        .profile-hero { flex-direction: row; text-align: left; align-items: flex-start; }
        .hero-identity-section { flex-grow: 1; padding-top: 10px; padding-left: 10px; }
        .hero-actions-section { align-self: flex-start; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
        .action-button-row { flex-direction: row; gap: 15px; align-items: center; }
    }

    .action-button-row { display: flex; flex-direction: column; gap: 15px; width: 100%; }
    .sign-out-link { color: #e53e3e; font-size: 0.9em; font-weight: 600; text-decoration: none; cursor: pointer; padding: 5px 10px; border-radius: 4px; transition: background 0.2s; margin-top: 5px; display: inline-block; }
    .sign-out-link:hover { background: #fff5f5; }
    .hero-avatar-section { display: flex; flex-direction: column; align-items: center; position: relative; flex-shrink: 0; }

    .hero-name { font-size: 2em; font-weight: 800; color: var(--primary-color); margin: 0 0 5px 0; line-height: 1.1; }
    .hero-email { color: #718096; font-size: 1.05em; margin-bottom: 15px; font-weight: 500; }
    .hero-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

    @media (min-width: 768px) { .hero-badges { justify-content: flex-start; } }

    .hero-badge { background: #fff; color: #4a5568; border: 1px solid #cbd5e0; padding: 6px 14px; border-radius: 6px; font-size: 0.85em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
    .hero-badge.highlight { background: #ebf8ff; color: #2c5282; border-color: #bee3f8; }

    .profile-data-grid { display: grid; grid-template-columns: 1fr; gap: 30px; row-gap: 30px; margin-bottom: 40px; }

    @media (min-width: 900px) {
        .profile-data-grid { grid-template-columns: 1fr 1fr; }
        .full-width-card { grid-column: 1 / -1; }
    }

    .profile-avatar-container { margin: 0 auto 50px auto !important; }

    @media (min-width: 768px) { .profile-avatar-container { margin: 0 !important; margin-bottom: 40px !important; } }

    .data-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; height: auto; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }
    .data-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #edf2f7; padding-bottom: 15px; color: var(--primary-color); font-weight: 700; font-size: 1.1em; }

    #custom-form>.form-group:not([data-visible-if]):not(:first-of-type) { border-top: 1px solid #e2e8f0; margin-top: 45px; padding-top: 30px; }
    #custom-form .form-group[data-visible-if]:not(.pref-save-option) { margin-left: 2px; padding-left: 25px; border-left: 4px solid #e2e8f0; margin-bottom: 25px; }
    #custom-form .form-group[data-visible-if]:not(.pref-save-option):focus-within { border-left-color: var(--primary-color); }

    .options-grid { margin-top: 15px !important; }
    .pref-save-option { margin-top: 25px !important; margin-bottom: 10px !important; }

    .photo-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: white; color: #4a5568; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1em; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
    .photo-btn:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

    .logout-corner-wrapper { position: absolute; bottom: 20px; right: 20px; display: flex; align-items: center; justify-content: center; }
    .btn-logout-icon { background: transparent; border: none; color: #a0aec0; cursor: pointer; padding: 8px; border-radius: 50%; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
    .btn-logout-icon:hover { color: #e53e3e; background-color: #fff5f5; transform: translateX(2px); }

    .logout-corner-wrapper::before { content: "Sign Out"; position: absolute; right: 100%; top: 50%; transform: translateY(-50%) translateX(-10px); background-color: #2d3748; color: white; font-size: 0.75em; font-weight: 600; padding: 5px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.2s ease; pointer-events: none; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
    .logout-corner-wrapper:hover::before { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

    .career-year-accordion { background: white; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: box-shadow 0.2s; }
    .career-year-accordion:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
    .career-header { background: #f8fafc; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid transparent; transition: background 0.2s; user-select: none; }
    .career-header:hover { background: #f1f5f9; }
    .career-year-accordion.open .career-header { border-bottom-color: #e2e8f0; background: #fff; }
    .header-left { display: flex; align-items: center; gap: 10px; }
    .header-year-title { font-size: 1.1em; font-weight: 800; color: var(--primary-color); }
    .header-chevron { color: #a0aec0; transition: transform 0.3s ease; font-size: 0.8em; }
    .career-year-accordion.open .header-chevron { transform: rotate(90deg); color: var(--primary-color); }
    .header-right { text-align: right; }
    .credit-badge { background: #ebf8ff; color: #2c5282; padding: 4px 10px; border-radius: 12px; font-size: 0.85em; font-weight: 700; border: 1px solid #bee3f8; }
    .disclaimer-text { display: block; font-size: 0.7em; color: #a0aec0; margin-top: 4px; font-style: italic; }
    .career-body { display: none; padding: 20px; background: #fff; }
    .career-year-accordion.open .career-body { display: block; animation: slideDown 0.3s ease-out; }

    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .history-card-modern { border-left: 4px solid #cbd5e0; padding: 15px; margin-bottom: 15px; background: #fff; border: 1px solid #e2e8f0; border-left-width: 4px; border-radius: 6px; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
    .history-card-modern:last-child { margin-bottom: 0; }
    .type-perm { border-left-color: #2c5282; }
    .type-lto { border-left-color: #d69e2e; }
    .type-ot { border-left-color: #38a169; }
    .job-school { font-size: 1.05em; font-weight: 700; color: #2d3748; margin-bottom: 2px; }
    .job-pos { color: #4a5568; font-size: 0.95em; margin-bottom: 6px; }
    .job-meta-row { display: flex; gap: 10px; font-size: 0.85em; color: #718096; align-items: center; flex-wrap: wrap; }
    .meta-pill { background: #f7fafc; padding: 2px 8px; border-radius: 4px; border: 1px solid #edf2f7; font-weight: 600; }
    .history-actions { display: flex; gap: 8px; opacity: 0.6; transition: opacity 0.2s; }
    .history-card-modern:hover .history-actions { opacity: 1; }
    .action-btn-mini { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid #e2e8f0; background: white; cursor: pointer; color: #718096; transition: all 0.2s; }
    .action-btn-mini:hover { background: #edf2f7; color: var(--primary-color); border-color: #cbd5e0; }
    .action-btn-mini.delete:hover { background: #fff5f5; color: #c53030; border-color: #fed7d7; }

    .career-total-bar { background-color: var(--primary-color); color: white; padding: 20px; border-radius: 8px; margin-top: 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #1a365d; }
    .total-label { font-size: 1.1em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: flex; flex-direction: column; }
    .total-subtext { font-size: 0.7em; font-weight: normal; text-transform: none; opacity: 0.8; margin-top: 4px; font-style: italic; }
    .total-value { font-size: 1.8em; font-weight: 800; font-family: 'Segoe UI', sans-serif; background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 6px; line-height: 1; }

    .profile-pref-bar { background: white; border: 1px solid #e2e8f0; border-left: 5px solid var(--accent-color); border-radius: 12px; padding: 20px 25px; margin-bottom: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
    .pref-bar-header { min-width: 150px; }
    .pref-bar-title { font-size: 1.1em; font-weight: 800; color: var(--primary-color); margin: 0; display: flex; align-items: center; gap: 8px; }
    .pref-bar-subtitle { font-size: 0.85em; color: #718096; margin-top: 4px; }
    .pref-items-container { display: flex; flex-wrap: wrap; gap: 30px; flex-grow: 1; padding-left: 20px; border-left: 1px solid #edf2f7; }
    .pref-item { display: flex; align-items: center; gap: 12px; }
    .pref-icon-circle { width: 42px; height: 42px; background-color: #fffaf0; color: #d69e2e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2em; border: 1px solid #fbd38d; flex-shrink: 0; }
    .pref-label { font-size: 0.75em; text-transform: uppercase; color: #718096; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 2px; }
    .pref-value { font-weight: 700; color: #2d3748; font-size: 1em; line-height: 1.2; }
    .btn-pref-edit { background: transparent; border: 1px solid #cbd5e0; color: #4a5568; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 0.9em; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
    .btn-pref-edit:hover { background: #f7fafc; border-color: #a0aec0; color: #2d3748; }

    @media (max-width: 900px) {
        .profile-pref-bar { flex-direction: column; align-items: flex-start; }
        .pref-items-container { border-left: none; padding-left: 0; width: 100%; flex-direction: column; gap: 15px; border-top: 1px solid #edf2f7; padding-top: 15px; }
        .btn-pref-edit { width: 100%; text-align: center; background-color: #f8fafc; }
    }

    .profile-pref-bar { border-left: none !important; padding-left: 20px; }

    .pref-modal-layout { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
    .pref-section-box { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
    .pref-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1.1em; font-weight: 700; color: #204164; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
    .pref-section-icon { font-size: 1.2em; }
    .pref-section-box .segmented-control { width: 100%; background: #fff; border: 1px solid #cbd5e0; }
    .pref-section-box .segmented-control label { flex: 1; }

    .pref-section-box .other-text-input { background-color: #ffffff !important; border: 1px solid #cbd5e0 !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); margin-top: 10px !important; transition: all 0.2s ease; }
    .pref-section-box .other-text-input:focus { border-color: var(--primary-color) !important; background-color: #fff !important; box-shadow: 0 0 0 3px rgba(32, 65, 100, 0.1), inset 0 1px 2px rgba(0,0,0,0.05); }

    .pref-section-box .segmented-control { width: 100%; background-color: #e2e8f0; border: 1px solid #cbd5e0; padding: 4px; border-radius: 8px; }
    .pref-section-box .segmented-control label { flex: 1; text-align: center; margin: 0; border: 1px solid transparent; color: #64748b; }
    .pref-section-box .segmented-control input[type="radio"]:checked + label { background-color: #ffffff; color: var(--primary-color); border-color: #bee3f8; box-shadow: 0 2px 4px rgba(0,0,0,0.08); font-weight: 800; }

    .role-tag.tag-locked { background-color: #2c5282; color: white; border-color: #204164; padding-right: 12px; }

    .session-bar { display: none !important; max-width: 900px; margin: 0 auto; padding: 8px 10px 0 10px; display: flex; justify-content: flex-end; align-items: center; height: auto; visibility: hidden; }

    .user-indicator { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 0.85em; color: #4a5568; font-weight: 700; cursor: pointer; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
    .user-indicator-group:hover { background-color: #f7fafc; }
    .user-indicator-group { display: flex; align-items: center; gap: 8px; padding: 0 15px; height: 100%; cursor: pointer; transition: background-color 0.2s; border-bottom: 3px solid transparent; }
    .nav-session-wrapper { display: flex; align-items: center; padding-right: 10px; height: 100%; }

    .user-name-pill { font-family: 'Inter', sans-serif; font-size: 0.85em; color: #1a202c; font-weight: 700; cursor: pointer; padding: 6px 12px; border-radius: 6px; transition: background-color 0.2s, color 0.2s; font-size: 0.9em; font-weight: 700; color: #4a5568; }
    .user-name-pill:hover { background-color: #e2e8f0; color: #204164; }

    .user-logout-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #718096; cursor: pointer; transition: all 0.2s; }
    .user-logout-btn:hover { background-color: #fff5f5; color: #c53030; transform: translateX(2px); }

    .user-indicator:hover { background-color: #e2e8f0; color: #c53030; }
    .user-indicator span:first-child { color: #1a202c; }
    .logout-icon { font-size: 20px; color: #718096; }
    .user-indicator:hover .logout-icon { color: #c53030; }

    .modal-btn-heavy { flex: 1; margin: 0; height: 52px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
    .modal-btn-heavy.btn-primary { background-color: var(--primary-color); color: white; }
    .modal-btn-heavy.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 6px rgba(32, 65, 100, 0.2); }
    .modal-btn-heavy.btn-secondary, .modal-btn-heavy.btn-neutral { background-color: #edf2f7; color: #4a5568; }
    .modal-btn-heavy.btn-secondary:hover, .modal-btn-heavy.btn-neutral:hover { background-color: #e2e8f0; color: #1a202c; transform: translateY(-1px); }

    .icon-edit-trigger { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 2px; transition: transform 0.2s ease; }
    .icon-edit-trigger .material-icons-outlined { font-size: 18px; color: var(--primary-color); transition: color 0.2s ease; }
    .icon-edit-trigger:hover { transform: scale(1.2); }
    .icon-edit-trigger:hover .material-icons-outlined { color: var(--accent-color); }

    .history-card-modern.type-leave { border-left: 4px solid #e53e3e; background-color: #fffafb; opacity: 0.9; }

    .btn-secondary.record-leave-btn { background-color: #fff5f5; border: 1px solid #feb2b2; color: #c53030; transition: all 0.2s ease; }
    .btn-secondary.record-leave-btn:hover { background-color: #feb2b2; color: #9b2c2c; transform: translateY(-1px); }


/* ============================================================
   MODERNISED EVENT CARDS (UI REWORK)
   ============================================================ */

.event-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(32, 65, 100, 0.08);
    border-color: var(--primary-color);
}

.event-card.past {
    background: #f8fafc;
    border-color: #edf2f7;
    opacity: 0.85;
}

.event-card.past:hover {
    opacity: 1;
    border-color: #cbd5e0;
}

.event-card-left {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 80px;
}

.event-card.past .event-card-left {
    background: #cbd5e0;
    color: #4a5568;
}

.event-card-month {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.event-card-day {
    font-size: 1.8em;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

.event-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card-header-row {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 8px;
}

.event-card-title {
    font-size: 1.25em;
    font-weight: 800;
    color: var(--primary-color);
}

.event-card.past .event-card-title {
    color: #4a5568;
}

.event-status-badge {
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-status-badge.open {
    background: #fffaf0;
    color: var(--accent-color);
    border: 1px solid #fbd38d;
}

.event-status-badge.closed {
    background: #edf2f7;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.event-card-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    color: #718096;
    font-size: 0.9em;
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item .material-icons-outlined {
    font-size: 1.2em;
    opacity: 0.7;
}

.event-card-right {
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: #cbd5e0;
    transition: color 0.2s;
}

.event-card:hover .event-card-right {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .event-card { flex-direction: column; }
    .event-card-left { flex-direction: row; padding: 10px; gap: 10px; }
    .event-card-body { padding: 15px; }
    .event-card-header-row { flex-direction: column; gap: 10px; }
    .event-card-right { display: none; }
    .event-card-meta { flex-direction: column; gap: 8px; }
}


/* ============================================================
   SURVEYJS OECTA RESET & OVERRIDES (STRICT MATCH & DE-BLOAT)
   ============================================================ */

/* 1. AGGRESSIVE ANTI-BLOAT PADDING OVERRIDES */
.oecta-survey-wrapper .sd-page { padding: 0 !important; margin: 0 !important; }
.oecta-survey-wrapper .sd-body { padding: 0 !important; margin: 0 !important; }
.oecta-survey-wrapper .sd-row { margin-bottom: 20px !important; }
.oecta-survey-wrapper .sd-question { padding: 0 !important; margin-bottom: 20px !important; }
.oecta-survey-wrapper .sd-element__title { margin-bottom: 8px !important; padding: 0 !important; }

/* 2. HIDE SURVEYJS DEFAULT HEADER & UI CLUTTER */
.oecta-survey-wrapper .sd-title,
.oecta-survey-wrapper .sd-description,
.oecta-survey-wrapper .sd-page__title,
.oecta-survey-wrapper .sd-boolean__thumb,
.oecta-survey-wrapper .sd-checkbox__svg,
.oecta-survey-wrapper .sd-radio__svg {
    display: none !important;
}

.oecta-survey-wrapper .sd-question__header {
    margin-bottom: 8px !important;
}

/* 3. MATCH THE FORM LABEL */
.oecta-survey-wrapper .sd-question__title {
    font-size: 0.95em !important;
    font-weight: 700 !important;
    color: #4a5568 !important;
    font-family: 'Segoe UI', sans-serif !important;
}

/* 4. THE YES/NO TOGGLE (MATCHING .segmented-control) */
.oecta-survey-wrapper .sd-boolean {
    background-color: #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px !important;
    display: inline-flex !important;
    width: auto !important;
    border: none !important;
}

.oecta-survey-wrapper .sd-boolean__item { margin: 0 !important; padding: 0 !important; }

.oecta-survey-wrapper .sd-boolean__label {
    padding: 10px 30px !important;
    font-size: 0.95em !important;
    font-weight: 700 !important;
    color: #64748b !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.oecta-survey-wrapper .sd-boolean--checked .sd-boolean__item--checked .sd-boolean__label {
    background-color: #ffffff !important;
    color: #204164 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 5. CHECKBOXES AS CHIPS (MATCHING .option-chip) */
.oecta-survey-wrapper .sd-selectbase { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; }
.oecta-survey-wrapper .sd-item { margin: 0 !important; padding: 0 !important; }

.oecta-survey-wrapper .sd-item__control-label {
    display: flex !important; align-items: center; justify-content: center;
    padding: 12px 15px !important; background: #fff !important;
    border: 2px solid #e2e8f0 !important; border-radius: 8px !important;
    font-weight: 600 !important; color: #4a5568 !important; transition: all 0.2s ease !important;
    min-width: 140px !important;
}

.oecta-survey-wrapper .sd-item__control { position: absolute !important; opacity: 0 !important; }

.oecta-survey-wrapper .sd-item--checked .sd-item__control-label {
    background-color: #ebf8ff !important; border-color: #204164 !important;
    color: #204164 !important; box-shadow: 0 2px 5px rgba(32, 65, 100, 0.1) !important;
}

/* 6. TEXT INPUTS & COMMENTS */
.oecta-survey-wrapper .sd-input,
.oecta-survey-wrapper .sd-comment {
    width: 100% !important; padding: 12px 16px !important; font-size: 16px !important;
    border: 2px solid #e2e8f0 !important; border-radius: 8px !important;
    background-color: #f8fafc !important; color: #2d3748 !important; box-sizing: border-box !important;
}

.oecta-survey-wrapper .sd-input:focus,
.oecta-survey-wrapper .sd-comment:focus {
    border-color: #204164 !important; background-color: #fff !important; outline: none !important;
}

.oecta-survey-wrapper .sd-input--disabled { background-color: #e8f0fe !important; opacity: 1 !important; border-color: #bee3f8 !important; }

/* 7. SUBMIT BUTTON (MATCHING .btn-primary) */
.oecta-survey-wrapper .sd-navigation__complete-btn {
    background-color: #204164 !important; color: white !important; padding: 16px !important;
    font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05em !important;
    border-radius: 8px !important; width: 100% !important; border: none !important; margin-top: 10px !important;
}

.oecta-survey-wrapper .sd-navigation__complete-btn:hover { background-color: #162e4a !important; transform: translateY(-2px); }

/* 8. REMOVE DEFAULT PADDING/SHADOWS FROM SURVEYJS ROOT */
.oecta-survey-wrapper.sd-root-modern { box-shadow: none !important; }
.oecta-survey-wrapper .sd-container-modern { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }