:root {
    --bg: #f3f6fd;
    --bg-2: #eef2fb;
    --card: #ffffff;
    --text: #1d2333;
    --text-2: #4b5368;
    --muted: #8b92a8;
    --primary: #4f6cf6;
    --primary-2: #6a63f5;
    --primary-soft: #eef1ff;
    --border: #e9edf7;
    --border-strong: #dfe4f2;
    --gold: #b7791f;
    --danger: #e5484d;
    --success: #1a9f61;
    --radius: 18px;
    --shadow: 0 12px 34px rgba(31, 45, 90, 0.05);
    --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

svg {
    display: block;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.is-hidden {
    display: none !important;
}

/* ---------- App shell ---------- */
.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 16px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(226, 232, 247, 0.9);
    z-index: 30;
}

.brand {
    width: 66px;
    height: 46px;
    display: grid;
    place-items: center;
}

.brand img {
    width: 62px;
    height: auto;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 34px;
    width: 100%;
    align-items: center;
}

.side-item {
    width: 72px;
    padding: 10px 4px 9px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #7c839a;
    font-size: 12px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-item svg {
    width: 22px;
    height: 22px;
}

.side-item:hover {
    color: var(--primary);
    background: #f2f5ff;
}

.side-item.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}

.side-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.side-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #7c839a;
    border-radius: 10px;
}

.side-icon:hover {
    background: #f2f5ff;
    color: var(--primary);
}

.side-icon svg {
    width: 21px;
    height: 21px;
}

.side-icon .dot {
    position: absolute;
    top: 1px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f04452;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
}

.side-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #b7c4ff, #8f9bff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    border: 0;
    background: transparent;
    color: #a0a6b8;
    font-size: 11px;
    padding: 2px 4px;
}

.logout-btn:hover {
    color: var(--danger);
}

.mobile-topbar {
    display: none;
}

.mobile-brand {
    flex: none;
    display: flex;
    align-items: center;
}

.mobile-brand img {
    width: 34px;
    height: auto;
}

.mobile-nav {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav a {
    flex: none;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    color: #7c839a;
    white-space: nowrap;
}

.mobile-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}

.mobile-msg {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #7c839a;
    border-radius: 10px;
}

.mobile-msg svg {
    width: 20px;
    height: 20px;
}

.mobile-logout-form {
    margin: 0;
    flex: none;
}

.mobile-logout {
    border: 0;
    background: transparent;
    color: #a0a6b8;
    font-size: 12px;
    padding: 6px 4px;
    white-space: nowrap;
}

.main-area {
    margin-left: 92px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.watermark {
    position: fixed;
    inset: 0 0 0 92px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='190'%3E%3Ctext x='12' y='60' fill='%23dfe5f3' font-family='Arial' font-size='13' transform='rotate(-18 12 60)'%3EWUJIE EXPERT%3C/text%3E%3C/svg%3E");
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 34px 44px 16px;
    flex: 1;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    text-align: center;
    padding: 18px 20px 26px;
    color: #9aa1b5;
    font-size: 12px;
}

.site-footer strong {
    color: #6c7590;
    font-weight: 600;
}

.site-footer-links {
    display: inline-flex;
    gap: 14px;
}

.site-footer-links a {
    color: #8b93ad;
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: var(--primary);
}

/* ---------- Shared ---------- */
.page-head {
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.page-head .page-sub {
    margin: 10px 0 0;
    color: #6f778d;
    font-size: 14.5px;
}

.page-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: var(--text);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #5b7cfa, #6a63f5);
    color: #fff;
    box-shadow: 0 8px 18px rgba(86, 103, 240, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 10px 22px rgba(86, 103, 240, 0.32);
}

.btn-ghost {
    background: #fff;
    border-color: var(--border-strong);
    color: #4b5368;
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-xs {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    cursor: default;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    padding: 0;
    font-weight: 500;
}

.link-btn.danger {
    color: var(--danger);
}

.link-btn:hover {
    text-decoration: underline;
}

.flash {
    margin-bottom: 16px;
    padding: 11px 16px;
    border-radius: 12px;
    background: #eaf8f0;
    color: #17794c;
    border: 1px solid #cfeee0;
    font-size: 13.5px;
}

.flash-error,
.form-error {
    background: #fff1f0;
    border: 1px solid #ffd9d7;
    color: var(--danger);
}

.form-error {
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 13px;
    margin: 0 0 14px;
}

.form-error:empty {
    display: none;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.card-head .muted {
    font-size: 12.5px;
}

.card-head .link-btn {
    margin-left: auto;
}

.card-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.card-title-icon svg {
    width: 21px;
    height: 21px;
}

.card-title-icon.education {
    background: #eef3ff;
    color: #4f7df6;
}

.card-title-icon.work {
    background: #fff6e9;
    color: #d79a2b;
}

.card-title-icon.skill {
    background: #f1efff;
    color: #7b67e8;
}

.card-head > div:nth-child(2) {
    min-width: 0;
}

.card-head > .btn {
    margin-left: auto;
}

.tag-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 8px;
}

.status-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: #f2f4fa;
    color: #6b7288;
    white-space: nowrap;
}

.status-pill.pending {
    background: #fff7e6;
    color: #b7791f;
}

.status-pill.settled {
    background: #eef3ff;
    color: #4467e8;
}

.status-pill.cashable {
    background: #eaf8f0;
    color: #17794c;
}

.status-pill.done {
    background: #f2f4fa;
    color: #7a8298;
}

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

.toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%) translateY(8px);
    background: rgba(29, 35, 51, 0.92);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Workbench todo / my work ---------- */
.todo-card,
.my-work-card {
    padding: 20px 22px;
    margin-bottom: 20px;
}

.todo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.todo-item {
    border: 1px solid #eef1fa;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fbfcff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.16s ease;
}

.todo-item:hover {
    border-color: #dbe3f7;
    background: #f7f9ff;
    transform: translateY(-1px);
}

.todo-item b {
    color: #1d2333;
    font-size: 24px;
    line-height: 1.2;
}

.todo-item span {
    color: #4b5368;
    font-size: 13px;
    font-weight: 600;
}

.todo-item small {
    color: #9aa1b5;
    font-size: 11.5px;
}

.my-work-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.my-work-tabs a {
    padding: 10px 18px;
    border: 1px solid #eef1fa;
    border-radius: 10px;
    background: #fbfcff;
    color: #4b5368;
    font-size: 13px;
}

.my-work-tabs a:hover {
    border-color: #dbe3f7;
    color: var(--primary);
}

.my-work-tabs a b {
    color: var(--primary);
    margin-left: 4px;
}

@media (max-width: 900px) {
    .todo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .todo-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Workbench ---------- */
.workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.workbench-main,
.workbench-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.task-card {
    padding: 26px 28px;
    min-height: 340px;
}

.empty-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 6px 4px;
}

.empty-task-copy h2 {
    margin: 6px 0 0;
    font-size: 25px;
    letter-spacing: -0.3px;
}

.empty-task-copy p {
    margin: 12px 0 24px;
    color: #6f778d;
    font-size: 13.5px;
    line-height: 1.9;
}

.empty-art {
    width: 260px;
    flex: 0 0 auto;
}

.empty-art svg {
    width: 100%;
}

.task-list .card-head {
    margin-bottom: 10px;
}

.task-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    border-top: 1px solid #f3f5fb;
}

.task-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5b7cfa;
    box-shadow: 0 0 0 5px #eef1ff;
    margin: 0 6px;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-info h3 {
    margin: 0;
    font-size: 15px;
}

.task-info p {
    margin: 5px 0 0;
    font-size: 12px;
}

.journey-card {
    padding: 22px 26px 24px;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.journey-step {
    border: 1px solid #eef1fa;
    border-radius: 14px;
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}

.step-no {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #a9b0c4;
}

.step-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin: 10px 0 12px;
}

.step-icon svg {
    width: 19px;
    height: 19px;
}

.journey-step h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
}

.journey-step p {
    margin: 0;
    color: #858da2;
    font-size: 12.5px;
    line-height: 1.7;
}

.invite-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px 24px 22px;
    min-height: 172px;
    background: linear-gradient(125deg, #cfdcff 0%, #e2e9ff 44%, #cfeaff 100%);
    color: #263252;
    box-shadow: 0 14px 30px rgba(92, 115, 190, 0.14);
}

