:root {
    --fs-text: #111827;
    --fs-muted: #4b5563;
    --fs-accent: #2563eb;
    --fs-accent2: #7c3aed;
    --fs-good: #059669;
    --fs-warn: #d97706;
    --fs-bad: #dc2626;
    --fs-border: #e5e7eb;
    --fs-card: #fff;
}
body { background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 45%); }
.fs-tool-shell { max-width: 1180px; margin: 0 auto 24px; padding: 0 14px; }
.fs-tool-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.fs-tool-page { max-width: 920px; margin: 0 auto; padding: 18px 16px 42px; color: var(--fs-text); }

/* Hero banner - full-width modern SVG */
.fs-hero-banner {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    isolation: isolate;
}
.fs-hero-compact {
    position: relative;
    margin: 0 0 10px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.fs-hero-svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 420;
}
.fs-hero-compact .fs-hero-svg { aspect-ratio: 400 / 220; }
.fs-hero-photo-wrap { margin: 0; }
.fs-hero-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.fs-hero-banner.fs-hero-photo-wrap .fs-hero-svg-file,
.fs-hero-banner.fs-hero-photo-wrap .fs-hero-svg-file,
.fs-hero-banner.fs-hero-photo-wrap .fs-hero-photo { aspect-ratio: 1200 / 630; }
.fs-hero-compact.fs-hero-photo-wrap .fs-hero-photo { aspect-ratio: 400 / 220; max-height: 140px; }
.fs-hero-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
    background-size: 200% 100%;
    animation: fs-hero-shine 7s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}
.fs-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}
@keyframes fs-hero-shine {
    0%, 100% { background-position: 120% 0; }
    50% { background-position: -20% 0; }
}
.fs-hero-orb-a { animation: fs-hero-float-a 8s ease-in-out infinite; }
.fs-hero-orb-b { animation: fs-hero-float-b 10s ease-in-out infinite; }
.fs-hero-orb-c { animation: fs-hero-float-c 6s ease-in-out infinite; }
.fs-hero-float-slow { animation: fs-hero-float-slow 5s ease-in-out infinite; transform-origin: center; }
@keyframes fs-hero-float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, -18px); } }
@keyframes fs-hero-float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 10px); } }
@keyframes fs-hero-float-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8px, 12px) scale(1.06); } }
@keyframes fs-hero-float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
    .fs-hero-shine, .fs-hero-orb-a, .fs-hero-orb-b, .fs-hero-orb-c, .fs-hero-float-slow { animation: none; }
}

.fs-tool-crumb { font-size: 0.84rem; color: var(--fs-muted); margin-bottom: 12px; }
.fs-tool-crumb a { color: var(--fs-accent); text-decoration: none; }
.fs-tool-crumb a:hover { text-decoration: underline; }
.fs-tool-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fs-accent);
}
.fs-tool-hero h1 {
    font-family: 'Poppins', 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
    margin: 0 0 10px;
}
.fs-tool-lead { color: var(--fs-muted); line-height: 1.65; margin: 0 0 18px; font-size: 1.02rem; }
.fs-tool-panel {
    background: var(--fs-card);
    border: 1px solid var(--fs-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.fs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .fs-grid-2 { grid-template-columns: 1fr; } }
.fs-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fs-field label { font-size: 0.86rem; font-weight: 700; }
.fs-field input, .fs-field select, .fs-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}
.fs-field textarea { min-height: 120px; resize: vertical; }
.fs-btn {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--fs-accent), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.fs-btn:hover { filter: brightness(1.05); }
.fs-btn-secondary { background: #f3f4f6; color: var(--fs-text); box-shadow: none; }
.fs-drop {
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(145deg, #f8fafc, #eff6ff);
    cursor: pointer;
    margin-bottom: 14px;
}
.fs-drop.is-dragover { border-color: var(--fs-accent2); background: #eef2ff; }
.fs-result {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    line-height: 1.55;
}
.fs-result.is-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.fs-result.is-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.fs-preview-wrap { margin-top: 12px; text-align: center; }
.fs-preview-wrap canvas, .fs-preview-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--fs-border);
}
.fs-note { font-size: 0.84rem; color: var(--fs-muted); margin: 8px 0 0; line-height: 1.5; }
.fs-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fs-tool-cta, .fs-tool-faq, .fs-tool-more { margin-top: 28px; }
.fs-tool-cta h2, .fs-tool-faq h2, .fs-tool-more h2 {
    font-size: 1.15rem;
    margin: 0 0 12px;
    font-family: 'Poppins', 'Nunito', sans-serif;
}
.fs-tool-cta ul { margin: 0; padding-left: 1.2rem; color: var(--fs-muted); line-height: 1.7; }
.fs-tool-faq details {
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fafafa;
}
.fs-tool-faq summary { cursor: pointer; font-weight: 700; }
.fs-tool-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.fs-tool-more-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--fs-border);
    text-decoration: none;
    color: var(--fs-text);
    font-size: 0.84rem;
    font-weight: 700;
    background: #fff;
}
.fs-tool-more-link:hover { border-color: var(--fs-accent); color: var(--fs-accent); }

