.monaco-editor-host .monaco-editor,
.monaco-editor-host .monaco-editor-background {
    background-color: #0D1218 !important;
}

.monaco-editor-host .monaco-scrollable-element > .scrollbar.horizontal {
    height: 8px !important;
}

.monaco-editor-host .monaco-scrollable-element > .scrollbar.horizontal > .slider {
    height: 8px !important;
    border-radius: 4px;
    background: #475569;
}

.monaco-editor-host .monaco-scrollable-element > .scrollbar.horizontal > .slider:hover {
    background: #64748b;
}

/* AI-mentor line markup (code review) */
.page-task .monaco-editor .ai-mentor-line--ok {
    background: rgba(52, 211, 153, 0.10);
}

.page-task .monaco-editor .ai-mentor-line--warn {
    background: rgba(251, 191, 36, 0.10);
}

.page-task .monaco-editor .ai-mentor-line--error {
    background: rgba(248, 113, 113, 0.13);
}

.page-task .monaco-editor .ai-mentor-line-gutter {
    width: 4px !important;
    margin-left: 4px;
    border-radius: 2px;
}

.page-task .monaco-editor .ai-mentor-line-gutter--ok {
    background: #34D399;
}

.page-task .monaco-editor .ai-mentor-line-gutter--warn {
    background: #FBBF24;
}

.page-task .monaco-editor .ai-mentor-line-gutter--error {
    background: #F87171;
}

/* —— Task solution studio —— */
.page-task.task-solution-page {
    --ts-pane-header-height: 44px;
    --ts-line: rgba(255, 255, 255, 0.06);
    --ts-line-strong: rgba(255, 255, 255, 0.09);
    --ts-well: #0c1118;
    --ts-ink: #f3f5f8;
    --ts-body: #c3cad3;
    --ts-muted: #8b95a1;
}

.page-task .task-description,
.page-task .task-workspace,
.page-task .ai-mentor-panel {
    background: #11171D;
    border: 1px solid var(--ts-line);
    border-radius: 10px;
}

.page-task .task-meta-row,
.page-task .task-workspace__editor-head,
.page-task .ai-mentor-panel__header {
    box-sizing: border-box;
    height: var(--ts-pane-header-height);
    min-height: var(--ts-pane-header-height);
    padding-top: 0;
    padding-bottom: 0;
}

.page-task .task-meta-row {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-left: 22px;
    padding-right: 22px;
    background: #11171D;
    border-bottom: 1px solid var(--ts-line);
}

.page-task .task-meta-row__tabs {
    --ts-editor-line: rgba(148, 163, 184, 0.12);
    --ts-editor-ink: #F2F5F7;
}

.page-task .task-meta-row__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.page-task .task-meta-row__difficulty.is-easy {
    color: #3ecf73;
}

.page-task .task-meta-row__difficulty.is-medium {
    color: #e0b53a;
}

.page-task .task-meta-row__difficulty.is-hard {
    color: #f56b55;
}

.page-task .task-meta-row__topic {
    color: var(--ts-muted);
    font-size: 12px;
    font-weight: 500;
}

.page-task .task-meta-row__topic::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 10px;
    border-radius: 50%;
    background: #5b6572;
}

.page-task .task-meta-row__favorite {
    height: 28px;
    padding: 0 6px;
    margin-right: -6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    color: var(--ts-muted);
}

.page-task .task-meta-row__favorite:hover {
    color: var(--ts-ink);
    background: rgba(255, 255, 255, 0.04);
}

.page-task .task-description__body {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 18px 26px 32px;
}

.page-task .task-description__body[hidden] {
    display: none;
}

.page-task .task-collection-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: -10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ts-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.page-task .task-collection-back:hover {
    color: var(--ts-ink);
}

.page-task .task-collection-back i {
    font-size: 11px;
    position: relative;
    top: 0.1em;
}

.page-task .task-collection-back b {
    font-weight: 600;
    color: var(--ts-ink);
}

.page-task .task-description__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.page-task .task-description__heading {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.022em;
    color: var(--ts-ink);
}

.page-task .task-description__premium {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    object-fit: contain;
    flex-shrink: 0;
    user-select: none;
}

.page-task .task-section-heading {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ts-ink);
}

.page-task .task-markdown {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ts-body);
}

.page-task .task-io-table,
.page-task .task-io-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.page-task .task-examples {
    overflow: hidden;
    border: 1px solid var(--ts-line-strong);
    border-radius: 8px;
    background: var(--ts-well);
}

.page-task .task-examples__head {
    border-bottom: 1px solid var(--ts-line);
}

.page-task .task-examples__label,
.page-task .task-examples__cell {
    padding: 10px 14px;
}

.page-task .task-examples__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ts-muted);
}

.page-task .task-examples__label:first-child,
.page-task .task-examples__cell:first-child {
    border-right: 1px solid var(--ts-line);
}

.page-task .task-examples__row + .task-examples__row {
    border-top: 1px solid var(--ts-line);
}

.page-task .task-examples__code {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #d5dbe3;
    white-space: pre-wrap;
}

.page-task .task-examples__empty {
    font-size: 13px;
    color: var(--ts-muted);
}

.page-task .task-disclosure {
    padding-top: 2px;
}

.page-task .task-disclosure__toggle,
.page-task .task-tags-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ts-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

.page-task .task-disclosure__toggle:hover,
.page-task .task-tags-toggle:hover {
    color: #ffffff;
}

.page-task .task-disclosure__toggle i,
.page-task .task-tags-toggle i {
    font-size: 10px;
    color: var(--ts-muted);
    transition: transform 0.2s ease;
}