.invite-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #47557a;
}

.invite-brand img {
    width: 54px;
    height: auto;
}

.invite-banner h3 {
    margin: 12px 0 14px;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: -0.3px;
}

.invite-banner em {
    font-style: normal;
    color: #5148d8;
    font-size: 26px;
}

.invite-btn {
    display: inline-block;
    background: linear-gradient(135deg, #5b7cfa, #6a63f5);
    color: #fff;
    border-radius: 9px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(86, 103, 240, 0.25);
}

.invite-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 68%);
}

.recommend-card {
    padding: 20px 22px 8px;
}

.recommend-list {
    margin-top: 6px;
}

.recommend-item {
    padding: 15px 0 14px;
    border-top: 1px solid #f1f3fa;
}

.recommend-item:first-child {
    border-top: 0;
}

.recommend-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.recommend-item > p {
    margin: 8px 0 12px;
    color: #7d859b;
    font-size: 12.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price b {
    font-size: 18px;
    color: #232a3c;
}

.price span {
    color: #8b92a8;
    font-size: 12px;
}

/* ---------- Two-step application ---------- */
.apply-modal {
    width: 560px;
}

.apply-step-indicator {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eef1fa;
}

.apply-step-indicator span {
    padding-bottom: 9px;
    color: #8b92a8;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.apply-step-indicator span.active {
    color: #1d2333;
    font-weight: 600;
    border-bottom-color: var(--primary);
}

.apply-step-body {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 4px;
}

.apply-step-body h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.apply-step-body > p {
    margin: 0 0 14px;
    color: #8b92a8;
    font-size: 12.5px;
    line-height: 1.7;
}

.apply-summary {
    background: #f7f9ff;
    border: 1px solid #eef1fa;
    border-radius: 10px;
    padding: 14px;
    color: #5d6478;
    font-size: 13px;
    line-height: 1.8;
}

.apply-field {
    margin-top: 12px;
}

.apply-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 12px;
    border: 1px solid #e4e9f5;
    border-radius: 10px;
    background: #fff;
}

.apply-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    color: #3c445a;
    font-size: 13px;
    cursor: pointer;
}

.apply-radio-group input {
    accent-color: var(--primary);
}

.apply-file-status {
    display: block;
    margin-top: 4px;
    color: #8b92a8;
    font-size: 12px;
}

.apply-file-status a {
    color: var(--primary);
}

/* ---------- Tasks ---------- */
.task-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.task-overview-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(31, 45, 90, 0.035);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(45, 66, 130, 0.1);
}

.task-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-overview-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.task-overview-card > p {
    margin: 0;
    font-size: 12.5px;
}

.task-overview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f5fb;
    color: #6f778d;
    font-size: 12.5px;
}

.task-overview-foot b {
    color: #232a3c;
    font-size: 15px;
}

.link-text {
    color: var(--primary);
}

.detail-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.back-link {
    color: #8b92a8;
    font-size: 12.5px;
}

.detail-page-head h1 {
    margin: 10px 0 0;
    font-size: 26px;
}

.status-pill.big {
    padding: 6px 13px;
    font-size: 13px;
}

.task-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-detail-stack .task-info-card,
.task-detail-stack .task-alert {
    margin-bottom: 0;
}

.task-info-card {
    padding: 20px 24px;
    margin-bottom: 20px;
}

.task-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.task-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-info-grid b {
    font-size: 15px;
}

.task-alert {
    background: #fff7e6;
    border: 1px solid #f5e6c9;
    color: #8a5a12;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.task-alert b {
    display: block;
    margin-bottom: 5px;
}

.task-alert p {
    margin: 0;
    font-size: 13px;
}

.task-submit-form {
    padding-top: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.task-done-banner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.task-done-banner h3 {
    margin: 0 0 5px;
}

.task-done-banner p {
    margin: 0;
    font-size: 12.5px;
}

.task-done-banner .btn {
    margin-left: auto;
}

.done-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e7f8ef;
    color: #1a9f61;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 700;
}

.submission-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.submission-item {
    border: 1px solid #eef1fa;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fbfcff;
}

.submission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.submission-content {
    margin: 10px 0 8px;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #3c445a;
}

.attachment-link {
    display: inline-block;
    font-size: 12.5px;
    color: var(--primary);
    margin-top: 4px;
}

.review-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #b26b00;
    background: #fff8ea;
    border-radius: 8px;
    padding: 8px 10px;
}

.question-content {
    margin: 0;
    color: #3c445a;
    font-size: 13.5px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.tab-count {
    display: inline-block;
    min-width: 17px;
    padding: 0 5px;
    margin-left: 3px;
    border-radius: 999px;
    background: #eef1ff;
    color: var(--primary);
    font-size: 11px;
    line-height: 17px;
    text-align: center;
}

@media (max-width: 1080px) {
    .task-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .task-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-page-head {
        flex-direction: column;
    }

    .task-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Projects ---------- */
.invite-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(120deg, #eef3ff, #f4f7ff);
    border: 1px solid #e6ecff;
    color: #4f6cf6;
    font-size: 13px;
    white-space: nowrap;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 26px;
    border-bottom: 1px solid #e9edf7;
    margin-top: 18px;
}

.tab {
    padding: 9px 2px 12px;
    color: #7b8398;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-family: inherit;
    cursor: pointer;
}

.tab.active {
    color: var(--text);
    font-weight: 600;
    border-bottom-color: #4f6cf6;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 22px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 320px;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    color: #9aa1b5;
}

.search-box svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.search-box input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 13.5px;
    color: var(--text);
    background: transparent;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill {
    border: 1px solid #e6eaf5;
    background: #fff;
    color: #5d6478;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
}

.toggle-pill {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill.active {
    background: var(--primary-soft);
    border-color: #dfe4ff;
    color: var(--primary);
    font-weight: 600;
}

.sort-dropdown .filter-dropdown-panel {
    min-width: 132px;
    padding: 6px;
}

.menu-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #4e5969;
    font-family: inherit;
    font-size: 13px;
    line-height: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.menu-option:hover {
    background: #f4f6fb;
}

.menu-option.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-soft);
}

.list-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    margin: 8px 0 4px;
    font-size: 13px;
    color: #9aa1b5;
}

.list-sentinel {
    height: 1px;
}

.category-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    background: #fff;
    border: 1px solid #e6eaf5;
    border-radius: 10px;
    color: #5d6478;
    font-size: 13px;
}

.filter-dropdown > summary::-webkit-details-marker {
    display: none;
}

.filter-dropdown[open] > summary {
    border-color: #dfe4ff;
    color: var(--primary);
}

.dd-caret {
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
}

.filter-dropdown[open] .dd-caret {
    transform: rotate(180deg);
}

.dd-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.dd-count[hidden] {
    display: none;
}

.filter-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(31, 45, 90, 0.12);
    padding: 6px;
    z-index: 40;
}

.option-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text);
}

.option-row:hover {
    background: var(--primary-soft);
}

.option-row input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.5px solid #c9d2e0;
    border-radius: 5px;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.check svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.option-row input:checked + .check {
    background: var(--primary);
    border-color: var(--primary);
}

.option-row input:checked + .check svg {
    opacity: 1;
}

.option-row input:focus-visible + .check {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.refresh-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e6eaf5;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #7b8398;
    background: #fff;
}

.refresh-btn svg {
    width: 17px;
    height: 17px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    min-height: 214px;
    box-shadow: 0 6px 20px rgba(31, 45, 90, 0.035);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: #dfe6fb;
    box-shadow: 0 16px 34px rgba(45, 66, 130, 0.1);
}

.project-card-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card-head h3 {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.5;
    flex: 1;
    min-width: 180px;
}

.referral-badge,
.invited-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
}

.referral-badge {
    background: #fff6e8;
    color: #b26b00;
}

.invited-badge {
    background: #eef7ff;
    color: #2b7bbb;
}

.cycle-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    background: #f0f4ff;
    color: #4c5fd5;
}

.domain-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    background: #f3ecff;
    color: #7c5cd6;
}

