/* ==========================================================================
   DISEÑO PESTAÑA CALCULADORA: DOSIS, MEDIDAS Y CHECKLISTS
   ========================================================================== */

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calc-panel-etsy, .checklist-panel-etsy {
    background: #ffffff;
    border: var(--border-sketchy);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 6px 6px 0px rgba(74, 85, 104, 0.15);
}

.panel-header-etsy {
    margin-bottom: 1.8rem;
    border-bottom: 2px dashed rgba(74, 85, 104, 0.15);
    padding-bottom: 0.8rem;
}

.panel-header-etsy h2 {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header-etsy p {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Calculadora Peso */
.weight-card-etsy {
    background-color: var(--pastel-pink-bg);
    border: 2px solid var(--pastel-pink-border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.8rem;
}

.weight-card-etsy label {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--pastel-pink-text);
    display: block;
    margin-bottom: 0.4rem;
}

.weight-row {
    display: flex;
    align-items: center;
    max-width: 180px;
    margin-bottom: 1rem;
}

.weight-card-etsy input[type="number"] {
    background: #ffffff;
    border: 2px solid var(--text-dark);
    border-radius: 10px 0 0 10px;
    color: var(--text-dark);
    padding: 0.6rem 0.8rem;
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 800;
    width: 100%;
    outline: none;
}

.weight-lbl {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 1rem;
    font-weight: 850;
    color: #334155;
}

.weight-card-etsy input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--text-dark);
}

.weight-card-etsy input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pastel-pink-text);
    border: 2px solid var(--text-dark);
    cursor: pointer;
    box-shadow: 0 0 0 rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.weight-card-etsy input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Fichas de Dosis */
.doses-list-etsy {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dose-item-etsy {
    border: var(--border-sketchy);
    border-radius: 16px;
    padding: 1.2rem;
    position: relative;
    box-shadow: 4px 4px 0 rgba(74, 85, 104, 0.1);
}

.dose-cyan { background-color: var(--pastel-cyan-bg); border-color: var(--pastel-cyan-border); }
.dose-cyan h4 { color: var(--pastel-cyan-text); }
.dose-cyan .dose-val-output { color: var(--pastel-cyan-text); }

.dose-pink { background-color: var(--pastel-pink-bg); border-color: var(--pastel-pink-border); }
.dose-pink h4 { color: var(--pastel-pink-text); }
.dose-pink .dose-val-output { color: var(--pastel-pink-text); }

.dose-yellow { background-color: var(--pastel-yellow-bg); border-color: var(--pastel-yellow-border); }
.dose-yellow h4 { color: var(--pastel-yellow-text); }
.dose-yellow .dose-val-output { color: var(--pastel-yellow-text); }

.dose-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.dose-hdr h4 {
    font-weight: 800;
    font-size: 1.02rem;
}

.dose-val-formula {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    background-color: rgba(255,255,255,0.5);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.dose-val-output {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
}

.dose-desc {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-gray);
    border-top: 1.5px dashed rgba(74, 85, 104, 0.1);
    padding-top: 0.4rem;
    line-height: 1.35;
}

/* Checklist Pre-parto */
.full-width {
    width: 100% !important;
    margin-bottom: 1.5rem;
}

.chk-grid-etsy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.chk-column-etsy {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1.5px dashed rgba(74, 85, 104, 0.15);
    border-radius: 12px;
    padding: 0.8rem;
}

.chk-column-etsy h5 {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-dark);
    border-bottom: 1.5px dashed rgba(74, 85, 104, 0.1);
    padding-bottom: 0.2rem;
    margin-bottom: 0.4rem;
}

.chk-column-etsy ul {
    list-style: none;
}

