.dh-morse-calculator { width: 100%; padding: 0; }
.dh-morse-calculator *,
.dh-morse-calculator *::before,
.dh-morse-calculator *::after { box-sizing: border-box; }

.dh-morse-card {
    max-width: 100%;
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-xl, 16px);
    background: var(--color-bg-primary, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
}

.dh-morse-header {
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 3px solid #edb133;
}

.dh-morse-kicker {
    margin: 0 0 6px;
    color: var(--color-text-muted, #64748b);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dh-morse-title {
    margin: 0 0 4px;
    color: #346af1;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 800;
    line-height: 1.15;
}

.dh-morse-subtitle {
    margin: 0;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.78rem;
}

.dh-morse-info {
    background: rgba(52, 106, 241, 0.08);
    border: 1px solid #edb133;
    border-left: 4px solid #edb133;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #1f2937;
    line-height: 1.5;
}

.dh-morse-section-title {
    margin: 18px 0 10px;
    padding-left: 10px;
    border-left: 4px solid #edb133;
    color: #346af1;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dh-morse-question {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #346af1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.dh-morse-question-header {
    color: #346af1;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dh-morse-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #346af1;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dh-morse-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dh-morse-option {
    display: flex;
    align-items: stretch;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.dh-morse-option:hover {
    background: rgba(52, 106, 241, 0.08);
    border-color: #edb133; color: #1f2937;
}

.dh-morse-option.is-selected {
    background: #346af1;
    border-color: #346af1;
}

.dh-morse-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dh-morse-option-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1f2937;
}

.dh-morse-option-desc {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.45;
}

.dh-morse-option.is-selected .dh-morse-option-label,
.dh-morse-option.is-selected .dh-morse-option-desc { color: #fff; }

.dh-morse-option-pts {
    margin-left: 10px;
    align-self: center;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(237, 177, 51, 0.2);
    color: #92400e;
    flex-shrink: 0;
    white-space: nowrap;
}

.dh-morse-option.is-selected .dh-morse-option-pts {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.dh-morse-note {
    background: rgba(52, 106, 241, 0.08);
    border: 1px solid #edb133;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 10px;
    font-size: 0.7rem;
    color: #92400e;
    font-weight: 600;
    line-height: 1.4;
}

.dh-morse-actions { margin-top: 16px; }

.dh-morse-primary {
    width: 100%;
    min-height: 48px;
    padding: 14px;
    background: #346af1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease;
}

.dh-morse-primary:hover { background: #2855d4; }

.dh-morse-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 600;
}

.dh-morse-results {
    margin-top: 18px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    animation: dhMorseFadeIn 0.3s ease;
}

@keyframes dhMorseFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dh-morse-pontuacao {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.dh-morse-pontuacao-sub {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 8px;
}

.dh-morse-interpretacao {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.dh-morse-descricao {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 12px;
    color: #1f2937;
}

.dh-morse-detail {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    text-align: left;
}

.dh-morse-detail-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dh-morse-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.78rem;
    gap: 10px;
}

.dh-morse-detail-item:last-child { border-bottom: none; }
.dh-morse-detail-item span:first-child { color: #6b7280; font-weight: 600; flex: 1; }
.dh-morse-detail-item span:last-child { color: #1f2937; font-weight: 700; }

.dh-morse-detail-item--alert {
    border-top: 2px solid #346af1;
    padding-top: 10px;
    margin-top: 6px;
    border-bottom: none;
}

.dh-morse-detail-item--alert span:first-child { color: #346af1; font-weight: 800; }
.dh-morse-detail-item--alert span:last-child { color: #346af1; }

.dh-morse-detail--guidance {
    background: rgba(52, 106, 241, 0.08);
    border: 1px solid #edb133;
}

.dh-morse-detail--guidance .dh-morse-detail-title { color: #92400e; }

.dh-morse-guidance-text {
    font-size: 0.78rem;
    color: #1f2937;
    line-height: 1.55;
}

.dh-morse-results--baixo { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border: 2px solid #346af1; }
.dh-morse-results--baixo .dh-morse-pontuacao,
.dh-morse-results--baixo .dh-morse-interpretacao { color: #346af1; }

.dh-morse-results--medio { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #edb133; }
.dh-morse-results--medio .dh-morse-pontuacao,
.dh-morse-results--medio .dh-morse-interpretacao { color: #d97706; }

.dh-morse-results--alto { background: linear-gradient(135deg, #fee2e2, #fecaca); border: 2px solid #ef4444; }
.dh-morse-results--alto .dh-morse-pontuacao,
.dh-morse-results--alto .dh-morse-interpretacao { color: #dc2626; }

.dh-morse-reference {
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .dh-morse-option { flex-direction: column; align-items: flex-start; gap: 6px; }
    .dh-morse-option-pts { align-self: flex-start; margin-left: 0; }
    .dh-morse-pontuacao { font-size: 2.1rem; }
}