.project-desc {
    margin: 10px 0 16px;
    color: #7d859b;
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.project-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.project-card-foot .price b {
    font-size: 19px;
}

.empty-state {
    text-align: center;
    padding: 54px 20px 50px;
    margin-top: 8px;
}

.empty-state-art {
    width: 180px;
    margin: 0 auto 8px;
}

.empty-state-art svg {
    width: 100%;
}

.empty-state h3 {
    margin: 6px 0 8px;
    font-size: 18px;
}

.empty-state p {
    margin: 0 0 18px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px 0 8px;
}

.pager-btn,
.pager-num {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6eaf5;
    border-radius: 9px;
    background: #fff;
    color: #5d6478;
    font-size: 13px;
}

.pager-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Drawer */
.drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 50, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 50;
}

.drawer-mask.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 570px;
    max-width: 94vw;
    background: #fff;
    z-index: 60;
    transform: translateX(102%);
    transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1);
    box-shadow: -20px 0 50px rgba(20, 30, 60, 0.16);
    display: flex;
    flex-direction: column;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #9aa1b5;
    line-height: 1;
    z-index: 2;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 34px 24px;
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 15px 24px;
    border-top: 1px solid #eef1f8;
    background: #fff;
}

.drawer-loading {
    color: #9aa1b5;
    font-size: 13px;
    padding: 30px 0;
    text-align: center;
}

.detail-title {
    margin: 0 40px 16px 0;
    font-size: 22px;
    line-height: 1.45;
}

.detail-price {
    color: #4f6cf6;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-price small {
    font-size: 13px;
    color: #8b92a8;
    font-weight: 400;
    margin-left: 4px;
}

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 18px 0 4px;
    padding: 14px 0;
    border-top: 1px solid #f1f3fa;
    border-bottom: 1px solid #f1f3fa;
    font-size: 13px;
}

.detail-meta span {
    color: #8b92a8;
}

.detail-meta b {
    color: #3c445a;
    font-weight: 500;
    margin-left: 8px;
}

.detail-section {
    margin-top: 22px;
}

.detail-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.detail-section p {
    margin: 0;
    color: #5d6478;
    font-size: 13.5px;
    line-height: 1.95;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-tag {
    display: inline-block;
    background: #fff6e8;
    color: #b26b00;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

/* ---------- Resume ---------- */
.resume-grid {
    display: grid;
    grid-template-columns: 372px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.resume-left {
    position: sticky;
    top: 22px;
}

.basic-card {
    padding: 24px;
}

.basic-card .card-head {
    align-items: flex-start;
}

.basic-card .card-head > div:nth-child(2) {
    flex: 1;
}

.completeness {
    background: #f7f9ff;
    border: 1px solid #eef1fa;
    border-radius: 13px;
    padding: 14px 15px;
    margin: 18px 0 6px;
}

.completeness-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #5d6478;
}

.completeness-top b {
    color: var(--primary);
}

.progress {
    height: 8px;
    background: #e4eaf8;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0 9px;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6a8bff, #5b6cf6);
}

.completeness-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.info-list {
    margin: 12px 0 0;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 2px;
    border-bottom: 1px solid #f2f4fa;
}

.info-row dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b92a8;
    font-size: 13px;
}

.info-row dt svg {
    width: 17px;
    height: 17px;
    color: #9aa1b5;
}

.info-row dd {
    margin: 0;
    font-size: 13.5px;
    color: #333b51;
    text-align: right;
    word-break: break-all;
}

.resume-file-block,
.cert-block {
    border-top: 1px solid #f2f4fa;
    margin-top: 14px;
    padding-top: 16px;
}

.resume-file-block h3,
.cert-block h3 {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #3c445a;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eef1f8;
    background: #fafbff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.file-ext {
    width: 38px;
    height: 42px;
    border-radius: 7px;
    background: #ffebe9;
    color: #e5484d;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.file-meta b {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta small {
    color: #9aa1b5;
    font-size: 11.5px;
}

.upload-form {
    margin: 0;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #d6ddf2;
    border-radius: 11px;
    padding: 11px;
    color: #6b7590;
    font-size: 12.5px;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #b9c6f7;
    color: var(--primary);
}

.upload-box input {
    display: none;
}

.upload-plus {
    color: var(--primary);
    font-size: 16px;
}

.cert-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cert-block h3 {
    margin: 0;
}

.resume-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.resume-right .card {
    padding: 22px 24px;
}

.resume-right .card-head {
    align-items: flex-start;
    margin-bottom: 10px;
}

.warn-badge {
    display: inline-block;
    vertical-align: middle;
    background: #fff6e2;
    color: #b7791f;
    font-size: 11px;
    font-weight: 500;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 6px;
}

.timeline {
    position: relative;
    margin: 8px 0 0 6px;
    padding-left: 22px;
    border-left: 1px solid #edf0f8;
}

.timeline-item {
    position: relative;
    padding: 13px 0;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 21px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c9d5fb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dbe3f7;
}

.timeline-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.timeline-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
}

.timeline-head .role {
    display: inline-block;
    margin-left: 8px;
    font-weight: 400;
    color: #5d6478;
    background: #f4f6fc;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 12px;
}

.timeline-head .muted {
    white-space: nowrap;
    font-size: 12px;
}

.timeline-main p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.8;
}

.timeline-main .work-desc {
    color: #6f778d;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 0;
    bottom: 10px;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.timeline-item:hover .row-actions {
    opacity: 1;
}

.row-actions form {
    margin: 0;
}

.empty-inline {
    padding: 12px 0 6px;
}

.empty-inline p {
    margin: 0;
    font-size: 13px;
}

.skill-group + .skill-group {
    margin-top: 16px;
}

.skill-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6f778d;
    font-weight: 500;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f7ff;
    color: #43507a;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12.5px;
}

.tag form {
    margin: 0;
}

.tag form button {
    border: 0;
    background: transparent;
    color: #a3a9bb;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.tag form button:hover {
    color: var(--danger);
}

.tag-add {
    border: 1px dashed #cfd8f2;
    background: #fff;
    color: #6b7590;
}

/* ---------- Verification ---------- */
.verify-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.verify-card {
    padding: 24px;
}

.verify-card .card-head {
    margin-bottom: 10px;
}

.verify-info {
    background: #f8faff;
    border: 1px solid #eef1fa;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verify-info > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.verify-info span {
    color: #8b92a8;
    flex: 0 0 auto;
}

.verify-info b {
    color: #3c445a;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.verify-info a {
    color: var(--primary);
}

.verify-reject {
    color: #d33a3f !important;
}

.verify-tip {
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f7f9ff;
    color: #6f778d;
    font-size: 12.5px;
}

.verify-form {
    margin-top: 14px;
}

@media (max-width: 960px) {
    .verify-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Messages / tickets / certificates ---------- */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 6px 20px rgba(31, 45, 90, 0.03);
}

.message-item.unread {
    border-left: 3px solid var(--primary);
    background: #fbfcff;
}

.message-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.message-head b {
    font-size: 15px;
    margin-left: 8px;
}

.message-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    vertical-align: 1px;
}

.message-content {
    margin: 10px 0 8px;
    color: #5d6478;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.ticket-create-card {
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ticket-form {
    max-width: 720px;
}

.ticket-list {
    display: flex;
    flex-direction: column;
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 2px;
    border-bottom: 1px solid #f2f4fa;
}

.ticket-item:last-child {
    border-bottom: 0;
}

.ticket-item b {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.ticket-item small {
    display: block;
    margin-top: 4px;
    color: #9aa1b5;
    font-size: 11.5px;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.cert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fafbff;
    border: 1px solid #eef1f8;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
}

.cert-item a {
    color: #3c445a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cert-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cert-form input[type=text] {
    flex: 1;
    min-width: 160px;
    border: 1px solid #e4e9f5;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12.5px;
    outline: 0;
}

.cert-form input[type=file] {
    flex: 1;
    min-width: 180px;
    font-size: 12px;
}

/* ---------- Wallet ---------- */
.wallet-summary {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 28px;
    background: linear-gradient(120deg, #fbfcff, #f3f6ff);
}

.wallet-balance {
    min-width: 320px;
}

.balance-label {
    font-size: 13px;
    color: #5d6478;
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5b7cfa;
    color: #fff;
    font-size: 10px;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
}

.balance-amount {
    margin: 10px 0 8px;
    font-size: 17px;
    color: #232a3c;
}

.balance-amount b {
    font-size: 34px;
    letter-spacing: -1px;
    font-weight: 700;
}

.balance-meta {
    display: flex;
    gap: 22px;
    color: #8b92a8;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.balance-meta b {
    color: #3c445a;
    font-weight: 500;
    margin-left: 4px;
}

.wallet-auth {
    flex: 1;
    max-width: 560px;
    background: #fff;
    border: 1px solid #eef1f9;
    border-radius: 14px;
    padding: 16px 18px;
    align-self: center;
}

.auth-tip {
    display: inline-block;
    background: #fff8ea;
    color: #b7791f;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    margin-bottom: 14px;
}

.auth-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #4b5368;
}

.auth-no {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
}

.auth-step.done .auth-no {
    background: #e7f8ef;
    color: #1a9f61;
}

.auth-arrow {
    color: #c1c7d8;
}

.auth-steps .btn {
    margin-left: auto;
}

.wallet-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 16px;
}

.wallet-filters .input {
    width: 238px;
    flex: 0 0 auto;
}

.wallet-filters .date-range .input {
    width: 142px;
}

.wallet-filters .btn {
    flex: 0 0 auto;
    padding: 9px 18px;
}

.input {
    width: 100%;
    border: 1px solid #e6eaf5;
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text);
    outline: 0;
}

