:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #ffedd5;
    --green: #16a34a;
    --red: #dc2626;
    --blue: #2563eb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(249, 115, 22, 0.12), transparent 40%),
        linear-gradient(180deg, #fff7ed 0%, #f8fafc 40%, #f1f5f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

button,
input,
textarea {
    font: inherit;
}

.hidden {
    display: none !important;
}

/* ===== App Shell ===== */
.app-shell {
    width: min(1200px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    padding-bottom: 60px;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 32px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    padding: 9px 16px;
    color: #475569;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange-dark);
    background: var(--orange-light);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.user-badge {
    max-width: 260px;
    overflow: hidden;
    padding: 8px 14px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    padding: 8px;
    color: var(--orange-dark);
    background: var(--orange-light);
    border-radius: 10px;
    cursor: pointer;
    line-height: 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.32);
}

.btn-ghost {
    color: #475569;
    background: #f1f5f9;
}

.btn-ghost:hover {
    background: #e2e8f0;
}

.btn-light {
    color: #9a3412;
    background: #ffedd5;
}

.btn-light:hover {
    background: #fed7aa;
}

.btn-danger {
    color: var(--white);
    background: var(--red);
}

.btn-success {
    color: var(--white);
    background: var(--green);
}

.btn-success:hover {
    background: #15803d;
}

.btn-warn {
    color: #7c2d12;
    background: #fed7aa;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.16);
}

.btn-warn:hover {
    background: #fdba74;
}

.btn-lg {
    min-height: 46px;
    padding: 12px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ===== Shared card/panel glass style ===== */
.hero-panel,
.card,
.feature-card,
.auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ===== Eyebrow ===== */
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== Hero Center ===== */
.hero-center {
    position: relative;
    isolation: isolate;
    text-align: center;
    overflow: hidden;
    max-width: 1120px;
    margin: 0 auto 72px;
    padding: 92px 44px 44px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.62)),
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18), transparent 42%);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* 多层光晕与网格纹理用于提升 Hero 首屏的空间层次。 */
.hero-center::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -1px;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.42), transparent);
    z-index: -1;
}

.hero-orb,
.hero-grid-pattern {
    position: absolute;
    pointer-events: none;
    z-index: -2;
}

.hero-orb {
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.74;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-orb-primary {
    top: -120px;
    left: 8%;
    width: 280px;
    height: 280px;
    background: rgba(249, 115, 22, 0.24);
}

.hero-orb-secondary {
    top: 40px;
    right: 3%;
    width: 340px;
    height: 340px;
    background: rgba(37, 99, 235, 0.12);
    animation-delay: -2.2s;
}

.hero-orb-accent {
    bottom: -150px;
    left: 34%;
    width: 380px;
    height: 220px;
    background: rgba(251, 191, 36, 0.18);
    animation-delay: -4.5s;
}

.hero-grid-pattern {
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.24) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.hero-content,
.hero-center .hero-stats {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    animation: heroRise 0.72s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 9px 16px;
    color: #9a3412;
    background: rgba(255, 247, 237, 0.76);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--orange), #fbbf24);
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.13), 0 0 18px rgba(249, 115, 22, 0.5);
}

.hero-center h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.065em;
}

.hero-center h1 span {
    display: block;
}

.hero-title-gradient {
    /* 给渐变标题预留字形下沿空间，避免中文粗字重在底部产生截断感。 */
    display: inline-block;
    margin-top: 8px;
    padding-bottom: 0.08em;
    line-height: 1.08;
    background: linear-gradient(92deg, #f97316 0%, #f59e0b 36%, #7c3aed 76%, #2563eb 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 14px 22px rgba(249, 115, 22, 0.16));
}

.hero-center .hero-desc {
    max-width: 690px;
    margin: 26px auto 0;
    color: #475569;
    font-size: 19px;
    line-height: 1.85;
}

.hero-center .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.btn-hero-primary {
    position: relative;
    overflow: hidden;
    min-width: 156px;
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.28);
}

/* 主按钮扫光效果让首屏 CTA 更醒目，但保持动画克制。 */
.btn-hero-primary::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -46%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}

.btn-hero-primary:hover::before {
    left: 110%;
}

.btn-hero-secondary {
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.btn-hero-secondary:hover {
    color: #9a3412;
    background: rgba(255, 247, 237, 0.9);
    border-color: rgba(249, 115, 22, 0.32);
}

.hero-trust-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.hero-trust-row i {
    width: 5px;
    height: 5px;
    background: rgba(249, 115, 22, 0.55);
    border-radius: 999px;
}

.hero-center .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 820px;
    margin: 58px auto 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: heroRise 0.72s 0.12s ease both;
}

