/* ============================================================
   task.css · 任务系统（美化版）
   ============================================================ */

/* ===== 任务列表页 ===== */
.task-list-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    position: relative;
}
.task-list-page.active { display: flex; }

.task-list-header {
    display: flex;
    align-items: center;
    padding: 6px 0 14px;
    flex-shrink: 0;
    position: relative;
}
.task-list-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(192, 132, 252, 0.05) 0%,
        rgba(192, 132, 252, 0.5) 50%,
        rgba(192, 132, 252, 0.05) 100%);
}
.task-list-back {
    font-size: 26px;
    cursor: pointer;
    padding: 0 8px 0 4px;
    color: var(--primary);
    line-height: 1;
    transition: text-shadow .2s;
}
.task-list-back:hover {
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.9);
}
.task-list-title {
    flex: 1;
    font-family: 'WenJinMincho', 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 4px;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.35),
        0 0 24px rgba(192, 132, 252, 0.4);
}
.task-list-create-btn {
    background: linear-gradient(135deg, #c084fc, #ec4899);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 14px rgba(192, 132, 252, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all .2s;
}
.task-list-create-btn:hover {
    box-shadow:
        0 6px 22px rgba(236, 72, 153, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.task-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.task-list-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    padding: 60px 0;
    line-height: 1.8;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

/* ===== 任务卡片（美化）===== */
.task-card {
    position: relative;
    border-radius: 16px;
    padding: 16px 18px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .25s,
                background-color .25s;
    background-color: rgba(30, 20, 45, 0.72);
    background-image:
        radial-gradient(circle at 90% 0%, rgba(192, 132, 252, 0.14), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.1), transparent 55%);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    isolation: isolate;
}

/* 渐变描边 */
.task-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(192, 132, 252, 0.5) 0%,
        rgba(192, 132, 252, 0.06) 45%,
        rgba(236, 72, 153, 0.06) 55%,
        rgba(236, 72, 153, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    transition: background .25s;
}

/* 角标装饰 */
.task-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-top: 1.5px solid rgba(192, 132, 252, 0.5);
    border-left: 1.5px solid rgba(192, 132, 252, 0.5);
    border-top-left-radius: 16px;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity .25s, border-color .25s;
}

.task-card:hover {
    transform: translateY(-2px);
    background-color: rgba(40, 25, 60, 0.85);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(192, 132, 252, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.task-card:hover::before {
    background: linear-gradient(135deg,
        rgba(192, 132, 252, 0.9) 0%,
        rgba(192, 132, 252, 0.2) 45%,
        rgba(236, 72, 153, 0.2) 55%,
        rgba(236, 72, 153, 0.9) 100%);
}
.task-card:hover::after {
    opacity: 1;
    border-color: rgba(236, 72, 153, 0.85);
}

.task-card-title {
    position: relative;
    z-index: 2;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
    padding-right: 70px;
    letter-spacing: 0.5px;
    line-height: 1.35;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
}
.task-card-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}
.task-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}
.task-badge.diff-easy {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}
.task-badge.diff-normal {
    background: rgba(192, 132, 252, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.25);
}
.task-badge.diff-hard {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.25);
}
.task-badge.type {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 状态徽章 */
.task-card-status {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.35);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    z-index: 3;
}
.task-card-status.paused {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.35);
}
.task-card-status.done {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.35);
}
.task-card-status.fail {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ===== 任务页 ===== */
.task-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    position: relative;
}
.task-page.active { display: flex; }

.task-header {
    display: flex;
    align-items: center;
    padding: 6px 0 12px;
    flex-shrink: 0;
    gap: 10px;
    position: relative;
}
.task-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(192, 132, 252, 0.55) 50%,
        transparent 100%);
}
.task-back {
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
    padding: 0 4px;
    line-height: 1;
    transition: text-shadow .2s;
}
.task-back:hover {
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.9);
}
.task-header-title {
    flex: 1;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}
.task-abandon-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.task-abandon-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* ===== 顶部信息区（美化）===== */
.task-info-area {
    position: relative;
    flex-shrink: 0;
    padding: 14px 16px;
    margin: 12px 0;
    border-radius: 16px;
    background-color: rgba(30, 20, 45, 0.7);
    background-image:
        radial-gradient(circle at 100% 0%, rgba(192, 132, 252, 0.15), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.1), transparent 55%);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    isolation: isolate;
}
.task-info-area::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(192, 132, 252, 0.5) 0%,
        rgba(192, 132, 252, 0.08) 45%,
        rgba(236, 72, 153, 0.08) 55%,
        rgba(236, 72, 153, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.task-info-area > * {
    position: relative;
    z-index: 2;
}

.task-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.task-info-scenario {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.3px;
    font-style: italic;
    padding-left: 10px;
    border-left: 2px solid rgba(192, 132, 252, 0.35);
}
.task-info-goal-label {
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}
.task-info-goal {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    font-family: 'Noto Serif SC', serif;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* 回合球 */
.task-rounds-orb {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(192, 132, 252, 0.35), transparent 60%),
        rgba(30, 20, 45, 0.85);
    border: 1.5px solid rgba(192, 132, 252, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 16px rgba(192, 132, 252, 0.4),
        0 0 32px rgba(192, 132, 252, 0.15),
        inset 0 0 12px rgba(192, 132, 252, 0.15);
    position: relative;
}
.task-rounds-orb::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(192, 132, 252, 0.35);
    animation: taskOrbRotate 20s linear infinite;
}
@keyframes taskOrbRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.task-rounds-orb-num {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(192, 132, 252, 0.7);
}
.task-rounds-orb-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1.5px;
    margin-top: 3px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

/* 进度条 */
.task-progress-wrap {
    flex: 1;
    min-width: 0;
}
.task-progress-name-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.task-progress-name {
    font-size: 12px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Noto Serif SC', serif;
}
.task-progress-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c084fc 0%, #ec4899 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
    transition: width .45s cubic-bezier(.34, 1.56, .64, 1);
}
.task-progress-target {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}
.task-progress-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