.input:focus {
    border-color: #b9c6f7;
    box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.1);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-range .muted {
    white-space: nowrap;
}

.date-range .input {
    min-width: 0;
}

.wallet-table-card {
    padding: 6px 8px 8px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th {
    text-align: left;
    font-size: 12.5px;
    font-weight: 500;
    color: #707891;
    background: #f8faff;
    padding: 12px 12px;
    white-space: nowrap;
}

.data-table th:first-child {
    border-radius: 10px 0 0 10px;
}

.data-table th:last-child {
    border-radius: 0 10px 10px 0;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f3f5fb;
    font-size: 13px;
    color: #3c445a;
    vertical-align: middle;
}

.data-table td b {
    font-weight: 500;
    display: block;
}

.data-table td small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table-empty {
    text-align: center;
    padding: 44px 20px 48px;
    color: #9aa1b5;
}

.table-empty svg {
    width: 150px;
    margin: 0 auto 12px;
}

.table-empty h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #8b92a8;
}

.table-empty p {
    margin: 6px 0 0;
    font-size: 12.5px;
}

.withdraw-body {
    padding-top: 4px;
}

.withdraw-body .muted {
    font-size: 13px;
    margin: 0 0 14px;
}

/* ---------- Activity ---------- */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.2px;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.campaign-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e9edfb;
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    min-height: 230px;
    overflow: hidden;
    background: linear-gradient(120deg, #f7f9ff, #eef3ff);
}

