/**
 * 파일경로: /assets/css/ll-disease.css
 * 파일역할: E-가 질병정보 스타일 (Ver 9.0 - Integrated UI)
 * * [통합] 4-Tab 구조, 통합 검색 드롭다운, 검사/설문 카드, 약물 시트 등 전체 스타일 정의
 */

/* ==========================================================================
   1. Overlay Layout & Common
   ========================================================================== */
.ll-disease-overlay {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f5f7fa;
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 2000;
}

/* 질병정보 전용 스코핑 - 다른 오버레이에 영향 없음 */
.ll-disease-overlay .ll-overlay-content {
    background: #f5f7fa;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 600px;
    max-height: 100vh;
    margin: 0 auto;
    position: relative;
    border-radius: 0;
    transform: none;
}

.ll-disease-overlay.is-open .ll-overlay-content {
    transform: none;
}

.ll-disease-overlay .ll-content-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   2. Header & Search (질병정보 전용 스코핑)
   ========================================================================== */
.ll-disease-overlay .ll-header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    z-index: 10;
}

.ll-disease-overlay .ll-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ll-disease-overlay .ll-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #2d3436;
}

.ll-search-wrap {
    position: relative;
    width: 100%;
}

.ll-input-clean {
    width: 100%;
    padding: 12px 40px 12px 15px; /* 아이콘 공간 확보 */
    border: 1px solid #dfe6e9;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.ll-input-clean:focus {
    background: #fff;
    border-color: #4b7bec;
    box-shadow: 0 0 0 3px rgba(75, 123, 236, 0.1);
}

.ll-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
}

/* Search Dropdown */
.ll-disease-overlay .ll-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 12px 12px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none; /* JS 제어 */
}

.ll-search-section-title {
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 700;
    color: #636e72;
    background: #f1f2f6;
    border-bottom: 1px solid #eee;
}

.ll-search-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.1s;
}

.ll-search-item:last-child {
    border-bottom: none;
}

.ll-search-item:hover, .ll-search-item:active {
    background: #f0f7ff;
}

.ll-badge-pill {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

/* ==========================================================================
   3. Tabs (4-Tab Structure)
   ========================================================================== */
.ll-tab-bar-clean {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
    justify-content: space-around;
}

.ll-tab-clean {
    flex: 1;
    padding: 14px 5px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 14px;
    color: #b2bec3;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.ll-tab-clean.active {
    color: #2d3436;
    border-bottom-color: #2d3436;
    font-weight: 800;
}

/* ==========================================================================
   4. Cards & Components
   ========================================================================== */
.ll-disease-overlay .ll-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #eef0f4;
    position: relative;
    transition: box-shadow 0.2s;
}

.ll-disease-overlay .ll-card.danger {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-color: #ffc9c9;
    box-shadow: 0 2px 12px rgba(199,42,42,0.06);
}

.ll-disease-overlay .ll-card-hero {
    background: linear-gradient(135deg, #4b7bec 0%, #3867d6 50%, #2d5dc7 100%);
    color: #fff;
    padding: 28px 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(75, 123, 236, 0.25);
    position: relative;
    overflow: hidden;
}

.ll-disease-overlay .ll-card-hero::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.ll-disease-overlay .ll-card-hero h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    position: relative;
}

.ll-disease-overlay .ll-card-hero p {
    margin: 0;
    opacity: 0.93;
    font-size: 14px;
    line-height: 1.65;
    position: relative;
    word-break: keep-all;
}

.ll-disease-overlay .ll-card-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #2d3436;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ll-disease-overlay .ll-card-title.danger {
    color: #c92a2a;
}

.ll-disease-overlay .ll-card-mini {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: transform 0.15s;
}

/* 생활 관리 카드 내 텍스트 정렬 보강 */
.ll-disease-overlay .ll-card-mini h5 {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ll-disease-overlay .ll-card-mini div {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    word-break: keep-all;
}

/* 진료실 질문 체크리스트 배치 */
.ll-disease-overlay .ll-checklist-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll-disease-overlay .ll-checklist-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.5;
}

.ll-disease-overlay .ll-checklist-box label:hover {
    background: #f0f7ff;
}

.ll-disease-overlay .ll-checklist-box input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #4b7bec;
}