/* 短词提示胶囊 */
.task-hints-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 2px;
}
.task-hint-pill {
    display: inline-block;
    padding: 3px 11px;
    font-size: 11px;
    color: #d8b4fe;
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.32);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.15);
}

/* ===== 演绎区 ===== */
.task-play-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 4px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-msg {
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text);
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(192, 132, 252, 0.18);
    border-radius: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.task-msg.narration {
    background: linear-gradient(135deg,
        rgba(192, 132, 252, 0.08) 0%,
        rgba(192, 132, 252, 0.04) 100%);
    border-color: rgba(192, 132, 252, 0.25);
    color: rgba(255, 255, 255, 0.92);
    font-style: normal;
    position: relative;
    padding-left: 22px;
}
.task-msg.narration::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(180deg, #c084fc, #ec4899);
    border-radius: 2px;
    opacity: 0.7;
}
.task-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #c084fc, #ec4899);
    color: #fff;
    border: none;
    max-width: 80%;
    font-style: normal;
    font-family: system-ui, sans-serif;
    box-shadow:
        0 4px 14px rgba(192, 132, 252, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.task-msg-score {
    align-self: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary);
    padding: 4px 14px;
    background: rgba(192, 132, 252, 0.1);
    border-radius: 999px;
    border: 1px solid rgba(192, 132, 252, 0.35);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}
.task-msg-score.minus {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.task-msg.hint {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    font-style: normal;
    font-size: 13px;
}

/* ===== 加载点（只有点）===== */
.task-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
}
.task-loading-dots {
    display: inline-flex;
    gap: 6px;
}
.task-loading-dots span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
    animation: taskDot 1.2s ease-in-out infinite;
}
.task-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.task-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes taskDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1;   transform: scale(1.3); }
}

/* ===== 底部输入区 ===== */
.task-input-area {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--border);
    position: relative;
}
.task-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.task-option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 12px;
    padding: 11px 15px;
    color: var(--text);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    transition: all .2s;
    line-height: 1.5;
    letter-spacing: 0.3px;
}
.task-option-btn:hover {
    background: rgba(192, 132, 252, 0.14);
    border-color: rgba(192, 132, 252, 0.55);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.25);
    transform: translateX(2px);
}
.task-option-btn.custom {
    border-style: dashed;
    color: var(--primary);
    font-family: system-ui, sans-serif;
    text-align: center;
}

.task-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.task-input-row input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 22px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.task-input-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18);
}
.task-input-row input::placeholder {
    color: var(--text-dim);
}
.task-input-row input:disabled {
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
}
.task-send-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #c084fc, #ec4899);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 14px rgba(192, 132, 252, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all .2s;
}
.task-send-btn:hover {
    box-shadow:
        0 6px 22px rgba(236, 72, 153, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}
.task-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示按钮 */
.task-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    color: #fcd34d;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    letter-spacing: 0.3px;
}
.task-hint-btn:hover:not(:disabled) {
    background: rgba(251, 191, 36, 0.22);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}
.task-hint-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.task-info-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.task-submit-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #c084fc, #ec4899);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    box-shadow:
        0 3px 12px rgba(192, 132, 252, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all .2s;
}
.task-submit-btn:hover {
    box-shadow:
        0 4px 18px rgba(236, 72, 153, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* ===== 接取任务弹窗 ===== */
.task-create-modal .modal-box {
    max-width: 92%;
}
.task-create-field {
    margin-bottom: 14px;
}
.task-create-field label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-family: 'Noto Serif SC', serif;
}
.task-create-field input[type="text"],
.task-create-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(192, 132, 252, 0.22);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.task-create-field input:focus,
.task-create-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18);
}
.task-create-field textarea {
    resize: vertical;
    min-height: 50px;
}
.task-diff-row,
.task-type-row {
    display: flex;
    gap: 8px;
}
.task-diff-btn,
.task-type-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    transition: all .2s;
}
.task-diff-btn:hover,
.task-type-btn:hover {
    background: rgba(192, 132, 252, 0.1);
}
.task-diff-btn.active,
.task-type-btn.active {
    background: linear-gradient(135deg,
        rgba(192, 132, 252, 0.25) 0%,
        rgba(236, 72, 153, 0.25) 100%);
    border-color: rgba(192, 132, 252, 0.7);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.35);
}
.task-create-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.5;
    text-align: center;
    font-style: italic;
}