.campaign-referral {
    background: linear-gradient(120deg, #eef2ff, #eef9ff);
}

.campaign-copy {
    flex: 1;
    min-width: 0;
}

.campaign-copy h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.campaign-emoji {
    margin-right: 4px;
}

.campaign-desc {
    margin: 9px 0 14px;
    color: #727b92;
    font-size: 12.5px;
    line-height: 1.7;
}

.campaign-steps {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.campaign-step {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 130px;
}

.step-ico {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #5b6cf6;
    margin-bottom: 2px;
}

.campaign-step b {
    font-size: 12px;
    font-weight: 600;
    color: #3c445a;
}

.campaign-step small {
    font-size: 11px;
    color: #8b92a8;
    line-height: 1.5;
}

.campaign-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.campaign-visual {
    width: 180px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-window {
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(60, 80, 140, 0.08);
    border-radius: 12px;
    padding: 13px 13px;
    backdrop-filter: blur(6px);
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    font-size: 11px;
    color: #4b5368;
    border-bottom: 1px dashed #e6ebf8;
}

.mini-row:last-child {
    border-bottom: 0;
}

.mini-row i {
    margin-left: auto;
    color: #59b98a;
    font-style: normal;
}

.mini-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #dfe6ff;
}

.mini-project {
    padding: 16px;
}

.mini-project-title {
    font-size: 12px;
    color: #3c445a;
    margin-bottom: 8px;
}

.mini-project-tag {
    display: inline-block;
    background: #fff2de;
    color: #b7791f;
    border-radius: 999px;
    font-size: 10px;
    padding: 3px 7px;
    margin-bottom: 12px;
}

.mini-project-line {
    height: 7px;
    border-radius: 4px;
    background: #e6ecff;
    margin-bottom: 7px;
}

.mini-project-line.short {
    width: 62%;
}

.leaderboard-card {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 26px;
    padding: 24px 26px;
    background: linear-gradient(120deg, #fffbf3, #fffdf8);
    border-color: #f4e7cf;
}

.leaderboard-label {
    display: inline-block;
    background: #fff3db;
    color: #b7791f;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.leaderboard-intro h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.leaderboard-intro p {
    margin: 0 0 18px;
    font-size: 12.5px;
    line-height: 1.8;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-row {
    display: grid;
    grid-template-columns: 30px 36px minmax(0, 1fr) 76px 112px;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #f6eddd;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-no {
    font-size: 15px;
    font-weight: 700;
    color: #b7791f;
    text-align: center;
}

.rank-no.top {
    color: #d97706;
}

.rank-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef1ff;
    color: #5b6cf6;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
}

.rank-name {
    font-size: 13px;
    color: #3c445a;
}

.rank-label {
    text-align: right;
}

.rank-amount {
    text-align: right;
    font-size: 13.5px;
    font-weight: 700;
    color: #b7791f;
    font-variant-numeric: tabular-nums;
}

.community-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
}

.community-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.community-card p {
    margin: 0;
    font-size: 12.5px;
}

.invite-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f8faff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.invite-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.invite-stats b {
    font-size: 20px;
    color: #3c445a;
}

.invite-stats span {
    font-size: 11.5px;
    color: #8b92a8;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row .input {
    flex: 1;
}

.rank-modal-list {
    max-height: 58vh;
    overflow-y: auto;
    margin-top: 6px;
}

/* ---------- Modals ---------- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 44, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 80;
}

.modal-mask.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 540px;
    max-width: 94vw;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 22px 26px 24px;
    box-shadow: 0 30px 70px rgba(20, 30, 60, 0.22);
    transform: translateY(8px);
    transition: transform 0.2s ease;
}

.modal-mask.open .modal {
    transform: translateY(0);
}

.modal-sm {
    width: 430px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.modal-head h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    border: 0;
    background: transparent;
    color: #9aa1b5;
    font-size: 24px;
    line-height: 1;
}

/* ---------- 分享项目招募信息弹窗 ---------- */
.share-modal-x {
    position: relative;
    box-sizing: border-box;
    width: 440px;
    max-width: 94vw;
    max-height: 88vh;
    padding: 30px 36px;
    border-radius: 20px;
    background: linear-gradient(145deg, #fffef9 0%, #ffffff 48%, #f8fbff 100%);
    box-shadow: 0 18px 48px rgba(31, 35, 41, 0.12);
    color: #42464e;
    font-size: 13px;
    line-height: 20px;
    overflow-y: auto;
}

.share-x-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #4e5969;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.share-x-close:hover {
    color: #1f2329;
    background: rgba(31, 35, 41, 0.05);
}

.share-x-title {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #1f2329;
    text-align: center;
}

.share-x-tabs {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 40px;
    padding: 3px;
    margin: 0 7px 22px;
    background: #f2f4f7;
    border-radius: 11px;
}

.share-x-tab {
    flex: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4e5969;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.share-x-tab.active {
    background: #ffffff;
    color: #1664ff;
    box-shadow: 0 3px 12px rgba(31, 35, 41, 0.07);
}

.share-x-tab-icon {
    width: 14px;
    height: 14px;
    flex: none;
}

.share-x-body {
    min-height: 338px;
}

.share-x-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-x-panel[hidden] {
    display: none;
}

.share-x-copycard {
    box-sizing: border-box;
    width: 100%;
    min-height: 270px;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(250, 252, 255, 0.9);
    border: 1px solid #dfe5ef;
    border-radius: 10px;
}

.share-x-prefix {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #3370ff;
}

.share-x-project {
    font-size: 15px;
    font-weight: 600;
    line-height: 23px;
    color: #1f2329;
}

.share-x-line {
    font-size: 14px;
    line-height: 24px;
    color: #4e5969;
}

.share-x-link {
    color: #1664ff;
    word-break: break-all;
}

.share-x-btn {
    box-sizing: border-box;
    width: 196px;
    height: 48px;
    margin-top: 20px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #1759dd;
    border-radius: 10px;
    background-image: linear-gradient(96deg, #3f6cff 0%, #3357ff 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.share-x-btn:hover {
    filter: brightness(1.06);
}

.share-x-btn:active {
    filter: brightness(0.96);
}

.share-x-posterbox {
    box-sizing: border-box;
    width: 100%;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    background: rgba(250, 252, 255, 0.82);
    border: 1px solid #dde3ec;
    border-radius: 10px;
    cursor: zoom-in;
}

.share-poster-scaler {
    flex: none;
    width: 280px;
    height: 470px;
    transform: scale(0.72);
    transform-origin: top center;
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 悬停放大预览，与目标站一致 */
.share-x-posterbox:hover .share-poster-scaler {
    transform: scale(0.8);
}

.share-poster-export {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 280px;
}

.share-poster-export .share-poster {
    box-shadow: none;
}

.share-poster {
    box-sizing: border-box;
    width: 280px;
    height: 470px;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(31, 35, 41, 0.1);
    font-family: inherit;
    color: #42464e;
    font-size: 13px;
    line-height: 20px;
}

.sp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.share-poster > * {
    flex: 0 0 auto;
}

.sp-logo {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #7b8cff 0%, #3f6cff 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.sp-brand-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #0c0d0e;
    white-space: nowrap;
}

.sp-brand-desc {
    font-size: 8px;
    line-height: 16px;
    color: #8a94a6;
}

.sp-title {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #0c0d0e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-reward {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background-image: linear-gradient(#f5f8ff 0%, #ffffff 100%);
}

.sp-reward-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    line-height: 14px;
    color: #4e5969;
}

.sp-reward-icon {
    width: 10px;
    height: 10px;
    flex: none;
    color: #1664ff;
}

.sp-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.sp-price-amount {
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    color: #1664ff;
}

.sp-price-unit {
    font-size: 10px;
    line-height: 14px;
    color: #4e5969;
}

.sp-section-title {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    color: #0c0d0e;
}

.sp-section-body {
    font-size: 9px;
    line-height: 13px;
    color: #0c0d0e;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-qr {
    margin-top: auto;
    padding-top: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sp-qr img,
.sp-qr canvas {
    display: block;
    width: 92px;
    height: 92px;
    border-radius: 4px;
    background: #ffffff;
}

.sp-qr-text {
    font-size: 9px;
    line-height: 13px;
    color: #737a87;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 15px;
}

.field > span {
    font-size: 13px;
    color: #5d6478;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #e4e9f5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: 0;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #b9c6f7;
    box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.1);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-hint {
    color: #d4820a;
    font-size: 12px;
    line-height: 1.5;
}

.field-hint[hidden] {
    display: none;
}

/* ---------- 学历认证 ---------- */
.cert-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cert-tag {
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    line-height: 18px;
    background: #f2f4f7;
    color: #6b7280;
}

.cert-tag.ok {
    background: #e8f7ee;
    color: #1a7f45;
}

.cert-tag.pending {
    background: #fff5e6;
    color: #b26a00;
}

.cert-tag.failed {
    background: #fdecec;
    color: #c0392b;
}

.cert-note {
    color: #c0392b;
}

.edu-cert-tip {
    margin: 0 0 12px;
    line-height: 1.7;
}

.edu-cert-school {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

/* ---------- Auth pages ---------- */
.auth-page {
    background: #eff3fc;
}

.auth-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    border-radius: 28px;
    padding: 36px 38px;
    background: linear-gradient(150deg, #dce6ff 0%, #e9edff 42%, #d9f0ff 100%);
    display: flex;
    flex-direction: column;
}

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2b3552;
}

.auth-brand-top img {
    width: 62px;
    height: auto;
}

.auth-brand-copy {
    margin-top: 110px;
    position: relative;
    z-index: 1;
}

.auth-brand-copy h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.35;
    letter-spacing: -1px;
    color: #1f2942;
}

.auth-brand-copy p {
    margin: 20px 0 26px;
    color: #56637f;
    font-size: 14px;
    line-height: 1.9;
}

.auth-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-tags span {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #4b5a7a;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
}

.auth-brand-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 66%);
}

.auth-brand-foot {
    margin: auto 0 0;
    color: #6b7794;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.auth-legal {
    margin: 14px 0 0;
    color: #9099b2;
    font-size: 11.5px;
    line-height: 1.8;
    text-align: center;
}

.auth-legal a {
    color: #5368d8;
}

.auth-legal a:hover {
    text-decoration: underline;
}

.auth-form-panel {
    display: flex;
    justify-content: center;
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e9edf7;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(31, 45, 90, 0.08);
    padding: 34px 34px 30px;
}

.auth-form-card h2 {
    margin: 0;
    font-size: 24px;
}

.auth-form-card > .muted {
    margin: 8px 0 24px;
    font-size: 13px;
}

.auth-form-card .btn-block {
    margin-top: 6px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #9aa1b5;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #edf0f8;
}

.demo-hint {
    margin: 18px 0 0;
    text-align: center;
    color: #9aa1b5;
    font-size: 12px;
}

.demo-hint b {
    color: #5d6478;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
    .workbench-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resume-grid {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .leaderboard-card {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 1080px) {
    .workbench-grid,
    .resume-grid,
    .campaign-grid,
    .leaderboard-card {
        grid-template-columns: 1fr;
    }

    .resume-left {
        position: static;
    }

    .wallet-summary {
        flex-direction: column;
    }

    .wallet-auth {
        max-width: none;
        width: 100%;
    }

    .wallet-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }
}

@media (max-width: 720px) {
    .sidebar {
        display: none;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 40;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    .side-item {
        width: 56px;
        font-size: 10px;
        padding: 8px 2px;
    }

    .side-item svg {
        width: 20px;
        height: 20px;
    }

    .side-nav {
        margin-top: 22px;
        gap: 6px;
    }

    .main-area {
        margin-left: 0;
    }

    .watermark {
        left: 0;
    }

    .content {
        padding: 24px 18px 12px;
    }

    .page-head h1 {
        font-size: 25px;
    }

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

    .page-head-row {
        flex-direction: column;
    }

    .empty-task {
        flex-direction: column;
        align-items: flex-start;
    }

    .empty-art {
        width: 210px;
        align-self: center;
    }

    .filter-bar {
        align-items: stretch;
    }

    .search-box {
        min-width: 0;
    }

    .wallet-filters .input,
    .wallet-filters .date-range {
        width: 100%;
    }

    .wallet-filters .date-range .input {
        width: 100%;
    }

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

    .field-row {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        padding: 18px;
    }
}

/* ---------- 履历编辑页 ---------- */
.resume-edit-shell {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 72px;
}

.resume-edit-nav {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.resume-edit-nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    line-height: 20px;
}

.resume-edit-nav a:hover {
    background: #f2f5fb;
    color: var(--text);
}

.resume-edit-nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.resume-edit-main {
    min-width: 0;
}

.edit-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px 24px;
    margin-bottom: 18px;
    scroll-margin-top: 20px;
}

.edit-block-title {
    position: relative;
    margin: 0 0 18px;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.edit-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: var(--primary);
}

.edit-grid {
    display: grid;
    gap: 14px 18px;
}

.edit-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.edit-row {
    position: relative;
    border: 1px dashed #e3e8f3;
    border-radius: 12px;
    padding: 18px 18px 10px;
    margin-bottom: 14px;
    background: #fcfdff;
}

.edit-row-remove {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9aa1b5;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.edit-row-remove:hover {
    background: #fdecec;
    color: #c0392b;
}

.add-row-btn {
    border: 1px dashed #c8d3ee;
    background: #f7f9ff;
    color: var(--primary);
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.add-row-btn:hover {
    background: var(--primary-soft);
}

.edit-field-block {
    margin-bottom: 20px;
}

.edit-field-block:last-child {
    margin-bottom: 0;
}

.edit-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #5d6478;
}

.edit-tip {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #8a94a6;
}

.input-suffix {
    position: relative;
    display: block;
}

.input-suffix input {
    width: 100%;
    padding-right: 46px;
}

.input-suffix em {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: 13px;
    color: #8a94a6;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range input {
    flex: 1;
    min-width: 0;
}

.date-range span {
    color: #9aa1b5;
}

.char-counter {
    align-self: flex-end;
    font-size: 12px;
    color: #9aa1b5;
}

.combo {
    position: relative;
}

.combo-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e3e8f3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 30, 60, 0.12);
    padding: 4px;
    z-index: 30;
}

.combo-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
}

.combo-option:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.multiselect {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #e4e9f5;
    border-radius: 10px;
    background: #fff;
}

.multiselect:focus-within {
    border-color: #b9c6f7;
    box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.1);
}