.page-task .task-disclosure__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 0;
}

.page-task .task-disclosure__content.hidden {
    display: none;
}

.page-task .task-hint {
    display: flex;
    gap: 10px;
}

.page-task .task-hint__body {
    position: relative;
    flex: 1;
    min-width: 0;
}

.page-task .task-hint__body:has(.task-hint__reveal) .task-markdown {
    filter: blur(5px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.page-task .task-hint__body:has(.task-hint__reveal):hover .task-markdown {
    filter: blur(3.5px);
    opacity: 0.75;
}

.page-task .task-hint__reveal {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.page-task .task-hint__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 999px;
    background: rgba(117, 67, 244, 0.14);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.page-task .task-tags {
    gap: 10px;
}

.page-task a.task-tag-chip {
    padding: 4px 10px;
    font-size: 12px;
    color: #b7c0cc;
    border-color: rgba(148, 163, 184, 0.28);
}

.page-task a.task-tag-chip:hover {
    color: #ffffff;
    border-color: rgba(196, 181, 253, 0.45);
}

.page-task .task-workspace {
    padding: 0;
    overflow: hidden;
}

.page-task .task-workspace__editor-block {
    --ts-editor-line: rgba(148, 163, 184, 0.12);
    --ts-editor-ink: #F2F5F7;
    --ts-editor-accent: #A78BFA;
    --ts-editor-accent-soft: rgba(139, 92, 246, 0.12);
    --ts-editor-accent-border: rgba(139, 92, 246, 0.3);
    background: #0D1218;
}

.page-task .task-workspace__editor-head {
    padding-left: 18px;
    padding-right: 14px;
    margin: 0;
    border-bottom: 1px solid var(--ts-editor-line);
    background: #0C1118;
}

.page-task .ai-mentor-panel__header {
    padding-left: 14px;
    padding-right: 12px;
    border-bottom: 1px solid var(--ts-line);
}

.page-task .ai-mentor-panel__icon-btn {
    width: 28px;
    height: 28px;
}

.page-task .editor-tabs {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--l-border);
    border-radius: 999px;
}

.page-task .editor-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ts-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-task .editor-tab:hover:not(.is-active):not(.is-disabled) {
    color: var(--l-text);
    background: var(--l-raise);
}

.page-task .editor-tab.is-active {
    color: var(--l-text);
    background: var(--l-card);
    border-color: var(--l-border-strong);
    font-weight: 600;
}

.page-task .editor-tab.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-task .editor-tab.hidden {
    display: none;
}

.page-task .editor-tab__lock {
    color: #7543F4;
    font-size: 10px;
}

.page-task .task-workspace__editor-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.page-task .ai-mentor-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ts-muted);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.page-task .ai-mentor-btn i {
    font-size: 10px;
}

.page-task .ai-mentor-btn:hover {
    color: var(--ts-editor-ink);
    background: rgba(255, 255, 255, 0.05);
}

.page-task .ai-mentor-btn.is-active,
.page-task .ai-mentor-btn.is-active:hover {
    color: #C4B5FD;
    background: var(--ts-editor-accent-soft);
    border-color: rgba(139, 92, 246, 0.45);
}

.page-task .font-size-control {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.page-task .font-size-control button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ts-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.page-task .font-size-control button:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.page-task .font-size-control button i {
    font-size: 9px;
}

.page-task #fontSizeLabel {
    min-width: 34px;
    text-align: center;
    font-size: 11px;
    color: var(--ts-muted);
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.page-task .monaco-editor-host {
    height: 100%;
    min-height: 180px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

.page-task .task-workspace__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    background: #11171D;
    border-top: 1px solid var(--ts-line);
}

.page-task .task-workspace__run-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.page-task .task-workspace__auth-hint {
    margin: 0;
    font-size: 12px;
    color: var(--ts-muted);
}

.page-task .task-workspace__auth-hint a {
    color: #b8a4f6;
    text-decoration: none;
}

.page-task .task-workspace__auth-hint a:hover {
    color: #d4c6ff;
}

.page-task .task-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.page-task .task-btn i {
    font-size: 11px;
    position: relative;
    top: 0.1em;
}

.page-task .task-btn--quiet {
    position: relative;
    padding-left: 10px;
    padding-right: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ts-muted);
}

.page-task .task-btn--quiet.has-lock {
    padding-right: 22px;
}

.page-task .task-btn--quiet:hover {
    color: #e8edf4;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 232, 240, 0.4);
}

.page-task .task-btn--ghost {
    min-width: 124px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent;
    color: #f3f5f8;
}

.page-task .task-btn--ghost:hover:not(.is-disabled) {
    border-color: rgba(226, 232, 240, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.page-task .task-btn--primary {
    min-width: 124px;
    border: 1px solid transparent;
    background: #7543F4;
    color: #ffffff;
}

.page-task .task-btn--primary:hover:not(.is-disabled) {
    background: #6335D8;
}

.page-task .task-btn--success {
    min-width: 124px;
    border: 1px solid transparent;
    background: #34B95B;
    color: #ffffff;
    text-decoration: none;
}

.page-task .task-btn--success:hover:not(.is-disabled) {
    background: #2CA04C;
    color: #ffffff;
}

.page-task .task-btn.is-disabled,
.page-task .task-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-task .task-btn.hidden {
    display: none;
}

.page-task .task-workspace__run-block {
    border: 0;
    border-top: 1px solid var(--ts-line);
    border-radius: 0;
    background: var(--ts-well);
}

.page-task .run-result__tabs {
    gap: 16px;
    min-height: 36px;
    padding: 0 14px;
    border-bottom-color: var(--ts-line);
}

.page-task .run-result__tab {
    height: 36px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ts-muted);
}

.page-task .run-result__tab.is-active {
    font-weight: 600;
    color: var(--ts-ink);
}

.page-task .run-result__tab.is-active::after {
    height: 1.5px;
}

.page-task .run-result__note {
    font-size: 13px;
    color: var(--ts-muted);
}

.page-task .run-result__mentor-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #b8a4f6;
    cursor: pointer;
}

.page-task .run-result__mentor-link:hover {
    text-decoration: underline;
}

.page-task .task-icon-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ts-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.page-task .task-icon-btn.hidden {
    display: none;
}

.page-task .task-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.page-task .task-icon-btn i {
    font-size: 13px;
}

.page-task .ai-mentor-panel {
    border-radius: 10px;
}

.page-task .task-resizer::before {
    background: rgba(71, 85, 105, 0.35);
    border-color: rgba(100, 116, 139, 0.45);
}

html.theme-transition .page-task,
html.theme-transition .page-task header,
html.theme-transition .page-task main,
html.theme-transition .page-task a,
html.theme-transition .page-task p,
html.theme-transition .page-task h1,
html.theme-transition .page-task h2,
html.theme-transition .page-task h3,
html.theme-transition .page-task input,
html.theme-transition .page-task button,
html.theme-transition .page-task span,
html.theme-transition .page-task .task-description,
html.theme-transition .page-task .task-workspace,
html.theme-transition .page-task .task-workspace__editor-block,
html.theme-transition .page-task .task-workspace__run-block,
html.theme-transition .page-task .ai-mentor-panel,
html.theme-transition .page-task .ai-mentor-composer,
html.theme-transition .page-task .ai-mentor-composer__send,
html.theme-transition .page-task .user-menu-panel,
html.theme-transition .page-task .profile-modal-panel,
html.theme-transition .page-task .site-more-panel {
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    html.theme-transition .page-task,
    html.theme-transition .page-task * {
        transition: none;
    }
}

html[data-theme="light"] .page-task {
    background-color: var(--jc-bg);
    color: var(--jc-text-muted);
}

html[data-theme="light"] .page-task.task-solution-page {
    --ts-line: #E8EAED;
    --ts-line-strong: #E5E7EB;
    --ts-well: #F6F7F9;
    --ts-ink: #1f2328;
    --ts-body: #4b5563;
    --ts-muted: #6b7280;
}

html[data-theme="light"] .page-task .site-logo--dark {
    display: none;
}

html[data-theme="light"] .page-task .site-logo--light {
    display: block !important;
}

html[data-theme="light"] .page-task header {
    background: rgba(248, 249, 251, 0.92);
    border-bottom: var(--jc-border-width) solid var(--jc-border);
}

html[data-theme="light"] .page-task [data-main-nav] a {
    color: #525252;
}

html[data-theme="light"] .page-task [data-main-nav] a.text-white,
html[data-theme="light"] .page-task [data-main-nav] a:hover {
    color: #222222;
}

html[data-theme="light"] .page-task .site-more-toggle {
    color: #525252;
}

html[data-theme="light"] .page-task .site-more-toggle:hover,
html[data-theme="light"] .page-task .site-more-toggle[aria-expanded="true"],
html[data-theme="light"] .page-task .site-more-toggle.is-active {
    color: #222222;
    background: rgba(82, 82, 82, 0.06);
}

html[data-theme="light"] .page-task .site-more-panel {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
    box-shadow: 0 18px 40px rgba(34, 34, 34, 0.08);
}

html[data-theme="light"] .page-task .site-more-link {
    color: #222222;
}

html[data-theme="light"] .page-task .site-more-link:hover,
html[data-theme="light"] .page-task .site-more-link.is-current {
    background: rgba(117, 67, 244, 0.08);
    color: #222222;
}

html[data-theme="light"] .page-task .site-more-link--premium {
    color: #FFCA28;
}

html[data-theme="light"] .page-task .site-more-link--premium:hover {
    color: #E6B400;
}

html[data-theme="light"] .page-task .site-more-link--premium.is-current,
html[data-theme="light"] .page-task .site-more-link--premium.is-current:hover {
    color: #222222;
}

html[data-theme="light"] .page-task .landing-search {
    background: #ffffff;
    color: #222222;
    border: var(--jc-border-width) solid var(--jc-border);
}

html[data-theme="light"] .page-task .landing-search::placeholder {
    color: #525252;
}

html[data-theme="light"] .page-task .landing-search:focus {
    border-color: #7543F4;
}

html[data-theme="light"] .page-task .landing-theme-toggle {
    background: #ffffff;
    color: #525252;
    border: var(--jc-border-width) solid var(--jc-border);
}

html[data-theme="light"] .page-task .landing-theme-toggle:hover {
    color: #222222;
}

html[data-theme="light"] .page-task .fa-magnifying-glass {
    color: #9CA3AF;
}

html[data-theme="light"] .page-task header a[href="/login"] {
    color: #222222;
}

html[data-theme="light"] .page-task .user-menu-panel {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
    box-shadow: 0 18px 40px rgba(34, 34, 34, 0.1);
}

html[data-theme="light"] .page-task .user-menu-panel .text-white {
    color: #222222;
}

html[data-theme="light"] .page-task .user-menu-panel nav a {
    color: #525252;
}

html[data-theme="light"] .page-task .user-menu-panel nav a:hover {
    color: #222222;
    background: rgba(82, 82, 82, 0.06);
}

html[data-theme="light"] .page-task .user-menu-panel .border-b,
html[data-theme="light"] .page-task .user-menu-panel .border-t {
    border-color: transparent;
    border-width: 0;
}

html[data-theme="light"] .page-task .profile-modal-panel {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.16);
}

