
.learning-lab-select {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
}
.learning-lab-select h1 {
    margin-bottom: 1em;
    color: #4d4d4d;
}
.learning-lab-select .key-stage-selector {
    margin-bottom: 2em;
    padding: 1em;
    background: #f7f7f7;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
}
.learning-lab-select .key-stage-selector label {
    font-weight: 600;
    margin-right: 1em;
    color: #4d4d4d;
}
.learning-lab-select .key-stage-selector select {
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background: white;
}
.learning-lab-select .key-stage-selector select:focus {
    outline: none;
    border-color: #087b94;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.15);
}
.learning-lab-select .assignments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5em;
}
.learning-lab-select .assignment-card {
    padding: 1.5em;
    background: white;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.learning-lab-select .assignment-card h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #087b94;
}
.learning-lab-select .assignment-card .description {
    margin-bottom: 1em;
    color: #666;
    line-height: 1.5;
}
.learning-lab-select .start-assignment-form .form-field {
    margin-bottom: 1em;
}
.learning-lab-select .start-assignment-form label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 500;
    color: #4d4d4d;
}
.learning-lab-select .start-assignment-form input {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.learning-lab-select .start-assignment-form input:focus {
    outline: none;
    border-color: #087b94;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.15);
    background: white;
}
.learning-lab-select .start-assignment-form button {
    width: 100%;
    padding: 0.75em 1em;
    background: #087b94;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.learning-lab-select .start-assignment-form button:hover {
    background: #065f73;
}
.learning-lab-select .start-assignment-form button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.3);
}
.learning-lab-select .no-assignments {
    padding: 2em;
    text-align: center;
    color: #666;
    background: #f7f7f7;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
}