.ms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 13px;
}

.ms-tag button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ms-input {
    flex: 1;
    min-width: 120px;
    border: 0;
    outline: 0;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
}

.ms-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e3e8f3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 30, 60, 0.12);
    padding: 4px;
    z-index: 30;
}

.ms-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
}

.ms-option:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.dropzone {
    display: block;
    border: 1px dashed #c8d3ee;
    border-radius: 12px;
    background: #fafbff;
    padding: 26px;
    text-align: center;
    color: #7b8398;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone.is-dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dropzone-plus {
    font-size: 22px;
    color: var(--primary);
}

.edit-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding: 14px 0 4px;
    background: linear-gradient(to top, var(--admin-bg, #f5f7fb) 70%, rgba(245, 247, 251, 0));
}

.edit-footer-error {
    margin-right: auto;
    color: #c0392b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .resume-edit-shell {
        grid-template-columns: 1fr;
    }

    .resume-edit-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .edit-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- 项目报名页（对齐目标站：左侧进度与要求，右侧问题） ---------- */
.apply-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.apply-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.apply-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.apply-topbar-title {
    font-size: 17px;
    font-weight: 600;
}

.apply-topbar-sep {
    color: #c9d0dc;
}

.apply-topbar-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.apply-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-bottom: 90px;
}

.apply-side {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.apply-progress-badge {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 6px;
    background: #eef3ff;
    color: #3370ff;
    font-size: 14px;
    font-weight: 500;
}

.apply-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.apply-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    position: relative;
    min-height: 26px;
}

.apply-step-bar {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: transparent;
}

.apply-step.active .apply-step-bar,
.apply-step.done .apply-step-bar {
    background: #3370ff;
}

.apply-step-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2329;
}

.apply-step-state {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3370ff;
    white-space: nowrap;
}

.apply-step-dot {
    width: 15px;
    height: 15px;
    border: 1.5px solid #3370ff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-style: normal;
    color: #fff;
}

.apply-step-dot.done {
    background: #3370ff;
}

.apply-require {
    padding: 18px;
    border-radius: 10px;
    background: #f5f8ff;
    border: 1px solid #e8eefc;
}

.apply-require-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #3370ff;
    font-size: 14px;
    font-weight: 600;
}

.apply-require-body {
    font-size: 13px;
    line-height: 26px;
    color: #4e5969;
    white-space: pre-wrap;
    word-break: break-word;
}

.apply-main {
    min-width: 0;
    padding-top: 4px;
}

.apply-section-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    color: #1f2329;
}

.apply-section-desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: #86909c;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 760px;
}

.apply-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-field-title {
    font-size: 15px;
    font-weight: 500;
    color: #1f2329;
    line-height: 1.6;
}

.apply-field-title em {
    color: #f53f3f;
    font-style: normal;
    margin-right: 3px;
}

.apply-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #1f2329;
    outline: none;
    transition: border-color .15s;
}

.apply-input:focus {
    border-color: #3370ff;
    box-shadow: 0 0 0 3px rgba(51, 112, 255, .1);
}

textarea.apply-input {
    resize: vertical;
    min-height: 130px;
    line-height: 1.8;
}

.apply-counter {
    align-self: flex-end;
    margin-top: -6px;
    font-size: 12px;
    color: #a9aeb8;
}

.apply-choice-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.apply-choice {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #4e5969;
    cursor: pointer;
    user-select: none;
}

.apply-choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.apply-choice-dot {
    width: 16px;
    height: 16px;
    flex: none;
    border: 1.5px solid #c9cdd4;
    background: #fff;
    transition: all .15s;
}

.apply-choice-group:not(.multi) .apply-choice-dot {
    border-radius: 50%;
}

.apply-choice-group.multi .apply-choice-dot {
    border-radius: 4px;
}

.apply-choice input:checked + .apply-choice-dot {
    border-color: #3370ff;
    background: #3370ff;
    box-shadow: inset 0 0 0 3px #fff;
}

.apply-choice-group.multi .apply-choice input:checked + .apply-choice-dot {
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.apply-file {
    font-size: 13px;
    color: #4e5969;
}

.apply-file-status {
    font-size: 12px;
    color: #86909c;
}

.apply-file-status a {
    color: #3370ff;
}

.apply-summary {
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7f8fa;
    color: #4e5969;
    font-size: 14px;
    line-height: 1.8;
}

.apply-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.apply-footer-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.apply-error {
    color: #f53f3f;
    font-size: 13px;
}

.workbench-todo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workbench-todo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.workbench-todo b {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

.workbench-todo span {
    font-size: 14px;
    font-weight: 500;
}

.workbench-todo small {
    font-size: 12px;
    color: #86909c;
}

.workbench-todo.tone-red b, .workbench-todo.tone-red span { color: #f53f3f; }
.workbench-todo.tone-blue b, .workbench-todo.tone-blue span { color: #3370ff; }
.workbench-todo.tone-gold b, .workbench-todo.tone-gold span { color: #d68b00; }
.workbench-todo.tone-green b, .workbench-todo.tone-green span { color: #00a870; }

.workbench-row {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.workbench-row:last-child {
    border-bottom: none;
}

.workbench-row-main {
    flex: 1;
    min-width: 0;
}

.workbench-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.workbench-row-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.workbench-row-desc {
    margin: 8px 0 10px;
    font-size: 13px;
    line-height: 1.75;
    color: #86909c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workbench-row-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.workbench-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .apply-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .apply-side {
        position: static;
    }

    .workbench-todo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apply-footer {
        padding: 12px 16px;
    }
}

/* ---------- 工作台「我的工作」 ---------- */
.workbench-work-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.workbench-work-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #f4f6fb;
}

.workbench-work-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5368;
    text-decoration: none;
}

.workbench-work-tabs a b {
    font-size: 12px;
    font-weight: 500;
    color: #9aa1b5;
}

.workbench-work-tabs a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(31, 41, 85, .08);
}

.workbench-work-tabs a.active b {
    color: var(--primary);
}

.workbench-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 16px 0 4px;
    border-bottom: 1px solid var(--border);
}

.workbench-filters a {
    position: relative;
    padding-bottom: 12px;
    font-size: 14px;
    color: #6b7385;
    text-decoration: none;
}

.workbench-filters a.active {
    color: var(--primary);
    font-weight: 500;
}

.workbench-filters a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.workbench-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.workbench-row-tags span {
    padding: 2px 9px;
    border-radius: 5px;
    background: #f2f4fa;
    color: #6b7385;
    font-size: 12px;
}

.workbench-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 56px 20px;
    text-align: center;
}

.workbench-empty p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #4b5368;
}

.workbench-empty span {
    color: #9aa1b5;
    font-size: 13px;
    margin-bottom: 8px;
}

.workbench-row .price b {
    font-size: 20px;
}

/* ---------- 项目详情中的入群二维码 ---------- */
.drawer-lark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 22px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(100deg, #f1f3ff 0%, #f6f0ff 100%);
    border: 1px solid #e6e5fb;
}

.drawer-lark-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-lark-copy b {
    font-size: 16px;
    color: #4a3fbf;
}

.drawer-lark-copy span {
    font-size: 13px;
    color: #7a74b8;
}