html[data-theme="light"] .page-task .profile-modal-panel h2 {
    color: #222222;
}

html[data-theme="light"] .page-task .profile-modal-panel p {
    color: #525252;
}

html[data-theme="light"] .page-task .profile-modal-panel [data-logout-confirm-close],
html[data-theme="light"] .page-task .profile-modal-panel [data-ai-mentor-clear-close] {
    color: #6B7280;
}

html[data-theme="light"] .page-task .profile-modal-panel [data-logout-confirm-close]:hover,
html[data-theme="light"] .page-task .profile-modal-panel [data-ai-mentor-clear-close]:hover {
    color: #222222;
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .profile-modal-panel [data-logout-confirm-cancel],
html[data-theme="light"] .page-task .profile-modal-panel [data-ai-mentor-clear-cancel] {
    background: #ffffff;
    border: 1px solid #D1D5DB;
    color: #222222;
}

html[data-theme="light"] .page-task .profile-modal-panel [data-logout-confirm-cancel]:hover,
html[data-theme="light"] .page-task .profile-modal-panel [data-ai-mentor-clear-cancel]:hover {
    background: #F3F4F6;
    color: #111827;
}

html[data-theme="light"] .page-task .profile-modal-panel [data-logout-confirm-submit],
html[data-theme="light"] .page-task .profile-modal-panel [data-ai-mentor-clear-submit] {
    background: #EF4444;
    border: 1px solid #EF4444;
    color: #ffffff;
}

html[data-theme="light"] .page-task .profile-modal-panel [data-logout-confirm-submit]:hover,
html[data-theme="light"] .page-task .profile-modal-panel [data-ai-mentor-clear-submit]:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #ffffff;
}