.hero-stat {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 22px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 237, 0.58));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hero-stat::before {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.55), transparent);
}

.hero-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.hero-stat .hero-stat-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin: 0 0 12px;
    place-items: center;
    color: #ea580c;
    background: rgba(255, 237, 213, 0.82);
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 14px;
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.hero-stat > span:not(.hero-stat-icon) {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(10px, -14px, 0) scale(1.04);
    }
}

/* ===== How it works ===== */
.how-section {
    margin-bottom: 64px;
}

.how-header {
    text-align: center;
    margin-bottom: 36px;
}

.how-header h2 {
    margin: 12px 0 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.how-card {
    padding: 32px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    position: relative;
}

.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--orange-light);
    color: var(--orange-dark);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.how-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.how-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Preview Section ===== */
.preview-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 64px;
}

.preview-copy h2 {
    margin: 12px 0 14px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.preview-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.preview-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.preview-list li svg {
    flex-shrink: 0;
    color: var(--green);
}

.preview-panel {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.orange { background: var(--orange); }
.dot.green { background: var(--green); }
.dot.blue { background: var(--blue); }

.demo-card {
    margin-top: 16px;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(145deg, #111827, #1f2937);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.demo-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.demo-row span,
.demo-grid small {
    color: #94a3b8;
}

.fake-progress,
.big-progress {
    overflow: hidden;
    height: 12px;
    background: #374151;
    border-radius: 999px;
}

.fake-progress i,
.big-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #fbbf24);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.demo-grid div {
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    text-align: center;
}

.demo-grid b,
.demo-grid small {
    display: block;
}

.demo-grid b {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.text-orange {
    color: #fdba74;
}

/* ===== Feature Section ===== */
.feature-section {
    margin-bottom: 64px;
}

.feature-header {
    text-align: center;
    margin-bottom: 36px;
}

.feature-header h2 {
    margin: 12px 0 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-grid,
.stat-grid,
.profile-grid {
    display: grid;
    gap: 20px;
}

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

.feature-card,
.card {
    border-radius: var(--radius);
}

.feature-card {
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #fed7aa;
}

.feature-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--orange-dark);
    background: var(--orange-light);
    border-radius: 10px;
    line-height: 0;
}

.feature-card h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

/* ===== CTA Section ===== */
.cta-section {
    margin-bottom: 48px;
    padding: 52px 40px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #fed7aa;
    text-align: center;
}

.cta-section h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-section p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 16px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===== Auth Page ===== */
.auth-page {
    display: grid;
    min-height: 580px;
    place-items: center;
    padding: 20px 0;
}

.auth-card {
    width: min(420px, 100%);
    padding: 36px;
    border-radius: var(--radius-lg);
}

.form-title span {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-title h1 {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 4px;
}

label {
    display: block;
    margin: 18px 0 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    outline: 0;
    color: var(--ink);
    background: var(--white);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

input {
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
}

textarea {
    min-height: 320px;
    padding: 14px;
    line-height: 1.7;
    resize: vertical;
    font-size: 14px;
}

input:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

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

.form-tip {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.form-tip a {
    color: var(--orange-dark);
    font-weight: 700;
}

.form-tip a:hover {
    text-decoration: underline;
}

/* ===== Page Head ===== */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-head h1 {
    font-size: 32px;
    font-weight: 800;
}

.page-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

/* ===== Card ===== */
.card {
    padding: 24px;
}

.card-head,
.textarea-toolbar,
.progress-top,
.head-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-head h2,
.card-head p,
.textarea-toolbar h2,
.progress-top h2,
.progress-top p {
    margin: 0;
}

.card-head h2,
.textarea-toolbar h2 {
    font-size: 18px;
    font-weight: 700;
}

.card-head p {
    font-size: 13px;
    margin-top: 2px;
}

/* ===== Stats ===== */
.stat-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
}

.stat-card {
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.2s ease;
}

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

.stat-card span,
.detail-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ===== Submit ===== */
.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}

.submit-card .btn-lg {
    margin-top: 16px;
}

.remark-group {
    margin: 12px 0 14px;
}

.quota-badge,
.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 16px;
    color: #9a3412;
    background: var(--orange-light);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.status-chip {
    font-size: 14px;
}

/* 批次状态使用不同颜色，便于在详情页和列表中快速区分处理结果。 */
.status-chip.status-pending {
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.status-chip.status-processing {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.status-chip.status-done {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.status-chip.status-partial_failed {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.status-chip.status-failed {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.input-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
}

.input-summary b {
    color: var(--orange-dark);
    font-weight: 700;
}

.guide-card ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

.guide-card li {
    margin-bottom: 4px;
}

.guide-hint {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff7ed;
    border-radius: var(--radius-sm);
    border: 1px solid #fed7aa;
    font-size: 13px;
    color: #7c2d12;
    line-height: 1.6;
}

.guide-hint strong {
    font-weight: 700;
}

/* ===== Progress ===== */
.progress-card {
    padding: 32px;
}

.progress-top h2 {
    margin-top: 12px;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.progress-top p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
}

.big-progress {
    height: 18px;
    margin: 24px 0;
    background: #e5e7eb;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.detail-grid-compact {
    grid-template-columns: 0.8fr 1.4fr 1fr;
}

.detail-remark,
.muted {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.detail-grid div {
    min-width: 0;
    padding: 16px;
    background: var(--soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

/* ===== Table ===== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:hover td {
    background: #fafafa;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    padding: 48px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 15px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pagination span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

/* ===== Profile ===== */
.profile-grid {
    grid-template-columns: 0.85fr 1.15fr;
}

.profile-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.profile-line:last-child {
    border-bottom: none;
}

.profile-line span {
    color: var(--muted);
    font-weight: 500;
}

.profile-line strong {
    font-weight: 700;
    color: var(--ink);
}

.tier-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.tier-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px;
    background: var(--soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    align-items: center;
    transition: all 0.2s ease;
}

.tier-item:hover {
    border-color: #fed7aa;
    background: #fff7ed;
}

.tier-item strong {
    font-size: 15px;
    font-weight: 700;
}

.tier-item .muted {
    font-size: 13px;
    margin-top: 2px;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ===== Toast ===== */
.toast-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100% - 40px));
}

.toast {
    padding: 14px 18px;
    color: var(--white);
    background: #111827;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    animation: toastIn 0.3s ease;
}

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

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.warn { background: var(--orange-dark); }

/* ===== Utilities ===== */
.muted {
    color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .topbar {
        align-items: flex-start;
        border-radius: var(--radius);
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav,
    .user-actions {
        display: none;
        width: 100%;
    }

    .topbar.open .main-nav,
    .topbar.open .user-actions {
        display: flex;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 8px;
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }

    .user-actions {
        flex-wrap: wrap;
        padding-top: 8px;
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }

    .preview-section,
    .submit-layout,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .how-grid,
    .feature-grid,
    .stat-grid,
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-center {
        margin-bottom: 56px;
        padding: 72px 28px 36px;
        border-radius: 30px;
    }

    .hero-center h1 {
        font-size: clamp(40px, 9vw, 64px);
        line-height: 1.1;
        letter-spacing: -0.052em;
    }

    .hero-center .hero-stats {
        max-width: 720px;
        margin-top: 44px;
    }

    .hero-orb-secondary {
        right: -120px;
    }
}

@media (max-width: 640px) {
    .app-shell {
        width: min(100% - 20px, 1200px);
    }
    .auth-card,
    .card,
    .progress-card,
    .cta-section {
        padding: 20px;
    }

    .hero-center {
        margin-bottom: 44px;
        padding: 46px 18px 18px;
        border-radius: 24px;
    }

    .hero-kicker {
        max-width: 100%;
        gap: 8px;
        padding: 8px 12px;
        font-size: 10px;
        white-space: normal;
    }

    .hero-center h1 {
        font-size: clamp(34px, 13vw, 46px);
        line-height: 1.12;
        letter-spacing: -0.045em;
    }

    .hero-center .hero-desc {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-center .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 28px;
    }

    .hero-center .hero-actions .btn {
        width: 100%;
    }

    .hero-trust-row {
        flex-wrap: wrap;
        row-gap: 8px;
        margin-top: 18px;
    }

    .hero-center .hero-stats {
        grid-template-columns: 1fr;
        margin-top: 34px;
        padding: 8px;
        border-radius: 22px;
    }

    .hero-stat {
        min-height: auto;
        padding: 18px;
    }

    .hero-orb {
        opacity: 0.54;
    }

    .hero-orb-primary {
        left: -120px;
    }

    .hero-orb-accent {
        left: 10%;
    }

    .hero-grid-pattern {
        opacity: 0.18;
    }

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

    .how-header h2,
    .feature-header h2,
    .preview-copy h2 {
        font-size: 24px;
    }

    .hero-stats,
    .how-grid,
    .feature-grid,
    .stat-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hide-mobile {
        display: none;
    }

    .page-head,
    .card-head,
    .textarea-toolbar,
    .progress-top,
    .head-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .input-summary {
        flex-direction: column;
        gap: 6px;
    }

    .progress-top h2 {
        font-size: 40px;
    }

    .stat-card strong {
        font-size: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