.drawer-lark img {
    width: 86px;
    height: 86px;
    flex: none;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

/* hidden 属性优先于按钮自身的 display，避免隐藏按钮仍然显示 */
[hidden] {
    display: none !important;
}

/* ---------- 手机端适配（对齐目标站的移动布局） ---------- */
@media (max-width: 720px) {
    /* 顶部导航分两行：品牌与操作在上，页签在下 */
    .mobile-topbar {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas:
            "brand . msg logout"
            "nav nav nav nav";
        align-items: center;
        column-gap: 10px;
        row-gap: 2px;
        padding: 8px 12px 0;
    }

    .mobile-brand {
        grid-area: brand;
    }

    .mobile-msg {
        grid-area: msg;
        justify-self: end;
    }

    .mobile-logout-form {
        grid-area: logout;
    }

    .mobile-nav {
        grid-area: nav;
        display: flex;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-nav a {
        flex: 1 0 auto;
        min-width: 60px;
        padding: 11px 6px 10px;
        border-radius: 0;
        background: transparent;
        font-size: 14px;
        text-align: center;
        color: #6b7385;
        position: relative;
    }

    .mobile-nav a.active {
        background: transparent;
        color: var(--primary);
        font-weight: 600;
    }

    .mobile-nav a.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 22px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--primary);
        transform: translateX(-50%);
    }

    .content {
        padding: 20px 16px 24px;
    }

    .page-head h1 {
        font-size: 24px;
    }

    /* 项目广场：筛选栏换行，标签不再被压成竖排 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 14px 0 18px;
    }

    .search-box {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .filter-pills {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-pills > * {
        flex: 0 0 auto;
    }

    .pill,
    .filter-dropdown summary,
    .refresh-btn {
        white-space: nowrap;
    }

    .refresh-btn {
        margin-left: auto;
    }

    .invite-pill {
        width: 100%;
        justify-content: space-between;
        white-space: normal;
        line-height: 1.5;
    }

    .project-card {
        padding: 16px;
    }

    .project-card-head h3 {
        font-size: 16px;
    }

    /* 项目详情抽屉占满屏宽 */
    .drawer {
        width: 100%;
        max-width: 100%;
    }

    .drawer-actions {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .drawer-actions .btn {
        flex: 1;
    }

    .drawer-lark img {
        width: 72px;
        height: 72px;
    }

    /* 分享弹窗 */
    .share-modal-x {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .share-x-posterbox {
        height: 320px;
    }

    .share-poster-scaler,
    .share-x-posterbox:hover .share-poster-scaler {
        transform: scale(0.6);
    }

    .share-x-btn {
        width: 100%;
    }

    /* 报名页 */
    .apply-topbar {
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .apply-topbar-title {
        font-size: 15px;
    }

    .apply-topbar-sep {
        display: none;
    }

    .apply-topbar-name {
        font-size: 14px;
        width: 100%;
    }

    .apply-shell {
        padding-bottom: 110px;
    }

    .apply-steps {
        gap: 12px;
    }

    .apply-step-name {
        font-size: 15px;
    }

    .apply-require {
        padding: 14px;
    }

    .apply-form {
        max-width: none;
    }

    .apply-footer {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        flex-wrap: wrap;
        gap: 8px;
    }

    .apply-error {
        flex-basis: 100%;
    }

    .apply-footer-actions {
        width: 100%;
        margin-left: 0;
        gap: 8px;
    }

    .apply-footer-actions .btn {
        flex: 1;
    }

    /* 工作台 */
    .workbench-work-head {
        align-items: flex-start;
    }

    .workbench-work-tabs {
        width: 100%;
    }

    .workbench-work-tabs a {
        flex: 1;
        justify-content: center;
    }

    .workbench-filters {
        gap: 18px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .workbench-filters::-webkit-scrollbar {
        display: none;
    }

    .workbench-filters a {
        flex: none;
    }

    .workbench-row-foot {
        flex-wrap: wrap;
        gap: 12px;
    }

    .workbench-row-actions {
        width: 100%;
    }

    .workbench-row-actions .btn {
        flex: 1;
    }

    /* 任务 / 题目列表卡片 */
    .task-overview-grid {
        grid-template-columns: 1fr;
    }

    .task-overview-foot {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .workbench-todo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .workbench-todo {
        padding: 14px;
    }

    .filter-pills {
        gap: 6px;
    }

    .pill,
    .filter-dropdown summary {
        padding: 7px 11px;
        font-size: 12.5px;
    }
}

/* 手机端：项目卡片标题独占一行，标签另起一行 */
@media (max-width: 720px) {
    .project-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-card-head h3 {
        min-width: 0;
        width: 100%;
    }
}

/* 抽屉/弹窗打开时，内容区需要盖住移动端顶部导航 */
body.modal-open .content {
    z-index: 70;
}

/* 抽屉在移动端占满屏宽后，顶部留出安全距离 */
@media (max-width: 720px) {
    .drawer-close {
        top: 10px;
        right: 12px;
    }
}

/* ---------- 账号菜单 ---------- */
.account-wrap {
    position: relative;
}

.account-wrap-mobile {
    grid-area: avatar;
    justify-self: end;
}

.side-avatar,
.mobile-avatar {
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}

.side-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
}

.mobile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
}

.account-wrap.open .side-avatar,
.account-wrap.open .mobile-avatar {
    box-shadow: 0 0 0 3px rgba(79, 108, 246, .16);
}

.account-pop {
    display: none;
    box-sizing: border-box;
    width: 184px;
    padding: 6px;
    border: 1px solid #eef1f8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(24, 34, 66, .14);
    z-index: 80;
}

.account-wrap.open .account-pop {
    display: block;
}

.account-wrap-side .account-pop {
    position: absolute;
    left: 0;
    bottom: 48px;
}

.account-wrap-mobile .account-pop {
    position: absolute;
    top: calc(100% + 42px);
    right: 0;
    width: 168px;
}

.account-pop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2b3142;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.account-pop-item svg {
    width: 17px;
    height: 17px;
    flex: none;
    color: #7c839a;
}

.account-pop-item:hover {
    background: #f5f7fb;
}

.account-pop-item.danger {
    color: #f53f3f;
}

.account-pop-item.danger svg {
    color: #f53f3f;
}

.account-pop-form {
    margin: 0;
}

.account-pop-divider {
    height: 1px;
    margin: 6px 4px;
    background: #f0f2f7;
}

.mobile-topbar {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
        "brand . msg avatar"
        "nav nav nav nav";
}

/* ---------- 加入群组弹窗 ---------- */
.group-modal {
    width: 480px;
    max-width: 92vw;
}

.group-modal-tip {
    margin: 0 0 14px;
    color: #86909c;
    font-size: 13px;
    line-height: 1.7;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid #eef1f8;
    border-radius: 12px;
    background: #fbfcff;
}

.group-item-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.group-item-copy b {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2437;
}

.group-item-copy span {
    font-size: 12.5px;
    color: #86909c;
}

.group-item img {
    width: 96px;
    height: 96px;
    flex: none;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.group-empty {
    padding: 26px 12px;
    text-align: center;
    color: #86909c;
    font-size: 13.5px;
    line-height: 1.8;
}

/* ---------- 账户管理页 ---------- */
.account-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-avatar {
    width: 56px;
    height: 56px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
}

.account-profile-main {
    flex: 1;
    min-width: 0;
}

.account-profile-main h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.account-profile-main p {
    margin: 0;
    font-size: 13px;
}

.account-info-list,
.account-security-list {
    display: flex;
    flex-direction: column;
}

.account-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f4fa;
    font-size: 14px;
}

.account-info-row:last-child {
    border-bottom: 0;
}

.account-info-row > span {
    color: #86909c;
    flex: none;
}

.account-info-row > b {
    font-weight: 500;
    color: #1f2437;
    text-align: right;
    word-break: break-all;
}

.account-tip {
    margin: 12px 0 0;
    color: #9aa1b5;
    font-size: 12.5px;
}

.account-security-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f2f4fa;
}

.account-security-row:last-child {
    border-bottom: 0;
}

.account-security-row > div {
    flex: 1;
    min-width: 0;
}

.account-security-row b {
    font-size: 14px;
}

.account-security-row p {
    margin: 4px 0 0;
    font-size: 12.5px;
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.account-links a {
    color: var(--primary);
    font-size: 14px;
}

/* ---------- 使用手册 ---------- */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.help-step {
    display: flex;
    gap: 16px;
}

.help-step-no {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.help-step h3 {
    margin: 4px 0 6px;
    font-size: 16px;
}

.help-step p {
    margin: 0 0 6px;
    color: #6b7385;
    font-size: 14px;
    line-height: 1.8;
}

.help-faq {
    display: flex;
    flex-direction: column;
}

.help-faq details {
    border-bottom: 1px solid #f2f4fa;
    padding: 4px 0;
}

.help-faq details:last-child {
    border-bottom: 0;
}

.help-faq summary {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2437;
    cursor: pointer;
}

.help-faq p {
    margin: 0 0 14px;
    color: #6b7385;
    font-size: 13.5px;
    line-height: 1.8;
}

.help-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 720px) {
    .account-wrap-mobile .account-pop {
        top: calc(100% + 40px);
    }

    .account-profile-card {
        flex-wrap: wrap;
    }

    .account-profile-card .btn {
        width: 100%;
    }

    .account-security-row {
        flex-wrap: wrap;
    }

    .account-security-row .btn {
        margin-left: auto;
    }

    .help-actions .btn {
        flex: 1;
    }
}

/* 账户管理与使用手册：卡片内边距与间距 */
.account-page .card,
.help-page .card {
    padding: 22px 24px;
}

.account-page .card + .card,
.help-page .card + .card {
    margin-top: 16px;
}

.account-page .card-head,
.help-page .card-head {
    margin-bottom: 6px;
}

@media (max-width: 720px) {
    .account-page .card,
    .help-page .card {
        padding: 18px 16px;
    }
}

/* ---------- 加入群组弹窗（对齐目标站） ---------- */
.group-qr-modal {
    position: relative;
    box-sizing: border-box;
    width: 300px;
    max-width: 90vw;
    padding: 26px 24px 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(24, 34, 66, .18);
    text-align: center;
}

.group-qr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9aa1b5;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.group-qr-close:hover {
    background: #f5f7fb;
    color: #4b5368;
}

.group-qr-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.group-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.group-qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2437;
}

.group-qr-sub {
    font-size: 13px;
    color: #86909c;
}

.group-qr-block img {
    width: 160px;
    height: 160px;
    margin-top: 2px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.group-qr-note {
    font-size: 12.5px;
    color: #d25f00;
}

/* ---------- 账户管理（对齐目标站：左资料卡 + 右安全设置） ---------- */
.account-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.account-side-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px 24px;
    text-align: center;
}

.account-avatar {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9d4ff 0%, #b9c6ff 55%, #cfc4ff 100%);
    color: #fff;
    font-size: 32px;
    font-weight: 600;
}

.account-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.account-name b {
    font-size: 20px;
    font-weight: 600;
    color: #1f2437;
}

.account-edit-name {
    width: 26px;
    height: 26px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9aa1b5;
    cursor: pointer;
}

.account-edit-name:hover {
    background: #f2f5fb;
    color: var(--primary);
}

.account-edit-name svg {
    width: 15px;
    height: 15px;
}

.account-id {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f7fb;
    font-size: 13px;
    color: #6b7385;
}

.account-id em {
    font-style: normal;
    color: #1f2437;
}

.account-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
}

.account-copy svg {
    width: 14px;
    height: 14px;
}

.account-side-rows {
    width: 100%;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0f2f7;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.account-side-row > span:first-child {
    color: #86909c;
}

.account-side-row > b {
    font-weight: 500;
    color: #1f2437;
}

.account-signed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #00a870;
    font-size: 13px;
}

.account-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.account-security-card {
    padding: 22px 24px 6px;
}

.account-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f7;
}

