.tm-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5,7,11,.72);
    backdrop-filter: blur(12px);
    z-index: 9999;
}

    .tm-modal.open {
        display: flex;
    }

.tm-panel {
    position: relative;
    width: 100%;
    max-width: 1480px;
    height: 92vh;
    overflow: hidden;
    border-radius: 32px;
    background: #f7f6f2;
    box-shadow: 0 40px 120px rgba(0,0,0,.24);
}

.tm-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
}

.tm-shell {
    display: grid;
    grid-template-columns: 340px 1fr;
    width: 100%;
    height: 100%;
}

.tm-sidebar {
    padding: 42px 32px;
    border-right: 1px solid #e7e3da;
    overflow-y: auto;
}

.tm-brand {
    display: inline-flex;
    align-items: center;
    font-size: 42px;
    font-weight: 700;
    text-decoration: none;
    color: #0d1117;
    margin-bottom: 24px;
}

    .tm-brand span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #00875a;
        margin-left: 6px;
        margin-top: 10px;
    }

.tm-sidebar-copy {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 44px;
}

.tm-progress {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tm-progress-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
}

    .tm-progress-item.active {
        background: white;
        border: 1px solid #e7e3da;
    }

.tm-progress-index {
    font-size: 12px;
    font-weight: 700;
    color: #00875a;
}

.tm-progress-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tm-progress-copy {
    font-size: 14px;
    color: #6b7280;
}

.tm-main {
    overflow-y: auto;
    padding: 72px;
}

.tm-step {
    display: none;
}

    .tm-step.active {
        display: block;
    }

.tm-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e7e3da;
    background: white;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.tm-title {
    font-size: 72px;
    line-height: .95;
    max-width: 900px;
    margin-bottom: 24px;
}

.tm-copy {
    max-width: 760px;
    color: #6b7280;
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 48px;
}

.tm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.tm-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .tm-field.full {
        grid-column: span 2;
    }

    .tm-field label {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .tm-field input,
    .tm-field select,
    .tm-field textarea {
        width: 100%;
        border: 1px solid #d9d4c7;
        border-radius: 18px;
        background: white;
        padding: 18px 20px;
        font-size: 16px;
    }

    .tm-field input,
    .tm-field select {
        height: 64px;
    }

    .tm-field textarea {
        min-height: 180px;
        resize: vertical;
    }

.tm-actions {
    display: flex;
    gap: 16px;
    margin-top: 42px;
}

.tm-btn {
    border: none;
    border-radius: 16px;
    padding: 18px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.tm-btn-primary {
    background: #00875a;
    color: white;
}

.tm-btn-secondary {
    background: white;
    border: 1px solid #d9d4c7;
}

.tm-btn.full {
    width: 100%;
}

.tm-analysis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.tm-terminal {
    width: 100%;
    max-width: 880px;
    background: #05070b;
    border-radius: 32px;
    padding: 42px;
}

.tm-terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

    .tm-terminal-header span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,.18);
    }

.tm-terminal-line {
    position: relative;
    padding-left: 22px;
    color: rgba(255,255,255,.82);
    margin-bottom: 18px;
}

    .tm-terminal-line::before {
        content: "";
        position: absolute;
        left: 0;
        top: 7px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #00875a;
    }

.tm-results {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
}

.tm-card,
.tm-score-card {
    border-radius: 28px;
    padding: 32px;
}

.tm-card {
    background: white;
    border: 1px solid #e7e3da;
}

.tm-card-label,
.tm-score-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #00875a;
    margin-bottom: 24px;
}

.tm-detected {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tm-detected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
}

    .tm-detected-item span {
        color: #6b7280;
    }

.tm-score-card {
    background: #05070b;
    color: white;
}

.tm-score {
    font-size: 88px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tm-score-copy {
    color: rgba(255,255,255,.72);
    line-height: 1.8;
    margin-bottom: 28px;
}

@media (max-width: 1200px) {

    .tm-shell {
        grid-template-columns: 1fr;
    }

    .tm-sidebar {
        border-right: none;
        border-bottom: 1px solid #e7e3da;
    }

    .tm-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .tm-modal {
        padding: 0;
    }

    .tm-panel {
        height: 100vh;
        border-radius: 0;
    }

    .tm-main {
        padding: 42px 24px 120px;
    }

    .tm-grid {
        grid-template-columns: 1fr;
    }

    .tm-field.full {
        grid-column: span 1;
    }

    .tm-title {
        font-size: 48px;
    }

    .tm-actions {
        flex-direction: column;
    }
}