.ll-disease-overlay .ll-checklist-box label span {
    font-size: 14px;
    color: #444;
}

/* Assessment Card (신체/마음 탭 리스트용) */
.ll-assessment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ll-assessment-card:hover {
    border-color: #4b7bec;
    box-shadow: 0 4px 12px rgba(75, 123, 236, 0.12);
}

.ll-assessment-card:active {
    transform: scale(0.98);
    background: #f9f9f9;
}

/* Assessment Card 내부 요소 (인라인 스타일 추출) */
.ll-assess-card-body {
    flex: 1;
    min-width: 0;
}

.ll-assess-card-title {
    font-weight: 700;
    font-size: 15px;
    color: #2d3436;
    margin-bottom: 4px;
}

.ll-assess-card-meta {
    font-size: 12px;
    color: #636e72;
}

.ll-assess-card-count {
    color: #4b7bec;
    font-weight: 600;
}

.ll-assess-card-sep {
    color: #ddd;
    margin: 0 5px;
}

.ll-assess-card-age {
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-size: 11px;
}

.ll-assess-card-desc {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ll-assess-card-reason {
    font-size: 11px;
    color: #4b7bec;
    margin-top: 2px;
}

.ll-btn-start {
    border-radius: 20px;
    padding: 6px 14px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 추천 검사 카드 */
.ll-recomm-card {
    border-left: 4px solid #4b7bec;
    background: #f0f7ff;
}

.ll-btn-recomm {
    background: #4b7bec;
    color: #fff;
    border-color: #4b7bec;
}

/* Chips Scroller */
.ll-chip-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
}
.ll-chip-scroller::-webkit-scrollbar { display: none; }

.ll-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dfe6e9;
    color: #636e72;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.ll-chip.active {
    background: #4b7bec;
    color: #fff;
    border-color: #4b7bec;
    box-shadow: 0 4px 10px rgba(75, 123, 236, 0.3);
}

/* ==========================================================================
   5. Buttons & Grids
   ========================================================================== */
.ll-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ll-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.ll-icon-btn {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 5px;
    text-align: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.ll-icon-btn:active {
    transform: scale(0.95);
    border-color: #4b7bec;
    background: #f0f7ff;
}

.ll-icon-btn span {
    font-size: 24px;
}

.ll-btn-text {
    background: none;
    border: none;
    color: #4b7bec;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
    padding: 5px;
}

.ll-btn-add-mini {
    background: #fff;
    border: 1px solid #4b7bec;
    color: #4b7bec;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ll-btn-add-mini:hover, .ll-btn-add-mini:active {
    background: #4b7bec;
    color: #fff;
}

/* ==========================================================================
   6. Feature Specifics (Lab Calc, Med Detail)
   ========================================================================== */
/* Lab Calculator */
.ll-calc-box {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: 1px solid #f1f2f6;
}

.ll-input-box {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    outline: none;
    background: #fcfcfc;
}

.ll-input-box:focus {
    border-color: #4b7bec;
    background: #fff;
}

.ll-btn-primary {
    width: 100%;
    padding: 15px;
    background: #4b7bec;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(75, 123, 236, 0.3);
    transition: transform 0.1s;
}

.ll-btn-primary:active {
    transform: scale(0.98);
}

.ll-result-box {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.ll-result-msg {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 5px;
}

.ll-result-ref {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Med Detail Sheet (Modal) */
.ll-disease-overlay .ll-detail-sheet,
.ll-detail-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    z-index: 2200;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ll-sheet-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: #f1f2f6;
    font-size: 18px;
    cursor: pointer;
    color: #636e72;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.ll-sheet-close:hover {
    background: #dfe6e9;
}

.ll-disease-overlay .ll-info-body,
.ll-info-body {
    flex: 1;
    margin-top: 20px;
    line-height: 1.75;
    color: #2d3436;
    font-size: 15px;
    letter-spacing: -0.15px;
    word-break: keep-all;
}

.ll-btn-action {
    width: 100%;
    padding: 16px;
    background: #e3f2fd;
    color: #1565c0;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
}

/* ==========================================================================
   7. Utilities & Animations
   ========================================================================== */
.ll-disease-overlay .ll-sub-title {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 12px;
    font-weight: 700;
    display: block;
}

.ll-disease-overlay .ll-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #b2bec3;
    font-size: 14px;
    line-height: 1.6;
}

.ll-disease-overlay .ll-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: #b2bec3;
    font-size: 13px;
}