.fs-lsi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}
.fs-lsi-tags span {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.fs-tool-article {
    margin-top: 32px;
    padding-top: 8px;
    border-top: 1px solid var(--fs-border);
    line-height: 1.75;
    color: var(--fs-text);
}
.fs-tool-article h2 {
    font-family: 'Poppins', 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 28px 0 10px;
    color: var(--fs-text);
}
.fs-tool-article h2:first-child { margin-top: 0; }
.fs-tool-article p { margin: 0 0 14px; color: var(--fs-muted); }
.fs-tool-article a { color: var(--fs-accent); font-weight: 600; }

.fs-tool-related, .fs-tool-products {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--fs-border);
    background: #f8fafc;
}
.fs-tool-related h2, .fs-tool-products h2 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    font-family: 'Poppins', 'Nunito', sans-serif;
}
.fs-tool-related ul, .fs-tool-products ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--fs-muted);
    line-height: 1.65;
}
.fs-tool-related a, .fs-tool-products a { color: var(--fs-accent); font-weight: 600; }

.fs-pal-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fs-pal-swatch {
    min-width: 88px;
    padding: 28px 8px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.08);
}

.fs-checklist { list-style: none; margin: 0; padding: 0; }
.fs-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--fs-border);
}
.fs-checklist input { margin-top: 4px; }
.fs-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.fs-table th, .fs-table td { border: 1px solid var(--fs-border); padding: 8px; text-align: left; }
.fs-table th { background: #f8fafc; }

/* Hub toolbox grid */
.fs-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.fs-toolbox-card {
    display: block;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--ring, #e5e7eb);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    overflow: hidden;
}
.fs-toolbox-card-body { padding: 12px 14px 14px; }
.fs-toolbox-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent, #2563eb);
    box-shadow: 0 12px 28px rgba(37,99,235,.15);
}
.fs-toolbox-card h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--text, #1f2937); }
.fs-toolbox-card p { margin: 0; font-size: 0.82rem; color: var(--muted, #6b7280); line-height: 1.45; }
.fs-toolbox-card .ico { display: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.fs-req { color: var(--fs-bad); }

/* Entry choice - DIY vs team */
.fs-entry-choice {
    margin: 0 0 22px;
    padding: 20px 18px 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8faff 0%, #f5f3ff 45%, #f0fdf9 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 32px rgba(79, 70, 229, 0.07);
}
.fs-entry-kicker {
    margin: 0 0 4px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6366f1;
    text-align: center;
}
.fs-entry-kicker i { margin-right: 6px; }
.fs-entry-title {
    margin: 0 0 16px;
    text-align: center;
    font-family: 'Poppins', 'Nunito', sans-serif;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
}
.fs-entry-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .fs-entry-cards { grid-template-columns: 1fr; }
}
.fs-entry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    padding: 18px 16px 16px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    font: inherit;
    color: inherit;
    width: 100%;
}
.fs-entry-card:hover {
    transform: translateY(-2px);
    border-color: #a5b4fc;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}
.fs-entry-card.is-active {
    border-color: #6366f1;
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.18);
    background: linear-gradient(160deg, #fff 0%, #eef2ff 100%);
}
.fs-entry-card[data-path="team"].is-active {
    border-color: #059669;
    background: linear-gradient(160deg, #fff 0%, #ecfdf5 100%);
    box-shadow: 0 14px 34px rgba(5, 150, 105, 0.15);
}
.fs-entry-card-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.fs-entry-card[data-path="team"] .fs-entry-card-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%);
}
.fs-entry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.fs-entry-icon-diy {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
.fs-entry-icon-team {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}
.fs-entry-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}
.fs-entry-badge.is-free {
    background: #ecfdf5;
    color: #047857;
}
.fs-entry-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}
.fs-entry-card-desc {
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Team help form panel */
.fs-help-form-panel {
    margin: 0 0 22px;
}
.fs-help-form-inner {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #ecfdf5 100%);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 20px 20px 22px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.09);
}
.fs-help-form-kicker {
    margin: 0 0 6px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4338ca;
}
.fs-help-form-kicker i { margin-right: 6px; }
.fs-help-form-head h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-family: 'Poppins', 'Nunito', sans-serif;
    color: #111827;
}
.fs-help-form-lead {
    margin: 0 0 14px;
    color: #374151;
    line-height: 1.55;
    font-size: 0.95rem;
}
.fs-help-hints {
    margin: 0 0 16px;
    padding: 12px 14px;
    list-style: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    display: grid;
    gap: 8px;
}
.fs-help-hints li {
    font-size: 0.86rem;
    color: #374151;
    line-height: 1.45;
}
.fs-help-hints i {
    color: #059669;
    margin-right: 8px;
}
.fs-help-drop i {
    display: block;
    font-size: 1.6rem;
    color: #6366f1;
    margin-bottom: 6px;
}
.fs-help-file-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.fs-help-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    font-size: 0.86rem;
}
.fs-help-file-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}
.fs-help-file-badge.is-done { background: #d1fae5; color: #047857; }
.fs-help-file-badge.is-error { background: #fee2e2; color: #b91c1c; }
.fs-help-captcha-row input {
    max-width: 120px;
}
.fs-help-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.fs-help-status {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.fs-help-status.is-good {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.fs-help-status.is-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}
.fs-help-status.is-bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.fs-tool-workspace[hidden],
.fs-help-form-panel[hidden] { display: none !important; }

/* Human + AI help */
.fs-human-help {
    margin: 20px 0 0;
    padding: 0;
}
.fs-human-help-inner {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 55%, #ecfdf5 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}
.fs-human-help-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4338ca;
}
.fs-human-help-kicker i { margin-right: 6px; }
.fs-human-help h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #111827;
}
.fs-human-help-lead { margin: 0 0 10px; color: #374151; line-height: 1.55; }
.fs-human-help-list {
    margin: 0 0 14px;
    padding-left: 1.2rem;
    color: #4b5563;
    line-height: 1.5;
}
.fs-human-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.fs-btn-human {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff !important;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.fs-btn-human:hover { filter: brightness(1.05); }
.fs-tool-howto {
    margin-top: 22px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--fs-border);
    border-radius: 12px;
}
.fs-tool-howto h2 { margin: 0 0 12px; font-size: 1.1rem; }
.fs-howto-steps {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 10px;
}
.fs-howto-steps li {
    color: var(--fs-muted);
    line-height: 1.5;
}
.fs-howto-steps strong {
    display: block;
    color: var(--fs-text);
    margin-bottom: 2px;
}
