/* Shared styles for "Do I Sound …?" voice tone tools */
.tool-container { max-width: 820px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.tool-section { background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); padding: 32px; margin: 24px 0; }
.tool-h1 { font-size: 40px; font-weight: 800; margin-top: 40px; }
.tool-sub { font-size: 1.15rem; color: #555; margin: 16px 0 28px; }

.rec-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; min-width: 220px;
    background: #d55d34; color: #fff !important; border: none; border-radius: 50px;
    font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
    font-size: 1rem; line-height: 1.2;
}
.rec-btn:hover { background: #cc6d4c; transform: translateY(-2px); }
.rec-btn.recording { background: #b71c1c; animation: dis-rec-pulse 1.4s infinite; }
.rec-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.rec-btn .rec-btn-icon { width: 1.15rem; text-align: center; flex-shrink: 0; }
.rec-btn .rec-btn-label { white-space: nowrap; }

@keyframes dis-rec-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(183,28,28,.45); }
    50% { box-shadow: 0 0 0 14px rgba(183,28,28,0); }
}

.timer-display {
    font-size: 2.4rem; font-weight: 800; color: #d55d34; margin: 14px 0;
    font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #bbb; font-size: 0.85rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }
.upload-label {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border: 1.5px dashed #e0e0e0; border-radius: 10px; cursor: pointer;
    font-size: 0.9rem; color: #666; transition: all .2s;
}
.upload-label:hover { border-color: #d55d34; color: #d55d34; background: #fff8f4; }
.upload-label input { display: none; }
.upload-filename { font-size: 0.82rem; color: #888; margin-top: 6px; min-height: 1.2em; }

.dis-results { display: none; text-align: left; animation: dis-fade-in .35s ease-out; }
@keyframes dis-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.dis-result-hero { text-align: center; padding: 8px 4px 4px; }
.dis-score-ring {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 148px; height: 148px; border-radius: 50%;
    background: linear-gradient(145deg, #fff8f4 0%, #fff 55%);
    border: 4px solid #f0c8a8; margin: 0 auto 22px;
    box-shadow: 0 8px 24px rgba(213, 93, 52, 0.12);
}
.dis-score-value { font-size: 2.35rem; font-weight: 800; color: #d55d34; line-height: 1; letter-spacing: -0.02em; }
.dis-score-caption {
    font-size: 0.72rem; color: #888; text-transform: uppercase; letter-spacing: 0.07em;
    font-weight: 700; margin-top: 6px; max-width: 120px; line-height: 1.3;
}

.dis-meter-wrap { max-width: 520px; margin: 0 auto 22px; text-align: left; }
.dis-meter-wrap .meter-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: #888; margin-bottom: 8px; font-weight: 600; }
.dis-meter-track {
    height: 12px; background: #ececec; border-radius: 999px; overflow: hidden; position: relative;
}
.dis-meter-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #4caf50, #ff9800, #e53935);
    transition: width .85s cubic-bezier(.4, 0, .2, 1);
}
.dis-meter-pointer {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 3px solid #333; box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: left .85s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

.dis-tone-block { text-align: center; margin-top: 8px; }
.dis-tone-block .dis-field-label {
    font-size: 0.72rem; color: #888; text-transform: uppercase; letter-spacing: 0.07em;
    font-weight: 700; margin-bottom: 10px;
}
.tone-badge { display: inline-block; padding: 8px 18px; border-radius: 20px; font-weight: 700; font-size: 0.92rem; margin: 4px; }
.dis-primary-tone-card {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    background: #fff8f4;
    border: 2px solid #e8b090;
    border-radius: 14px;
    padding: 16px 22px;
    margin: 0 auto;
}
.dis-primary-tone-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #9a3412;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.dis-primary-tone-desc {
    margin: 10px 0 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: #555;
    line-height: 1.55;
}
.dis-primary-tone-desc:empty { display: none; margin: 0; }
.dis-primary-tone-card.is-empty { display: none; }
.tone-secondary { background: #fff3e9; color: #8b3a12; border: 1px solid #f0c8a8; }
.dis-secondary-row { margin-top: 16px; }
.dis-secondary-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.dis-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; color: #222; }
.verdict-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #ececec; border-radius: 12px; padding: 18px 20px;
    line-height: 1.75; color: #444; font-size: 0.97rem;
}

.signal-list, .tip-list { list-style: none; padding: 0; margin: 0; }
.signal-list li, .tip-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; line-height: 1.6; border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem; color: #444;
}
.signal-list li:last-child, .tip-list li:last-child { border-bottom: none; }
.signal-list .list-icon, .tip-list .list-icon {
    flex-shrink: 0; width: 1.1rem; margin-top: 0.2rem; text-align: center;
}
.signal-list .list-icon { color: #d55d34; }
.tip-list .list-icon { color: #2e7d32; }

.dis-try-again-wrap { text-align: center; margin: 8px 0 4px; }
.rec-btn.rec-btn-secondary { background: #5c5c5c; min-width: 180px; }
.rec-btn.rec-btn-secondary:hover { background: #444; }

.privacy-note { font-size: 0.78rem; color: #999; margin-top: 14px; }
.tool-steps-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 20px; }
.tool-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 480px; margin: 0 auto 24px; }
.tool-step { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: #444; line-height: 1.4; }
.tool-step-num {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: #d55d34; color: #fff; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.faq-block { text-align: left; margin-top: 44px; }
.faq-item { background: #f8f9fa; border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.faq-item p { font-size: 0.92rem; color: #666; margin: 0; line-height: 1.6; }
.tool-feat-grid { display: block; margin-top: 44px; text-align: left; }
.tool-feat-grid h2 { text-align: center; font-size: 26px; font-weight: 700; margin-bottom: 26px; }
.tool-feat-grid h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: #333; }
.tool-feat-grid p { color: #666; font-size: 0.95rem; margin: 0; line-height: 1.6; }
.feat-icon {
    width: 52px; height: 52px; border-radius: 12px; background: #fff3e9;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.feat-icon i { font-size: 22px; color: #d55d34; }

@keyframes dis-spin { to { transform: rotate(360deg); } }
.dis-loading-spinner {
    width: 48px; height: 48px; border: 5px solid #f3f3f3; border-top-color: #d55d34;
    border-radius: 50%; animation: dis-spin 1s linear infinite; margin: 0 auto;
}

.dis-tool-error {
    display: none;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: #fff5f5;
    border: 1px solid #f5c2c2;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #8b1a1a;
    font-size: 0.95rem;
    line-height: 1.55;
}
.dis-tool-error.is-visible { display: flex; }
.dis-tool-error i { flex-shrink: 0; margin-top: 2px; font-size: 1.1rem; color: #c62828; }

@media (max-width: 767px) {
    .tool-container { padding: 16px 12px; }
    .tool-section { padding: 20px; }
    .tool-h1 { font-size: 28px; }
    .rec-btn { min-width: 0; width: 100%; max-width: 320px; }
    .dis-score-ring { width: 132px; height: 132px; }
    .dis-score-value { font-size: 2rem; }
}
