/* Route-specific styles extracted from landing.css: tools */

/* === FREE TOOL: SUBSTANTIAL MODIFICATION === */
.free-tool-page .section-container {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

.free-tool-hero {
    position: relative;
    z-index: 15;
    padding: 9.5rem 0 3rem;
}

.free-tool-eyebrow {
    display: inline-flex;
    font-family: 'JetBrains Mono', monospace !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.free-tool-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f8fafc;
    margin: 0 0 1rem;
    max-width: 900px;
}

.free-tool-subtitle {
    color: #cbd5e1;
    max-width: 820px;
    line-height: 1.75;
    margin: 0 0 1.5rem;
}

.free-tool-hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.free-tool-section {
    position: relative;
    z-index: 15;
    padding: 1rem 0 2rem;
}

.free-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.free-tool-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 1.25rem;
}

.free-tool-card h2 {
    margin: 0 0 0.8rem;
    color: #f8fafc;
    font-size: 1.05rem;
}

.free-tool-card p,
.free-tool-card li {
    color: #cbd5e1;
    line-height: 1.65;
}

.free-tool-card ul,
.free-tool-card ol {
    margin: 0;
    padding-left: 1.25rem;
}

.free-tool-card-subtitle {
    margin: 0 0 0.65rem;
}

.free-tool-checklist li {
    margin-bottom: 0.45rem;
}

.free-tool-next-step {
    margin-bottom: 0.75rem;
}

.free-tool-disclaimer {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .free-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Substantial modification wizard - pixel style */
#substantialModificationWizardApp {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.smw-nojs {
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    padding: 1rem 1rem;
    background: rgba(2, 8, 18, 0.55);
    color: #cbd5e1;
}

.smw-nojs a {
    color: #93c5fd;
}

.smw-toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 8, 18, 0.92);
    color: #e2e8f0;
    font-size: 0.9rem;
    z-index: 2147483600;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.smw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.smw-root {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #020812;
    color: #cbd5e1;
}

.smw-print {
    display: none;
}

.smw-is-printing body * {
    visibility: hidden !important;
}

.smw-is-printing #substantialModificationWizardApp,
.smw-is-printing #substantialModificationWizardApp .smw-print,
.smw-is-printing #substantialModificationWizardApp .smw-print * {
    visibility: visible !important;
}

.smw-is-printing #substantialModificationWizardApp .smw-print {
    display: block !important;
    position: fixed;
    inset: 0;
    overflow: auto;
    padding: 24px;
    background: #fff !important;
    color: #000 !important;
    z-index: 2147483647;
}

@media print {
    html,
    body {
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    #substantialModificationWizardApp,
    #substantialModificationWizardApp .smw-print,
    #substantialModificationWizardApp .smw-print * {
        visibility: visible !important;
    }

    .cinematic-bg-container,
    .vignette-heavy,
    .grid-pattern-overlay,
    .cinematic-navbar,
    .footer-new,
    .smw-root {
        display: none !important;
    }

    #substantialModificationWizardApp {
        max-width: none !important;
    }

    .smw-print {
        display: block !important;
        background: #fff !important;
        color: #000 !important;
        border: none !important;
        padding: 0;
        font-family: "Inter", Arial, sans-serif;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .smw-print h1 {
        margin: 0 0 0.5rem;
        font-size: 18pt;
        color: #000 !important;
    }

    .smw-print h2 {
        margin: 1rem 0 0.4rem;
        font-size: 12pt;
        color: #000 !important;
    }

    .smw-print-meta {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        font-size: 10pt;
    }

    .smw-print hr {
        border: none;
        border-top: 1px solid #000;
        margin: 0.6rem 0;
    }

    .smw-print-k {
        font-size: 9pt;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.15rem;
    }

    .smw-print-v {
        font-size: 10.5pt;
        color: #000;
        line-height: 1.35;
        word-break: break-word;
    }

    .smw-print-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem 1rem;
    }

    .smw-print-block {
        margin-top: 0.6rem;
        border: 1px solid #000;
        padding: 0.5rem 0.65rem;
    }

    .smw-print-ul {
        margin: 0.35rem 0 0;
        padding-left: 1.1rem;
        font-size: 10.5pt;
    }

    .smw-print-ab {
        margin-top: 0.5rem;
        display: grid;
        grid-template-columns: 1fr 120px;
        gap: 0.25rem 0.75rem;
        border: 1px solid #000;
        padding: 0.5rem 0.65rem;
    }

    .smw-print-result {
        border: 2px solid #000;
        padding: 0.6rem 0.8rem;
    }

    .smw-print-note {
        margin: 0.6rem 0 0;
        font-size: 9.5pt;
        color: #000;
    }

    .smw-print-ad {
        margin-top: 0.8rem;
        border: 1px dashed #000;
        padding: 0.55rem 0.7rem;
    }

    .smw-print-ad-title {
        font-size: 10.5pt;
        font-weight: 800;
        margin-bottom: 0.15rem;
        color: #000;
    }

    .smw-print-ad-body {
        font-size: 10pt;
        line-height: 1.35;
        color: #000;
    }
}

