.gantt-page {
    min-height: calc(100vh - var(--header-height));
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 36%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
}

.gantt-hero {
    padding: 56px 0 72px;
}

.gantt-hero-copy {
    max-width: 760px;
    margin-bottom: 32px;
}

.gantt-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gantt-hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.gantt-hero-copy p {
    margin-top: 16px;
    max-width: 680px;
    font-size: 18px;
    color: #475569;
}

.gantt-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gantt-panel {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.gantt-panel-form {
    padding: 28px;
}

.gantt-panel-preview {
    padding: 28px;
}

.gantt-panel-head h2 {
    font-size: 24px;
    color: #0f172a;
}

.gantt-panel-head p {
    margin-top: 8px;
    color: #64748b;
}

.gantt-form {
    margin-top: 24px;
}

.gantt-field {
    display: block;
}

.gantt-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.gantt-textarea {
    width: 100%;
    min-height: 420px;
    padding: 20px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    color: #0f172a;
    font: 500 14px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gantt-textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.gantt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gantt-submit {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gantt-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.32);
}

.gantt-helper {
    color: #64748b;
    font-size: 13px;
}

.gantt-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gantt-tip-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.gantt-tip-card span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gantt-tip-card strong {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: #0f172a;
}

.gantt-tip-card p {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

.gantt-feedback {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.gantt-feedback-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.gantt-preview-canvas {
    margin-top: 20px;
    padding: 20px;
    height: min(72vh, 760px);
    min-height: 560px;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(90deg, rgba(226, 232, 240, 0.55) 1px, transparent 1px),
        linear-gradient(rgba(226, 232, 240, 0.55) 1px, transparent 1px),
        #ffffff;
    background-size: 24px 24px;
}

.gantt-preview-canvas svg {
    display: block;
    width: auto;
    min-width: 100%;
    max-width: none;
    height: auto;
}

.gantt-empty {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 560px;
    margin-top: 20px;
    padding: 36px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.96));
    color: #64748b;
}

.gantt-empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.gantt-empty-icon svg {
    width: 28px;
    height: 28px;
}

.gantt-empty h3 {
    color: #0f172a;
    font-size: 24px;
}

.gantt-empty p {
    max-width: 360px;
}

@media (max-width: 1080px) {
    .gantt-panel-preview {
        min-height: 0;
    }

    .gantt-preview-canvas,
    .gantt-empty {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .gantt-hero {
        padding: 36px 0 56px;
    }

    .gantt-panel-form,
    .gantt-panel-preview {
        padding: 20px;
        border-radius: 24px;
    }

    .gantt-tip-grid {
        grid-template-columns: 1fr;
    }

    .gantt-textarea {
        min-height: 360px;
    }

    .gantt-preview-canvas {
        padding: 14px;
        height: min(62vh, 620px);
        min-height: 360px;
    }
}
