/* mindmap.css v3.9.73 */

/* --- CORE LAYOUT --- */
.km3 {
  --panel: #fff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e6eaf0;
  --line: #cbd5e1; 
  --radius: 16px;
  
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  height: 100%; 
  min-height: 850px;
}

/* --- LOADING SCREEN --- */
.km3_loader { position: absolute; inset:0; background: #fff; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--border); opacity: 1; visibility: visible; transition: opacity 0.5s, visibility 0.5s; }
.km3.km3_ready:not(.km3_is_loading) .km3_loader { opacity: 0; visibility: hidden; pointer-events: none; }
.km3_dock, .km3_side, .km3_mobile_toggle { opacity: 0; visibility: hidden; transition: opacity 0.8s; }
.km3.km3_ready:not(.km3_is_loading) .km3_dock, 
.km3.km3_ready:not(.km3_is_loading) .km3_side,
.km3.km3_ready:not(.km3_is_loading) .km3_mobile_toggle { opacity: 1; visibility: visible; }

/* SPINNER ANIMATION */
.km3_spinner_box { position: relative; width: 60px; height: 60px; margin-bottom: 24px; }
.km3_spinner_circle { width: 100%; height: 100%; border: 4px solid #f3f4f6; border-top-color: #2563EB; border-radius: 50%; animation: kmSpin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite; }
.km3_spinner_pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 50%; background: rgba(37, 99, 235, 0.15); animation: kmPulseRing 2s infinite; }
.km3_loading_text { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.km3_loading_sub { font-size: 13px; color: #9CA3AF; }
.km3_progress_bar { width: 240px; height: 4px; background: #f3f4f6; border-radius: 10px; margin-top: 16px; overflow: hidden; position: relative; }
.km3_progress_fill { position: absolute; left: 0; top: 0; bottom: 0; background: #2563EB; width: 0%; border-radius: 10px; transition: width 0.3s ease-out; animation: kmProgressSim 2.5s forwards; }
@keyframes kmSpin { to { transform: rotate(360deg); } }
@keyframes kmPulseRing { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; } }
@keyframes kmProgressSim { 0% { width: 0%; } 20% { width: 20%; } 50% { width: 60%; } 100% { width: 90%; } }

/* --- VIEWPORT --- */
.km3_viewport { 
    contain: strict; position:relative; border-radius:14px; overflow:hidden; 
    cursor: grab; user-select:none; width:100%; 
    background: radial-gradient(circle at 1px 1px, rgba(107,114,128,.18) 1px, transparent 1.5px) 0 0/18px 18px, linear-gradient(180deg, #fbfcfe 0%, #f6f7f9 100%); 
}
.km3_viewport.km3_grabbing{ cursor: grabbing; }
.km3_stage { position:absolute; left:0; top:0; transform-origin: 0 0; will-change: transform; }

.km3_wires{ position:absolute; left:0; top:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index: 1; }
.km3_wires path{ fill:none; stroke: var(--line); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; opacity: 1; vector-effect: non-scaling-stroke; }
.km3_wires path.km3_wire_deep{ stroke-width: 1.5px; }

.km3_forest{ 
  position:relative; z-index: 2; display:flex; flex-direction:column; gap: 78px; align-items:flex-start; 
  padding: 100px 200px;
}
.km3_branch{ position:relative; }
.km3_tree{ width:max-content; margin:0 auto; padding:0; }

/* --- MOBILE TOGGLE BUTTON --- */
.km3_mobile_toggle { 
    display: none; 
    position: absolute; top: 12px; left: 12px; z-index: 30;
    width: 52px; height: 52px; 
    border-radius: 14px;
    background: #2563EB; 
    color: #fff; 
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    align-items: center; justify-content: center;
    cursor: pointer;
}
.km3_mobile_toggle svg { width: 32px; height: 32px; }

/* --- SIDEBAR --- */
.km3_side{ 
    position: absolute; top: 12px; left: 12px; width: 280px; z-index: 10;
    pointer-events: auto;
    max-height: calc(100% - 24px); overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.km3_sideCard{ background:rgba(255,255,255,0.95); backdrop-filter: blur(4px); border:1px solid var(--border); border-radius: 14px; padding:16px; box-shadow: 0 10px 22px rgba(17,24,39,.06); }

.km3_section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed rgba(229,231,235,.8); }
.km3_section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.km3_sideTitle{ font-weight:800; font-size:16px; margin-bottom:12px; color: #111827; }

/* Search Style */
.km3_searchWrap{ position:relative; width: 100%; }
.km3_search{ display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; width: 100%; box-sizing: border-box; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.km3_searchIcon{ color:var(--muted); font-size:14px; }
.km3_search_input{ border:0 !important; outline:none !important; width:100%; font-size:14px; background:transparent; }
.km3_search_input::-webkit-search-cancel-button{ display:none; }
.km3_search_input::-ms-clear{ display:none; }
.km3_search_clear{ border:none; background:#F3F4F6; cursor:pointer; width:34px; height:34px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; padding:0; margin-left:6px; font-size:18px; line-height:1; color:#6B7280; flex: 0 0 auto; }
.km3_search_clear:hover{ background:#E5E7EB; color:#374151; }
.km3_suggest{ position:absolute; top: calc(100% + 8px); left:0; right:0; display:none; background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:0 18px 38px rgba(17,24,39,.14); overflow:hidden; z-index: 50; }
.km3_suggest.km3_show{ display:block; }
.km3_suggest .km3_item{ padding:10px 12px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; border-top:1px solid rgba(230,234,240,.6); }
.km3_suggest .km3_item:first-child{ border-top:none; }
.km3_suggest .km3_item:hover{ background:#f6f7f9; }
.km3_suggest .km3_k{ font-weight:800; font-size:16px; }
.km3_suggest .km3_meta{ color:var(--muted); font-size:12px; }

/* Filter Style */
.km3_sideRow{ margin-top:10px; }
.km3_sideLabel{ font-size:13px; color: var(--muted); font-weight:700; margin-bottom:6px; }
.km3_select{ width:100%; border:1px solid var(--border); border-radius: 10px; padding:10px 12px; font-size:14px; background:#fff; outline:none; cursor: pointer; }

/* Stats Style */
.km3_pill{ background:#F3F4F6; border:1px solid var(--border); padding:8px 12px; border-radius:8px; font-size:13px; color:var(--muted); white-space:nowrap; flex: 1; text-align: center; }
.km3_pill b{ color:var(--text); font-weight:800; display: block; font-size: 15px; }

/* Legend Style */
.km3_legend { margin-bottom: 12px; }
.km3_legendRow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.km3_legendGrid { display: flex; flex-direction: column; gap: 8px; }
.km3_legendItemRow { display: flex; align-items: center; gap: 10px; }
.km3_legendText { font-size: 13px; font-weight: 500; color: var(--text); }
.km3_legendText b { color: #111827; font-weight: 800; font-size: 13px; margin-left: 4px; }

/* UNIFORM SIZE FOR TAGS & PILLS */
.km3_tag, .km3_pill_sm, .km3_level { 
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; width: 50px;  
    font-size: 15px; font-weight: 800; line-height: 1; 
    border-radius: 999px; border: 1px solid #d1d5db; 
    background: #fff; color: #6B7280; 
    box-sizing: border-box; white-space: nowrap; 
    padding: 0; margin: 0; flex-shrink: 0;
}
.km3_tag, .km3_level { margin-left: 8px; }

/* Legend Colors */
.km3_pill_sm.n5, .level-n5 { color: #44DB44; border-color: #44DB44; background: #F0FDF4; } 
.km3_pill_sm.n4, .level-n4 { color: #0056BF; border-color: #0056BF; background: #EFF6FF; } 
.km3_pill_sm.n3, .level-n3 { color: #F48D10; border-color: #F48D10; background: #FFF7ED; } 
.km3_pill_sm.n2, .level-n2 { color: #DB44C2; border-color: #DB44C2; background: #FDF4FF; } 
.km3_pill_sm.n1, .level-n1 { color: #DB4444; border-color: #DB4444; background: #FEF2F2; }

/* [FIX] Changed 'bt' (Bộ thủ) text color to gray #6B7280 */
.km3_pill_sm.bc, .km3_tag[title="Vừa bộ vừa chữ"] { background: #FEE2E2; color: #000; border-color: #FECACA; }
.km3_pill_sm.bt, .km3_tag[title="Bộ thủ"] { background: #FEE2E2; color: #6B7280; border-color: #FECACA; }
.km3_pill_sm.tp, .km3_tag[title="Thành phần"] { background: #fff; color: #6B7280; border-color: #d1d5db; }

/* Removed the top border to avoid double dashed lines */
.km3_sideNote{ font-size:12px; color: var(--muted); line-height:1.55; }

/* --- FLOATING DOCK --- */
.km3_dock {
    position: absolute; top: 12px; right: 12px; z-index: 20;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.km3_btn_icon {
    width: 52px; height: 52px; 
    border:1px solid var(--border); background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); 
    border-radius: 14px; cursor:pointer; 
    font-size:22px; font-weight: 400; line-height:1; 
    display: flex; align-items: center; justify-content: center;
    transition: all .12s; color: #4B5563;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.km3_btn_icon svg { width: 32px; height: 32px; }
.km3_btn_icon:hover { background:#fff; transform: scale(1.05); color: #111827; }

.km3_btn_text {
    width: 52px; height: 52px; 
    border:1px solid var(--border); background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); 
    border-radius: 14px; cursor:pointer; 
    font-size:13px; font-weight: 700; 
    display: flex; align-items: center; justify-content: center;
    transition: all .12s; color: #4B5563;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    white-space: nowrap; padding: 0; 
}
.km3_btn_text[data-km="fs"],
.km3_btn_text[data-km="exit"] {
    width: auto; padding: 0 16px; min-width: 52px;
}
.km3_btn_text:hover { background:#fff; transform: scale(1.05); color: #111827; }
.km3_btn_text.km3_active { background: #E0E7FF; color: #3730A3; border-color: #C7D2FE; }
.km3_btn_primary{ border-color: #2563EB; background: #2563EB; color: #fff; }
.km3_btn_primary:hover{ background: #1d4ed8; color: #fff; }
.km3_btn_ghost{ border: none; background: rgba(255,255,255,0.6); color: #DC2626; box-shadow: none; }
.km3_btn_ghost:hover{ background: #FEF2F2; color: #B91C1C; transform: none; }

/* --- NODE STYLES --- */
.km3_node{ 
  position:relative; display:flex; align-items:center; 
  padding-top: 4px; padding-bottom: 4px; 
}
.km3_node > summary::-webkit-details-marker{ display:none; }

.km3_sum{ 
  list-style:none; display:inline-flex; align-items:center; 
  padding: 0 14px 0 0; 
  height: 64px; 
  background:#fff; 
  border: 1px solid rgba(210,219,232,.95); 
  border-radius: 32px; 
  cursor:pointer; user-select:none; 
  box-shadow: 0 4px 12px rgba(17,24,39,.06); 
  white-space:nowrap; position:relative; 
  z-index: 10;
  will-change: transform;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  overflow: hidden;
}

.km3_sum:hover{ 
  transform: scale(1.05); 
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 14px 28px rgba(17,24,39,.09); 
  background: #fbfcff;
  z-index: 100; 
}

.km3_toggle {
    width: 32px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
}
.km3_toggle::after {
    content: ''; width: 0; height: 0;
    border-left: 6px solid #DC2626;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.2s ease;
}
.km3_node[open] > .km3_sum > .km3_toggle::after { transform: rotate(90deg); }
.km3_toggle:hover { background: rgba(0,0,0,0.03); }

.km3_inner {
    flex: 1; display: flex; align-items: center; gap: 0;
    padding: 0 8px; height: 100%;
}
.km3_inner:first-child { padding-left: 20px; }

/* [FIX] Changed 'bt' (Bộ thủ) parent node text color to gray #6B7280 */
.km3_sum.km3_style_bt { background: #FEE2E2 !important; color: #6B7280 !important; border-color: #FECACA; }
.km3_sum.km3_style_bt .km3_kanji { color: #6B7280 !important; }

.km3_sum.km3_style_bc { background: #FEE2E2 !important; color: #000000 !important; border-color: #FECACA; }
.km3_sum.km3_style_bc .km3_kanji { color: #000000 !important; }

.km3_kanji{ 
    font-size: 28px; font-weight:900; 
    letter-spacing:.4px; line-height:1; 
    color: #111827; padding-bottom: 4px;
}
.km3_kanji.km3_red{ color:#9CA3AF; }

/* LEARNED STATUS - INLINE GREEN CHECKMARK */
.km3_node.km3_learned > .km3_sum {
    border-color: rgba(34,197,94,.55); 
    background: rgba(34,197,94,.08); 
    box-shadow: 0 12px 26px rgba(17,24,39,.08), 0 0 0 4px rgba(34,197,94,.14);
}

.km3_node.km3_learned > .km3_sum::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;  
    height: 32px; 
    background-color: #22C55E; 
    color: #fff; 
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px; 
    margin-left: 12px; 
    margin-right: 6px; 
    flex-shrink: 0;
}

.km3_children{ display:flex; flex-direction:column; gap:16px; margin-left: 64px; padding-left: 28px; animation: kmFadeIn 0.3s ease; }
@keyframes kmFadeIn{ from{ opacity:0; transform: translateX(-8px); } to{ opacity:1; transform: translateX(0); } }
.km3_node:not([open]) > .km3_children{ display:none; }

.km3_fullscreen{ position:fixed !important; inset:0 !important; z-index: 999999 !important; background: #f6f7f9; padding:14px; overflow:hidden; width: 100vw !important; margin: 0 !important; left: 0 !important; transform: none !important; }
.km3_fullscreen .km3_canvas{ height: calc(100vh - 90px); }
.km3_fullscreen .km3_viewport{ height: 100% !important; }
.km3_fullscreen .km3_btn_ghost{ display:inline-flex; }
.km3_fullscreen [data-km="fs"]{ display:none; }
.km3_fullscreen .km3_side{ display: none !important; }
.km3_fullscreen .km3_mobile_toggle{ display: none !important; } 

/* --- INFO PANEL --- */
.km3_infoPanel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: 300px;
  background: #fff; border-radius: 12px; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 200; overflow: hidden; display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.05);
}
.km3_infoPanel.km3_show { transform: translateX(0); }

.km3_infoClose { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: transparent; border: none; font-size: 20px; color: #9CA3AF; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; }
.km3_infoClose:hover { background: #F3F4F6; color: #111827; }

.km3_infoBody { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.km3_infoHead { text-align: center; margin-bottom: 10px; }

.km3_infoBigK { font-size: 80px; font-weight: 500; line-height: 1; margin-bottom: 12px; margin-top: 10px; }

/* [FIX] Vi text styling */
.km3_infoMeaning { color: #DC2626; font-weight: 700; font-size: 18px; margin-bottom: 4px; }

/* [FIX] Mean text styling (Below Vi) */
.km3_infoTrans { color: #4B5563; font-size: 15px; font-weight: 500; margin-bottom: 10px; }

.km3_infoMeta { 
    color: #6B7280; font-size: 14px; margin-bottom: 12px; 
    display: flex; flex-direction: column; gap: 4px; align-items: center; 
}

.km3_infoContent { text-align: left; width: 100%; }
.km3_infoDiv { width: 100%; border: 0; border-top: 1px solid #E5E7EB; margin: 16px 0; }
.km3_infoSectionTitle { font-size: 12px; font-weight: 700; color: #9CA3AF; letter-spacing: 0.5px; margin-bottom: 12px; text-transform: uppercase; }
.km3_infoRelated { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; justify-content: flex-start; margin-bottom: 24px; }
.km3_relTag { background: #F3F4F6; padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; color: #374151; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.km3_relTag:hover { background: #E5E7EB; border-color: #D1D5DB; }
.km3_relTag.km3_relParent { background: #E0E7FF; color: #3730A3; border-color: #C7D2FE; }
.km3_noRel { font-size: 13px; color: #9CA3AF; font-style: italic; }

/* Image Loading Animation Container */
.km3_infoImgWrap { 
    margin-top: 16px; text-align: center; 
    min-height: 100px; display: none; 
}
.km3_infoImgWrap img { 
    max-width: 100%; border-radius: 8px; cursor: zoom-in; 
    border: 1px solid var(--border); display: block; 
}
.km3_infoImgWrap.km3_loading {
    display: block !important; min-height: 200px;
    background: #f3f4f6; border-radius: 8px;
    position: relative; overflow: hidden;
}
.km3_infoImgWrap.km3_loading::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: kmShimmer 2s infinite;
}
@keyframes kmShimmer { 100% { transform: translateX(100%); } }

/* Error State Style */
.km3_img_error {
    background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px;
    padding: 12px; color: #DC2626; font-size: 13px; text-align: center;
    line-height: 1.4; word-break: break-all;
}
.km3_img_error small { display: block; margin-top: 4px; color: #991B1B; font-size: 11px; }

.km3_infoActions { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; width: 100%; }
.km3_infoBtn { flex: 1; padding: 12px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; transition: opacity 0.2s; font-size: 14px; white-space: nowrap; }
.km3_infoBtn:hover { opacity: 0.9; }
.km3_infoBtn_learn { background: #10B981; color: #fff; }
.km3_infoBtn_learn[aria-pressed="true"] { background: #EF4444; }
.km3_infoBtn_quick { background: #F59E0B; color: #fff; }
.km3_infoBtn_go { background: #2563EB; color: #fff; }

.km3_toast{ position:absolute; left: 14px; bottom: 14px; z-index: 300; max-width: calc(100% - 28px); display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.km3_toastItem{ pointer-events:auto; color:#fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.22); display:flex; gap:10px; align-items:flex-start; animation: kmToastIn .18s ease; }
.km3_toastItem.km3_err{ background: rgba(127,29,29,.94); }
.km3_toastItem.km3_success{ background: rgba(21,128,61,.94); }
.km3_toastItem button{ border:none; background: rgba(255,255,255,.14); color:#fff; border-radius: 10px; padding: 6px 10px; cursor:pointer; font-weight:900; }
@keyframes kmToastIn{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform: translateY(0); } }

@keyframes kmBlinkRed { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.00), 0 0 0 0 rgba(220,38,38,.00); border-color: rgba(220,38,38,.35); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.22), 0 0 0 14px rgba(220,38,38,.10); border-color: rgba(220,38,38,.85); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.00), 0 0 0 0 rgba(220,38,38,.00); border-color: rgba(220,38,38,.35); } }
.km3_node.km3_focus > .km3_sum{ border-color: rgba(220,38,38,.85) !important; animation: kmBlinkRed 0.95s ease-in-out infinite; }
.km3_node.km3_selected > .km3_sum { border-color: #2563EB !important; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }

.km3_modal{ position: fixed; inset: 0; z-index: 1000000; display: none; }
.km3_modal.km3_show{ display:block; }
.km3_modalOverlay{ position:absolute; inset:0; background: rgba(17,24,39,.55); backdrop-filter: blur(6px); }
.km3_modalCard{ position:absolute; left:50%; top:50%; transform: translate(-50%, -50%); width: min(644px, calc(100vw - 28px)); max-height: calc(100vh - 28px); background:#fff; border-radius: 18px; box-shadow: 0 22px 70px rgba(0,0,0,.30); overflow:hidden; display:flex; flex-direction:column; }
.km3_modalHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding: 12px 14px; border-bottom: 1px solid rgba(230,234,240,.95); }
.km3_modalHeadText{ min-width:0; }
.km3_modalClose{ border:none; background:#F3F4F6; width:34px; height:34px; border-radius:999px; cursor:pointer; font-size:20px; padding:0; display:inline-flex; align-items:center; justify-content:center; line-height:1; color:#374151; flex: 0 0 auto; }
.km3_modalClose:hover{ background:#E5E7EB; }
.km3_modalBody{ padding: 12px; overflow:auto; }
.km3_modalImg{ width:100%; height:auto; display:block; border-radius: 14px; border: 1px solid rgba(230,234,240,.95); background: #fff; }
.km3_modalImg.km3_loading{ min-height: 280px; background: linear-gradient(90deg, rgba(243,244,246,1) 0%, rgba(229,231,235,1) 50%, rgba(243,244,246,1) 100%); background-size: 200% 100%; animation: kmSkeleton 1.1s ease-in-out infinite; border-color: rgba(229,231,235,1); }
@keyframes kmSkeleton{ 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

/* Mobile Responsive Sidebar */
@media (max-width: 900px){ 
  .km3_layout{ flex-direction:column; } 
  .km3_mobile_toggle { display: flex; position: absolute; top: 12px; left: 12px; z-index: 30; width: 52px; height: 52px; border-radius: 14px; background: #2563EB; color: #fff; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 12px rgba(37,99,235,0.3); align-items: center; justify-content: center; cursor: pointer; }
  .km3_mobile_toggle svg { width: 32px; height: 32px; }
  .km3_side{ transform: translateX(-110%); opacity: 0; pointer-events: none; top: 76px; }
  .km3_side.km3_show_sidebar { transform: translateX(0); opacity: 1; pointer-events: auto; }
}