.smw-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

.smw-bg-glow {
    position: absolute;
    width: 780px;
    height: 380px;
    left: 50%;
    top: -120px;
    transform: translateX(-50%);
    pointer-events: none;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, rgba(34, 211, 238, 0.03) 50%, transparent 72%);
    filter: blur(26px);
}

.smw-header,
.smw-main {
    position: relative;
    z-index: 1;
}

.smw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 8, 18, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.smw-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.smw-logo {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #22d3ee;
    font-weight: 700;
    background: #071323;
}

.smw-brand h1 {
    margin: 0;
    color: #fff;
    font-size: 1.03rem;
    letter-spacing: 0.02em;
}

.smw-brand h1 span {
    color: #22d3ee;
}

.smw-brand p {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.69rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.smw-tabs {
    display: flex;
    gap: 0.45rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #040b15;
}

.smw-tabs button {
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.52rem 0.9rem;
    cursor: pointer;
}

.smw-tabs button.active {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.12);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.smw-main {
    padding: 1.35rem;
    margin: 0 auto;
}

.smw-stepper {
    margin: 0.35rem 0 1.4rem;
    position: relative;
}

.smw-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 1px;
    background: #1e293b;
}

.smw-line i {
    display: block;
    height: 1px;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.75);
}

.smw-steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.smw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.smw-step-dot {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f2937;
    color: #64748b;
    background: #090f19;
    font-size: 0.77rem;
    font-weight: 700;
}

.smw-step.active .smw-step-dot {
    color: #020617;
    background: #22d3ee;
    border-color: #22d3ee;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}

.smw-step.done .smw-step-dot {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.6);
    background: rgba(34, 211, 238, 0.12);
}

.smw-step-label {
    color: #64748b;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.smw-step.active .smw-step-label {
    color: #22d3ee;
}

.smw-panel {
    min-height: 510px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(7, 14, 25, 0.82);
    padding: 1.6rem;
}

.smw-panel h2 {
    color: #fff;
    margin: 0 0 0.75rem;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
}

.smw-panel p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

.smw-kicker {
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.62rem;
    margin-bottom: 0.75rem;
}

.smw-panel label {
    display: block;
    margin: 1rem 0 0.35rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.6rem;
}

.smw-panel input,
.smw-panel textarea,
.smw-panel select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #060d18;
    color: #e2e8f0;
    padding: 0.72rem 0.78rem;
    border-radius: 2px;
}

.smw-panel input:focus,
.smw-panel textarea:focus,
.smw-panel select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.smw-callout,
.smw-log {
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(3, 13, 24, 0.7);
    padding: 0.78rem 0.9rem;
}

.smw-list {
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.55;
}