.chk-column-etsy ul li {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chk-column-etsy ul li input[type="checkbox"] {
    accent-color: var(--pastel-pink-text);
    cursor: pointer;
}

/* Tabla de Medidas */
.sizes-card-etsy {
    margin-bottom: 0;
}

.sizes-table-etsy {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.sizes-table-etsy th, .sizes-table-etsy td {
    padding: 0.45rem 0.5rem;
    text-align: left;
    border-bottom: 1.5px dashed rgba(74, 85, 104, 0.1);
}

.sizes-table-etsy th {
    color: var(--text-muted);
    font-weight: 800;
}

/* Footer General Compacto */
.app-footer-etsy {
    text-align: center;
    margin-top: 1.5rem;
    border-top: 2px dashed rgba(74, 85, 104, 0.15);
    padding: 1rem 0.8rem 1.5rem 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.app-footer-etsy p {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

@media (max-width: 768px) {
    .app-footer-etsy {
        display: none !important;
    }
}

/* Ajustes Responsivos */
@media (max-width: 1100px) {
    .app-main {
        padding: 1rem;
    }
    .explore-layout {
        grid-template-columns: 1fr;
    }
    .reference-sidebar {
        position: static;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .study-card {
        flex: 1 1 290px;
    }
    .simulate-layout {
        grid-template-columns: 1fr;
    }
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   NUEVO LAYOUT: SECCIÓN DE FICHAS DE ESTUDIO & CALCULADORA CENTRADA
   ========================================================================== */

.flashcards-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.flashcards-section-header h2 {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.flashcards-section-header p {
    font-family: var(--font-hand);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.flashcards-grid-etsy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.flashcards-grid-etsy .study-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flashcards-grid-etsy .study-card h3 {
    margin-bottom: 0.8rem;
}

.calculator-centered-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 0;
}

.calculator-centered-layout .calc-panel-etsy {
    width: 100%;
    max-width: 620px;
}

.risk-section-etsy {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.risk-section-etsy h5 {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ==========================================================================
   SEPARADORES DE LIBRETA (BINDER TABS) ESTILO ETSY
   ========================================================================== */

/* ==========================================================================
   SEPARADORES DE LIBRETA (PASTILLA PILLS COMPACTAS POR LECCIONES)
   Optimizados para estudio fluido en celular con 1 sola fila táctil.
   ========================================================================== */

.flashcards-tabs-etsy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 2.5px dashed rgba(74, 85, 104, 0.2);
    padding-bottom: 0.8rem;
    padding-left: 0.2rem;
}

.flashcard-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    border: 2px solid rgba(74, 85, 104, 0.2);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-washi-tape {
    position: absolute;
    top: -6px;
    left: 20px;
    width: 32px;
    height: 12px;
    opacity: 0.85;
    border-radius: 2px;
    pointer-events: none;
}

.tab-icon-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
    min-width: 0;
    flex: 1;
}

.tab-emoji {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.tab-text-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-main-label {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 0.82rem;
    font-weight: 850;
    color: #2d3748;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tab-sub-label {
    font-family: var(--font-handwritten, 'Caveat', cursive);
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tab-count-badge {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #334155;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    margin-left: 0.2rem;
}

/* Pastillas temáticas Etsy Nurse para los Separadores */
.flashcard-tab.tab-all { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-color: #cbd5e1; }
.flashcard-tab.tab-before { background: linear-gradient(135deg, #fff5f7 0%, #ffe4e6 100%); border-color: #fecdd3; }
.flashcard-tab.tab-block-b { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-color: #bae6fd; }
.flashcard-tab.tab-block-d { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fde68a; }
.flashcard-tab.tab-special { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); border-color: #e9d5ff; }
.flashcard-tab.tab-post { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }

.flashcard-tab:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.flashcard-tab.active {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px) scale(1.03);
}

.flashcard-tab.tab-all.active { border: 2.5px solid #64748b; }
.flashcard-tab.tab-before.active { border: 2.5px solid #f43f5e; }
.flashcard-tab.tab-block-b.active { border: 2.5px solid #0284c7; }
.flashcard-tab.tab-block-d.active { border: 2.5px solid #d97706; }
.flashcard-tab.tab-special.active { border: 2.5px solid #9333ea; }
.flashcard-tab.tab-post.active { border: 2.5px solid #16a34a; }

.flashcard-tab.active .tab-main-label {
    color: #0f172a;
    font-weight: 900;
}

.flashcard-tab.active .tab-count-badge {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

/* Estilo para ocultar/mostrar tarjetas con transiciones */
.flashcards-grid-etsy .study-card {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   SUITE DE CALCULADORAS NEONATALES (ESTILO ETSY)
   ========================================================================== */

/* ==========================================================================
   SUITE DE CALCULADORAS NEONATALES (ESTILO ETSY NURSE STUDY GUIDE)
   ========================================================================== */

.calculator-centered-layout-suite {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Sub-pestañas secundarias de la calculadora (Estilo Binder Tabs) */
.calc-tabs-etsy {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 2px dashed rgba(74, 85, 104, 0.2);
}

.calc-tabs-etsy::-webkit-scrollbar {
    display: none;
}

.calc-tab-btn {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 0.88rem;
    font-weight: 850;
    color: #475569;
    padding: 0.6rem 1.1rem;
    border: 2px solid rgba(74, 85, 104, 0.18);
    border-radius: 14px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    flex-shrink: 0;
}

.calc-tab-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
    transform: translateY(-2px);
}

/* Controladores de sub-tabuladores */
.calc-panel-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.calc-panel-content.active {
    display: block;
}

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

/* Layout Dosis y Tubo ET */
.calc-grid-dose-tubes {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .calc-grid-dose-tubes {
        grid-template-columns: 1fr;
    }
}

.calc-inputs-card,
.calc-results-card {
    padding: 1.5rem !important;
}

.calc-control-group {
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(74, 85, 104, 0.12);
}

.calc-control-group label {
    display: block;
    font-weight: 850;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 0.92rem;
}

.weight-row-etsy {
    display: inline-flex;
    align-items: center;
    border: 2px solid #64748b;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.weight-row-etsy input[type="number"] {
    width: 90px;
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-weight: 900;
    font-size: 1.25rem;
    padding: 0.45rem 0.6rem;
    border: none;
    border-radius: 0;
    text-align: center;
    background: #ffffff;
    color: #0f172a;
    outline: none;
}

.weight-row-etsy .weight-lbl {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-weight: 850;
    font-size: 1rem;
    color: #334155;
    background: #f1f5f9;
    padding: 0.5rem 0.85rem;
    border-left: 2px solid #cbd5e1;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntl-help-text {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.3rem 0 0 0;
    font-style: italic;
}

/* Tarjetas de Dosis y Puesta a Punto */
.doses-list-etsy {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dose-item-etsy {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dose-item-etsy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dose-cyan {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.dose-pink {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fecdd3;
}

.dose-yellow {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.dose-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
}

.dose-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dose-hdr h4 {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 0.95rem;
    font-weight: 850;
    color: #1e293b;
    margin: 0;
}

.dose-val-formula {
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    color: #475569;
    border: 1px solid rgba(74, 85, 104, 0.15);
}

.dose-val-output {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.dose-desc {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #64748b;
    margin: 0;
}

/* Layout APGAR y Silverman */
.calc-grid-apgar-silverman {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 850px) {
    .calc-grid-apgar-silverman {
        grid-template-columns: 1fr;
    }
}

.score-selector-card {
    padding: 1.5rem !important;
}

.score-selector-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.score-row-etsy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-bottom: 1.5px dashed rgba(74, 85, 104, 0.15);
    padding-bottom: 0.9rem;
}

.score-row-etsy:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.score-row-etsy h5 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 850;
    color: #1e293b;
}

.score-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .score-btn-group {
        grid-template-columns: 1fr;
    }
}

.score-select-btn {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.3;
    padding: 0.55rem 0.5rem;
    border: 2px solid rgba(74, 85, 104, 0.2);
    border-radius: 10px;
    background-color: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    word-break: break-word;
}

.score-select-btn:hover {
    background-color: #f8fafc;
    border-color: #64748b;
    color: #0f172a;
}

.score-select-btn.active {
    background-color: #ffecd2;
    border-color: #e67e22;
    color: #d35400;
    font-weight: 850;
    box-shadow: 0 3px 8px rgba(230, 126, 34, 0.18);
    transform: translateY(-1px);
}

/* Estilos específicos de APGAR activo */
[data-criterio^="apgar"] .score-select-btn.active {
    background-color: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
}

/* Estilos específicos de Silverman activo */
[data-criterio^="silv"] .score-select-btn.active {
    background-color: #ffe4e6;
    border-color: #f43f5e;
    color: #be123c;
}

/* Tarjeta de Resultado */
.score-result-card {
    padding: 2rem 1.5rem !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-result-box {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.score-big-number {
    font-family: var(--font-handwritten, 'Caveat', cursive);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    display: inline-block;
    color: #15803d;
}

.score-big-number.score-green {
    color: #15803d !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.score-big-number.score-yellow {
    color: #b45309 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.score-big-number.score-red {
    color: #be123c !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.score-status-badge {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-weight: 850;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.badge-green {
    background-color: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.badge-red {
    background-color: #ffe4e6;
    color: #be123c;
    border-color: #fecdd3;
}

.score-result-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #475569;
    margin: 0;
}

/* Layout New Ballard Score */
.calc-grid-ballard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ballard-column-card {
    padding: 1.5rem !important;
}

.ballard-result-card {
    grid-column: span 2;
    padding: 1.5rem !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 850px) {
    .calc-grid-ballard {
        grid-template-columns: 1fr;
    }
    .ballard-result-card {
        grid-column: span 1;
    }
}

.ballard-inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.5rem;
}

.ballard-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ballard-select-group label {
    font-weight: 850;
    font-size: 0.88rem;
    color: #1e293b;
}

.etsy-select {
    font-family: var(--font-primary, 'Nunito', sans-serif);
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(74, 85, 104, 0.2);
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.etsy-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.anki-mastered-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 850;
    padding: 0.2rem 0.55rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