/* Collapsible Card (접기/펼치기 카드) */
.ll-card-collapsible .ll-card-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}
.ll-card-collapsible .ll-card-toggle:hover {
    color: #4b7bec;
}
.ll-card-collapsible .ll-card-toggle-arrow {
    font-size: 11px;
    color: #b2bec3;
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}
.ll-card-collapsible .ll-card-toggle[aria-expanded="true"] .ll-card-toggle-arrow {
    transform: rotate(180deg);
    color: #4b7bec;
}

/* Accordion (Upgraded) */
.ll-disease-overlay .ll-accord-item {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
}

.ll-disease-overlay .ll-accord-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.ll-disease-overlay .ll-accord-head {
    padding: 16px 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
    line-height: 1.4;
    gap: 12px;
}

.ll-disease-overlay .ll-accord-head .arrow {
    font-size: 11px;
    color: #b2bec3;
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}

.ll-disease-overlay .ll-accord-head.active .arrow {
    transform: rotate(180deg);
    color: #4b7bec;
}

.ll-disease-overlay .ll-accord-head:hover {
    background: #f8f9fa;
}

.ll-disease-overlay .ll-accord-head.active {
    color: #4b7bec;
    background: #f0f7ff;
    border-bottom: 1px solid #e0e9f5;
}

.ll-disease-overlay .ll-accord-body {
    padding: 18px 20px;
    display: none;
    border-top: 1px solid #f0f2f5;
    font-size: 14px;
    line-height: 1.75;
    color: #4a4a4a;
    background: #fafbfd;
    letter-spacing: -0.15px;
    word-break: keep-all;
}

/* Smart List (JSON 배열 기반) */
.ll-smart-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.ll-smart-list li {
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

.ll-smart-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Markdown Rendered Elements
   ========================================================================== */
.ll-md-h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 16px 0 10px;
    color: #1e272e;
    line-height: 1.4;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f3f5;
}

.ll-md-h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 14px 0 8px;
    color: #2d3436;
    line-height: 1.4;
}

.ll-md-bold {
    font-weight: 700;
    color: #2d3436;
}

.ll-md-list {
    margin: 8px 0;
    padding-left: 22px;
    line-height: 1.7;
}

.ll-md-list li {
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
    position: relative;
}

.ll-md-list li:last-child {
    margin-bottom: 0;
}

.ll-md-olist {
    padding-left: 24px;
}

.ll-md-olist li {
    padding-left: 4px;
}

/* 아코디언 내 마크다운 첫 요소 상단 마진 제거 */
.ll-accord-body > .ll-md-h3:first-child,
.ll-accord-body > .ll-md-h4:first-child {
    margin-top: 0;
}

/* 생활관리 핵심 그리드 레이아웃 */
#ll-lifestyle-grid {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 400px) {
    #ll-lifestyle-grid {
        grid-template-columns: 1fr;
    }
}
#ll-lifestyle-grid .ll-card-mini {
    padding: 12px 14px;
    border-radius: 12px;
    min-width: 0;
}
#ll-lifestyle-grid .ll-card-mini h5 {
    margin: 0 0 6px;
    font-size: 13px;
}
#ll-lifestyle-grid .ll-card-mini div {
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}

/* 생활관리 카드 내 마크다운 */
.ll-card-mini .ll-md-list {
    margin: 4px 0;
    padding-left: 18px;
}

.ll-card-mini .ll-md-list li {
    font-size: 13px;
    margin-bottom: 4px;
}

/* 약물 정보 내 마크다운 */
.ll-info-body .ll-md-h3,
.ll-info-body .ll-md-h4 {
    margin-top: 10px;
}

.ll-info-body .ll-md-list li {
    font-size: 14px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ==========================================================================
   8. Assessment Modal (인라인 -> CSS 추출)
   ========================================================================== */
#ll-assessment-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#ll-assessment-modal.ll-modal-visible {
    opacity: 1;
}

#ll-assessment-modal .ll-assess-box {
    width: min(520px, 92vw);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 16px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#ll-assessment-modal.ll-modal-visible .ll-assess-box {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.ll-assess-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ll-assess-header-body {
    flex: 1;
}