.smw-list li {
    margin-bottom: 0.35rem;
}

.smw-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.smw-choice-grid button {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 8, 16, 0.72);
    color: #cbd5e1;
    padding: 1rem;
    cursor: pointer;
}

.smw-choice-grid button strong {
    display: block;
    color: #fff;
    margin-bottom: 0.4rem;
}

.smw-choice-grid button span {
    color: #64748b;
    font-size: 0.79rem;
}

.smw-choice-grid button:hover,
.smw-choice-grid button.selected {
    border-color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
}

.smw-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.smw-risk-box {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.95rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.smw-risk-box small {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.56rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.22rem;
}

.smw-risk-box strong {
    color: #fff;
    font-size: 1.06rem;
}

.smw-risk-box b {
    color: #fff;
    font-size: 1.9rem;
    font-family: "Consolas", "Courier New", monospace;
}

.smw-risk-box.ok,
.smw-risk-box.low {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.smw-risk-box.medium {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.smw-risk-box.high {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.09);
}

.smw-btn {
    border: 1px solid transparent;
    background: #0f172a;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.74rem 1rem;
    text-decoration: none;
    cursor: pointer;
}

.smw-btn.primary {
    background: #22d3ee;
    color: #020617;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.26);
}

.smw-btn.light {
    background: #f8fafc;
    color: #020617;
}

.smw-btn.ghost {
    border-color: rgba(255, 255, 255, 0.14);
    color: #94a3b8;
}

.smw-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.smw-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    gap: 0.75rem;
}

.smw-actions-right {
    display: inline-flex;
    gap: 0.6rem;
}

.smw-checklist {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.7rem;
}

.smw-check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 8, 16, 0.72);
    cursor: pointer;
}

.smw-check:hover {
    border-color: rgba(34, 211, 238, 0.35);
}

.smw-check input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: #22d3ee;
}

.smw-check-body {
    display: block;
}

.smw-check-title {
    display: inline-block;
    color: #22d3ee;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.smw-check-text {
    display: block;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.5;
}

.smw-actions.right {
    justify-content: flex-end;
}

.smw-actions.center {
    justify-content: center;
}

.smw-result {
    text-align: center;
}

.smw-result h2 {
    margin-top: 0.35rem;
}

.smw-locked {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: repeating-linear-gradient(45deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7) 12px, rgba(2, 6, 23, 0.8) 12px, rgba(2, 6, 23, 0.8) 24px);
    min-height: 240px;
    position: relative;
}

.smw-conds {
    margin: 1rem auto 0;
    max-width: 820px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 8, 16, 0.55);
    padding: 0.85rem 0.95rem;
}

.smw-cond {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.6rem;
    align-items: start;
    padding: 0.35rem 0;
}

.smw-cond-dot {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.7);
    color: #94a3b8;
}

.smw-cond-dot.ok {
    border-color: rgba(34, 211, 238, 0.45);
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
}

.smw-cond-dot.no {
    border-color: rgba(148, 163, 184, 0.22);
    color: #64748b;
}

.smw-cond-text {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.45;
}

.smw-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.smw-locked-overlay h3 {
    margin: 0 0 0.6rem;
    color: #fff;
}

.smw-db-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.smw-db-head span {
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.62rem;
}

.smw-db-head h2 {
    margin: 0.3rem 0 0;
    color: #fff;
    font-size: 1.7rem;
}

.smw-db-head p {
    margin: 0.55rem 0 0;
    max-width: 640px;
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.5;
}

.smw-db-head input {
    width: min(340px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #060d18;
    color: #e2e8f0;
    padding: 0.7rem 0.8rem;
}

.smw-db-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.smw-db-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 14, 25, 0.72);
    padding: 1rem;
}

.smw-db-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
}

.smw-db-top h4 {
    margin: 0 0 0.48rem;
    color: #fff;
}

.smw-db-top span {
    display: inline-block;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    padding: 0.26rem 0.4rem;
}