html[data-theme="light"] .page-task h1,
html[data-theme="light"] .page-task h2,
html[data-theme="light"] .page-task h3,
html[data-theme="light"] .page-task strong,
html[data-theme="light"] .page-task .text-white,
html[data-theme="light"] .page-task .text-\[\#FFFFFF\] {
    color: #222222;
}

html[data-theme="light"] .page-task p,
html[data-theme="light"] .page-task .text-gray-300,
html[data-theme="light"] .page-task .text-gray-400,
html[data-theme="light"] .page-task .text-gray-500,
html[data-theme="light"] .page-task .text-\[\#DEDEDE\] {
    color: #525252;
}

html[data-theme="light"] .page-task a.bg-\[\#7543F4\],
html[data-theme="light"] .page-task button.bg-\[\#7543F4\],
html[data-theme="light"] .page-task .bg-\[\#7543F4\].text-white {
    color: #ffffff;
}

html[data-theme="light"] .page-task .fixed.z-\[41\] .text-white,
html[data-theme="light"] .page-task .fixed.z-\[41\] i {
    color: #ffffff;
}

html[data-theme="light"] .page-task .task-meta-row__difficulty.is-easy {
    color: #15803D;
}

html[data-theme="light"] .page-task .task-meta-row__difficulty.is-medium {
    color: #B45309;
}

html[data-theme="light"] .page-task .task-meta-row__difficulty.is-hard {
    color: #DC2626;
}

html[data-theme="light"] .page-task .task-meta-row {
    background: #ffffff;
}

html[data-theme="light"] .page-task .task-meta-row__topic {
    color: #6b7280;
    background: transparent;
    border: 0;
}

html[data-theme="light"] .page-task .task-meta-row__topic::before {
    background: #D1D5DB;
}

html[data-theme="light"] .page-task .task-meta-row__favorite {
    color: #9CA3AF;
}

html[data-theme="light"] .page-task .task-meta-row__favorite:hover {
    color: #222222;
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .task-meta-row__favorite.is-active {
    color: #FBBF24;
}

.task-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.task-tags-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    box-shadow: none;
}

.task-tags-toggle:hover {
    color: #e2e8f0;
}

.task-tags-toggle i {
    font-size: 11px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.task-tags-list {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.task-tags-list.is-open {
    display: flex;
}

a.task-tag-chip {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.2;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

a.task-tag-chip:hover {
    color: #ffffff;
    border-color: #9ca3af;
}

html[data-theme="light"] .page-task .task-tags-toggle {
    color: #222222;
}

html[data-theme="light"] .page-task .task-tags-toggle i {
    color: #6b7280;
}

html[data-theme="light"] .page-task a.task-tag-chip {
    background: transparent;
    color: #525252;
    border-color: #d1d5db;
}

html[data-theme="light"] .page-task a.task-tag-chip:hover {
    color: #7543F4;
    border-color: #7543F4;
}

html[data-theme="light"] .page-task .task-nav__btn {
    background: transparent;
    border-color: transparent;
    color: #6b7280;
}

html[data-theme="light"] .page-task .interview-task-nav__btn {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
    color: #525252;
}

html[data-theme="light"] .page-task .task-nav__btn:hover {
    color: #222222;
    background: #F3F4F6;
    border-color: transparent;
}

html[data-theme="light"] .page-task .interview-task-nav__btn:hover {
    color: #222222;
    border-color: #D1D5DB;
}

html[data-theme="light"] .page-task .interview-task-nav__label {
    color: #525252;
}

html[data-theme="light"] .page-task .interview-timer {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
    color: #222222;
}

html[data-theme="light"] .page-task .interview-control-btn {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
    color: #222222;
}

html[data-theme="light"] .page-task .interview-control-btn:hover {
    color: #222222;
    background: #F8F9FB;
}

html[data-theme="light"] .page-task .interview-control-btn.bg-\[\#7543F4\] {
    background: #7543F4;
    border-color: #7543F4;
    color: #ffffff;
}

html[data-theme="light"] .page-task .task-description,
html[data-theme="light"] .page-task .task-workspace,
html[data-theme="light"] .page-task .ai-mentor-panel {
    background: #ffffff;
    border: var(--jc-border-width) solid var(--jc-border);
}

html[data-theme="light"] .page-task .task-workspace__editor-block,
html[data-theme="light"] .page-task .task-workspace__run-block,
html[data-theme="light"] .page-task .monaco-editor-host {
    background: #F6F7F9;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .task-workspace__editor-head,
html[data-theme="light"] .page-task .task-workspace__actions {
    background: #ffffff;
}

html[data-theme="light"] .page-task .task-description__heading,
html[data-theme="light"] .page-task .task-section-heading,
html[data-theme="light"] .page-task .task-disclosure__toggle {
    color: #222222;
}

html[data-theme="light"] .page-task .task-examples__code {
    color: #222222;
}

html[data-theme="light"] .page-task .task-btn--quiet {
    color: #6b7280;
}

html[data-theme="light"] .page-task .task-btn--quiet:hover {
    color: #222222;
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .task-btn--ghost {
    border-color: #D1D5DB;
    color: #222222;
}

html[data-theme="light"] .page-task .task-btn--ghost:hover:not(.is-disabled) {
    border-color: #9CA3AF;
    background: #F8F9FB;
}

html[data-theme="light"] .page-task .task-btn--primary {
    color: #ffffff;
}

html[data-theme="light"] .page-task .ai-mentor-btn {
    background: transparent;
    color: #6b7280;
}

html[data-theme="light"] .page-task .ai-mentor-btn:hover {
    color: #222222;
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .ai-mentor-btn.is-active,
html[data-theme="light"] .page-task .ai-mentor-btn.is-active:hover {
    color: #6335D8;
    background: rgba(117, 67, 244, 0.12);
    border-color: rgba(117, 67, 244, 0.35);
}

html[data-theme="light"] .page-task .font-size-control {
    background: transparent;
    border: 0;
}

html[data-theme="light"] .page-task .font-size-control button:hover {
    color: #222222;
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .editor-tab {
    color: #6b7280;
}

html[data-theme="light"] .page-task .editor-tab:hover:not(.is-active):not(.is-disabled) {
    color: var(--l-text);
    background: var(--l-raise);
}

html[data-theme="light"] .page-task .editor-tab.is-active {
    color: var(--l-text);
    background: var(--l-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .page-task .editor-tab__lock {
    color: #7543F4;
}

html[data-theme="light"] .page-task #runCodeBtn {
    background: transparent;
    border-color: #D1D5DB;
    color: #222222;
}

html[data-theme="light"] .page-task #runCodeBtn:hover {
    background: #F8F9FB;
    border-color: #9CA3AF;
    color: #222222;
}

html[data-theme="light"] .page-task .task-disclosure__toggle:hover,
html[data-theme="light"] .page-task .task-tags-toggle:hover {
    color: #111827;
}

html[data-theme="light"] .page-task .task-hint__index {
    background: rgba(117, 67, 244, 0.1);
    color: #7543F4;
}

html[data-theme="light"] .page-task .task-markdown li::marker {
    color: #525252;
}

html[data-theme="light"] .page-task .task-markdown h1,
html[data-theme="light"] .page-task .task-markdown h2,
html[data-theme="light"] .page-task .task-markdown h3,
html[data-theme="light"] .page-task .task-markdown h4,
html[data-theme="light"] .page-task .task-markdown h5,
html[data-theme="light"] .page-task .task-markdown h6 {
    color: #1F2328;
}

html[data-theme="light"] .page-task .task-markdown a {
    color: #6335D8;
}

html[data-theme="light"] .page-task .task-markdown blockquote {
    border-left-color: #D1D5DB;
    color: #57606A;
}

html[data-theme="light"] .page-task .task-markdown hr {
    border-top-color: #E5E7EB;
}

html[data-theme="light"] .page-task .task-markdown del {
    color: #6b7280;
}

html[data-theme="light"] .page-task .task-markdown strong {
    color: #222222;
}

html[data-theme="light"] .page-task .task-markdown code {
    background: #F8F9FB;
    color: #525252;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .task-markdown pre {
    background: #F8F9FB;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .task-markdown pre code {
    color: #222222;
}

html[data-theme="light"] .page-task .custom-scrollbar::-webkit-scrollbar-track {
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #D1D5DB;
}

html[data-theme="light"] .page-task .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

html[data-theme="light"] .page-task .custom-scrollbar {
    scrollbar-color: #D1D5DB #F3F4F6;
}

html[data-theme="light"] .page-task .monaco-editor-host .monaco-editor,
html[data-theme="light"] .page-task .monaco-editor-host .monaco-editor-background {
    background-color: #ffffff !important;
}

html[data-theme="light"] .page-task .monaco-editor .cursor {
    background-color: #59636E !important;
}

html[data-theme="light"] .page-task .monaco-editor-host .monaco-scrollable-element > .scrollbar.horizontal > .slider {
    background: #D1D5DB;
}

html[data-theme="light"] .page-task .monaco-editor-host .monaco-scrollable-element > .scrollbar.horizontal > .slider:hover {
    background: #9CA3AF;
}

html[data-theme="light"] .page-task .monaco-editor .ai-mentor-line--ok {
    background: rgba(34, 197, 94, 0.14);
}

html[data-theme="light"] .page-task .monaco-editor .ai-mentor-line--warn {
    background: rgba(245, 158, 11, 0.16);
}

html[data-theme="light"] .page-task .monaco-editor .ai-mentor-line--error {
    background: rgba(239, 68, 68, 0.14);
}

html[data-theme="light"] .page-task .monaco-editor .ai-mentor-line-gutter--ok {
    background: #16A34A;
}

html[data-theme="light"] .page-task .monaco-editor .ai-mentor-line-gutter--warn {
    background: #D97706;
}

html[data-theme="light"] .page-task .monaco-editor .ai-mentor-line-gutter--error {
    background: #DC2626;
}

html[data-theme="light"] .page-task .task-resizer::before {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

html[data-theme="light"] .page-task .sandbox-summary--ok {
    background: rgba(52, 185, 91, 0.12);
    color: #15803D;
    border-color: rgba(52, 185, 91, 0.28);
}

html[data-theme="light"] .page-task .sandbox-summary--fail {
    background: rgba(249, 83, 55, 0.1);
    color: #DC2626;
    border-color: rgba(249, 83, 55, 0.28);
}

html[data-theme="light"] .page-task .sandbox-test-card {
    background: #F8F9FB;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .sandbox-test-card__title,
html[data-theme="light"] .page-task .sql-result-table th {
    color: #222222;
}

html[data-theme="light"] .page-task .sandbox-test-card__row,
html[data-theme="light"] .page-task .sandbox-test-card__row-label,
html[data-theme="light"] .page-task .sql-result-table td,
html[data-theme="light"] .page-task .sql-result-table__label {
    color: #525252;
}

html[data-theme="light"] .page-task .sandbox-test-card__badge--ok {
    color: #15803D;
}

html[data-theme="light"] .page-task .sandbox-test-card__badge--fail {
    color: #DC2626;
}

html[data-theme="light"] .page-task .task-workspace__run-block.run-result {
    background: #F8F9FB;
}

html[data-theme="light"] .page-task .run-result__tab {
    color: #8A8A8A;
}

html[data-theme="light"] .page-task .run-result__tab:hover,
html[data-theme="light"] .page-task .run-result__tab.is-active {
    color: #222222;
}

html[data-theme="light"] .page-task .run-result__status--ok,
html[data-theme="light"] .page-task .run-result__solved {
    color: #15803D;
}

html[data-theme="light"] .page-task .run-result__status--fail {
    color: #DC2626;
}

html[data-theme="light"] .page-task .run-result__status-time,
html[data-theme="light"] .page-task .run-result__test-meta,
html[data-theme="light"] .page-task .run-result__note,
html[data-theme="light"] .page-task .run-result__pending-stage,
html[data-theme="light"] .page-task .run-result__pending-time {
    color: #525252;
}

html[data-theme="light"] .page-task .run-result__pending-title {
    color: #222222;
}

html[data-theme="light"] .page-task .run-result__io-label,
html[data-theme="light"] .page-task .run-result__test-title {
    color: #222222;
}

html[data-theme="light"] .page-task .run-result__io-box {
    background: #ffffff;
    border-color: var(--jc-border);
    color: #222222;
}

html[data-theme="light"] .page-task .run-result__note--error {
    color: #DC2626;
}

html[data-theme="light"] .page-task .run-result__mentor-link {
    color: #6335D8;
}

html[data-theme="light"] .page-task .run-result__test {
    background: #F8F9FB;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .run-result__test:hover,
html[data-theme="light"] .page-task .run-result__test.is-selected {
    border-color: rgba(117, 67, 244, 0.45);
}

html[data-theme="light"] .page-task .task-workspace__run-output {
    color: #525252;
}

html[data-theme="light"] .page-task .sandbox-test-card__sql-script,
html[data-theme="light"] .page-task .sql-result-table-wrap {
    background: #ffffff;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .sql-result-table th,
html[data-theme="light"] .page-task .sql-result-table td {
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .sql-result-table th {
    background: #F8F9FB;
}

html[data-theme="light"] .page-task .ai-mentor-panel__header,
html[data-theme="light"] .page-task .ai-mentor-panel__footer,
html[data-theme="light"] .page-task .ai-mentor-panel__readonly {
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .ai-mentor-composer {
    background: #F8F9FB;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .ai-mentor-composer:focus-within {
    border-color: #C4B5FD;
}

html[data-theme="light"] .page-task .ai-mentor-composer__input {
    color: #222222;
}

html[data-theme="light"] .page-task .ai-mentor-composer__input::placeholder {
    color: #9CA3AF;
}

html[data-theme="light"] .page-task .ai-mentor-composer__count {
    color: #9CA3AF;
}

html[data-theme="light"] .page-task .ai-mentor-composer.is-at-limit .ai-mentor-composer__count {
    color: #D97706;
}

html[data-theme="light"] .page-task .ai-mentor-composer__send {
    background: #222222;
    color: #ffffff;
}

html[data-theme="light"] .page-task .ai-mentor-composer__send:hover:not(:disabled) {
    background: #111111;
}

html[data-theme="light"] .page-task .ai-mentor-composer__send:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
}

html[data-theme="light"] .page-task .ai-mentor-panel__title {
    color: #7543F4;
}

html[data-theme="light"] .page-task .ai-mentor-panel__remaining,
html[data-theme="light"] .page-task .ai-mentor-panel__hint,
html[data-theme="light"] .page-task .ai-mentor-panel__locked-text,
html[data-theme="light"] .page-task .ai-mentor-panel__readonly-text {
    color: #525252;
}

html[data-theme="light"] .page-task .ai-mentor-panel__locked-title {
    color: #222222;
}

html[data-theme="light"] .page-task .ai-mentor-panel__icon-btn {
    border-color: var(--jc-border);
    color: #525252;
}

html[data-theme="light"] .page-task .ai-mentor-panel__icon-btn:hover {
    color: #222222;
    background: #F3F4F6;
    border-color: #D1D5DB;
}

html[data-theme="light"] .page-task .ai-mentor-panel__icon-btn--danger:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
}

html[data-theme="light"] .page-task .ai-mentor-panel__icon-btn:disabled:hover {
    color: #525252;
    background: transparent;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .ai-mentor-msg--user {
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .ai-mentor-msg__body,
html[data-theme="light"] .page-task .ai-mentor-msg--user .ai-mentor-msg__body {
    color: #222222;
}

html[data-theme="light"] .page-task .ai-mentor-msg--error .ai-mentor-msg__body {
    color: #DC2626;
}

html[data-theme="light"] .page-task .ai-mentor-msg__body code,
html[data-theme="light"] .page-task .ai-mentor-msg__body pre {
    background: #F8F9FB;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task .ai-mentor-msg__action {
    color: #6B7280;
}

html[data-theme="light"] .page-task .ai-mentor-msg__action:hover {
    color: #222222;
    background: #F3F4F6;
}

html[data-theme="light"] .page-task .ai-mentor-msg__action.is-copied,
html[data-theme="light"] .page-task .ai-mentor-msg__action.is-copied:hover {
    color: #15803D;
}

html[data-theme="light"] .page-task .ai-mentor-msg__action.is-highlight-active,
html[data-theme="light"] .page-task .ai-mentor-msg__action.is-highlight-active:hover {
    color: #7C3AED;
}

html[data-theme="light"] .page-task .ai-mentor-panel__locked-cta,
html[data-theme="light"] .page-task .ai-mentor-panel__readonly-cta,
html[data-theme="light"] .page-task .ai-mentor-action-btn {
    color: #ffffff;
}

.interview-paused-card {
    background: var(--l-card);
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
    color: var(--l-muted);
}

.interview-paused-card h2 {
    color: var(--l-text);
}

.interview-paused-card__icon {
    color: var(--l-text);
}

html[data-theme="light"] .page-task .interview-paused-card {
    border: 1px solid var(--l-border);
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.14);
}

html[data-theme="light"] .page-task #interviewPausedOverlay > div {
    background: #ffffff;
    border-color: var(--jc-border);
}

html[data-theme="light"] .page-task input:-webkit-autofill,
html[data-theme="light"] .page-task input:-webkit-autofill:hover,
html[data-theme="light"] .page-task input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #222222 !important;
}

/* Mobile bottom tabs & result collapse are mobile-only UI */
.page-task .task-mobile-tabs,
.page-task .run-result__collapse {
    display: none;
}

@media (max-width: 1023px) {
    .page-task {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .page-task .task-page-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 8px;
        row-gap: 8px;
        column-gap: 8px;
    }

    .page-task .task-page-header > :first-child {
        flex: 0 1 auto;
        min-width: 0;
    }

    .page-task .task-page-header > :last-child {
        flex: 0 0 auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .page-task .task-page-header > .justify-self-center:not(:has(.interview-header-controls)) {
        display: none;
    }

    .page-task .task-page-header > .justify-self-center:has(.interview-header-controls) {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        margin-left: 0;
    }

    .page-task .interview-header-controls {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .page-task main {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-task main > .relative {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .page-task .task-layout {
        flex: 1 1 0;
        min-height: 0;
    }

    .page-task .task-split {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        gap: 12px;
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

    .page-task .task-split[data-mobile-pane="task"] .task-workspace,
    .page-task .task-split[data-mobile-pane="task"] .ai-mentor-panel,
    .page-task .task-split[data-mobile-pane="code"] .task-description,
    .page-task .task-split[data-mobile-pane="code"] .ai-mentor-panel,
    .page-task .task-split[data-mobile-pane="ai"] .task-description,
    .page-task .task-split[data-mobile-pane="ai"] .task-workspace {
        display: none !important;
    }

    .page-task .task-meta-row {
        grid-column: auto;
        grid-row: auto;
        position: sticky;
        top: 0;
        height: auto;
        flex-wrap: wrap;
        row-gap: 8px;
        padding: 10px 16px;
    }

    .page-task .task-meta-row__difficulty,
    .page-task .task-meta-row__topic,
    .page-task .task-meta-row__favorite {
        white-space: nowrap;
    }

    .page-task .task-description {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: auto;
        max-height: none;
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0;
    }

    .page-task .task-description__body {
        padding: 16px 16px 22px;
        gap: 22px;
    }

    .page-task .task-description__heading,
    .page-task .task-description h1 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .page-task .task-resizer,
    .page-task .ai-mentor-resizer,
    .page-task .editor-height-resizer {
        display: none !important;
    }

    .page-task .task-workspace {
        grid-column: auto;
        grid-row: auto;
        width: 100% !important;
        height: auto;
        flex: 1 1 0;
        min-height: 0;
        padding: 0;
    }

    .page-task .task-workspace__viewport {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
        grid-template-rows: none !important;
    }

    .page-task .task-workspace__editor-block {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }

    .page-task .task-workspace__editor-head {
        flex-wrap: wrap;
    }

    .page-task .task-workspace__editor-block .editor-resize-wrap {
        flex: 1 1 0;
        height: auto !important;
        min-height: 160px;
    }

    .page-task .task-description pre,
    .page-task .task-description code,
    .page-task .task-description table {
        max-width: 100%;
        overflow-x: auto;
        overflow-wrap: anywhere;
    }

    .page-task .run-result__tabs {
        flex-wrap: wrap;
        gap: 12px 16px;
        min-height: 40px;
        height: auto;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .page-task .run-result__tab {
        height: 32px;
        white-space: nowrap;
    }

    .page-task .task-split.is-mentor-open {
        grid-template-columns: none;
    }

    .page-task .ai-mentor-panel {
        position: static;
        width: 100% !important;
        --ai-mentor-width: 100%;
        grid-column: auto;
        grid-row: auto;
        flex: 1 1 0;
        height: auto;
        min-height: 0;
        z-index: auto;
    }

    .page-task .task-workspace__panel-bottom {
        flex: 0 1 auto;
        min-height: 0;
        max-height: 62%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .page-task .task-workspace__actions {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 10px;
    }

    .page-task .task-workspace__run-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-task .task-workspace__run-buttons > button,
    .page-task .task-workspace__run-buttons > a {
        flex: 1 1 0;
        min-width: 0;
    }

    .page-task .task-workspace__run-block {
        flex: 0 1 auto;
        min-height: 0;
        height: auto;
    }

    .page-task .task-workspace__run-block.is-collapsed {
        flex: 0 0 auto;
    }

    .page-task .task-workspace__run-block.is-collapsed .run-result__tabs,
    .page-task .task-workspace__run-block.is-collapsed .run-result__body {
        display: none;
    }

    .page-task .run-result__collapse {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        height: 38px;
        padding: 0 14px;
        border: 0;
        background: transparent;
        color: var(--ts-ink);
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        appearance: none;
        flex-shrink: 0;
    }

    .page-task .run-result__collapse:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.03);
    }

    .page-task .run-result__collapse i {
        font-size: 10px;
        color: var(--ts-muted);
        transition: transform 0.18s ease;
    }

    .page-task .task-workspace__run-block:not(.is-collapsed) .run-result__collapse {
        border-bottom: 1px solid var(--ts-line);
    }

    .page-task .task-workspace__run-block:not(.is-collapsed) .run-result__collapse i {
        transform: rotate(180deg);
    }

    .page-task .task-examples__head {
        display: none;
    }

    .page-task .task-examples__cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.01em;
        color: var(--ts-muted);
    }

    .page-task .task-io-table,
    .page-task .task-io-row {
        grid-template-columns: 1fr;
    }

    .page-task .task-examples__label:first-child,
    .page-task .task-examples__cell:first-child,
    .page-task .task-io-table > div,
    .page-task .task-io-row > div {
        border-right: none;
        border-bottom: 1px solid var(--ts-line);
    }

    .page-task .task-examples__row .task-examples__cell:last-child {
        border-bottom: none;
    }

    .page-task .task-mobile-tabs {
        display: flex;
        align-items: stretch;
        gap: 6px;
        flex-shrink: 0;
        padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
        background: #0D1218;
        border-top: 1px solid var(--ts-line);
    }

    .page-task .task-mobile-tab {
        flex: 1 1 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 7px 4px 6px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ts-muted);
        font-family: inherit;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.1;
        cursor: pointer;
        appearance: none;
        transition: color 0.15s ease, background 0.15s ease;
    }

    .page-task .task-mobile-tab i {
        font-size: 15px;
        line-height: 1;
    }

    .page-task .task-mobile-tab:hover {
        color: var(--ts-ink);
    }

    .page-task .task-mobile-tab.is-active {
        color: #C4B5FD;
        background: rgba(117, 67, 244, 0.14);
    }

    html[data-theme="light"] .page-task .task-mobile-tabs {
        background: #ffffff;
        border-top-color: var(--jc-border);
    }

    html[data-theme="light"] .page-task .task-mobile-tab {
        color: #6b7280;
    }

    html[data-theme="light"] .page-task .task-mobile-tab:hover {
        color: #222222;
    }

    html[data-theme="light"] .page-task .task-mobile-tab.is-active {
        color: #6335D8;
        background: rgba(117, 67, 244, 0.1);
    }

    html[data-theme="light"] .page-task .run-result__collapse {
        color: #222222;
    }

    html[data-theme="light"] .page-task .run-result__collapse:hover {
        background: #F3F4F6;
    }

    html[data-theme="light"] .page-task .run-result__collapse i {
        color: #6b7280;
    }
}

@media (max-width: 640px) {
    .page-task .ai-mentor-btn span {
        display: none;
    }

    .page-task .task-workspace__actions > .min-w-0 {
        width: 100%;
    }
}

.page-task--interview .profile-toast {
    top: auto;
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    transform: none;
}

.page-task--interview .profile-toast--visible {
    animation-name: profile-toast-in-bottom-right;
}

.page-task--interview .profile-toast--hiding {
    animation-name: profile-toast-out-bottom-right;
}

@keyframes profile-toast-in-bottom-right {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes profile-toast-out-bottom-right {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
}

/* Pill buttons */
.page-task :is(.task-btn, .task-icon-btn, .ai-mentor-btn, .ai-mentor-action-btn, .ai-mentor-panel__locked-cta, .ai-mentor-panel__readonly-cta, .interview-control-btn) {
    border-radius: 999px;
}
