.workspace-hero {
    margin-top: 20px;
    margin-bottom: 14px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(10, 36, 99, 0.1);
    border-left: 4px solid #2f855a;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(10, 36, 99, 0.06);
}

.dashboard-main {
    padding-bottom: 24px;
}

.workspace-hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.workspace-hero-actions .hero-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #5a8ed3;
    background: #e9f2ff;
    color: #1f4f8f;
    font-size: 12px;
    font-weight: 700;
}

.workspace-hero-actions .hero-info-btn:hover {
    border-color: #3f77c2;
    background: #dbeaff;
    color: #163f74;
}

.summary-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #1f6f7a;
    background: linear-gradient(135deg, #2f855a 0%, #1f6f7a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.summary-toggle-btn:hover {
    filter: brightness(1.05);
}

.summary-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    line-height: 1;
}

.workspace-summary-wrap.is-collapsed {
    display: none;
}

.workspace-hero.is-collapsed .workspace-hero-tag,
.workspace-hero.is-collapsed #workspace-subtitle,
.workspace-hero.is-collapsed .workspace-hero-actions a {
    display: none;
}

.workspace-hero.is-collapsed {
    padding-top: 14px;
    padding-bottom: 14px;
}

.workspace-summary-wrap {
    margin-bottom: 12px;
    padding: 10px 10px 0;
    border: 1px dashed #b8cadd;
    border-radius: 12px;
    background: #edf2f8;
}

.workspace-hero-tag {
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #1f6f7a;
    background: rgba(47, 133, 90, 0.1);
}

.workspace-header h1 {
    margin: 0 0 6px;
    color: var(--deep-space-blue);
    font-size: 24px;
}

.workspace-header p {
    margin: 0;
    color: #5f6f86;
    font-size: 14px;
    line-height: 1.7;
}

.workspace-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.overview-item {
    background: #fff;
    border: 1px solid #e3ebf8;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 3px 12px rgba(10, 36, 99, 0.05);
}

.workspace-summary-wrap .overview-item,
.workspace-summary-wrap .workspace-progress-card {
    background: #f3f7fc;
    border-color: #cfdceb;
    box-shadow: none;
}

.workspace-summary-wrap .overview-item .v {
    color: #3f5f86;
}

.workspace-summary-wrap .progress-track {
    background: #d9e3f0;
}