#ll-assess-title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    color: #2d3436;
}

#ll-assess-sub {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.ll-assess-close-btn {
    border: 0;
    background: #f1f2f6;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #636e72;
    transition: background 0.15s;
}

.ll-assess-close-btn:hover {
    background: #dfe6e9;
}

/* Modal Stage */
#ll-assess-stage {
    margin-top: 12px;
}

/* Modal Footer */
#ll-assess-footer {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ll-assess-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}

.ll-assess-btn:hover {
    background: #f8f9fa;
}

.ll-assess-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   9. Progress Bar (문항 진행 표시)
   ========================================================================== */
.ll-progress-wrap {
    margin-top: 8px;
    margin-bottom: 4px;
}

.ll-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f2f6;
    border-radius: 3px;
    overflow: hidden;
}

.ll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4b7bec, #3867d6);
    border-radius: 3px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ll-progress-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

/* ==========================================================================
   10. Question Options (문항 보기)
   ========================================================================== */
.ll-q-option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}

.ll-q-option:hover {
    border-color: #4b7bec;
    background: #f8faff;
}

.ll-q-option.ll-q-selected {
    border-color: #4b7bec;
    background: #edf2ff;
    box-shadow: 0 0 0 2px rgba(75, 123, 236, 0.15);
}

.ll-q-option input[type="radio"] {
    transform: scale(1.1);
    accent-color: #4b7bec;
}

.ll-q-option span {
    font-size: 14px;
    color: #2d3436;
}

.ll-q-text {
    margin-top: 10px;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.35;
    color: #2d3436;
}

.ll-q-hint {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.ll-q-auto-hint {
    margin-top: 10px;
    color: #999;
    font-size: 12px;
}

/* ==========================================================================
   11. Context Chips (상황 선택)
   ========================================================================== */
.ll-ctx-chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}

.ll-ctx-chip:hover {
    border-color: #4b7bec;
    background: #f8faff;
    color: #4b7bec;
}

.ll-ctx-chip:active {
    background: #edf2ff;
    transform: scale(0.97);
}

/* ==========================================================================
   12. Result Level Colors (결과 색상 코딩)
   ========================================================================== */
.ll-result-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
}

.ll-result-level--green {
    background: #f3fbf6;
    color: #126b2e;
    border: 1px solid #cfe9d6;
}

.ll-result-level--yellow {
    background: #fff8e6;
    color: #7a4a00;
    border: 1px solid #ffe2a8;
}

.ll-result-level--orange {
    background: #fff2ea;
    color: #8a2e00;
    border: 1px solid #ffd0b5;
}

.ll-result-level--red {
    background: #fff0f0;
    color: #9b1111;
    border: 1px solid #ffc5c5;
}

.ll-result-summary {
    margin-top: 10px;
    color: #333;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.5;
}

.ll-result-score {
    margin-top: 12px;
    color: #999;
    font-size: 12px;
}

/* ==========================================================================
   13. Loading Spinner
   ========================================================================== */
.ll-loader-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    color: #b2bec3;
    font-size: 13px;
    justify-content: center;
}

.ll-loader-mini::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #dfe6e9;
    border-top-color: #4b7bec;
    border-radius: 50%;
    animation: ll-spin 0.8s linear infinite;
}

@keyframes ll-spin {
    to { transform: rotate(360deg); }
}

/* Pulse animation for loading text */
.ll-loader-pulse {
    animation: ll-pulse 1.5s ease-in-out infinite;
}

@keyframes ll-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   14. Accessibility Enhancements
   ========================================================================== */
/* Focus visible for keyboard navigation */
.ll-assessment-card:focus-visible,
.ll-btn-add-mini:focus-visible,
.ll-chip:focus-visible,
.ll-ctx-chip:focus-visible,
.ll-q-option:focus-visible,
.ll-assess-btn:focus-visible,
.ll-assess-close-btn:focus-visible {
    outline: 2px solid #4b7bec;
    outline-offset: 2px;
}

/* Screen-reader only text */
.ll-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   15. Responsive (BMI 입력 모바일 대응)
   ========================================================================== */
@media (max-width: 380px) {
    #ll-bmi-inputs {
        flex-direction: column !important;
    }
    .ll-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}