.qd-root {
    position: relative;
    z-index: 9999;
}
:is(#qd-root, #tqd-root) .qd-handle {
    position: fixed;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    padding: 12px 14px;
    background: #087b94;
    color: white;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: background-color 0.15s ease, padding-right 0.15s ease;
    z-index: 9998;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.5px;
}
:is(#qd-root, #tqd-root) .qd-handle.is-hidden {
    display: none;
}
:is(#qd-root, #tqd-root) .qd-handle:hover {
    background: #065f73;
    padding-right: 18px;
}
:is(#qd-root, #tqd-root) .qd-handle:focus {
    outline: none;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15), 0 0 0 2px rgba(8, 123, 148, 0.4);
}
:is(#qd-root, #tqd-root) .qd-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}
:is(#qd-root, #tqd-root) .qd-drawer.is-open {
    transform: translateX(0);
}
:is(#qd-root, #tqd-root) .qd-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
:is(#qd-root, #tqd-root) .qd-scrim:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
:is(#qd-root, #tqd-root) .cockpit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875em 1em;
    background: #4d4d4d;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
:is(#qd-root, #tqd-root) .cockpit-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.25px;
    color: white;
}
:is(#qd-root, #tqd-root) .cockpit-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 4px;
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease;
}
:is(#qd-root, #tqd-root) .cockpit-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
:is(#qd-root, #tqd-root) .cockpit-close:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    color: white;
}
:is(#qd-root, #tqd-root) .cockpit-tabs {
    display: flex;
    background: transparent;
    padding: 0.5em 0.5em 0 0.5em;
    gap: 3px;
    flex-shrink: 0;
}
:is(#qd-root, #tqd-root) .tab-btn {
    flex: 1;
    padding: 0.75em 0.5em;
    background: #b8b8b8;
    border: 1px solid #999;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: 500;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
    top: 1px;
}
:is(#qd-root, #tqd-root) .tab-btn:hover {
    background: #a0a0a0;
    color: #333;
}
:is(#qd-root, #tqd-root) .tab-btn.active {
    background: #333;
    border-color: #333;
    font-weight: 600;
    color: white;
    z-index: 1;
}
:is(#qd-root, #tqd-root) .tab-btn:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}
:is(#qd-root, #tqd-root) .cockpit-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25em;
    background: #fafafa;
}
:is(#qd-root, #tqd-root) .tab-pane {
    display: none;
}
:is(#qd-root, #tqd-root) .tab-pane.active {
    display: block;
}
:is(#qd-root, #tqd-root) .assignment-info {
}
:is(#qd-root, #tqd-root) .assignment-description {
    padding: 1em 1.25em;
    background: white;
    border-left: 3px solid #087b94;
    margin-bottom: 1.5em;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    color: #4d4d4d;
    line-height: 1.5;
}
:is(#qd-root, #tqd-root) .learning-goals {
}
:is(#qd-root, #tqd-root) .goal-section {
    margin-bottom: 1.5em;
    padding: 1.25em;
    background: white;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
:is(#qd-root, #tqd-root) .goal-section h4 {
    margin-top: 0;
    margin-bottom: 0.75em;
    color: #087b94;
    font-size: 1em;
    font-weight: 600;
}
:is(#qd-root, #tqd-root) .goal-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 1em;
    line-height: 1.5;
}
:is(#qd-root, #tqd-root) .questions {
}
:is(#qd-root, #tqd-root) .question-item {
    margin-bottom: 1.5em;
    padding: 1.25em;
    background: white;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
:is(#qd-root, #tqd-root) .question-text {
    font-weight: 500;
    margin-bottom: 0.75em;
    color: #4d4d4d;
    line-height: 1.4;
}
:is(#qd-root, #tqd-root) .answer-input {
    width: 100%;
    min-height: 100px;
    padding: 0.75em;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    resize: vertical;
    font-size: 0.95em;
    line-height: 1.5;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
:is(#qd-root, #tqd-root) .answer-input:focus {
    outline: none;
    border-color: #087b94;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.15);
    background: white;
}
:is(#qd-root, #tqd-root) .answer-input::placeholder {
    color: #999;
    font-style: italic;
}
:is(#qd-root, #tqd-root) .hint {
    font-size: 0.9em;
    color: #999;
    font-style: italic;
    margin-top: 0.5em;
}
:is(#qd-root, #tqd-root) .save-answer-btn,
:is(#qd-root, #tqd-root) .capture-url-btn {
    margin-top: 0.75em;
    padding: 0.6em 1.25em;
    background: #087b94;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
:is(#qd-root, #tqd-root) .save-answer-btn:hover,
:is(#qd-root, #tqd-root) .capture-url-btn:hover {
    background: #065f73;
}
:is(#qd-root, #tqd-root) .save-answer-btn:focus,
:is(#qd-root, #tqd-root) .capture-url-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.3);
}
:is(#qd-root, #tqd-root) .chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
}
:is(#qd-root, #tqd-root) .current-question {
    margin-bottom: 1.25em;
}
:is(#qd-root, #tqd-root) .current-question label {
    display: block;
    margin-bottom: 0.375em;
    font-weight: 500;
    font-size: 0.85em;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
:is(#qd-root, #tqd-root) .current-question select {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background: white;
    font-size: 0.95em;
    color: #4d4d4d;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
:is(#qd-root, #tqd-root) .current-question select:focus {
    outline: none;
    border-color: #087b94;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.15);
}
:is(#qd-root, #tqd-root) .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1em;
    background: white;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    margin-bottom: 1em;
    min-height: 200px;
}
:is(#qd-root, #tqd-root) .chat-welcome {
    padding: 1em 1.25em;
    background: #e8f4f6;
    border-radius: 8px;
    color: #4d4d4d;
    line-height: 1.5;
}
:is(#qd-root, #tqd-root) .chat-message {
    margin-bottom: 1em;
    padding: 0.875em 1em;
    border-radius: 12px;
    line-height: 1.5;
}
:is(#qd-root, #tqd-root) .chat-message.chat-user {
    background: #087b94;
    color: white;
    margin-left: 2.5em;
    border-bottom-right-radius: 4px;
}
:is(#qd-root, #tqd-root) .chat-message.chat-assistant {
    background: white;
    border: 1px solid #dfdfdf;
    margin-right: 2.5em;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
:is(#qd-root, #tqd-root) .chat-message strong {
    display: block;
    margin-bottom: 0.25em;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}
:is(#qd-root, #tqd-root) .chat-input-area {
    display: flex;
    gap: 0.75em;
    margin-bottom: 1em;
}
:is(#qd-root, #tqd-root) #chat-input {
    flex: 1;
    padding: 0.75em;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    font-size: 0.95em;
    line-height: 1.4;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
:is(#qd-root, #tqd-root) #chat-input:focus {
    outline: none;
    border-color: #087b94;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.15);
    background: white;
}
:is(#qd-root, #tqd-root) #chat-input::placeholder {
    color: #999;
    font-style: italic;
}
:is(#qd-root, #tqd-root) #chat-send-btn {
    align-self: flex-end;
    padding: 0.75em 1.5em;
    background: #087b94;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
:is(#qd-root, #tqd-root) #chat-send-btn:hover {
    background: #065f73;
}
:is(#qd-root, #tqd-root) #chat-send-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.3);
}
:is(#qd-root, #tqd-root) .chat-capture {
    padding: 1em 1.25em;
    background: #e8f4f6;
    border: 1px solid #b8d4da;
    border-radius: 4px;
}
:is(#qd-root, #tqd-root) .chat-capture .info {
    margin: 0 0 0.75em 0;
    font-size: 0.9em;
    color: #4d4d4d;
    line-height: 1.4;
}
:is(#qd-root, #tqd-root) .chat-capture button {
    padding: 0.6em 1.25em;
    background: #087b94;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
:is(#qd-root, #tqd-root) .chat-capture button:hover {
    background: #065f73;
}
:is(#qd-root, #tqd-root) .chat-capture button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.3);
}
:is(#qd-root, #tqd-root) .answers-summary {
}
:is(#qd-root, #tqd-root) .answers-summary > p {
    color: #666;
    margin-bottom: 1.25em;
    font-size: 0.95em;
}
:is(#qd-root, #tqd-root) #answers-list {
}
:is(#qd-root, #tqd-root) .answer-item {
    margin-bottom: 1.25em;
    padding: 1.25em;
    background: white;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
:is(#qd-root, #tqd-root) .answer-item .question {
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #4d4d4d;
    font-size: 0.95em;
}
:is(#qd-root, #tqd-root) .answer-item .answer {
    color: #087b94;
    line-height: 1.5;
    font-size: 0.95em;
}
:is(#qd-root, #tqd-root) .answer-item .meta {
    font-size: 0.8em;
    color: #999;
    margin-top: 0.75em;
    padding-top: 0.75em;
    border-top: 1px solid #eee;
}
:is(#qd-root, #tqd-root) .progress-display {
}
:is(#qd-root, #tqd-root) .progress-display > p {
    color: #666;
    margin-bottom: 1.25em;
    font-size: 0.95em;
    line-height: 1.5;
}
:is(#qd-root, #tqd-root) #check-progress-btn {
    margin-bottom: 1.25em;
    padding: 0.75em 1.5em;
    background: #087b94;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
:is(#qd-root, #tqd-root) #check-progress-btn:hover {
    background: #065f73;
}
:is(#qd-root, #tqd-root) #check-progress-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.3);
}
:is(#qd-root, #tqd-root) #progress-result {
    padding: 1.25em;
    background: white;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
:is(#qd-root, #tqd-root) .progress-bar {
    height: 24px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75em;
}
:is(#qd-root, #tqd-root) .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #087b94 0%, #0a9ab8 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}
:is(#qd-root, #tqd-root) .cockpit-footer {
    padding: 1.25em;
    background: #f7f7f7;
    border-top: 1px solid #dfdfdf;
    display: flex;
    gap: 0.75em;
    flex-shrink: 0;
}
:is(#qd-root, #tqd-root) .cockpit-footer button {
    flex: 1;
    padding: 0.875em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
:is(#qd-root, #tqd-root) #save-progress-btn {
    background: transparent;
    color: #087b94;
    border: 2px solid #087b94;
}
:is(#qd-root, #tqd-root) #save-progress-btn:hover {
    background: rgba(8, 123, 148, 0.08);
    border-color: #065f73;
    color: #065f73;
}
:is(#qd-root, #tqd-root) #save-progress-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.2);
}
:is(#qd-root, #tqd-root) #submit-assignment-btn {
    background: #087b94;
    color: white;
    border: 2px solid #087b94;
}
:is(#qd-root, #tqd-root) #submit-assignment-btn:hover {
    background: #065f73;
    border-color: #065f73;
}
:is(#qd-root, #tqd-root) #submit-assignment-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(8, 123, 148, 0.3);
}



@media (max-width: 768px) {
.learning-lab-select .assignments-list {
        grid-template-columns: 1fr;
    }
:is(#qd-root, #tqd-root) .qd-drawer {
        width: 100%;
        max-width: 400px;
    }
:is(#qd-root, #tqd-root) .qd-handle {
        top: auto;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: horizontal-tb;
        text-orientation: upright;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        font-size: 24px;
        font-weight: 600;
    }
:is(#qd-root, #tqd-root) .qd-handle:hover {
        padding: 0;
        transform: scale(1.05);
    }
:is(#qd-root, #tqd-root) .qd-handle-label {
        display: none;
    }
:is(#qd-root, #tqd-root) .qd-handle::after {
        content: "?";
    }


    body.qd-drawer-open { overflow: hidden; }
:is(#qd-root, #tqd-root) .cockpit-footer {
        flex-direction: column;
    }
:is(#qd-root, #tqd-root) .cockpit-footer button {
        width: 100%;
    }
}

:is(#qd-root, #tqd-root) [hidden] { display: none !important; }
:is(#qd-root, #tqd-root) .tab-pane { overflow-wrap: anywhere; }
:is(#qd-root, #tqd-root) #ll-status { margin: 0; padding: .5em 1em; background: #f7f7f7; }
:is(#qd-root, #tqd-root) button:disabled { opacity: .55; cursor: not-allowed; }
:is(#qd-root, #tqd-root) :focus-visible { outline: 3px solid #087b94; outline-offset: 2px; }
:is(#qd-root, #tqd-root) .qd-drawer { max-width: 100vw; }
@media (prefers-reduced-motion: reduce) {
    :is(#qd-root, #tqd-root) *, body.qd-open [data-qd-push-target] { transition: none !important; }
}

#qd-root .ll-resume-details { margin: .75rem; }
#qd-root #ll-private-resume-code { width: 100%; box-sizing: border-box; font-family: monospace; }