.workspace-summary-wrap .progress-fill {
    background: linear-gradient(90deg, #9ab1cd 0%, #7895b7 100%);
}

.overview-item .k {
    margin: 0 0 8px;
    font-size: 12px;
    color: #6b7d95;
}

.overview-item .v {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #11326b;
}

.workspace-progress-card {
    background: #fff;
    border: 1px solid #e7edf6;
    box-shadow: 0 4px 16px rgba(10, 36, 99, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.learning-mode-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #e8c67b;
    border-radius: 10px;
    background: #fff4dc;
    box-shadow: 0 4px 14px rgba(185, 128, 26, 0.14);
}

.learning-mode-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mode-switch-btn {
    border: 1px solid #cfdbec;
    background: #f8fbff;
    color: #31557f;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mode-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(79, 132, 207, 0.18);
    color: #31557f;
    font-size: 11px;
    line-height: 1;
}

.mode-switch-btn.active {
    border-color: rgba(47, 133, 90, 0.38);
    background: rgba(47, 133, 90, 0.1);
    color: #1f6f7a;
    font-weight: 700;
}

.mode-switch-btn.active .mode-btn-icon {
    background: rgba(47, 133, 90, 0.24);
    color: #1f6f7a;
}

.learning-mode-tip {
    margin: 0;
    font-size: 12px;
    color: #5e728f;
}

.workspace-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-label {
    margin: 0;
    font-size: 12px;
    color: #6c7b90;
}

.workspace-progress-row h3 {
    margin: 0;
    color: var(--deep-space-blue);
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #1f6f7a;
    background: rgba(47, 133, 90, 0.13);
}

.progress-track {
    height: 9px;
    border-radius: 6px;
    background: #e6edf7;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f855a 0%, #1f6f7a 100%);
    transition: width 0.25s ease;
}

.workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 300px;
    gap: 14px;
    align-items: start;
    padding: 12px;
    border: 1px solid #a8d8bf;
    border-radius: 14px;
    background: linear-gradient(180deg, #e6f8ee 0%, #e1f4ff 100%);
    box-shadow: 0 10px 22px rgba(31, 111, 122, 0.16);
}

.workspace-content {
    display: grid;
    gap: 14px;
}

.workspace-card,
.workspace-side .side-card {
    background: #fbfffd;
    border: 1px solid #bde2cb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(47, 133, 90, 0.1);
    padding: 14px;
}

.card-head h2 {
    margin: 0 0 6px;
    color: #1e6049;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-head h2::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #67a7d8 0%, #6db689 100%);
    border: 1px solid rgba(44, 94, 140, 0.22);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.workspace-route-card .card-head h2::before {
    background: linear-gradient(135deg, #5fb88f 0%, #4ba576 100%);
}

.workspace-task-card .card-head h2::before {
    background: linear-gradient(135deg, #5c9fdb 0%, #4f84cf 100%);
}

.ai-lab-card .card-head h2::before {
    background: linear-gradient(135deg, #7f79da 0%, #5f68ca 100%);
}

.mentor-card .card-head h2::before {
    background: linear-gradient(135deg, #d68c67 0%, #bf7456 100%);
}

.card-head p {
    margin: 0;
    color: #4e6e66;
    font-size: 13px;
    line-height: 1.6;
}

.pbl-route {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.route-chip {
    border: 1px solid #b6dbbf;
    border-radius: 999px;
    background: #e8f8ec;
    color: #245d43;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

.route-chip.active {
    border-color: #6bb48a;
    background: #cdeedb;
    color: #164b36;
}

.stage-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stage-btn {
    text-align: left;
    border: 1px solid #d8e3f2;
    background: #fff;
    color: var(--deep-space-blue);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
}

.stage-btn.active {
    background: rgba(47, 133, 90, 0.08);
    border-color: rgba(47, 133, 90, 0.32);
    font-weight: 700;
    color: #1f6f7a;
}

.task-check-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.task-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2ebf8;
    border-radius: 9px;
    background: #f9fcff;
    color: #3e4f68;
    font-size: 14px;
}

.task-main {
    min-width: 0;
    flex: 1;
}

.task-main label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.task-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.task-btn {
    border: 1px solid #d8e3f2;
    background: #fff;
    color: #31557f;
    border-radius: 7px;
    padding: 4px 9px;
    font-size: 12px;
    cursor: pointer;
}

.task-btn:hover {
    background: #eef5ff;
    border-color: #bdd2ef;
}

.task-btn-explore {
    border-color: #74b56e;
    background: linear-gradient(135deg, #edf9eb 0%, #ddf2d9 100%);
    color: #286a2d;
    font-weight: 700;
}

.task-btn-explore:hover {
    border-color: #5f9f5a;
    background: linear-gradient(135deg, #e1f4de 0%, #ceeac9 100%);
}

.task-note-flag {
    margin-top: 4px;
    font-size: 12px;
    color: #5d708a;
}

.task-check-item input[type="checkbox"] {
    accent-color: #1f6f7a;
}

.stage-submit {
    margin-top: 12px;
    background: #f9fbfe;
    border: 1px solid #e4edf7;
    border-radius: 10px;
    padding: 12px;
}

.stage-submit h3 {
    color: var(--deep-space-blue);
    font-size: 15px;
    margin: 0 0 8px;
}

.stage-submit textarea,
.ai-input {
    width: 100%;
    min-height: 92px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
}

.submit-tip {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6c7f99;
}

.stage-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#btn-upload {
    border: 1px solid #5a8ed3;
    background: linear-gradient(135deg, #e8f2ff 0%, #d6e8ff 100%);
    color: #1f4f8f;
    font-weight: 700;
}

#btn-upload:hover {
    border-color: #3f77c2;
    background: linear-gradient(135deg, #d9e9ff 0%, #c7ddff 100%);
}

.ai-quick {
    margin: 12px 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-quick-btn {
    border: 1px dashed rgba(47, 133, 90, 0.5);
    background: rgba(47, 133, 90, 0.07);
    color: #1f6f7a;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    cursor: pointer;
}

.ai-response {
    margin-top: 10px;
    border: 1px solid #dbe8f8;
    border-radius: 9px;
    background: #f8fbff;
    padding: 10px 12px;
    white-space: pre-wrap;
    color: #2f4363;
    font-size: 13px;
    line-height: 1.65;
    min-height: 84px;
}

.mentor-thread {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.mentor-msg {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.mentor-msg-text {
    margin: 0;
}

.mentor-msg-time {
    margin: 4px 0 0;
    font-size: 11px;
    color: #6f819d;
    opacity: 0.9;
}

.mentor-msg.student {
    background: #eef6ff;
    border: 1px solid #cfe3fa;
}

.mentor-msg.mentor {
    background: #f2fbf6;
    border: 1px solid #ccebd8;
}

.mentor-input-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mentor-input-row input {
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
}

.mentor-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mentor-actions .slot-btn {
    border: 1px solid #9f87d8;
    background: linear-gradient(135deg, #f3ecff 0%, #e7dcff 100%);
    color: #5a4296;
    font-weight: 700;
}

.mentor-actions .slot-btn:hover {
    border-color: #866cc5;
    background: linear-gradient(135deg, #eadfff 0%, #ddceff 100%);
}

.workspace-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guided-focus-card,
.guided-step-card {
    display: none;
}

.guided-nav-row {
    margin-top: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
}

.guided-step-indicator {
    margin: 0;
    font-size: 12px;
    color: #456584;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.guided-requirements,
.guided-editor {
    border: 1px solid #d8e6f4;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.guided-requirements h3,
.guided-editor h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1a4f7d;
}

.guided-requirements-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.guided-requirements-head h3 {
    margin-bottom: 0;
}

.guided-requirements ul,
.guided-requirements ol {
    margin: 0;
    padding-left: 18px;
}

.guided-requirements li {
    margin-bottom: 6px;
    color: #4d6686;
    font-size: 13px;
    line-height: 1.6;
}

.guided-step-list {
    display: grid;
    gap: 8px;
}

.guided-step-item {
    border: 1px solid #d6e4f3;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guided-step-item:hover {
    border-color: #8fb5df;
    box-shadow: 0 2px 8px rgba(79, 132, 207, 0.14);
}

.guided-step-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #31557f;
    padding: 0;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
}

.guided-step-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guided-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e7f0ff;
    color: #365f98;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.guided-step-title {
    min-width: 0;
    flex: 1;
    line-height: 1.4;
}

.guided-step-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.guided-step-status.done {
    color: #1f6b47;
    background: #ddf3e7;
    border: 1px solid #9cd3b2;
}

.guided-step-item.active {
    border-color: #6bb48a;
    background: #e4f5eb;
}

.guided-step-item.active .guided-step-btn {
    color: #1f5e46;
}

.guided-subtask-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

.guided-subtask-list li {
    margin-bottom: 4px;
    color: #4f6787;
    font-size: 12px;
    line-height: 1.5;
}

.guided-step-phase-1 {
    border-left: 4px solid #5eae82;
}

.guided-step-phase-1 .guided-step-index {
    background: #e1f3e8;
    color: #2f6b47;
}

.guided-step-phase-2 {
    border-left: 4px solid #5f93d6;
}

.guided-step-phase-2 .guided-step-index {
    background: #e4eefb;
    color: #325f96;
}

.guided-step-phase-3 {
    border-left: 4px solid #8d84da;
}

.guided-step-phase-3 .guided-step-index {
    background: #eee9fb;
    color: #554a9b;
}

.guided-step-phase-4 {
    border-left: 4px solid #ce8662;
}

.guided-step-phase-4 .guided-step-index {
    background: #fbece5;
    color: #8a4e30;
}

.guided-step-phase-5 {
    border-left: 4px solid #6aafb8;
}

.guided-step-phase-5 .guided-step-index {
    background: #e3f2f4;
    color: #2d6770;
}

.guided-editor-toolbar {
    margin-top: 2px;
}

.guided-step-editor {
    min-height: 200px;
    margin-bottom: 8px;
}

#btn-guided-explore-top {
    border-color: #74b56e;
    background: linear-gradient(135deg, #edf9eb 0%, #ddf2d9 100%);
    color: #286a2d;
    font-weight: 700;
    min-height: 36px;
    padding: 7px 15px;
    font-size: 13px;
    border-radius: 8px;
    line-height: 1.1;
    box-shadow: 0 2px 8px rgba(95, 159, 90, 0.18);
}

#btn-guided-explore-top:hover {
    border-color: #5f9f5a;
    background: linear-gradient(135deg, #e3f4e0 0%, #d1ebcb 100%);
    box-shadow: 0 4px 12px rgba(95, 159, 90, 0.22);
}

#btn-guided-prev {
    border: 1px solid #6f95c6;
    background: linear-gradient(135deg, #edf4ff 0%, #dce9ff 100%);
    color: #234f87;
    font-weight: 700;
}

#btn-guided-prev:hover {
    border-color: #557fb7;
    background: linear-gradient(135deg, #e1ecff 0%, #cddfff 100%);
}

#btn-guided-prev,
#btn-guided-next {
    min-width: 86px;
}

#btn-guided-upload {
    border: 1px solid #5a8ed3;
    background: linear-gradient(135deg, #e8f2ff 0%, #d6e8ff 100%);
    color: #1f4f8f;
    font-weight: 700;
}

#btn-guided-upload:hover {
    border-color: #3f77c2;
    background: linear-gradient(135deg, #d9e9ff 0%, #c7ddff 100%);
}

.learning-mode-step .workspace-layout {
    grid-template-columns: minmax(0, 1.35fr) 300px;
}

.learning-mode-step .guided-focus-card,
.learning-mode-step .guided-step-card {
    display: block;
}

.learning-mode-step .workspace-task-card,
.learning-mode-step .ai-lab-card,
.learning-mode-step .mentor-card {
    display: none;
}

.learning-mode-step .workspace-route-card {
    display: none;
}

.learning-mode-step .workspace-side .side-card:not(.guided-step-card) {
    display: none;
}

.workspace-side h3 {
    margin: 0 0 8px;
    color: var(--deep-space-blue);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.workspace-side h3::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6ca9ca;
    border: 1px solid rgba(58, 104, 145, 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48);
    flex-shrink: 0;
}

.workspace-side .side-card:nth-child(1) h3::before { background: #62b088; }
.workspace-side .side-card:nth-child(2) h3::before { background: #5f93d6; }
.workspace-side .side-card:nth-child(3) h3::before { background: #8d84da; }
.workspace-side .side-card:nth-child(4) h3::before { background: #ce8662; }

.workspace-side p,
.workspace-side li {
    color: #586981;
    font-size: 14px;
    line-height: 1.6;
}

.workspace-side ul {
    margin: 0;
    padding-left: 18px;
}

.resource-actions {
    display: grid;
    gap: 8px;
}

.resource-subtitle {
    margin: 0 0 10px;
    font-size: 13px;
    color: #60718a;
}

.resource-course-list {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.workspace-side ul.resource-course-list {
    padding-left: 0;
}

.resource-course-list li {
    margin: 0;
}

.resource-course-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px 12px 0;
    border-radius: 10px;
    border: 1px solid #dce8f8;
    background: #f8fbff;
    color: #2f4566;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-course-link:hover {
    border-color: #b7cfee;
    background: #eef5ff;
}

.resource-course-link--t1 {
    background: #eef6ff;
    border-color: #c9def7;
}

.resource-course-link--t1:hover {
    background: #e2f0ff;
    border-color: #a9cbed;
}

.resource-course-link--t2 {
    background: #f0fbf4;
    border-color: #caeacf;
}

.resource-course-link--t2:hover {
    background: #e3f6ea;
    border-color: #adddb8;
}

.resource-course-link--t3 {
    background: #fff7ec;
    border-color: #f4dcc0;
}

.resource-course-link--t3:hover {
    background: #ffefd9;
    border-color: #eac79a;
}

.resource-course-link--t4 {
    background: #f7f2ff;
    border-color: #e0d4f8;
}

.resource-course-link--t4:hover {
    background: #eee4ff;
    border-color: #ceb9f1;
}

.resource-course-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: #173764;
}

.resource-course-meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #60718a;
}

body:not(.learning-mode-step) .workspace-side h3 {
    font-size: 17px;
}

body:not(.learning-mode-step) .workspace-side p,
body:not(.learning-mode-step) .workspace-side li {
    font-size: 14px;
}

body:not(.learning-mode-step) .resource-course-title {
    font-size: 14px;
    line-height: 1.55;
}

body:not(.learning-mode-step) .resource-course-meta {
    font-size: 13px;
}

.resource-course-thumb {
    width: 46px;
    height: 46px;
    margin-left: 6px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.resource-course-body {
    min-width: 0;
    flex: 1;
}

.task-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.task-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 45, 0.55);
}

.task-modal-content {
    position: relative;
    width: min(620px, 100%);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dbe6f5;
    box-shadow: 0 16px 38px rgba(10, 20, 45, 0.24);
    padding: 16px;
}

.explore-modal-content {
    width: min(820px, 100%);
    max-height: 88vh;
    overflow: auto;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.explore-section {
    border: 1px solid #d7e6f5;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
}

.explore-section h4,
.explore-ai h4 {
    margin: 0 0 8px;
    color: #1a4f7d;
    font-size: 14px;
}

.explore-section ul,
.explore-section ol {
    margin: 0;
    padding-left: 18px;
}

.explore-section li {
    margin-bottom: 6px;
    color: #456182;
    font-size: 13px;
    line-height: 1.6;
}

.explore-ai {
    border: 1px solid #d6ebdf;
    border-radius: 10px;
    background: #f4fbf6;
    padding: 12px;
}

.explore-ai-head p {
    margin: 0 0 8px;
    color: #4b6b63;
    font-size: 12px;
}

.explore-ai-quick {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.explore-ai-quick-btn {
    border: 1px dashed #85bc96;
    background: #e7f5eb;
    color: #2f6b47;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.info-modal-content {
    width: min(760px, 100%);
    max-height: 86vh;
    overflow: auto;
}

.project-info-body {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.project-info-block {
    border: 1px solid #d9e5f4;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
}

.project-info-block h4 {
    margin: 0 0 8px;
    color: #1b4f7f;
    font-size: 14px;
}

.project-info-block p {
    margin: 0;
    color: #4f6685;
    font-size: 13px;
    line-height: 1.7;
}

.project-info-list {
    margin: 0;
    padding-left: 18px;
}

.project-info-list li {
    margin-bottom: 6px;
    color: #4a6283;
    font-size: 13px;
    line-height: 1.6;
}

.task-modal-content h3 {
    margin: 0 0 10px;
    color: #0e2f66;
    font-size: 18px;
}

.task-modal-docname {
    margin: 0 0 8px;
    font-size: 12px;
    color: #637793;
}

.task-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.task-editor-btn {
    border: 1px solid #d1def1;
    border-radius: 7px;
    background: #fff;
    color: #2f4566;
    font-size: 12px;
    padding: 4px 9px;
    cursor: pointer;
}

.task-editor-btn:hover {
    background: #eef5ff;
}

.task-editor {
    min-height: 180px;
    max-height: 56vh;
    overflow: auto;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #304562;
    outline: none;
    background: #fff;
}

.task-modal-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.task-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: rgba(10, 36, 99, 0.08);
    color: #2f4363;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .workspace-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .workspace-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stage-list {
        grid-template-columns: 1fr;
    }

    .learning-mode-switch {
        flex-direction: column;
        align-items: flex-start;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .workspace-overview {
        grid-template-columns: 1fr;
    }
}