.account-card-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2437;
}

.account-card-head p {
    margin: 0;
    font-size: 13px;
    color: #86909c;
}

.account-status-chip {
    flex: none;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f2f4fa;
    color: #6b7385;
    font-size: 12.5px;
    white-space: nowrap;
}

.account-status-chip.ok {
    background: #eaf8f0;
    color: #17794c;
}

.account-security-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f4f6fa;
}

.account-security-row:last-child {
    border-bottom: 0;
}

.account-ic {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.account-ic svg {
    width: 20px;
    height: 20px;
}

.account-ic.green {
    background: #eaf8f0;
    color: #00a870;
}

.account-ic.blue {
    background: #edf2ff;
    color: #4f6cf6;
}

.account-ic.amber {
    background: #fff6e6;
    color: #d68b00;
}

.account-security-copy {
    flex: 1;
    min-width: 0;
}

.account-security-copy b {
    display: block;
    font-size: 14.5px;
    color: #1f2437;
    margin-bottom: 4px;
}

.account-security-copy p {
    margin: 0;
    font-size: 13px;
    color: #86909c;
}

.account-action {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #e2e8f4;
    border-radius: 8px;
    background: #fff;
    color: #2b3142;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.account-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.account-cancel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
}

.account-cancel-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2437;
}

.account-cancel-card p {
    margin: 0;
    font-size: 13px;
    color: #86909c;
    line-height: 1.7;
}

.account-modal {
    width: 380px;
    max-width: 92vw;
}

.account-phone-value {
    margin: 4px 0 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #1f2437;
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-security-card {
        padding: 18px 16px 4px;
    }

    .account-cancel-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .account-cancel-card .account-action {
        width: 100%;
    }
}

/* ---------- 使用手册（独立文档页，对齐目标站） ---------- */
.guide-page {
    margin: 0;
    background: #fff;
    color: #1f2437;
}

.guide-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid #eef1f8;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.guide-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2437;
    text-decoration: none;
}

.guide-brand img {
    width: 30px;
    height: auto;
}

.guide-back {
    font-size: 13px;
    color: #4f6cf6;
    text-decoration: none;
}

.guide-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.guide-toc {
    position: sticky;
    top: 61px;
    align-self: start;
    height: calc(100vh - 61px);
    overflow-y: auto;
    padding: 26px 18px 40px 0;
    border-right: 1px solid #eef1f8;
}

.guide-toc details {
    margin-bottom: 12px;
}

.guide-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2437;
    cursor: pointer;
    list-style: none;
}

.guide-toc summary::-webkit-details-marker {
    display: none;
}

.guide-toc summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.6px solid #9aa1b5;
    border-bottom: 1.6px solid #9aa1b5;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s;
}

.guide-toc details:not([open]) summary::after {
    transform: rotate(-45deg);
}

.guide-toc a {
    display: block;
    padding: 8px 6px 8px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    color: #4b5368;
    text-decoration: none;
}

.guide-toc a:hover {
    background: #f5f7fb;
    color: #1f2437;
}

.guide-main {
    min-width: 0;
    max-width: 860px;
    padding: 40px 48px 80px;
}

.guide-main h1 {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 700;
}

.guide-main h2 {
    margin: 46px 0 16px;
    font-size: 24px;
    font-weight: 700;
}

.guide-main h3 {
    margin: 30px 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.guide-main h4 {
    margin: 22px 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.guide-main p,
.guide-main li {
    font-size: 14.5px;
    line-height: 1.9;
    color: #3b4358;
}

.guide-main ul {
    padding-left: 20px;
    margin: 0 0 12px;
}

.guide-lead {
    font-size: 15px;
    color: #4b5368;
}

.guide-main details {
    border-bottom: 1px solid #f0f2f7;
}

.guide-main summary {
    padding: 14px 0;
    font-size: 14.5px;
    font-weight: 500;
    color: #1f2437;
    cursor: pointer;
}

.guide-main details p {
    margin: 0 0 14px;
    color: #5d6478;
}

.guide-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid #eef1f8;
    font-size: 12.5px;
    color: #9aa1b5;
}

.guide-footer a {
    margin-left: 14px;
    color: #9aa1b5;
    text-decoration: none;
}

@media (max-width: 900px) {
    .guide-header {
        padding: 12px 16px;
    }

    .guide-shell {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: static;
        height: auto;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid #eef1f8;
    }

    .guide-main {
        padding: 24px 18px 60px;
    }

    .guide-main h1 {
        font-size: 24px;
    }

    .guide-main h2 {
        font-size: 20px;
        margin-top: 34px;
    }
}

/* 账户管理卡片内边距（覆盖早期的通用规则） */
.account-page .account-side-card {
    padding: 30px 24px 24px;
}

.account-page .account-security-card {
    padding: 22px 24px 6px;
}

.account-page .account-cancel-card {
    padding: 20px 24px;
}

.account-page .account-main .card + .card {
    margin-top: 0;
}
