.thst-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
}

.thst-seo-intro { margin-bottom: 24px; }
.thst-seo-title { font-size: 1.9rem; margin-bottom: 10px; line-height: 1.25; }
.thst-meta-desc { font-size: 1.05rem; color: #4b5563; margin-bottom: 10px; }
.thst-intro-para { font-size: 1rem; color: #374151; line-height: 1.6; }

.thst-tool {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin: 20px 0 32px;
}

.thst-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.thst-tab {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s ease, border-color .15s ease;
}

.thst-tab:hover { color: #111827; }

.thst-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.thst-panel { display: none; }
.thst-panel.active { display: block; }

.thst-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: .95rem;
}

.thst-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: #fff;
}

.thst-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.thst-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.thst-control label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.thst-select {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: .95rem;
}

.thst-control input[type="range"] { width: 100%; }

.thst-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.thst-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: background .15s ease, opacity .15s ease;
}

.thst-btn:hover:not(:disabled) { background: #f3f4f6; }
.thst-btn:disabled { opacity: .45; cursor: not-allowed; }

.thst-btn-primary {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.thst-btn-primary:hover:not(:disabled) { background: #4338ca; }

.thst-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #ef4444;
}

.thst-btn-ghost:hover { background: #fef2f2; }

.thst-mic-btn.listening {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    animation: thst-pulse 1.4s infinite;
}

@keyframes thst-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.45); }
    70% { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

.thst-lang-select { max-width: 220px; }

.thst-mic-status {
    font-size: .9rem;
    color: #6b7280;
    margin: 10px 0 16px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.thst-note {
    font-size: .85rem;
    color: #b45309;
    margin-top: 12px;
}

.thst-char-count {
    font-size: .8rem;
    color: #9ca3af;
    margin-top: 8px;
    text-align: right;
}

.thst-howto, .thst-faq {
    margin-top: 32px;
}

.thst-howto h2, .thst-faq h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.thst-howto h3 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
}

.thst-howto ol {
    padding-left: 20px;
    line-height: 1.7;
}

.thst-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.thst-faq-item h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.thst-faq-item p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .thst-seo-title { font-size: 1.5rem; }
    .thst-tool { padding: 16px; }
}