.smw-db-top .bad {
    color: #fb7185;
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.1);
}

.smw-db-top .good {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.1);
}

.smw-db-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.84rem;
}

.smw-db-reason {
    margin-top: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 14, 0.65);
    padding: 0.6rem;
}

.smw-db-reason small {
    color: #22d3ee;
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.smw-db-reason p {
    margin-top: 0.35rem;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.75rem;
}

.smw-hint {
    margin: 0.72rem 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.5;
}

.smw-hint-log {
    color: #22d3ee;
    margin-right: 0.2rem;
}

.smw-foot {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
    color: #64748b;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}

@media (max-width: 980px) {
    .smw-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .smw-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .smw-choice-grid,
    .smw-select-grid,
    .smw-db-grid {
        grid-template-columns: 1fr;
    }

    .smw-db-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* === FREE TOOL: HAZARD RISK VALUE CHECKER === */
.free-tool-risk-form {
    display: grid;
    gap: 0.45rem;
}

.free-tool-risk-form label {
    color: #e2e8f0;
    font-weight: 600;
    margin-top: 0.35rem;
}

.free-tool-risk-form input[type="number"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    color: #f8fafc;
    padding: 0.62rem 0.78rem;
}

.free-tool-form-hint {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0 0 0.25rem;
}

.free-tool-risk-result {
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.free-tool-risk-dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.5rem 0.75rem;
    margin: 0.8rem 0 0;
}

.free-tool-risk-dl dt {
    color: #94a3b8;
    margin: 0;
}

.free-tool-risk-dl dd {
    color: #f8fafc;
    margin: 0;
}

.free-tool-risk-feedback {
    margin: 0.85rem 0 0;
    color: #f8fafc;
    min-height: 1.25rem;
}

.free-tool-risk-result[data-state="pending"] .free-tool-risk-feedback {
    color: #67e8f9;
}

.free-tool-risk-result[data-state="error"] .free-tool-risk-feedback {
    color: #fca5a5;
}

@media (max-width: 620px) {
    .free-tool-risk-dl {
        grid-template-columns: 1fr;
    }
}

/* Substantial modification wizard (logic-first, style refined later) */
.ft-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
    flex-wrap: wrap;
}

.ft-tabs button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
}

.ft-tabs button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ft-stepper {
    margin: 1rem 0 1.25rem;
    position: relative;
}

.ft-stepper-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.ft-stepper-bar i {
    display: block;
    height: 100%;
    background: #2563eb;
}

.ft-stepper-dots {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.ft-step span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    background: rgba(148, 163, 184, 0.4);
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
}

.ft-step.active span,
.ft-step.done span {
    background: #2563eb;
    color: #fff;
}

.ft-step small {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    margin-top: 0.2rem;
}

.ft-wizard-content label {
    display: block;
    color: #e2e8f0;
    font-weight: 600;
    margin: 0.5rem 0 0.3rem;
}

.ft-wizard-content input,
.ft-wizard-content textarea,
.ft-wizard-content select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    padding: 0.55rem 0.7rem;
}

.ft-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ft-choice-grid button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    padding: 0.8rem;
    cursor: pointer;
}

.ft-choice-grid button.selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.22);
}

.ft-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ft-knowledge-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.ft-knowledge-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.1rem;
}

.ft-example-top {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.ft-example-top h3 {
    margin: 0 0 0.4rem;
    color: #f8fafc;
    font-size: 1rem;
}

.ft-example-top span {
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
}

.ft-example-top span.good {
    color: #166534;
    background: #dcfce7;
}

.ft-example-top span.bad {
    color: #991b1b;
    background: #fee2e2;
}

.ft-example-reason {
    margin: 0.5rem 0 0;
    font-size: 0.83rem;
}

@media (max-width: 900px) {
    .ft-choice-grid {
        grid-template-columns: 1fr;
    }
    .ft-stepper-dots {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


