.fishbone-page {
    min-height: calc(100vh - var(--header-height));
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #ecfeff 46%, #f8fafc 100%);
}

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

.fishbone-hero-copy {
    max-width: 780px;
    margin-bottom: 32px;
}

.fishbone-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

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

.fishbone-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);
}

.fishbone-panel-form,
.fishbone-panel-preview {
    padding: 28px;
}

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

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

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

.fishbone-field {
    display: block;
}

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

.fishbone-textarea {
    width: 100%;
    min-height: 560px;
    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;
}

.fishbone-textarea:focus {
    outline: none;
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.fishbone-submit {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #059669, #f59e0b);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(5, 150, 105, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fishbone-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(5, 150, 105, 0.3);
}

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

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

.fishbone-tip-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(16, 185, 129, 0.12);
}

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

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

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

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

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

.fishbone-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.45) 1px, transparent 1px),
        linear-gradient(rgba(226, 232, 240, 0.45) 1px, transparent 1px),
        #ffffff;
    background-size: 28px 28px;
}

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

.fishbone-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;
}

.fishbone-empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.fishbone-empty-icon svg {
    width: 32px;
    height: 32px;
}

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

.fishbone-empty p {
    max-width: 420px;
}

@media (max-width: 960px) {
    .fishbone-panel-form,
    .fishbone-panel-preview {
        padding: 22px;
    }

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

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

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

    .fishbone-textarea {
        min-height: 460px;
    }

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